Skip to content

Commit 774f489

Browse files
committed
docs(skills): require spec-graph skill as dependency for planner/executor/verifier
Add 'Required Skill Dependencies' section at the top of each skill so agents load the spec-graph schema reference (entity/relation types, edge matrix, validation rules) before performing any graph operations. Without spec-graph skill loaded, agents waste tokens guessing at the schema and hit INVALID_INPUT/INVALID_EDGE errors (e.g., trying nonexistent relation types like has_risk, mitigated_by, addresses for risks, when only 'mitigates' from decision/test/crosscut to risk is valid).
1 parent 40477f5 commit 774f489

3 files changed

Lines changed: 45 additions & 0 deletions

File tree

skills/spec-executor/SKILL.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ description: >
1616
Keeps spec-graph synchronized with implementation progress. This skill manages graph
1717
updates only — implementation approach is the agent's discretion.
1818

19+
## Required Skill Dependencies
20+
21+
**STOP. Before proceeding with this skill, you MUST load the `spec-graph` skill.**
22+
23+
The `spec-graph` skill provides the schema knowledge required to operate spec-graph correctly:
24+
- Valid entity types and their ID prefixes (API, STT, TST, QST, ASM, etc.)
25+
- Valid relation types per layer (`delivers`, `covers`, `belongs_to`, `precedes`, etc.)
26+
- Edge matrix: which `(from_type, to_type, relation_type)` combinations are allowed
27+
- Impact analysis semantics: what `spec-graph impact` returns and how to act on it
28+
29+
**Without `spec-graph` skill loaded, you will hit `INVALID_INPUT` and `INVALID_EDGE` errors
30+
and waste tokens guessing at the schema.** This is non-negotiable.
31+
32+
To load it, invoke the `skill` tool with `name="spec-graph"` before continuing.
33+
1934
## Prerequisites
2035

2136
- `spec-graph` CLI installed and available in PATH

skills/spec-planner/SKILL.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ description: >
1616
Transforms specifications into a validated spec-graph plan. The graph — not markdown — is
1717
the source of truth. This skill enforces a strict procedure; follow each step in order.
1818

19+
## Required Skill Dependencies
20+
21+
**STOP. Before proceeding with this skill, you MUST load the `spec-graph` skill.**
22+
23+
The `spec-graph` skill provides the schema knowledge required to operate spec-graph correctly:
24+
- Valid entity types and their ID prefixes (REQ, DEC, ACT, RSK, PLN, PHS, etc.)
25+
- Valid relation types per layer (`mitigates`, `has_criterion`, `covers`, `belongs_to`, etc.)
26+
- Edge matrix: which `(from_type, to_type, relation_type)` combinations are allowed
27+
- Validation rules: what makes a graph valid across arch/exec/mapping layers
28+
29+
**Without `spec-graph` skill loaded, you will hit `INVALID_INPUT` and `INVALID_EDGE` errors
30+
and waste tokens guessing at the schema.** This is non-negotiable.
31+
32+
To load it, invoke the `skill` tool with `name="spec-graph"` before continuing.
33+
1934
## Prerequisites
2035

2136
- `spec-graph` CLI installed and available in PATH

skills/spec-verifier/SKILL.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ description: >
1616
Verifies implementation fidelity against spec-graph and signs off completed phases.
1717
This skill is the sole authority for transitioning phases to `resolved`.
1818

19+
## Required Skill Dependencies
20+
21+
**STOP. Before proceeding with this skill, you MUST load the `spec-graph` skill.**
22+
23+
The `spec-graph` skill provides the schema knowledge required to operate spec-graph correctly:
24+
- Valid entity types and their ID prefixes (REQ, DEC, ACT, RSK, API, STT, TST, etc.)
25+
- Valid relation types per layer (`delivers`, `covers`, `mitigates`, `verifies`, etc.)
26+
- Validation rules: arch coverage, mapping completeness, unresolved checks (e.g., RSK needs `mitigates`)
27+
- Phase lifecycle semantics: draft → active → resolved transitions
28+
29+
**Without `spec-graph` skill loaded, you will misinterpret validation output and sign off
30+
incomplete phases.** This is non-negotiable.
31+
32+
To load it, invoke the `skill` tool with `name="spec-graph"` before continuing.
33+
1934
## Prerequisites
2035

2136
- `spec-graph` CLI installed and available in PATH

0 commit comments

Comments
 (0)