AgentSkillsCN

Scaffolding Guidance

当用户询问项目脚手架、CLAUDE.md 模板、项目跟踪,或如何使用项目脚手架插件时,可使用此技能。触发短语包括:“如何为项目搭建脚手架?”、“有哪些可用的模板?”、“CLAUDE.md 最佳实践”、“项目跟踪”、“用户故事管理”。

SKILL.md
--- frontmatter
name: Scaffolding Guidance
description: |
  Use this skill when the user asks about project scaffolding, CLAUDE.md templates, project tracking, or how to use the project-scaffolder plugin. Triggers on: "How do I scaffold a project?", "What templates are available?", "CLAUDE.md best practices", "project tracking", "user story management".
version: 1.0.0

Project Scaffolding Guidance

Commands

/scaffold <path> [options]

Full project structure with all components.

Options: --name, --author, --description, --tech-stack

code
/scaffold ../my-app
/scaffold ../api --name "User API" --tech-stack "fastapi"

/scaffold-minimal <path> [options]

Essential files only (CLAUDE.md, commands, development-workflow skill).

code
/scaffold-minimal ../quick-project

What Gets Created

code
project/
├── CLAUDE.md                    # Project hub
├── .claude-plugin/
│   └── plugin.json              # Points to .claude/
└── .claude/                     # All Claude Code files (hidden)
    ├── commands/                # 6 workflow commands
    ├── hooks/hooks.json         # Workflow enforcement
    ├── skills/                  # 3 interactive skills
    └── project/                 # Project tracking
        ├── features/            # User story specs
        ├── plans/               # Implementation plans
        ├── high-level-user-stories.md
        └── roadmap.md

Feature Workflow (Enforced by Hooks)

When you ask to build a feature, the hooks enforce:

code
1. Story  → Create in .claude/project/features/
2. Plan   → Create in .claude/project/plans/
3. Approve → Get user approval before coding
4. Build  → Implement following the plan

No coding starts without story + plan + approval.

Project Tracking

FilePurpose
high-level-user-stories.mdProgress tracker - START HERE
roadmap.mdPhased implementation plan
features/us-XXX-name.mdUser story specifications
plans/us-XXX-plan.mdImplementation plans

File Naming

  • Filenames: lowercase (us-001-feature-name.md)
  • Display: UPPERCASE (US-001)

Hooks automatically:

  • Detect feature intent → enforce workflow
  • Guide file locations
  • Update tracking files
  • Verify consistency

Workflow Commands

CommandPurpose
/implementFull workflow orchestrator
/discoveryRequirements + Architecture
/plan-and-validateCreate and validate plan
/start-implementationExecute the plan
/review-implementationCode review
/nextProceed to next phase

Skills

SkillLocationTriggers
development-workflow.claude/skills/Feature process, git, planning
project-standards.claude/skills/User stories, documentation
exploration-helpers.claude/skills/Database, codebase, types

Full vs Minimal

Use CaseMode
Production/team projectFull
Quick prototypeMinimal
Adding to existingMinimal

Existing Directories

When scaffolding into an existing directory:

  • Merge - Skip existing files, add only missing
  • Overwrite - Replace all Claude Code files
  • Abort - Cancel scaffolding

Customization

After scaffolding, ask the template-customizer agent:

"Help me customize these templates for [your-tech-stack]"