afc-principles
Manage project coding principles and conventions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage project coding principles and conventions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.