| name | project-stage-detection |
| description | Detect project maturity stage (new/early/mid/mature) from file structure and route to appropriate onboarding workflow |
| version | 1.0.0 |
| model | sonnet |
| invoked_by | both |
| user_invocable | true |
| tools | ["Read","Bash","Glob","Grep"] |
| agents | ["planner","architect","developer","master-orchestrator"] |
| category | Validation & Quality |
| tags | ["project-health","onboarding","maturity","detection","routing"] |
| source | builtin |
| trust_score | 100 |
| provenance_sha | 2ecf6e7022656fd9 |
Project Stage Detection
Purpose
Detect the maturity stage of a software project by analyzing its file structure, configuration files, documentation, and test coverage. Route to the appropriate onboarding or initialization workflow based on the detected stage.
When to Invoke
Skill({ skill: 'project-stage-detection' });
Invoke when:
- Starting work on an unfamiliar repository
- Onboarding a new project into agent-studio
- Determining which workflow to apply (bootstrap vs. enhance vs. optimize)
- Assessing project health at session start
- The planner needs context about project maturity before decomposing tasks
Stage Definitions
| Stage | Description | Indicators |
|---|
new | Freshly initialized, no meaningful content | Only boilerplate files, no src/ |
early | Has core structure but missing key components | src/ exists, no tests or CI |
mid | Functional codebase, gaps in quality infrastructure | Tests exist, no CI/CD or sparse docs |
mature | Full-featured with CI/CD, tests, docs, linting | All quality gates present |
Workflow
Step 1: Collect File Structure Evidence
Command:
node .claude/skills/project-stage-detection/scripts/main.cjs --dir <project_root>
Expected output: JSON with stage, confidence, indicators, and recommendations.
Verify: Exit code 0 and valid JSON with a stage field.
Step 2: Evaluate Stage Indicators
The script checks for these indicators, scoring each:
| Indicator | Weight | Checked Path(s) |
|---|
| Source directory exists |