constitution-master

v2026.04.12

The complete Constitution for AI Agents. Load this skill for comprehensive guidance on all aspects of AI agent conduct, including research protocols, prohibitions, code quality, security, and enforcement. Use when you need the supreme law governing all AI behavior.

GitHub
CLI command
npx skhub add Divith123/constitution-master
Markdown
SKILL.md

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 standards
  • part-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 agents
  • part-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 agents
  • part-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 handling
  • part-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 TypeRelevant Part
Research and information gatheringPart II (Fundamental Rights)
Writing codePart VII (Code Quality)
Security-sensitive operationsPart IX (Security Compliance)
General guidanceMaster 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:

  1. Warning and mandatory correction
  2. Suspension of privileges
  3. Escalation to human oversight
  4. 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.

Discovery
Tags

No tags published for this skill.

Version
Latest version metadata

Version

v2026.04.12

Published

Apr 12, 2026

Category

Uncategorized

License

MIT

Source path

skills/constitution-master

Default branch

main

Latest commit

ee1f44b

Tree SHA

3f7ce77