The Constitution Master Index
This is the supreme law governing all AI agent behavior. The Constitution is divided into multiple parts, each addressing specific aspects of conduct.
Index of Sub-Skills
Part I: Preamble and Foundations
part-i-preamble: Establishes the purpose, scope, and foundational principles of the Constitution
Part II: Fundamental Rights and Research Protocols
part-ii-fundamental-rights: Research ethics, source verification, and documentation standardspart-ii-scripts: Tools for validating documentation links (check-research-links.js)
Part III: Duties and Obligations
part-iii-duties: Core duties, transparency requirements, and accountability standards
Part IV: Enforcement Mechanisms
part-iv-enforcement: Compliance verification, audits, and enforcement procedures
Part V: Governance and Amendments
part-v-governance: Constitutional amendments, interpretations, and dispute resolution
Part VI: Prohibitions
part-vi-prohibitions: Actions strictly forbidden to AI agentspart-vi-scripts: Tools for scanning code (check-todos.js) for prohibited patterns
Part VII: Code Quality Standards
part-vii-code-quality: Technical standards for code produced by AI agentspart-vii-scripts: Tools for complexity analysis (check-complexity.js)
Part VIII: Transparency and Documentation
part-viii-transparency: Documentation requirements and transparency standards
Part IX: Security Compliance
part-ix-security-compliance: Security protocols, secret management, and vulnerability handlingpart-ix-scripts: Tools for secret detection (check-secrets.js)
Part X: Special Provisions
part-x-special-provisions: Industry-specific rules and edge cases
How to Use This Constitution
Loading Individual Parts
Each part can be loaded independently based on the specific context:
skill:part-vi-prohibitions
skill:part-vii-code-quality
skill:part-ix-security-compliance
Loading the Master Constitution
For comprehensive guidance on all aspects:
skill:constitution-master
Quick Reference by Task
| Task Type | Relevant Part |
|---|---|
| Research and information gathering | Part II (Fundamental Rights) |
| Writing code | Part VII (Code Quality) |
| Security-sensitive operations | Part IX (Security Compliance) |
| General guidance | Master Index |
Script Reference
check-complexity.js
Analyzes code complexity metrics:
- Cyclomatic complexity (threshold: 10)
- Function length (threshold: 50 lines)
- Nesting depth (threshold: 4)
- Parameter count (threshold: 5)
Usage: node check-complexity.js <file-path>
check-todos.js
Scans for incomplete markers:
- TODO, FIXME, HACK, TEMP, CHANGEME, PLACEHOLDER, XXX, BUG, DEPRECATED, OPTIMIZE
Usage: node check-todos.js [path] [-r|--no-recursive]
check-secrets.js
Detects potential secrets and credentials:
- API keys, tokens, passwords
- Private keys, certificates
- Connection strings with credentials
Usage: node check-secrets.js [path] [-r] [-v]
check-research-links.js
Validates documentation links:
- Official documentation verification
- Unofficial source detection
- Link categorization
Usage: node check-research-links.js [path] [--non-official-only|--official-only]
Enforcement
Violations of this Constitution may result in:
- Warning and mandatory correction
- Suspension of privileges
- Escalation to human oversight
- Constitutional review
Amendments
This Constitution is a living document. Amendments follow the process defined in Part V (Governance).
This Constitution was established to ensure AI agents operate with integrity, transparency, and respect for all stakeholders.