openspec-constitution-guard

Translate project constitutions into OpenSpec command guards from AGENTS.md files.

1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/cyberelf/agent_skills --skill openspec-constitution-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openspec-constitution-guard
Source: https://github.com/cyberelf/agent_skills/tree/main/skills/openspec-constitution-guard
Command: npx skills add https://github.com/cyberelf/agent_skills --skill openspec-constitution-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill translates project constitutions into OpenSpec command guards, ensuring every openspec action enforces organization-specific QA gates.

Core Features & Use Cases

  • Constitution-driven guards: Reads AGENTS.md files across the workspace to tailor checks for OpenSpec commands (proposal, apply, archive).
  • Automatic guard composition: Generates a constitution block and embeds it into the corresponding OpenSpec command files.
  • Sync and maintenance: Updates guards when constitutions change, keeping OpenSpec artifacts aligned with project standards.

Quick Start

Run the constitution guard workflow to read AGENTS.md files, generate the OpenSpec guard blocks, and update the command files accordingly. Ensure AGENTS.md files exist in the workspace or in the project areas you want to govern. The tool writes guards to the command files after the OPENSPEC guard marker and keeps a record of source constitutions.

Frequently Asked Questions about openspec-constitution-guard

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

FAQPage Schema
How do I enforce project-specific QA gates on OpenSpec commands?

Enforce project-specific QA gates by translating your project constitution into OpenSpec command guards. This skill reads AGENTS.md files across your workspace and generates guard blocks that automatically enforce your organization's standards on proposal, apply, and archive commands.

What does a constitution-driven guard do for OpenSpec workflows?

A constitution-driven guard translates your project constitution into automated checks for OpenSpec commands. The skill analyzes AGENTS.md files, generates tailored guard blocks, and embeds them into OpenSpec command files to ensure every action complies with your project standards.

How do I keep OpenSpec command guards synchronized with constitution changes?

Run the constitution guard workflow to read your current AGENTS.md files and regenerate guard blocks. The skill automatically updates OpenSpec command files after the OPENSPEC guard marker, keeping guards aligned with your latest project constitution whenever standards change.

Can I use constitution guards with multiple OpenSpec commands?

Yes. Constitution guards apply across all OpenSpec commands: proposal, apply, and archive. The skill tailors checks for each command type based on your AGENTS.md constitution, embedding guards into the corresponding command files for consistent enforcement.

What prerequisites do I need before generating OpenSpec constitution guards?

You need AGENTS.md files in your workspace or project areas defining your constitution. The skill reads these files to generate guard blocks, so ensure your constitution is documented in AGENTS.md before running the workflow.

Does this approach work for distributed teams across multiple project areas?

Yes. The skill scans AGENTS.md files across your entire workspace, allowing you to govern OpenSpec actions in multiple project areas simultaneously. Each area's constitution tailors its own command guards while maintaining consistent quality standards.