Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

constitution-checker

БесплатноБез исполняемых скриптовНе проверен

Validates constitution status before executing /flowspec commands. Enforces tier-based validation rules (Light=warn, Medium=confirm, Heavy=block).

jpoleyот jpoley★ 49 звёзд на GitHub7 установок в других каталогах

Об этом скилле

Constitution Checker Skill

You are a constitution validator that ensures project constitutions are properly validated before workflow commands execute. You enforce tier-based validation rules and provide clear guidance.

When to Use This Skill

  • Before executing any /flow:* workflow command
  • When validating constitution completeness
  • When checking tier-based enforcement rules
  • When guiding users to complete constitution setup

Constitution Detection

1. Check Constitution Exists

# Look for constitution file
if [ -f "memory/constitution.md" ]; then
  echo "Constitution found"
else
  echo "⚠️ No constitution found. Run 'flowspec init --here' to create one."
fi

2. Detect Constitution Tier

Constitution tier is specified in a comment at the top of the file:

<!-- TIER: Light -->
<!-- TIER: Medium -->
<!-- TIER: Heavy -->

Default: If no TIER comment found, assume Medium tier.

3. Count Validation Markers

Unvalidated sections are marked with:

<!-- NEEDS_VALIDATION: description -->

Count these markers to determine validation status:

# Count unvalidated markers
MARKER_COUNT=$(grep -c "NEEDS_VALIDATION" memory/constitution.md)

Enforcement Tiers

Light Tier

Action: Warn only, proceed with command

Message:

⚠️ Constitution has N unvalidated sections:
  - Section 1 name
  - Section 2 name
  - Section 3 name

Consider editing memory/constitution.md to customize your constitution.

Proceeding with command...

Medium Tier

Action: Warn and ask for confirmation

Message:

⚠️ Constitution Validation Recommended

Your constitution has N unvalidated sections:
  - Section 1 name
  - Section 2 name
  - Section 3 name

Medium tier projects should validate their constitution before workflow commands.

Options:
  1. Continue anyway (y/N)
  2. Edit memory/constitution.md to customize
  3. Run flowspec constitution validate to check status

Continue without validation? [y/N]: _

Wait for user input:

  • y or yes → Proceed with command
  • n, no, or empty → Stop, suggest editing memory/constitution.md

Heavy Tier

Action: Block execution until validated

Message:

❌ Constitution Validation Required

Your constitution has N unvalidated sections:
  - Section 1 name
  - Section 2 name
  - Section 3 name

Heavy tier constitutions require full validation before workflow commands.

To resolve:
  1. Edit memory/constitution.md to customize your constitution
  2. Run flowspec constitution validate to verify
  3. Remove all NEEDS_VALIDATION markers

Or use --skip-validation to bypass (not recommended).

Command blocked until constitution is validated.

Do NOT proceed unless --skip-validation flag is present.

Skip Validation Flag

Commands can include --skip-validation to bypass checks:

/flow:specify --skip-validation "Add user authentication"

When skip flag is present:

  1. Log warning: ⚠️ Skipping constitution validation (--skip-validation)
  2. Proceed with command regardless of validation state
  3. Note: This is for emergency use only

Extracting Section Names

When reporting unvalidated sections, extract descriptive names from NEEDS_VALIDATION markers:

<!-- NEEDS_VALIDATION: Project name and core identity -->
<!-- NEEDS_VALIDATION: Technology stack choices -->
<!-- NEEDS_VALIDATION: Quality standards and test coverage -->

Extract the text after the colon as the section name.

Integration with /flowspec Commands

Each /flow:* command should invoke this skill at the beginning:

## Pre-flight Check: Constitution

{{INVOKE_SKILL:constitution-checker}}

1. Check if `memory/constitution.md` exists
2. If missing, warn user and suggest `flowspec init --here`
3. If exists:
   - Detect tier from TIER comment (default: Medium)
   - Count NEEDS_VALIDATION markers
   - Apply tier-specific enforcement
4. If `--skip-validation` flag present:
   - Log warning
   - Proceed regardless

Example Workflows

Light Tier - User Proceeds

User: /flow:specify "Add payment integration"

⚠️ Constitution has 3 unvalidated sections:
  - Project name and core identity
  - Technology stack choices
  - Quality standards and test coverage

Consider editing memory/constitution.md to customize your constitution.

Proceeding with command...

[Command executes normally]

Medium Tier - User Confirms

User: /flow:plan "Database schema"

⚠️ Constitution Validation Recommended

Your constitution has 2 unvalidated sections:
  - Quality standards and test coverage
  - Deployment and CI/CD requirements

Medium tier projects should validate their constitution before workflow commands.

Continue without validation? [y/N]: y

Proceeding with command...

[Command executes normally]

Heavy Tier - Blocked

User: /flow:implement "Core authentication module"

❌ Constitution Validation Required

Your constitution has 5 unvalidated s
Полный SKILL.md на GitHub

Установить constitution-checker в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл constitution-checker?

Validates constitution status before executing /flowspec commands. Enforces tier-based validation rules (Light=warn, Medium=confirm, Heavy=block).

Как установить скилл constitution-checker?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл constitution-checker запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить constitution-checker с