sdd-constitution
Original:🇺🇸 English
Translated
Author or update the project's constitution — openspec/project.md — the non-negotiable principles, conventions, and constraints the Spec-Driven Development flow must honor. Modeled on GitHub Spec-Kit's /constitution. Run once per repo when onboarding SDD, or whenever the team's principles change. The sdd-feature-flow Analyze gate checks every spec against it.
26installs
Added on
NPX Install
npx skill4agent add alejandro-cedeno-10/agentic-sdd-kit sdd-constitutionTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Project constitution (openspec/project.md)
A constitution is the short, stable set of rules every change in this repo must respect —
the "house rules" the AI must not violate when it authors specs or writes code. OpenSpec
reads ; the Analyze phase flags any requirement that
contradicts it (and notes, as an advisory, when it's missing).
openspec/project.mdsdd-feature-flowWhen to use
- A repo adopting SDD has no yet (the Analyze gate will advise this).
openspec/project.md - The team's conventions, stack, or constraints changed and the constitution is stale.
Procedure
- Discover, don't dictate. Read the repo to infer what's already true before proposing
principles: ,
README, existingCONTRIBUTING/CLAUDE.md, lint/format config, test setup, package manifests, CI, and a few representative modules. Note the real stack, the test/lint commands, the branch flow, and any obvious conventions.AGENTS.md - Draft with these sections (keep each tight — principles, not prose):
openspec/project.md- Purpose — one paragraph: what this project is.
- Tech stack & tooling — languages, frameworks, package manager, test/lint commands.
- Non-negotiable principles — the rules the AI must never break. Examples: "comment WHY not WHAT", "no feature flags via env vars", "sign every commit", "no cross-branch merges of environment branches". Draw these from the repo + the user, not from a generic list.
- Conventions — naming, error handling, decimal/precision rules, resource identifiers, directory layout — whatever is load-bearing for correctness in THIS repo.
- Branch & release flow — e.g. ; PR target defaults.
feature → develop → testing → main - Definition of done — tests green, docs updated, spec archived, etc.
- Confirm with the user anything you inferred but couldn't verify from the repo — a constitution that's wrong is worse than none.
- Validate: still passes; the file is referenced by the SDD flow automatically (no wiring needed).
openspec validate --strict
Rules
- Short and non-negotiable beats long and aspirational. If a line isn't enforceable, cut it.
- Ground every principle in the repo or an explicit user statement — never invent house rules.
- This skill writes ONLY (and asks questions). No production code.
openspec/project.md