Project Scaffolding
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user wants to set up Claude for a project, create a CLAUDE.md file, scaffold the .claude directory, initialize an AI…
от hedera-dev★ 37 звёзд на GitHubОб этом скилле
Project Scaffolding
Purpose
Generate a complete CLAUDE.md and .claude/ directory structure for any project. This gives AI agents the context they need to work effectively from the first session — build commands, conventions, quality gates, and session tracking.
Stack Detection
Before scaffolding, detect the project's tech stack by scanning for manifest files:
| File Found | Stack Detected | Build Tool |
|---|---|---|
tsconfig.json |
TypeScript | tsc, npm/yarn/pnpm |
package.json (no tsconfig) |
JavaScript | npm/yarn/pnpm |
pyproject.toml |
Python | pip/poetry/uv |
setup.py or requirements.txt |
Python (legacy) | pip |
Cargo.toml |
Rust | cargo |
go.mod |
Go | go |
Makefile |
Check contents | Varies |
Dockerfile |
Container | docker |
Detection Steps
- List files in project root: check for manifest files above
- If
package.jsonexists, readscriptsto find build/test/lint commands - If
pyproject.tomlexists, read[tool]sections for configured tools - If multiple stacks detected, note all of them (monorepo pattern)
CLAUDE.md Generation
Use the template from references/claude-md-template.md and fill in detected information. Target: under 200 lines. Claude Code truncates CLAUDE.md after ~200 lines in the system prompt, so keep it lean.
- Project Overview — read
README.mdorpackage.jsondescription - Build & Run Commands — detected from manifest
scriptssection (keep 8-10 most-used, add "See [manifest] for full list") - Triggers — map file patterns to docs/skills for on-demand deep context
- Naming Conventions — select from
references/naming-conventions.mdbased on stack. If the table is large, move todocs/CONVENTIONS.mdand reference from Triggers - Test Command — detected or ask user
- Lint Command — detected or ask user
What Gets Pre-Filled
- Core Behaviors (including self-improvement and parallel session rules)
- Triggers section (generated from detected project structure)
- Test-First Development rules
- Git Commit Rules (conventional commits)
- Forbidden Files (.env, credentials, node_modules, etc.)
- Environment Variables rules
What Needs Detection or User Input
- Project name and description
- Build, test, lint, and dev commands
- Stack-specific naming conventions
- Any custom conventions the user wants
Triggers Generation
The Triggers section maps file patterns to deeper documentation, enabling on-demand context loading without bloating CLAUDE.md.
How to Generate Triggers
- Scan project structure for distinct directories (e.g.,
src/,lib/,tests/,docs/) - Identify existing documentation files (
docs/*.md,ARCHITECTURE.md,CONTRIBUTING.md) - Map each source directory to its most relevant doc or skill
- Include standard patterns:
Dockerfile→ deployment docs,tests/→ testing docs, new files → conventions
Example Generated Triggers
| File Pattern | Load |
|---|---|
| src/api/* | Read: docs/API.md |
| src/components/* | Read: docs/COMPONENTS.md |
| tests/* | Read: docs/TESTING.md |
| Dockerfile, docker-compose* | Read: docs/DEPLOYMENT.md |
| New .ts files | Read: docs/CONVENTIONS.md |
If no docs exist yet, generate stub documentation files with TODO placeholders during scaffolding.
MEMORY.md Seeding
Seed the project's MEMORY.md with initial lessons from the detected stack. MEMORY.md is auto-loaded into every Claude Code system prompt, creating a self-improvement loop.
Location
~/.claude/projects/<project-path-with-dashes>/memory/MEMORY.md
Where <project-path-with-dashes> is the absolute project path with / replaced by - (e.g., -Users-dev-myproject).
What to Seed
- Stack details — language version, build tool, package manager
- Architecture patterns — module structure discovered during detection
- Common pitfalls for the detected stack:
- TypeScript: ESM import extensions,
tsconfigstrictness, type-only imports - Python: virtual env activation,
__init__.pyrequirements, type checking with mypy - Rust: borrow checker common mistakes, feature flags, workspace patterns
- Go: module paths, exported vs unexported, error wrapping
- TypeScript: ESM import extensions,
- Testing patterns — framework, mock strategy, test file locations
- Owner preferences — any conventions the user specified during
/init
Size Budget
Keep under 55 lines initially — leave room for growth as the agent learns during sessions. The 200-line system prompt limit applies to MEMORY.md too.
Directory Structure Creation
Create the following structure:
.claude/
├── commands/
│ └── parallel.md ← multi-session coordination guide
├── reports/
│ ├── _registry.md ← from session-management references
│ ├── _tech-debt.md ← from session-management references
│ ├── architecture/
│ ├── bugs/
│ ├── code-review/
│ ├── config
Установить Project Scaffolding в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Project Scaffolding?
This skill should be used when the user wants to set up Claude for a project, create a CLAUDE.md file, scaffold the .claude directory, initialize an AI workflow, configure a project for Claude, set up dev intelligence, initialize a new project, or do a new project setup. Triggered by phrases like "set up claude for this project", "create CLAUDE.md", "scaffold .claude directory", "init AI workflow", "configure project for claude", "set up dev intelligence", "initialize project", "new project setup".
Как установить скилл Project Scaffolding?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Project Scaffolding запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic