|
| 1 | +id: developer-experience.install-agent-guidance |
| 2 | +title: Install agent guidance |
| 3 | +status: implemented |
| 4 | +area: developer-experience |
| 5 | +summary: Initialize Codex, Claude, and AGENTS guidance files that point agents to CapabilityKit's package skill guide. |
| 6 | +intent: Make CapabilityKit review and editing workflows reusable across coding agents without copying long instructions into every project file. |
| 7 | +inputs: |
| 8 | + - terminal command |
| 9 | + - existing AGENTS.md or CLAUDE.md files |
| 10 | + - package skill guide path |
| 11 | +outputs: |
| 12 | + - AGENTS.md managed CapabilityKit block |
| 13 | + - CLAUDE.md managed CapabilityKit block |
| 14 | + - .codex/skills/capabilitykit/SKILL.md wrapper |
| 15 | + - .claude/commands/capabilitykit.md slash command |
| 16 | +depends_on: |
| 17 | + - developer-experience.cli-workflow |
| 18 | +acceptance: |
| 19 | + - Provides a CLI command that installs CapabilityKit agent guidance files. |
| 20 | + - Points generated guidance back to the package SKILL.md file. |
| 21 | + - Preserves existing AGENTS.md and CLAUDE.md content while replacing any prior CapabilityKit managed block. |
| 22 | + - Creates Codex skill and Claude slash-command wrapper files for simple prompts. |
| 23 | + - Covers merge behavior with automated tests. |
| 24 | +verification: |
| 25 | + automated: |
| 26 | + - id: agent-guidance-tests |
| 27 | + description: Unit tests cover managed block append and replacement behavior. |
| 28 | + command: npm test |
| 29 | + - id: cli-build |
| 30 | + description: TypeScript build verifies the installer command and helper imports. |
| 31 | + command: npm run build |
| 32 | + manual: |
| 33 | + - Run capabilitykit install-agent-guidance in a sample project and confirm the generated files reference the package SKILL.md. |
| 34 | +implementation: |
| 35 | + references: |
| 36 | + - packages/cli/SKILL.md |
| 37 | + - packages/cli/src/agentGuidance.ts |
| 38 | + - packages/cli/src/index.ts |
| 39 | + - packages/cli/tests/agentGuidance.test.ts |
| 40 | +agent_guidance: |
| 41 | + build_notes: |
| 42 | + - Keep managed blocks short and bounded by stable markers. |
| 43 | + - Prefer referencing the package skill guide over duplicating the full guide into project files. |
| 44 | + avoid: |
| 45 | + - Do not overwrite user-authored agent instructions outside the managed CapabilityKit block. |
0 commit comments