project-init-orchestrator
34
总安装量
34
周安装量
#6085
全站排名
安装命令
npx skills add https://github.com/shipshitdev/library --skill project-init-orchestrator
Agent 安装分布
claude-code
26
gemini-cli
23
opencode
23
codex
22
cursor
18
Skill 文档
Project Init Orchestrator
Overview
This skill orchestrates multiple initialization skills to set up a complete, production-ready project environment. Instead of manually invoking each skill, this orchestrator coordinates them in the correct sequence with proper dependencies.
When to Use This Skill
This skill activates automatically when users:
- Start a new project from scratch
- Want full project setup with one command
- Need AI-first development infrastructure + code quality tools
- Say “initialize project”, “set up new project”, “bootstrap project”
- Want consistent setup across multiple projects
Skills Orchestrated
| Order | Skill | Purpose | Required |
|---|---|---|---|
| 1 | agent-folder-init |
AI documentation & standards | Yes |
| 2 | linter-formatter-init |
ESLint + Prettier + pre-commit | Yes |
| 3 | husky-test-coverage |
Test coverage enforcement | Optional |
| 4 | project-scaffold |
Backend/Frontend/Mobile scaffolding | Optional |
Orchestration Flow
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â PROJECT INIT ORCHESTRATOR â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â PHASE 1: GATHER CONTEXT â
â ⢠Project name and path â
â ⢠Tech stack (Next.js, NestJS, Expo, Plasmo) â
â ⢠Package manager preference (bun, pnpm, npm) â
â ⢠Test coverage threshold (default: 80%) â
â ⢠Additional scaffolding needs â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â PHASE 2: AGENT FOLDER INIT â
â ⢠Create .agents/ directory structure â
â ⢠Set up SESSIONS/, TASKS/, SYSTEM/ folders â
â ⢠Generate coding standards and rules â
â ⢠Copy agent configs (.claude/, .codex/, .cursor/) â
â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Invocation: â
â python3 ~/.claude/skills/agent-folder-init/ â
â agent-folder-init/scripts/scaffold.py â
â --root /path/to/project â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â PHASE 3: LINTER FORMATTER INIT â
â ⢠Detect project tech stack â
â ⢠Install ESLint + Prettier (or Biome) â
â ⢠Configure framework-specific rules â
â ⢠Set up lint-staged for pre-commit â
â ⢠Create .vscode/settings.json â
â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Invocation: â
â Use linter-formatter-init skill guidance â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â PHASE 4: HUSKY TEST COVERAGE (if tests exist) â
â ⢠Detect test runner (Jest, Vitest, Mocha) â
â ⢠Configure coverage thresholds â
â ⢠Add pre-commit hook for test coverage â
â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Invocation: â
â Use husky-test-coverage skill guidance â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â PHASE 5: PROJECT SCAFFOLD (optional) â
â ⢠Scaffold additional components if requested: â
â - Backend (NestJS) â
â - Frontend (Next.js) â
â - Mobile (Expo) â
â - Extension (Plasmo) â
â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Invocation: â
â python3 ~/.claude/skills/project-scaffold/ â
â project-scaffold/scripts/scaffold.py â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â PHASE 6: VERIFICATION â
â ⢠Verify all configurations created â
â ⢠Run lint check (should pass) â
â ⢠Confirm git hooks installed â
â ⢠Generate setup summary â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Usage
Quick Start (Recommended)
When user says “initialize my project” or “set up new project”:
1. Ask for project context:
- Project path (default: current directory)
- Tech stack (Next.js, NestJS, Node.js, etc.)
- Package manager (bun, pnpm, npm)
- Test coverage threshold (default: 80%)
- Need additional scaffolding? (backend, frontend, mobile, extension)
2. Execute phases in order:
Phase 2 â Phase 3 â Phase 4 â Phase 5 (if needed) â Phase 6
Manual Orchestration
If you need to run phases individually:
Phase 2: Agent Folder Init
python3 ~/.claude/skills/agent-folder-init/agent-folder-init/scripts/scaffold.py --root /path/to/project
Phase 3: Linter Formatter
Follow the linter-formatter-init skill to:
- Install dependencies based on detected stack
- Configure ESLint rules
- Set up Prettier
- Configure lint-staged
Phase 4: Test Coverage
Follow the husky-test-coverage skill to:
- Detect test runner
- Configure coverage thresholds
- Add pre-commit hook
Phase 5: Project Scaffold (optional)
python3 ~/.claude/skills/project-scaffold/project-scaffold/scripts/scaffold.py
Configuration Presets
Minimal (AI docs + linting)
Phases: 2, 3
Output:
âââ .agents/
âââ .eslintrc.js
âââ .prettierrc
âââ .husky/pre-commit (lint-staged)
âââ .vscode/settings.json
Standard (+ test coverage)
Phases: 2, 3, 4
Output:
âââ .agents/
âââ .eslintrc.js
âââ .prettierrc
âââ .husky/pre-commit (lint-staged + tests)
âââ jest.config.js (coverage thresholds)
âââ .vscode/settings.json
Full Stack (+ scaffolding)
Phases: 2, 3, 4, 5
Output:
âââ .agents/
âââ apps/
â âââ web/ (Next.js)
â âââ api/ (NestJS)
â âââ mobile/ (Expo)
â âââ extension/ (Plasmo)
âââ packages/
â âââ shared/
âââ .eslintrc.js
âââ .prettierrc
âââ .husky/pre-commit
âââ .vscode/settings.json
Generated Structure
After full orchestration, your project will have:
project-root/
âââ .agents/ # AI-first documentation
â âââ SESSIONS/ # Daily session logs
â âââ TASKS/ # Task tracking
â â âââ INBOX.md
â âââ SYSTEM/ # Architecture docs
â â âââ ARCHITECTURE.md
â â âââ RULES.md
â âââ README.md
â
âââ .claude/ # Claude Code configs
â âââ commands/
â âââ rules/
â âââ skills/
â
âââ .husky/ # Git hooks
â âââ pre-commit # Runs lint-staged + tests
â
âââ .vscode/ # Editor settings
â âââ settings.json # Format on save
â
âââ .eslintrc.js # ESLint configuration
âââ .prettierrc # Prettier configuration
âââ .lintstagedrc # Lint-staged configuration
â
âââ [app directories if scaffolded]
Best Practices
Sequencing
- Always run agent-folder-init FIRST (establishes standards)
- Run linter-formatter-init BEFORE husky-test-coverage (both use Husky)
- Run project-scaffold LAST (depends on base setup)
Customization
- Each phase can be skipped if already configured
- Phases are idempotent (safe to re-run)
- Configuration can be customized after orchestration
Verification Checklist
After orchestration, verify:
-
.agents/folder exists with proper structure -
npm run lintorbun lintworks -
npm run formatorbun formatworks - Git commit triggers pre-commit hooks
- Tests run on commit (if Phase 4 enabled)
Example Interaction
User: “Set up my new project at ~/projects/my-saas”
Orchestrator Response:
I'll initialize your project with full AI-first infrastructure.
Let me gather some context:
1. Tech stack: [Next.js / NestJS / Node.js / Other]
2. Package manager: [bun / pnpm / npm]
3. Test coverage threshold: [80% default]
4. Need scaffolding? [backend / frontend / mobile / extension]
[After user responds]
Starting orchestration...
â Phase 2: Agent Folder Init
- Created .agents/ with 13 files
- Copied agent configs (.claude/, .codex/, .cursor/)
â Phase 3: Linter Formatter Init
- Detected: Next.js + TypeScript
- Installed: eslint, prettier, lint-staged
- Created: .eslintrc.js, .prettierrc, .lintstagedrc
â Phase 4: Husky Test Coverage
- Detected: Jest
- Set threshold: 80%
- Added pre-commit hook
â Phase 6: Verification
- All configs created â
- Lint check passed â
- Git hooks installed â
Project initialized successfully!
Troubleshooting
Phase fails to complete
- Check if dependencies are installed (
node,python3) - Verify write permissions to project directory
- Check if conflicting configs exist
Linting errors after setup
- Run
npm run lint:fixto auto-fix - Check
.eslintrc.jsmatches your stack - Verify TypeScript config if using TS
Pre-commit hook not running
- Run
npx husky installmanually - Check
.husky/pre-commitexists and is executable - Verify
preparescript in package.json