Agent skill
docs-init
[Documentation] Initialize project reference docs via hook + scan skills
Install this agent skill to your Project
npx add-skill https://github.com/duc01226/EasyPlatform/tree/main/.claude/skills/docs-init
SKILL.md
[IMPORTANT] Use
TaskCreateto break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.
Quick Summary
Goal: Initialize project reference documentation by verifying the session-init-docs.cjs hook has created placeholder files, then running scan skills to populate them.
Workflow:
- Verify -- Check that
session-init-docs.cjshook has created placeholder docs indocs/ - List -- Show which reference docs exist and which are still placeholders
- Populate -- Ask user which scan skills to run (or run all)
Key Rules:
- Do NOT create docs manually -- the hook handles placeholder creation automatically
- Each reference doc has a corresponding
/scan-*skill that populates it - Scan skills do deep codebase scanning; expect 5-15 min per skill
Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).
Step 1: Verify Reference Doc Stubs
Check that the session-init-docs.cjs hook has created the 10 reference doc files:
docs/project-reference/project-structure-reference.md -> /scan-project-structure
docs/project-reference/backend-patterns-reference.md -> /scan-backend-patterns
docs/project-reference/frontend-patterns-reference.md -> /scan-frontend-patterns
docs/project-reference/integration-test-reference.md -> /scan-integration-tests
docs/project-reference/feature-docs-reference.md -> /scan-feature-docs
docs/project-reference/code-review-rules.md -> /scan-code-review-rules
docs/project-reference/scss-styling-guide.md -> /scan-scss-styling
docs/project-reference/design-system/README.md -> /scan-design-system
docs/project-reference/e2e-test-reference.md -> /scan-e2e-tests
docs/project-reference/lessons.md -> /learn (managed separately)
If any files are missing, the hook should create them on next prompt. Verify by checking docs/ directory.
Step 2: Detect Placeholder vs Populated
Read the first 512 bytes of each file. If it contains <!-- Fill in your project's details below. -->, it is still a placeholder and needs scanning.
Step 3: Offer Scan Options
Use AskUserQuestion to present:
- "Run /claude-md-init + all scan skills" (Recommended for first-time init) -- Generates CLAUDE.md from config, then runs all 9 scan skills
- "Run all scan skills only" -- Runs all 9 scan skills without CLAUDE.md generation
- "Select specific skills" -- Let user choose which ones to run
- "Skip -- docs are already populated" -- Exit if all docs have content
For each selected scan skill, invoke it via the Skill tool (e.g., /scan-backend-patterns).
Configuration
Reference doc definitions are in docs/project-config.json under referenceDocs. The hook reads this config to determine which files to create. See .claude/hooks/session-init-docs.cjs for the full implementation.
Closing Reminders
- MUST break work into small todo tasks using
TaskCreateBEFORE starting - MUST search codebase for 3+ similar patterns before creating new code
- MUST cite
file:lineevidence for every claim (confidence >80% to act) - MUST add a final review todo task to verify work quality
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
fix-parallel
[Implementation] Analyze & fix issues with parallel fullstack-developer agents
ask
[Utilities] Answer technical and architectural questions.
claude-code
[Utilities] Claude Code CLI setup, configuration, troubleshooting, and feature guidance. Triggers on claude code setup, hook not firing, MCP connection, context limit, skill creation, slash command setup.
workflow-deployment
[Workflow] Trigger Deployment & Infrastructure workflow — CI/CD pipelines, Docker, Kubernetes setup and deployment.
workflow-idea-to-pbi
[Workflow] Trigger Idea to PBI workflow — po/ba workflow: capture idea, refine to pbi, create stories, prioritize.
easy-claude-help
[Utilities] Configuration guide for the easy-claude framework — explain settings, guide users through configuring .ck.json.
Didn't find tool you were looking for?