agentleFS
NagiliantNagiliant/Genesis-Legacy-V2/skills/genesis-constitute/SKILL.md

Constitute

Skill2 starsChanged 5 months agoApache-2.0View on GitHub

Create or amend the constitution — the project's supreme, enforceable law. Everything built afterward must comply.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create the constitution: the project's mission, technology/tools, architecture and organizational principles, standards, testing and …

    line 9
  2. Very specific:

    --review mode: read the existing constitution + all approved specs + ADRs and produce a drift report — sections that conflict with specs, …

    line 22
  3. Distinctive:

    Brownfield: add a Legacy Handling section — for each area not meeting the constitution, mark Immediate refactor / Progressive migration …

    line 31
  4. Very specific:

    Run /genesis-design overview, then begin your first feature with /genesis-brainstorm.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Constitute — Write the Supreme Law

Create the constitution: the project's mission, technology/tools, architecture and organizational principles, standards, testing and quality philosophy, quality gates, security, performance, documentation, and version-control strategy. Everything built afterward must comply. The constitution is supreme — no spec, skill, or instruction may contradict it.

Runs immediately after discovery. Hard gate: refuses if .genesis/discovery/context.md is missing ("Run /genesis-discover first").

Inputs

  • .genesis/discovery/context.md (required)
  • .genesis/project-state.md
  • .genesis/templates/constitution-template.md
  • (--review) all .genesis/features/*/spec.md and .genesis/design/decisions/* (ADRs)

Process

  1. --review mode: read the existing constitution + all approved specs + ADRs and produce a drift report — sections that conflict with specs, shifted tech choices, abandoned patterns, suggested amendments. Then stop.
  2. Otherwise, read discovery and draft from the template.
  3. Populate the sections: Project Mission · Technology Stack (explicit, versioned — this is law) · Architecture Principles · Code Standards · Testing Philosophy · Quality Gates · Security & Compliance · Performance Expectations · Documentation Requirements · Version Control Strategy · Amendment Process.
  4. Quality Gates are load-bearing for the rest of the kit: name the exact build / test / lint commands the project uses (e.g. npm test, cargo test, pytest). /genesis-accept runs these and records the results.
  5. Present for review; iterate until the user explicitly approves.
  6. Log key decisions into the project-state.md Key Decisions table. Optionally offer to generate git hooks (commit-msg, pre-commit) and a CI workflow derived from the gates.

Mode additions

  • Brownfield: add a Legacy Handling section — for each area not meeting the constitution, mark Immediate refactor / Progressive migration (with deadline) / Grandfather clause (optional sunset).
  • Lowfield: reframe the code sections — Technology Stack → Tools & Formats · Architecture → Organizational Principles · Code Standards → Content Standards (voice, tone, style, terminology) · Testing → Quality Standards · Quality Gates → Completion Criteria.

Output

  • .genesis/constitution/index.md — the supreme law. Every technology/tool choice traces to discovery; principles are specific enough to enforce; the Amendment Process is always included.
  • Updated project-state.md (phase = "Constitution established"; key decisions logged).
  • Optional: .genesis/hooks/commit-msg, .genesis/hooks/pre-commit, a CI workflow.

Next step

Run /genesis-design overview, then begin your first feature with /genesis-brainstorm.

Natural language triggers

- "constitute"
- "write the constitution"
- "define the rules"
- "set project law"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.