afc-principles
Manage project coding principles and conventions
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Manage project coding principles and conventions
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Code and component analysis — analyze code, trace flows, audit consistency, inspect components
Architecture analysis and design review
Full auto pipeline — run spec-to-clean cycle automatically for new features
Save session state for later resumption
Resolve spec ambiguities with clarifying questions
Pipeline artifact cleanup and codebase hygiene
| name | afc:principles |
| description | Manage project coding principles and conventions |
| argument-hint | [action: add, remove, init] |
| allowed-tools | ["Read","Write","Grep","Glob"] |
| model | sonnet |
Creates and manages the project's core principles (constitution). Stored in .claude/afc/memory/principles.md and referenced across all sessions.
$ARGUMENTS — (optional) action directive:
add {principle}: add a new principleremove {number}: remove a principleinit: interactive initial setup!cat .claude/afc.config.md 2>/dev/null || echo "[CONFIG NOT FOUND] .claude/afc.config.md not found. Create it with /afc:init."
Read .claude/afc/memory/principles.md:
init instructions)Display current principles list:
Project Principles
├─ MUST-001: {principle}
├─ MUST-002: {principle}
├─ SHOULD-001: {principle}
└─ Last updated: {date}
init)Collect principles interactively:
add)remove)# Project Principles
> Version: {MAJOR.MINOR.PATCH}
> Last Updated: {YYYY-MM-DD}
## MUST (non-negotiable)
- **MUST-001**: {principle} — {rationale}
- **MUST-002**: {principle} — {rationale}
## SHOULD (strongly recommended)
- **SHOULD-001**: {principle} — {rationale}
## MAY (optional)
- **MAY-001**: {principle} — {rationale}
## Changelog
- {date}: {change description}
principles.md to confirm the version was bumped correctly and no formatting issues were introduced.