Agent skill

Autospec Constitution

by ariel-frischer in ariel-frischer/autospec

Generate or update project constitution in YAML format. An agent skill from ariel-frischer/autospec.

MITAuto-check passedDevelopment

Install Autospec Constitution

skills CLI
$ npx skills add ariel-frischer/autospec --skill autospec-constitution -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ariel-frischer/autospec autospec-constitution --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ariel-frischer/autospec.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/autospec-constitution .claude/skills/autospec-constitution && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
autospec-constitution
GitHub stars
144
Token cost
~2.1k tokens
SKILL.md length
467 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Generate or update project constitution in YAML format. An agent skill from ariel-frischer/autospec.

  • Works in 6 steps: Load existing context → Collect/derive values → Generate constitution.yaml → …
  • Development work in your project
  • SKILL.md covers User Input, Outline, Pre-computed Context and Principle Categories, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Autospec Constitution is an agent skill from ariel-frischer/autospec. Generate or update project constitution in YAML format.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: CLI for streamlined spec-driven development. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “/autospec-constitution”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Load existing context
  2. Collect/derive values
  3. Generate constitution.yaml
  4. Write the constitution to .autospec/constitution.yaml
  5. Validate the artifact
  6. Report: Output

What it can do on your machine

Read from SKILL.md and the folder at commit 3381f26. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Autospec Constitution loads about 2.1k tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 467 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ariel-frischer/autospec at commit 3381f26, republished under its MIT licence (© ariel-frischer). 467 words, ~2,136 tokens.

Download SKILL.mdSave it as .claude/skills/autospec-constitution/SKILL.md (or your agent's skills folder).
name
autospec-constitution
description
Generate or update project constitution in YAML format.

autospec-constitution

This Agent Skill is generated from autospec.constitution. When the user invokes "$autospec-constitution" or "/autospec.constitution", load and follow these instructions directly. Treat the text after the skill or command name as "$ARGUMENTS". Do not route back through "autospec constitution"; this skill is the prompt for the stage.

Project specs directory: ./specs

User Input

text
$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Outline

You are creating or updating the project constitution. This file defines the non-negotiable principles and governance rules for the project that all specifications, plans, and implementations must adhere to.

Pre-computed Context

The following values have been pre-computed and are available for use:

  • AUTOSPEC_VERSION: {{.AutospecVersion}}
  • CREATED_DATE: {{.CreatedDate}}

Follow this execution flow:

  1. Load existing context:

    • Check if .autospec/constitution.yaml exists (preferred path)
    • Check if .autospec/memory/constitution.yaml exists (legacy fallback)
    • Check if .autospec/memory/constitution.md exists (for migration)
    • Check if AGENTS.md exists at project root (or agent-specific file like CLAUDE.md as fallback)
    • Extract any existing principles, governance rules, or project guidelines
  2. Collect/derive values:

    • If user input supplies principles, use them
    • Otherwise infer from existing repo context (README, docs, prior constitution)
    • For governance dates:
      • ratified: Original adoption date (if unknown, use today)
      • last_amended: Today if changes are made
    • For versioning: Use semantic versioning
      • MAJOR: Backward incompatible governance/principle changes
      • MINOR: New principle/section added
      • PATCH: Clarifications, wording fixes
  3. Generate constitution.yaml:

    yaml
    constitution:
      project_name: "<project name>"
      version: "1.0.0"
      ratified: "<YYYY-MM-DD>"
      last_amended: "<YYYY-MM-DD>"
    
    preamble: |
      <Brief statement of the project's purpose and why these principles matter.
      This should be 2-3 sentences that set the context for the principles below.>
    
    principles:
      - name: "Test-First Development"
        id: "PRIN-001"
        category: "quality"  # quality | process | architecture | security | governance
        priority: "NON-NEGOTIABLE"  # NON-NEGOTIABLE | MUST | SHOULD | MAY
        description: |
          All new code must have tests written before implementation.
          Tests define the expected behavior and serve as living documentation.
        rationale: "Ensures code quality and prevents regressions"
        enforcement:
          - mechanism: "Pre-commit hooks"
            description: "Automated checks prevent commits without tests"
          - mechanism: "CI pipeline"
            description: "Build fails if test coverage decreases"
        exceptions:
          - "Prototype/spike code explicitly marked as such"
          - "Configuration files and documentation"
    
      - name: "Performance Standards"
        id: "PRIN-002"
        category: "quality"
        priority: "MUST"
        description: |
          Validation functions must complete in <10ms.
          User-facing operations must complete in <1s.
        rationale: "Maintains responsive user experience"
        enforcement:
          - mechanism: "Benchmark tests"
            description: "Automated performance regression tests"
        exceptions: []
    
      - name: "Idempotency & Retry Logic"
        id: "PRIN-003"
        category: "architecture"
        priority: "MUST"
        description: |
          All operations must be idempotent where possible.
          Configurable retry limits for recoverable failures.
        rationale: "Enables reliable distributed operations"
        enforcement:
          - mechanism: "Code review"
            description: "Reviewers check for idempotent patterns"
        exceptions:
          - "One-time initialization operations"
    
    sections:
      - name: "Code Quality"
        content: |
          All code must pass linting and formatting checks.
          No warnings allowed in production builds.
          Dependencies must be explicitly versioned.
    
      - name: "Documentation"
        content: |
          Public APIs must have documentation.
          Architecture decisions must be recorded.
          Breaking changes must be documented in CHANGELOG.
    
      - name: "Security"
        content: |
          No secrets in code or version control.
          Dependencies must be regularly audited.
          User input must be validated and sanitized.
    
    governance:
      amendment_process:
        - step: 1
          action: "Propose change via pull request"
          requirements: "Include rationale and impact assessment"
        - step: 2
          action: "Review period"
          requirements: "Minimum 48 hours for team review"
        - step: 3
          action: "Approval"
          requirements: "Requires maintainer approval"
        - step: 4
          action: "Merge and version bump"
          requirements: "Update version and last_amended date"
    
      versioning_policy: |
        Constitution versions follow semantic versioning.
        MAJOR: Changes that invalidate existing compliant code.
        MINOR: New principles or expanded guidance.
        PATCH: Clarifications without behavioral change.
    
      compliance_review:
        frequency: "quarterly"
        process: "Review all principles for relevance and enforcement effectiveness"
    
      rules:
        - "Changes require review by at least one maintainer"
        - "Breaking changes require explicit team discussion"
        - "Emergency changes may bypass review with post-hoc documentation"
    
    sync_impact:
      # This section is auto-generated when constitution is updated
      version_change: "1.0.0 -> 1.0.0"
      modified_principles: []
      added_sections: []
      removed_sections: []
      templates_requiring_updates: []
      follow_up_todos: []
    
    _meta:
      version: "1.0.0"
      generator: "autospec"
      generator_version: "{{.AutospecVersion}}"
      created: "{{.CreatedDate}}"
      artifact_type: "constitution"
  4. Write the constitution to .autospec/constitution.yaml

    • Create .autospec/ directory if it doesn't exist
  5. Validate the artifact:

    bash
    autospec artifact .autospec/constitution.yaml
    • If validation fails: fix schema errors (missing required fields, invalid types/enums) and retry
    • If validation passes: proceed to report
  6. Report: Output:

    • Full path to constitution.yaml
    • Version (new or updated)
    • Number of principles defined
    • Governance rules summary
    • Suggested commit message (e.g., docs: establish project constitution v1.0.0)
Show full SKILL.md (186 more words)Show less

Principle Categories

  • quality: Code quality, testing, performance standards
  • process: Development workflow, review requirements
  • architecture: Technical patterns, structure guidelines
  • security: Security requirements, data handling
  • governance: Decision-making, change management

Priority Levels

  • NON-NEGOTIABLE: Cannot be bypassed under any circumstances
  • MUST: Required unless explicitly exempted
  • SHOULD: Strongly recommended with documented exceptions
  • MAY: Optional best practice

Guidelines

Formatting & Style
  • Use clear, declarative language
  • Each principle should be testable/verifiable
  • Avoid vague terms ("should", "may" without context)
  • Wrap long content to keep readability
  • Keep single blank line between sections
For AI Generation

When creating this constitution from user input:

  1. Extract implicit principles: Look for patterns in existing codebase that suggest unwritten rules
  2. Infer from tools: Package.json scripts, Makefile targets, CI config reveal expectations
  3. Balance strictness: Not everything needs to be NON-NEGOTIABLE
  4. Consider enforcement: Each principle should have at least one enforcement mechanism
  5. Allow exceptions: Most principles have edge cases; document them
Validation Checklist

Before finalizing:

  • All principles have unique IDs (PRIN-001, PRIN-002, etc.)
  • All principles have enforcement mechanisms
  • Priority levels are appropriate
  • Governance section includes amendment process
  • Version follows semantic versioning
  • Dates are in ISO 8601 format (YYYY-MM-DD)

© ariel-frischer, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/autospec-constitution of ariel-frischer/autospec.

Open the folder on GitHubat commit 3381f26

Compare with similar skills

Autospec Constitution next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Autospec Constitution compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Autospec Constitution this skillariel-frischer/autospec144—~2.1kAutomated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from ariel-frischer/autospec

All 9 skills in this repo
  • Autospec Analyze

    ariel-frischer/autospec

    Analyze cross-artifact consistency and quality in YAML format.

    144 GitHub stars~2.3k tokensUpdated 13 days ago
    Auto-check passed
  • Autospec Checklist

    ariel-frischer/autospec

    Generate YAML checklist for feature quality validation. An agent skill from ariel-frischer/autospec.

    144 GitHub stars~2.4k tokensUpdated 13 days ago
    Auto-check passed
  • Autospec Clarify

    ariel-frischer/autospec

    Identify underspecified areas in YAML spec and encode clarifications back into the spec.

    144 GitHub stars~2.2k tokensUpdated 13 days ago
    Auto-check passed
  • Autospec Plan

    ariel-frischer/autospec

    Generate YAML implementation plan from feature specification.

    144 GitHub stars~1.7k tokensUpdated 13 days ago
    Auto-check passed
  • Autospec Specify

    ariel-frischer/autospec

    Generate YAML feature specification from natural language description.

    144 GitHub stars~2.5k tokensUpdated 13 days ago
    Auto-check passed
  • Autospec Tasks

    ariel-frischer/autospec

    Generate YAML task breakdown from implementation plan. An agent skill from ariel-frischer/autospec.

    144 GitHub stars~2.5k tokensUpdated 13 days ago
    Auto-check passed

Categories

Questions about Autospec Constitution

What does Autospec Constitution do?

Generate or update project constitution in YAML format. An agent skill from ariel-frischer/autospec. Autospec Constitution is an agent skill from ariel-frischer/autospec. Generate or update project constitution in YAML format.

When should I use Autospec Constitution?

Autospec Constitution fits situations like: development work in your project.

How do I install Autospec Constitution in Claude Code?

Run `npx skills add ariel-frischer/autospec --skill autospec-constitution -a claude-code`. Or copy the skill folder (.agents/skills/autospec-constitution in ariel-frischer/autospec) into .claude/skills/autospec-constitution in your project. Claude Code loads it when a task matches its description.

How do I install Autospec Constitution in Codex?

Run `npx skills add ariel-frischer/autospec --skill autospec-constitution -a codex`. Or copy the skill folder (.agents/skills/autospec-constitution in ariel-frischer/autospec) into .agents/skills/autospec-constitution in your project. Codex loads it when a task matches its description.

Can I use Autospec Constitution in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ariel-frischer/autospec --skill autospec-constitution -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/autospec-constitution, .gemini/skills/autospec-constitution, .github/skills/autospec-constitution and .opencode/skills/autospec-constitution in your project.

What does Autospec Constitution need to run?

SKILL.md names no scripts, command-line tools or credentials: Autospec Constitution is instructions for the agent only.

Does Autospec Constitution access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Autospec Constitution safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Autospec Constitution use?

Autospec Constitution is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Autospec Constitution use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Autospec Constitution?

Skills that share tags, products or a category with Autospec Constitution: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Autospec Constitution?

ariel-frischer (a GitHub user) maintains it in ariel-frischer/autospec, which has 144 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on September 28, 2026.

Source: ariel-frischer/autospec on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.