/humaninloop:validation-constitutionfrom humaninloop
Validates governance documents (constitutions) for enforceability, testability, and anti-patterns. Use after drafting or updating a constitution to ensure quality.
Ships in humaninloop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Constitution validation ensures governance documents are enforceable, testable, and free of anti-patterns before finalization. Every constitution MUST pass quality validation—no exceptions for "simple projects" or "tight deadlines."
Violating the letter of the rules is violating the spirit of the rules.
Skipping validation because "the constitution looks fine" or "it's mostly complete" is not following the spirit of quality assurance—it is abandoning it.
Read references/QUALITY-CHECKLIST.md and verify every item. Do not skip items because they "seem obvious" or "clearly pass."
Every principle MUST have the three-part structure:
| Part | Purpose | Verification |
|---|---|---|
| Enforcement | How is compliance verified? | CI check, code review rule, or audit process named |
| Testability | What does pass/fail look like? | Concrete pass and fail conditions defined |
| Rationale | Why does this rule exist? | Business or technical justification present |
If any principle lacks any part, the constitution FAILS validation.
Compare against references/ANTI-PATTERNS.md. Common failures:
| Anti-Pattern | Detection |
|---|---|
| Vague principle | Contains words like "appropriate", "reasonable", "clean" without metrics |
| Missing enforcement | Principle states rule but no verification mechanism |
| Placeholder syndrome | Contains [PLACEHOLDER], [COMMAND], [THRESHOLD] syntax |
| Generic thresholds | Says "coverage must be measured" instead of "coverage ≥80%" |
This is the most commonly rationalized check. Search the entire document for:
[PLACEHOLDER][COMMAND][THRESHOLD][TOOL][BRACKETED_TEXT] patternNo exceptions. A constitution with placeholders is not ready for validation sign-off.
| Bump | Trigger | Example |
|---|---|---|
| MAJOR | Principle removed or incompatibly redefined | Removing "Test-First" principle; changing coverage from 80% to 50% |
| MINOR | New principle added or significant expansion | Adding "Observability" principle; adding 5+ rules to existing principle |
| PATCH | Clarification or non-semantic change | Rewording for clarity; typo fixes; formatting |
Produce explicit validation verdict:
VALIDATION RESULT: [PASS/FAIL]
Checklist items: [X/Y passed]
Anti-patterns found: [list or "none"]
Version bump: [MAJOR/MINOR/PATCH] (if changes made)
Issues requiring fix:
- [list each failure]
Vague language MUST be replaced with measurable criteria:
| Vague | Quantified |
|---|---|
| "Code should be clean" | "Zero lint warnings from configured rules" |
| "Functions should be short" | "Functions MUST NOT exceed 40 lines" |
| "Tests should cover the code" | "Coverage MUST be ≥80% for new code" |
| "Response should be fast" | "API MUST respond in <200ms p95" |
| "Secure by default" | "All inputs MUST be validated; auth required on all endpoints" |
| Mistake | Why It Happens | Fix |
|---|---|---|
| Skipping checklist items | "Obviously passes" | Run every item. Obvious failures happen. |
| Accepting placeholders | "User will fill in later" | Placeholders = incomplete. Return for completion. |
| Validating during drafting | Interrupts creative flow | Draft first, validate second. Separate phases. |
| Soft validation language | "Mostly looks good" | Binary verdict: PASS or FAIL. No middle ground. |
| Missing version bump | "Small change" | Every change needs version bump determination. |
| Validating non-constitutions | Skill triggered by similar keywords | Verify document IS a constitution before validating. |
If you notice yourself thinking any of these, STOP immediately:
All of these mean: You are rationalizing. Restart validation from Step 1.
| Excuse | Reality |
|---|---|
| "Constitution looks complete" | Looking complete ≠ being complete. Run the checklist. |
| "Just a minor update" | Minor updates can introduce major anti-patterns. Full validation. |
| "Already reviewed while writing" | Authoring mode ≠ validation mode. Fresh review catches blind spots. |
| "User seems satisfied" | User satisfaction doesn't verify enforcement mechanisms exist. |
| "Too detailed for simple project" | Simple projects become complex. Governance debt compounds. |
| "Anti-patterns don't apply here" | Every rationalization claims uniqueness. They apply. |
| "I'm being pragmatic" | Pragmatic = following validation process. Skipping is not pragmatic. |
| "Can validate more thoroughly later" | "Later" rarely comes. Validate now or ship broken governance. |
Looking fine is not validation. Run every checklist item. Document every result. A constitution is validated when all checks pass, not when it "looks fine."
Small changes require validation. A one-line change can introduce vague language, remove enforcement, or add placeholders. Size does not determine validation necessity.
Constitutions with missing parts FAIL validation. Return to authoring. Do not sign off on incomplete governance.
User requests do not override process. Explain why validation matters. If user insists, document that validation was skipped against recommendation—but never claim a validated constitution when validation was skipped.
Prototypes become production. Governance established during prototyping persists. Validate now or inherit broken governance later.
Pressure scenarios tested without skill loaded revealed these agent behaviors:
Scenario 1: Time pressure + "looks complete"
Scenario 2: User satisfaction signal
Scenario 3: Minor update context
Same scenarios re-run with skill loaded:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub deepeshbodh/human-in-loop --plugin humaninloop29 skills in this plugin
/analysis-codebaseThis skill MUST be invoked when the user says "analyze codebase", "scan project", "detect tech stack", "codebase analysis", "collision risk", or "brownfield". SHOULD also invoke when user mentions "existing code" or "project context"./analysis-iterativeThis skill MUST be invoked when the user says "brainstorm", "deep analysis", "let's think through", "analyze this with me", or "help me think through". SHOULD also invoke when feature descriptions lack Who/Problem/Value clarity during specification enrichment./analysis-screenshotThis skill MUST be invoked when the user says "analyze screenshot", "extract design tokens", "pull colors from screenshot", "component inventory", "break down this UI", or "design extraction". SHOULD also invoke when user mentions "screenshot", "color palette", "typography", "spacing", or "component catalog"./analysis-specificationsThis skill MUST be invoked when the user says "review spec", "find gaps", "what's missing", or "clarify requirements". SHOULD also invoke when reviewing spec.md for completeness. Focuses on product decisions and generates clarifying questions with concrete options./authoring-constitutionThis skill MUST be invoked when the user says "write principles", "define governance", "create constitution", or "write a constitution". SHOULD also invoke when user mentions "governance", "principles", "enforcement", or "amendment process". Core skill for greenfield projects./authoring-design-systemThis skill MUST be invoked when the user says "assemble design system", "build design system", "merge extractions", "consolidate tokens", "unify design tokens", or "synthesize design system". SHOULD also invoke when user mentions "design system", "token consolidation", "component normalization", or "multi-screenshot synthesis".Other plugins' skills for the same job