Skip to content
Back to skills

Mix Constitution

ASecurity

Create or amend the project constitution, the MUST/SHOULD rules agents follow when implementing and reviewing code. Use when the user wants to add, change, or remove a coding rule, or when mix-setup or mix-retro needs to write rules.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 18, 2026
developmentgo

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 18, 2026

npx -y skills add Donnici/mix-dev-skills --skill mix-constitution --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mix Constitution?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mix Constitution
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/donnici-mix-constitution/badge)](https://www.skillsdirectory.com/skills/donnici-mix-constitution)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mix-constitution
description: Create or amend the project constitution, the MUST/SHOULD rules agents follow when implementing and reviewing code. Use when the user wants to add, change, or remove a coding rule, or when mix-setup or mix-retro needs to write rules.
argument-hint: "[rule to add or change]"
---

# Constitution

Maintain the project's constitution: the single source of truth for the rules agents follow.
It lives at `mix-dev-skills/constitution.md` under the project's base (resolved by the `mix-scope`
skill). A Spec Kit or other legacy constitution is not edited here: recommend `/mix-migrate`.

## Scope guard

This skill writes the constitution and nothing else. Split the user input into rule content and
other intents (build this, refactor that). Other intents are listed under **Next actions** at the
end with the skill that handles them, never executed here.

## Steps

1. **Load.** Read the existing constitution, or start from `mix-dev-skills/templates/constitution.md` when the project has one, else
   [constitution-template.md](constitution-template.md).
   Read the architecture docs if they exist: it supplies the manifest files, package manager,
   and quality-gate commands for the placeholders.

2. **Shape each rule.** For every rule the user gave (or mix-setup / mix-retro passed in):
   - Decide where it belongs: an existing principle (extend it), a new principle, Quality Gates,
     or Project-Specific Rules. Prefer extending an existing principle over adding a new one.
   - Write it as a checkable statement with `MUST` or `SHOULD`. A reviewer reading only the diff
     must be able to tell pass from fail. Replace vague words ("clean", "robust", "good") with the
     observable behaviour.
   - Phrase the target behaviour positively ("comments are one line") and add the prohibition only
     as a paired guardrail.
   - If a rule is **mechanical** (a banned import, a file-location rule, a syntax pattern), say so
     and propose a lint rule or CI check as well; a deterministic check beats a written rule.
   - If a rule conflicts with an existing one, ask the user which wins before writing.

3. **Fill placeholders.** Every `[ALL_CAPS]` token gets concrete text, or is removed when the
   project has nothing for it (remove `[ADDITIONAL_PRINCIPLES]` when empty). Unknown dates become
   `TODO(RATIFICATION_DATE)`. `LAST_AMENDED_DATE` is today (ISO `YYYY-MM-DD`) when anything changed.

4. **Version.** Bump `CONSTITUTION_VERSION` semantically: MAJOR when a principle is removed or
   redefined, MINOR when one is added or materially expanded, PATCH for wording. New files start
   at `1.0.0`. State the bump reason.

5. **Show the diff, then write.** Present the changed rules to the user and wait for approval.
   Write to `mix-dev-skills/constitution.md`.

6. **Report.** New version and why; any `TODO(...)` left; proposed automated checks; suggested
   commit message (`docs: amend constitution to vX.Y.Z (<summary>)`); **Next actions** if any.

Done when every placeholder is resolved or justified, every rule is checkable, and the user has
approved the written file.

Files in this skill

  • SKILL.md3.1 KB
  • constitution-template.md6.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.