jhlee0409/all-for-claudecode/init
Claude Code and agent skill by jhlee0409/all-for-claudecode
- community
Checking that the SKILL.md file is still in the repository.
Project initial setup and tech stack detection
Install
npx vskill@latest install jhlee0409/all-for-claudecode/initSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jhlee0409/all-for-claudecode/init.
/afc:init — Project Initial Setup
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.
Project State (auto-loaded)
!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
$ARGUMENTS— (optional) additional context or hints for project analysis
Execution Steps
1. Legacy Migration (v1.x → v2.x)
Detect and migrate selfish-pipeline artifacts in one pass:
.claude/selfish.config.mdexists,afc.config.mddoes not → rename toafc.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 toafc/equivalent, delete the rest
Print a single migration summary line. If nothing to migrate, skip silently.
2. Check for Existing Config
If .claude/afc.config.md already exists and this is NOT a migration:
- Ask user: "Config file already exists. Overwrite?"
- If declined: abort
3. Analyze Project Structure
Use $ARGUMENTS as additional context. Detection heuristics are in `reference.md` — consult it for package manager, framework, architecture, and tool detection tables.
- Read
package.json→ extract CI scripts, detect package manager from lockfile - Detect framework from
package.jsondeps - Detect architecture from directory structure +
tsconfig.jsonpaths - Detect state/styling/testing/linter/DB tools
- Read 2–3 code samples to verify naming patterns
Detection is best-effort. Present results to user for confirmation before writing files.
4. Generate Config File
Write .claude/afc.config.md based on template at ${CLAUDE_SKILL_DIR}/../../templates/afc.config.template.md:
- CI Commands — YAML block with
ci,gate,testkeys (scripts parse this; format is fixed) - Architecture — detected pattern, layers, import rules, path aliases (free-form prose)
- Code Style — language, strictness, naming, lint rules (free-form prose)
- Project Context — framework, state, styling, testing, DB, risks (free-form prose)
No YAML blocks except CI Commands. Use TODO: Adjust for your project for unresolved items.
4.5. Generate Project Rules File
Write .claude/rules/afc-project.md (auto-loaded by Claude Code for all sub-agents):
- Create
.claude/rules/if not present - If file exists with
<!-- afc:auto-generatedmarker → overwrite silently - If file exists without marker → ask user before overwriting
- Use template
${CLAUDE_SKILL_DIR}/../../templates/afc-project.template.md - First line:
<!-- afc:auto-generated — do not edit manually; regenerate with /afc:init --> - Max 30 lines (excluding marker) — bullets only, no explanations
4.6. Generate Project Profile
Write .claude/afc/project-profile.md for expert consultation agents:
- Create
.claude/afc/if not present - If file already exists → skip (do not overwrite)
- Fill Stack/Architecture/Domain from Step 3 analysis; leave Team/Scale/Constraints as placeholders
- Use template
${CLAUDE_SKILL_DIR}/../../templates/project-profile.template.md
4.7. Update CLAUDE.md with Compact Instructions
Append a # Compact instructions section to the project's CLAUDE.md (create if not present):
- Check if
CLAUDE.mdalready contains# Compact instructions→ if yes, skip silently - Append the following block to
CLAUDE.md:
This ensures auto-compact retains critical pipeline state.
4.8. Recommend Context Window Configuration
If the project CLAUDE.md does not already contain auto-compact configuration guidance, append:
Note: This is informational only. Do NOT modify settings.json — just add as a comment in CLAUDE.md for user awareness.
5. Final Output
Notes
- Idempotent: existing auto-generated rules are silently regenerated; config prompts for confirmation.
- Inference limits: Auto-detection is best-effort — review and adjust after generation.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/init/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jhlee0409/all-for-claudecode/init)