afc-init
Project initial setup and tech stack detection
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Menü
Project initial setup and tech stack detection
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Basierend auf der SOC-Berufsklassifikation
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:init |
| description | Project initial setup and tech stack detection |
| argument-hint | [additional context] |
| allowed-tools | ["Read","Write","Bash","Glob"] |
| model | sonnet |
Creates project-local configuration files (
.claude/afc.config.md,.claude/rules/afc-project.md,.claude/afc/project-profile.md). Project-local only — never touches~/.claude/CLAUDE.md. For global routing setup use/afc:setup.
!ls .claude/afc.config.md .claude/rules/afc-project.md .claude/selfish.config.md .claude/.selfish-* 2>/dev/null | head -20 || echo "[no existing afc files]"
$ARGUMENTS — (optional) additional context or hints for project analysisDetect and migrate selfish-pipeline artifacts in one pass:
.claude/selfish.config.md exists, afc.config.md does not → rename to afc.config.md.claude/.selfish-* files found → rename each to .afc-{x}.claude/selfish/ exists, .claude/afc/ does not → rename to .claude/afc/git tag -l 'selfish/*' → rename known patterns to afc/ equivalent, delete the restPrint a single migration summary line. If nothing to migrate, skip silently.
If .claude/afc.config.md already exists and this is NOT a migration:
Use $ARGUMENTS as additional context. Detection heuristics are in reference.md — consult it for package manager, framework, architecture, and tool detection tables.
package.json → extract CI scripts, detect package manager from lockfilepackage.json depstsconfig.json pathsDetection is best-effort. Present results to user for confirmation before writing files.
Write .claude/afc.config.md based on template at ${CLAUDE_SKILL_DIR}/../../templates/afc.config.template.md:
ci, gate, test keys (scripts parse this; format is fixed)No YAML blocks except CI Commands. Use TODO: Adjust for your project for unresolved items.
Write .claude/rules/afc-project.md (auto-loaded by Claude Code for all sub-agents):
.claude/rules/ if not present<!-- afc:auto-generated marker → overwrite silently${CLAUDE_SKILL_DIR}/../../templates/afc-project.template.md<!-- afc:auto-generated — do not edit manually; regenerate with /afc:init -->Write .claude/afc/project-profile.md for expert consultation agents:
.claude/afc/ if not present${CLAUDE_SKILL_DIR}/../../templates/project-profile.template.mdAppend a # Compact instructions section to the project's CLAUDE.md (create if not present):
CLAUDE.md already contains # Compact instructions → if yes, skip silentlyCLAUDE.md:# Compact instructions
When compacting, always preserve:
- Active pipeline feature name and current phase
- File Change Map from plan.md (file paths + task assignments)
- All unresolved ESCALATE items with their options
- context.md contents (spec summary + plan decisions + advisor results)
- Changed files list and CI/test pass/fail status
- Current task progress (completed/total)
This ensures auto-compact retains critical pipeline state.
If the project CLAUDE.md does not already contain auto-compact configuration guidance, append:
# Context window configuration (recommended)
# Add to .claude/settings.json or .claude/settings.local.json:
# { "env": { "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "500000" } }
# This treats the window as 500k for compaction — the remaining 500k is reserve headroom.
# Combined with the compact instructions above, this gives you full control over when compaction happens.
Note: This is informational only. Do NOT modify settings.json — just add as a comment in CLAUDE.md for user awareness.
all-for-claudecode project init complete
├─ Config: .claude/afc.config.md
├─ Rules: .claude/rules/afc-project.md (auto-loaded)
├─ Profile: .claude/afc/project-profile.md
├─ Compact instructions: CLAUDE.md updated
├─ Framework: {detected framework}
├─ Architecture: {detected style}
├─ Package Manager: {detected manager}
├─ Auto-inferred: {inferred item count}
├─ TODO: {items requiring manual review}
└─ Next step: /afc:setup (global routing) or /afc:auto (start building)