constitution-validation

Analyze a codebase to generate governance constitution rules from observed patterns.

Updated Dec 28, 2025
One-click install
npx skills add https://github.com/I2olanD/dotfiles --skill constitution-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: constitution-validation
Source: https://github.com/I2olanD/dotfiles/tree/main/.config/opencode/skill/constitution-validation
Command: npx skills add https://github.com/I2olanD/dotfiles --skill constitution-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill analyzes a codebase to generate governance constitution rules from observed patterns.

Core Features & Use Cases

  • Discovery-driven rule generation: Extracts real patterns from code to form precise governance rules.
  • Template-based constitution creation: Produces constitution templates and supports updates as patterns evolve.
  • Validation & reporting: Validates current code against the discovered constitution and reports findings.

Quick Start

Begin by allowing the skill to scan your repository to uncover governance patterns, then review and finalize the constitution. Use the generated template.md to apply governance rules during implementation and review cycles.

Frequently Asked Questions about constitution-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate governance rules from existing codebase patterns?

You can generate governance rules by scanning your repository to discover observed coding patterns and extracting them into precise, discovery-driven governance rules. This produces a constitution template to guide implementation and review cycles.

What is a code governance constitution and when do I need one?

A code governance constitution is a set of validated rules extracted from your codebase patterns to standardize implementation and review. You need one to enforce consistency and guide governance across single-project or monorepo contexts as patterns evolve.

How do I validate code against a governance constitution template?

You validate code against a governance constitution by applying the generated template rules to your current codebase. The validation process reports findings categorically, identifying deviations from the discovered governance patterns during the review cycle.

Can I use constitution validation for monorepo code discovery?

Yes, constitution validation supports monorepo code discovery. The skill analyzes codebases across both single-project and monorepo contexts, extracting real patterns from the repository to form and update governance rules.

How do I update a governance constitution when codebase patterns change?

To update a governance constitution when codebase patterns change, you re-scan the repository to discover new patterns and apply template-based updates. This ensures the constitution evolves accurately alongside your implementation without manual rule rewriting.