Back to list
imehr

project-scaffolder

by imehr

0🍴 0📅 Jan 15, 2026

SKILL.md


name: project-scaffolder description: Guide for setting up Claude Code infrastructure in new or existing projects version: 1.0.0 triggers:

  • init claude
  • setup claude code
  • scaffold project
  • initialize infrastructure
  • new project

Project Scaffolder

Overview

This skill guides the process of setting up Claude Code infrastructure in a project. It handles stack detection, template selection, and file generation. Use this when setting up Claude Code for a new project or adding it to an existing codebase.

Quick Reference

StackDetection FilesPrimary Use
TypeScripttsconfig.json, *.ts, *.tsxReact/Node fullstack
Pythonpyproject.toml, requirements.txtFastAPI/Django backend
RustCargo.toml, *.rsAxum/Actix backend

Stack Detection

TypeScript Detection

Look for:

tsconfig.json
package.json (with "typescript" in dependencies/devDependencies)
*.ts or *.tsx files in src/

Indicators of specific frameworks:

  • next.config.js → Next.js
  • vite.config.ts → Vite
  • express in package.json → Express backend
  • prisma/ directory → Prisma ORM

Python Detection

Look for:

pyproject.toml
requirements.txt
setup.py
*.py files

Indicators of specific frameworks:

  • fastapi in dependencies → FastAPI
  • django in dependencies → Django
  • flask in dependencies → Flask
  • alembic/ directory → Alembic migrations

Rust Detection

Look for:

Cargo.toml
Cargo.lock
src/main.rs or src/lib.rs

Indicators of specific frameworks:

  • axum in Cargo.toml → Axum
  • actix-web in Cargo.toml → Actix-web
  • diesel in Cargo.toml → Diesel ORM
  • sqlx in Cargo.toml → SQLx

Skill Selection Matrix

Based on detected stack, select appropriate skills:

Universal Skills (All Stacks)

SkillPurpose
git-workflowGit conventions, branching
dev-docs-workflowContext management
code-review-workflowReview checklists
skill-developerCreating new skills

Domain Skills (Cross-Cutting)

SkillPurposeWhen to Include
api-validationRequest validationAny API project
auth-guidelinesSecurity patternsAuth features
error-handlingError patternsAll projects
error-trackingSentry integrationProduction apps

TypeScript-Specific Skills

SkillPurpose
backend-dev-guidelinesExpress/Node patterns
frontend-dev-guidelinesReact/MUI patterns
database-guidelinesPrisma patterns
testing-guidelinesJest/Vitest patterns
state-managementTanStack/Zustand

Python-Specific Skills

SkillPurpose
python-backend-guidelinesFastAPI/Django patterns
python-database-guidelinesSQLAlchemy patterns
python-testing-guidelinespytest patterns

Rust-Specific Skills

SkillPurpose
rust-backend-guidelinesAxum/Actix patterns
rust-database-guidelinesDiesel/SQLx patterns
rust-testing-guidelinescargo test patterns
rust-error-handlingResult/Option patterns
rust-ownershipBorrow checker patterns

CLAUDE.md Generation

Template Variables

VariableSourceExample
{{PROJECT_NAME}}Directory name"my-app"
{{FRAMEWORK_VERSION}}Constant"1.0.0"
{{STACK_NAME}}Manifest displayName"TypeScript/React/Node"
{{STACK_VERSION}}Manifest version"1.0.0"
{{TIMESTAMP}}Current date"2025-12-07"

Required Sections

Every CLAUDE.md should include:

  1. Quick Commands - Build, test, lint, format
  2. Project Structure - Directory layout
  3. Tech Stack - Technologies used
  4. Dev Docs Workflow - How to use /dev-docs
  5. Available Skills - Listed by category
  6. Available Agents - With usage examples
  7. Coding Conventions - Project-specific rules

Directory Structure

After initialization:

project/
├── CLAUDE.md                 # Generated from template
├── .claude/
│   ├── settings.json         # Hook configurations
│   ├── hooks/               # Automation hooks
│   ├── skills/              # Skill files
│   ├── commands/            # Slash commands
│   ├── agents/              # Specialized agents
│   ├── templates/           # Scaffolding templates
│   └── cache/               # Session cache
└── dev/
    └── active/              # Dev docs workspace

Customization Points

After scaffolding, users should customize:

In CLAUDE.md

  • Project structure section
  • Coding conventions
  • Quick commands (if different from defaults)

In skill-rules.json

  • Add project-specific keywords
  • Adjust enforcement levels
  • Add custom file triggers

Create Custom Skills

For project-specific patterns not covered by standard skills.

Workflow

New Project

  1. Create project directory
  2. Initialize stack (npm init, cargo init, etc.)
  3. Run /init-claude-code
  4. Customize CLAUDE.md
  5. Start developing with skills

Existing Project

  1. Navigate to project root
  2. Run /init-claude-code
  3. Review detected stack (confirm or override)
  4. Review generated CLAUDE.md
  5. Merge with existing documentation if needed

Troubleshooting

Multiple Stacks Detected

If project has multiple config files:

  • Ask user which is primary
  • Consider monorepo setup
  • May need custom configuration

No Stack Detected

If no config files found:

  • Ask user to specify stack
  • Or create minimal config first

Missing Skills

Some skills may not exist yet:

  • Note which are missing
  • Continue with available skills
  • Create missing skills as needed

Resources

TopicLink
Stack Detection[mdc:resources/detection-patterns.md]
Skill Matrix[mdc:resources/skill-matrix.md]
Template Guide[mdc:resources/template-guide.md]

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon