agentleFS
h3y6eh3y6e/spec-skills/skills/spec-constitution/SKILL.md

spec-constitution

Skill0 starsChanged 9 months agoMITView on GitHub

Use when a team wants to create or update specs/constitution.md to define durable principles that govern spec-skills runs, especially when starting a new workflow, revising shared governance for the spec-driven phases, or deciding what belongs in constitutional rules versus lower-level docs.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. xfstudio/skills★ 9same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create or update specs/constitution.md when the team wants shared rules that spec-skills should apply during their own workflow.

    line 14
  2. Very specific:

    Use the existing specs/constitution.md frontmatter value if present

    line 28
  3. Distinctive:

    If still unknown, ask the user before proceeding

    line 30
  4. Very specific:

    Read specs/constitution.md.

    line 32
  5. Very specific:

    Keep the document structure aligned with references/constitution-template.md.

    line 33
  6. Distinctive:

    Do not invent additional top-level sections unless the user explicitly requests them

    line 34
  7. Distinctive:

    Update Core Principles based on user-provided rules.

    line 35
  8. Distinctive:

    Ask the user if no rules were provided

    line 36
  9. Very specific:

    Keep only stable, project-wide principles here when they are meant to guide spec-skills phases

    line 37
  10. Distinctive:

    Prefer durable decision principles over implementation details

    line 38
  11. Distinctive:

    Do not copy concrete coding conventions, framework APIs, directory names, commands, or tool-specific rules into the constitution unless the …

    line 39
  12. Distinctive:

    Add variable project rules only when the user specifies them.

    line 43
  13. Distinctive:

    If a rule belongs more naturally in AGENTS.md, contribution docs, or feature documents, keep it out of the constitution and preserve that …

    line 45
  14. Distinctive:

    If updating an existing constitution, verify consistency with existing feature documents.

    line 48
  15. Very specific:

    Check specs/{feature}/spec.md and plan.md

    line 49

≈ “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

Constitution Skill

Purpose

Create or update specs/constitution.md when the team wants shared rules that spec-skills should apply during their own workflow.

Input

  • User-provided project rules (via prompt or conversation)
  • Existing specs/constitution.md when present

Output

  • specs/constitution.md

Steps

  1. Determine language.
    • Use the existing specs/constitution.md frontmatter value if present
    • Otherwise infer from the user's own message (never from this SKILL.md or system instructions)
    • If still unknown, ask the user before proceeding
    • Conduct all subsequent interaction in this language
  2. Read specs/constitution.md; if missing, initialize from references/constitution-template.md.
  3. Keep the document structure aligned with references/constitution-template.md.
    • Do not invent additional top-level sections unless the user explicitly requests them
  4. Update Core Principles based on user-provided rules.
    • Ask the user if no rules were provided
    • Keep only stable, project-wide principles here when they are meant to guide spec-skills phases
    • Prefer durable decision principles over implementation details
    • Do not copy concrete coding conventions, framework APIs, directory names, commands, or tool-specific rules into the constitution unless the user explicitly wants to elevate them into permanent governance
    • Even when the user requests elevation, include such a rule only if it is intended to remain valid across features and over time; otherwise keep it in lower-level docs
    • The constitution should govern spec-skills behavior and outputs, not become a general repository policy file by default
    • Apply YAGNI: if a principle is speculative or addresses a scenario that hasn't occurred, omit it. Constitutions grow stale when they accumulate hypothetical rules.
  5. Add variable project rules only when the user specifies them.
    • Fold them into existing principles when possible
    • If a rule belongs more naturally in AGENTS.md, contribution docs, or feature documents, keep it out of the constitution and preserve that separation of responsibility explicitly
  6. Update frontmatter.
    • Required keys: language, summary
  7. If updating an existing constitution, verify consistency with existing feature documents.
    • Check specs/{feature}/spec.md and plan.md
    • Preserve consistency by removing contradictions, not by copying feature-level implementation detail into the constitution
    • Skip this step when no feature documents exist
  8. Perform final review and keep the file within 150 lines.
    • Remove repetition
    • Simplify wording
    • Resolve contradictions
  9. In the completion message, suggest the next step.
    • New feature: spec-specify
    • Existing feature update: spec-specify for the target spec.md

Success Criteria

  • Constitution reflects the shared rules that spec-skills should use during the workflow.
  • Constitution stays at the level of durable governing principles rather than duplicating lower-level implementation guidance.
  • Frontmatter values are valid and complete.
  • Related feature documents stay consistent.

Completion Guidance

  • Next recommended step: spec-specify
  • Include the target feature and next file path in the response

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.