Skip to content

Commit 2b05e54

Browse files
website
1 parent 50199e6 commit 2b05e54

18 files changed

Lines changed: 644 additions & 1 deletion
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
id: core.assess-implementation-coverage
2+
title: Assess implementation coverage
3+
status: planned
4+
area: core
5+
summary: Compare a capability's acceptance criteria with its referenced implementation files to help determine whether the code covers the declared behavior.
6+
intent: Move beyond checking that implementation paths exist by giving humans and agents a focused evidence bundle for capability review.
7+
inputs:
8+
- capability acceptance criteria
9+
- capability implementation.references values
10+
- referenced source and documentation files
11+
outputs:
12+
- implementation coverage report
13+
- uncovered or uncertain acceptance criteria
14+
depends_on:
15+
- core.verify-implementation-references
16+
acceptance:
17+
- Reads the referenced implementation files for one capability.
18+
- Presents each acceptance criterion beside relevant implementation evidence.
19+
- Marks criteria as covered, uncovered, or uncertain.
20+
- Reports missing or unreadable references as uncovered evidence.
21+
- Keeps the first version deterministic or review-assisted rather than silently trusting an AI judgment.
22+
verification:
23+
automated:
24+
- id: coverage-report-tests
25+
description: Unit tests cover report generation for covered, uncovered, and missing-reference cases.
26+
command: npm test
27+
manual:
28+
- Run the coverage report against core.verify-implementation-references and confirm the output gives a reviewer enough context to judge the implementation.
29+
gaps:
30+
- The first version should not claim semantic correctness without human or explicit AI review.
31+
implementation:
32+
references: []
33+
agent_guidance:
34+
build_notes:
35+
- Start with a deterministic evidence report that loads capability details and referenced files.
36+
- Add an agentic or LLM review loop only after the report shape is useful and testable.
37+
avoid:
38+
- Do not mark capabilities verified solely because referenced files contain matching words.

.capabilities/core/detect-verification-gaps.capability.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ implementation:
2828
agent_guidance:
2929
build_notes:
3030
- Prefer specific gap messages tied to capability IDs.
31+
- Keep gap detection rules deterministic and covered by automated tests.
3132
avoid:
3233
- Do not use AI inference for MVP verification gap detection.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
id: core.verify-implementation-references
2+
title: Verify implementation references
3+
status: implemented
4+
area: core
5+
summary: Confirm implemented and verified capabilities point to implementation references that exist in the repository.
6+
intent: Help maintainers and agents trust that completed capabilities are tied to inspectable code or documentation.
7+
inputs:
8+
- .capabilities/**/*.capability.yaml
9+
- implementation.references values
10+
outputs:
11+
- verification gap list
12+
depends_on:
13+
- core.validate-capabilities
14+
acceptance:
15+
- Checks implementation references for capabilities marked implemented or verified.
16+
- Reports a verification gap when a referenced implementation path does not exist.
17+
- Does not report a gap for implementation references that resolve under the project root.
18+
verification:
19+
automated:
20+
- id: implementation-reference-tests
21+
description: Unit tests cover existing and missing implementation reference targets.
22+
command: npm test
23+
- id: dogfood-validate
24+
description: The CLI validates CapabilityKit's own capability map and implementation references.
25+
command: npm run capabilitykit -- validate
26+
manual:
27+
- Break one implementation reference locally and confirm validation reports the missing path.
28+
implementation:
29+
references:
30+
- packages/core/src/validateCapabilities.ts
31+
- packages/core/tests/validation.test.ts
32+
agent_guidance:
33+
build_notes:
34+
- Treat missing reference targets as verification gaps so validation remains advisory by default.
35+
avoid:
36+
- Do not require planned capabilities to have implementation references.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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.

.claude/commands/capabilitykit.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- capabilitykit:start -->
2+
# capabilitykit
3+
4+
This project uses **CapabilityKit** to manage capabilities as code.
5+
Read the full guide at `node_modules/@capabilitykit/cli/SKILL.md` before creating,
6+
editing, validating, reviewing, or implementing capability files.
7+
<!-- capabilitykit:end -->
8+
9+
Help with this CapabilityKit task:
10+
11+
$ARGUMENTS
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: capabilitykit
3+
description: Work with CapabilityKit capabilities as code. Use when creating, editing, validating, compiling, reviewing, or comparing .capability.yaml files against implementation references.
4+
---
5+
6+
# CapabilityKit
7+
8+
<!-- capabilitykit:start -->
9+
# capabilitykit
10+
11+
This project uses **CapabilityKit** to manage capabilities as code.
12+
Read the full guide at `node_modules/@capabilitykit/cli/SKILL.md` before creating,
13+
editing, validating, reviewing, or implementing capability files.
14+
<!-- capabilitykit:end -->

AGENTS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- capabilitykit:start -->
2+
# capabilitykit
3+
4+
This project uses **CapabilityKit** to manage capabilities as code.
5+
Read the full guide at `node_modules/@capabilitykit/cli/SKILL.md` before creating,
6+
editing, validating, reviewing, or implementing capability files.
7+
<!-- capabilitykit:end -->

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- capabilitykit:start -->
2+
# capabilitykit
3+
4+
This project uses **CapabilityKit** to manage capabilities as code.
5+
Read the full guide at `node_modules/@capabilitykit/cli/SKILL.md` before creating,
6+
editing, validating, reviewing, or implementing capability files.
7+
<!-- capabilitykit:end -->

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,16 @@ Keep changes close to the code, specs, and tests they affect. When behavior chan
107107
```bash
108108
npm run verify
109109
```
110+
111+
## Website (capabilitykit.com)
112+
113+
A simple static marketing site is available in `website/` and is ready for Amazon S3 static hosting.
114+
115+
Run locally:
116+
117+
```bash
118+
cd website
119+
python3 -m http.server 8080
120+
```
121+
122+
Then open `http://localhost:8080`.

packages/cli/SKILL.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: capabilitykit
3+
description: Work with CapabilityKit capabilities as code. Use when creating, editing, validating, compiling, reviewing, or comparing .capability.yaml files against implementation references.
4+
---
5+
6+
# CapabilityKit
7+
8+
Use CapabilityKit to keep product intent, acceptance criteria, implementation references, and verification checks close to the code.
9+
10+
## Workflow
11+
12+
1. Read `.capabilities/capabilitykit.yaml` to understand project settings.
13+
2. Read the relevant `*.capability.yaml` files before editing code for that behavior.
14+
3. When behavior changes, update the matching capability spec in the same change.
15+
4. Run `capabilitykit validate` to catch schema, dependency, verification, and implementation-reference gaps.
16+
5. Run `capabilitykit compile` to update `.capabilities/dist/capabilities.json`.
17+
18+
## Implementation Review
19+
20+
When asked whether a capability matches implementation behavior:
21+
22+
1. Treat the capability file as the source of truth.
23+
2. Inspect every path in `implementation.references`.
24+
3. Compare each acceptance criterion with concrete code, test, or documentation evidence.
25+
4. Report each criterion as `covered`, `partially covered`, `not covered`, or `uncertain`.
26+
5. Do not infer coverage from filenames alone.
27+
6. Recommend the smallest code, test, or capability-spec change for each gap.
28+
29+
## Useful Commands
30+
31+
```bash
32+
capabilitykit create "User login" --area account
33+
capabilitykit validate
34+
capabilitykit inspect account.login
35+
capabilitykit compile
36+
capabilitykit install-agent-guidance
37+
```

0 commit comments

Comments
 (0)