Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.

Commit 75984a0

Browse files
z23ccclaude
andcommitted
feat: integrate skill-match into Plan Step 0.5
Add Step 0.6 (skill routing) between clarity check and research. Translates request to English keywords, calls flowctl skill-match, and injects matched skills into task spec Approach sections. Non-blocking: embedder failure or no matches → skip silently. Max 3 skill references per task to avoid spec bloat. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 13fdd3b commit 75984a0

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

skills/flow-code-plan/steps.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,29 @@ $FLOWCTL init --json
5959
3. Pick best by: blast radius, value/effort, codebase alignment
6060
4. Output: `Clarified: "<original>" → "<specific target>" | Approach: <A|B|C> — <why>`
6161

62+
## Step 0.6: Skill routing (auto — non-blocking)
63+
64+
After clarity check, match the request against registered engineering discipline skills to auto-inject relevant guidance into task specs.
65+
66+
1. Translate the request to English keywords (if not already English). This costs zero tokens — you're already processing the request.
67+
2. Run:
68+
```bash
69+
$FLOWCTL skill match "<english keywords>" --threshold 0.75 --limit 3 --json
70+
```
71+
3. If matches found (non-empty JSON array): save them for Step 5 (task spec writing). Each matched skill will be referenced in the task's Approach section.
72+
4. If empty result, error, or embedder unavailable: skip silently. Skill routing is advisory, never blocking.
73+
74+
**Output** (inline, no user prompt):
75+
```
76+
Skill routing: flow-code-api-design (0.87), flow-code-performance (0.42 — below threshold)
77+
```
78+
79+
**Integration in Step 5** (task spec writing): For each skill with score ≥ threshold, add to the task's Approach section:
80+
```markdown
81+
- Reference `flow-code-<name>` skill principles when implementing
82+
```
83+
Max 3 skill references per task to avoid spec bloat.
84+
6285
## Step 1: Fast research (parallel)
6386

6487
**If input is a Flow ID** (fn-N-slug or fn-N-slug.M, including legacy fn-N/fn-N-xxx): First fetch it with `$FLOWCTL show <id> --json` and `$FLOWCTL cat <id>` to get the request context.

0 commit comments

Comments
 (0)