| phase | planning |
|---|---|
| title | Project Planning & Task Breakdown |
| description | Break down work into actionable tasks and estimate timeline |
| feature | install-command |
What are the major checkpoints?
- Milestone 1: Requirements/design approved for
ai-devkit install. - Milestone 2: Core install flow (config read + env/phase reconcile) implemented.
- Milestone 3: Skill install integration + tests + docs completed.
What specific work needs to be done?
- Task 1.1: Add
installcommand wiring inpackages/cli/src/cli.ts. - Task 1.2: Implement install config validator for
.ai-devkit.json. - Task 1.3: Define backward-compatible skills schema (
skills[]optional). - Task 1.4: Add install report model (installed/skipped/failed counters).
- Task 2.1: Implement environment setup from
environmentsusingTemplateManager. - Task 2.2: Implement phase setup from
phasesusingTemplateManager. - Task 2.3: Add idempotent handling for existing artifacts.
- Task 2.4: Add
--overwritebehavior and conflict messaging.
- Task 3.1: Implement skills install loop from config skills entries.
- Task 3.2: Deduplicate skill entries by
registry + name. - Task 3.3: Add partial-failure handling with warning-only skill failures.
- Task 3.4: Update config types/read-write paths for optional
skillsfield.
- Task 4.1: Unit tests for config validation and normalization.
- Task 4.2: Integration tests for full
ai-devkit installhappy path. - Task 4.3: Integration tests for missing config, invalid config, and partial failures.
- Task 4.4: Update README/CLI help/changelog with usage examples.
What needs to happen in what order?
graph TD
T11[1.1 CLI wiring] --> T12[1.2 validator]
T12 --> T21[2.1 env setup]
T12 --> T22[2.2 phase setup]
T13[1.3 skills schema] --> T31[3.1 skills install]
T31 --> T33[3.3 strict/partial failure]
T21 --> T41[4.1 tests]
T22 --> T42[4.2 integration]
T33 --> T43[4.3 failure tests]
T42 --> T44[4.4 docs]
T43 --> T44
When will things be done?
- Phase 1: completed
- Phase 2: completed
- Phase 3: completed
- Phase 4: completed
- Remaining estimate: 0 day
What could go wrong?
- Risk: Existing
.ai-devkit.jsonfiles lackskills.- Mitigation: keep field optional and treat as empty array.
- Risk: Skill installs fail because of network/registry issues.
- Mitigation: continue on error and collect warnings with clear per-skill failure details.
- Risk: Overwrite policy causes accidental template replacement.
- Mitigation: default skip existing artifacts unless
--overwriteis enabled.
- Mitigation: default skip existing artifacts unless
What do we need to succeed?
- Existing CLI command framework (
commander). - Existing managers (
ConfigManager,TemplateManager,SkillManager). - Test harness for command-level tests.