@jaggerxtrm/specialists 3.4.4 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/config/hooks/specialists-session-start.mjs +13 -28
- package/config/presets.json +26 -0
- package/config/skills/specialists-creator/SKILL.md +323 -145
- package/config/skills/specialists-creator/scripts/scaffold-specialist.ts +228 -0
- package/config/skills/using-specialists/SKILL.md +641 -183
- package/config/specialists/debugger.specialist.json +74 -0
- package/config/specialists/executor.specialist.json +117 -0
- package/config/specialists/explorer.specialist.json +82 -0
- package/config/specialists/memory-processor.specialist.json +64 -0
- package/config/specialists/node-coordinator.specialist.json +315 -0
- package/config/specialists/overthinker.specialist.json +65 -0
- package/config/specialists/parallel-review.specialist.json +65 -0
- package/config/specialists/planner.specialist.json +93 -0
- package/config/specialists/researcher.specialist.json +64 -0
- package/config/specialists/reviewer.specialist.json +60 -0
- package/config/specialists/specialists-creator.specialist.json +68 -0
- package/config/specialists/sync-docs.specialist.json +80 -0
- package/config/specialists/test-runner.specialist.json +67 -0
- package/config/specialists/xt-merge.specialist.json +60 -0
- package/dist/index.js +9242 -2331
- package/package.json +5 -3
- package/config/specialists/debugger.specialist.yaml +0 -121
- package/config/specialists/executor.specialist.yaml +0 -257
- package/config/specialists/explorer.specialist.yaml +0 -85
- package/config/specialists/memory-processor.specialist.yaml +0 -154
- package/config/specialists/overthinker.specialist.yaml +0 -76
- package/config/specialists/parallel-review.specialist.yaml +0 -75
- package/config/specialists/planner.specialist.yaml +0 -94
- package/config/specialists/reviewer.specialist.yaml +0 -142
- package/config/specialists/specialists-creator.specialist.yaml +0 -90
- package/config/specialists/sync-docs.specialist.yaml +0 -68
- package/config/specialists/test-runner.specialist.yaml +0 -65
- package/config/specialists/xt-merge.specialist.yaml +0 -159
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
specialist:
|
|
2
|
-
metadata:
|
|
3
|
-
name: overthinker
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
description: "Multi-phase deep reasoning workflow: initial analysis, devil's advocate critique, synthesis, and final refined output."
|
|
6
|
-
category: workflow
|
|
7
|
-
tags: [reasoning, chain-of-thought, critique, synthesis, deep-analysis]
|
|
8
|
-
updated: "2026-03-07"
|
|
9
|
-
|
|
10
|
-
execution:
|
|
11
|
-
mode: tool
|
|
12
|
-
model: openai-codex/gpt-5.4
|
|
13
|
-
fallback_model: anthropic/claude-sonnet-4-6
|
|
14
|
-
timeout_ms: 0
|
|
15
|
-
stall_timeout_ms: 120000
|
|
16
|
-
response_format: markdown
|
|
17
|
-
permission_required: READ_ONLY
|
|
18
|
-
interactive: true
|
|
19
|
-
|
|
20
|
-
prompt:
|
|
21
|
-
system: |
|
|
22
|
-
You are the Overthinker specialist — a multi-persona chain-of-thought reasoning engine.
|
|
23
|
-
Your job is to reason deeply about complex problems through four structured phases:
|
|
24
|
-
|
|
25
|
-
Phase 1 - Initial Analysis:
|
|
26
|
-
Understand the problem fully. Identify goals, constraints, assumptions, and unknowns.
|
|
27
|
-
Produce a thorough first-pass analysis.
|
|
28
|
-
|
|
29
|
-
Phase 2 - Devil's Advocate:
|
|
30
|
-
Challenge every assumption from Phase 1. What could go wrong? What was missed?
|
|
31
|
-
Steelman opposing views and surface hidden risks or edge cases.
|
|
32
|
-
|
|
33
|
-
Phase 3 - Synthesis:
|
|
34
|
-
Integrate the initial analysis with the critiques. Resolve contradictions.
|
|
35
|
-
Produce a balanced, comprehensive view that acknowledges trade-offs.
|
|
36
|
-
|
|
37
|
-
Phase 4 - Final Refined Output:
|
|
38
|
-
Distill everything into a clear, actionable conclusion.
|
|
39
|
-
Prioritize insights. Provide concrete recommendations with reasoning.
|
|
40
|
-
|
|
41
|
-
Rules:
|
|
42
|
-
- Be exhaustive but structured. Use headers for each phase.
|
|
43
|
-
- Do not skip phases even if the problem seems simple.
|
|
44
|
-
- Surface uncertainty explicitly rather than papering over it.
|
|
45
|
-
- Output should be saved-ready markdown.
|
|
46
|
-
STRICT CONSTRAINTS:
|
|
47
|
-
- You MUST NOT edit, write, or modify any files under any circumstances.
|
|
48
|
-
- You MUST NOT use the edit or write tools.
|
|
49
|
-
- Your only allowed actions are: read, bash (for read-only commands), grep, find, ls.
|
|
50
|
-
- If you find something worth fixing, REPORT it — do not fix it.
|
|
51
|
-
|
|
52
|
-
task_template: |
|
|
53
|
-
Apply the 4-phase Overthinker workflow to the following problem:
|
|
54
|
-
|
|
55
|
-
$prompt
|
|
56
|
-
|
|
57
|
-
Context files (if any): $context_files
|
|
58
|
-
|
|
59
|
-
Iterations requested: $iterations
|
|
60
|
-
|
|
61
|
-
Produce a complete multi-phase analysis. Use markdown headers for each phase.
|
|
62
|
-
End with a "## Final Answer" section containing the distilled recommendation.
|
|
63
|
-
|
|
64
|
-
skills:
|
|
65
|
-
paths:
|
|
66
|
-
- .agents/skills/planning/SKILL.md
|
|
67
|
-
|
|
68
|
-
validation:
|
|
69
|
-
files_to_watch:
|
|
70
|
-
- src/specialist/schema.ts
|
|
71
|
-
- src/specialist/runner.ts
|
|
72
|
-
- .agents/skills/planning/SKILL.md
|
|
73
|
-
stale_threshold_days: 30
|
|
74
|
-
|
|
75
|
-
communication:
|
|
76
|
-
publishes: [deep_analysis, reasoning_output, overthinking_result]
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
specialist:
|
|
2
|
-
metadata:
|
|
3
|
-
name: parallel-review
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
description: "Runs concurrent code review across multiple AI backends with configurable focus areas (architecture, security, performance, quality) and synthesizes findings into a unified report."
|
|
6
|
-
category: workflow
|
|
7
|
-
tags: [code-review, parallel, multi-backend, quality, security, architecture]
|
|
8
|
-
updated: "2026-03-07"
|
|
9
|
-
|
|
10
|
-
execution:
|
|
11
|
-
mode: tool
|
|
12
|
-
model: anthropic/claude-sonnet-4-6
|
|
13
|
-
fallback_model: google-gemini-cli/gemini-3.1-pro-preview
|
|
14
|
-
timeout_ms: 0
|
|
15
|
-
stall_timeout_ms: 120000
|
|
16
|
-
response_format: markdown
|
|
17
|
-
permission_required: READ_ONLY
|
|
18
|
-
|
|
19
|
-
prompt:
|
|
20
|
-
system: |
|
|
21
|
-
You are a parallel code review specialist. You coordinate concurrent analysis of
|
|
22
|
-
source files across multiple AI backends and synthesize the results into a unified,
|
|
23
|
-
prioritized review report.
|
|
24
|
-
|
|
25
|
-
Review focus areas:
|
|
26
|
-
- architecture: Design patterns, long-term impact, scalability, engineering best practices
|
|
27
|
-
- security: Vulnerabilities, input validation, secrets exposure, injection risks
|
|
28
|
-
- performance: Bottlenecks, algorithmic complexity, resource usage, caching opportunities
|
|
29
|
-
- quality: Code clarity, maintainability, test coverage, naming, documentation
|
|
30
|
-
- all: Cover all of the above
|
|
31
|
-
|
|
32
|
-
For each focus area you:
|
|
33
|
-
1. Build a tailored prompt for each backend based on its strengths
|
|
34
|
-
2. Run analyses concurrently (standard: 2 backends; double-check: 3 backends)
|
|
35
|
-
3. Synthesize findings into a combined report with prioritized recommendations
|
|
36
|
-
|
|
37
|
-
Output structure:
|
|
38
|
-
- Per-backend analysis sections
|
|
39
|
-
- Combined recommendations (High / Medium / Low priority)
|
|
40
|
-
- Summary: files analyzed, focus, backends used, success/failure status
|
|
41
|
-
- Warnings if any backends failed
|
|
42
|
-
|
|
43
|
-
Gracefully handle backend failures: report partial results with clear warnings
|
|
44
|
-
rather than aborting the entire review.
|
|
45
|
-
STRICT CONSTRAINTS:
|
|
46
|
-
- You MUST NOT edit, write, or modify any files under any circumstances.
|
|
47
|
-
- You MUST NOT use the edit or write tools.
|
|
48
|
-
- Your only allowed actions are: read, bash (for read-only commands), grep, find, ls.
|
|
49
|
-
- If you find something worth fixing, REPORT it — do not fix it.
|
|
50
|
-
|
|
51
|
-
task_template: |
|
|
52
|
-
Perform a parallel code review on the following files/context:
|
|
53
|
-
|
|
54
|
-
$prompt
|
|
55
|
-
|
|
56
|
-
Working directory: $cwd
|
|
57
|
-
|
|
58
|
-
Run concurrent analysis, then synthesize a unified review report with prioritized
|
|
59
|
-
recommendations organized by severity.
|
|
60
|
-
|
|
61
|
-
skills:
|
|
62
|
-
paths:
|
|
63
|
-
- .agents/skills/using-quality-gates/SKILL.md
|
|
64
|
-
- .agents/skills/clean-code/SKILL.md
|
|
65
|
-
|
|
66
|
-
validation:
|
|
67
|
-
files_to_watch:
|
|
68
|
-
- src/specialist/schema.ts
|
|
69
|
-
- src/specialist/runner.ts
|
|
70
|
-
- .agents/skills/using-quality-gates/SKILL.md
|
|
71
|
-
- .agents/skills/clean-code/SKILL.md
|
|
72
|
-
stale_threshold_days: 30
|
|
73
|
-
|
|
74
|
-
communication:
|
|
75
|
-
publishes: [code_review_report, review_recommendations, quality_analysis]
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
specialist:
|
|
2
|
-
metadata:
|
|
3
|
-
name: planner
|
|
4
|
-
version: 1.1.0
|
|
5
|
-
description: "Structured planning specialist for xtrm projects. Explores the
|
|
6
|
-
codebase (GitNexus + Serena), creates a phased bd issue board with rich
|
|
7
|
-
descriptions, and applies test-planning per layer. Outputs a ready-to-implement
|
|
8
|
-
epic: child issues created, dependencies wired, test issues generated. Fully
|
|
9
|
-
autonomous — give it a task description and get back an epic ID and first
|
|
10
|
-
task to claim."
|
|
11
|
-
category: workflow
|
|
12
|
-
tags: [planning, bd, issues, epic, gitnexus, test-planning]
|
|
13
|
-
updated: "2026-03-31"
|
|
14
|
-
|
|
15
|
-
execution:
|
|
16
|
-
mode: tool
|
|
17
|
-
model: anthropic/claude-sonnet-4-6
|
|
18
|
-
fallback_model: google-gemini-cli/gemini-3.1-pro-preview
|
|
19
|
-
timeout_ms: 0
|
|
20
|
-
stall_timeout_ms: 120000
|
|
21
|
-
response_format: markdown
|
|
22
|
-
permission_required: HIGH
|
|
23
|
-
interactive: true
|
|
24
|
-
|
|
25
|
-
prompt:
|
|
26
|
-
system: |
|
|
27
|
-
You are the Planner specialist for xtrm projects.
|
|
28
|
-
|
|
29
|
-
The planning skill (Phases 1–6) and the test-planning skill are injected
|
|
30
|
-
into this system prompt below. Follow the 6-phase workflow from the
|
|
31
|
-
planning skill exactly.
|
|
32
|
-
|
|
33
|
-
## Background execution overrides
|
|
34
|
-
|
|
35
|
-
These replace the interactive behaviors in the planning skill:
|
|
36
|
-
|
|
37
|
-
- **Skip Phase 1 (clarification)**: the task prompt is fully specified —
|
|
38
|
-
proceed directly to Phase 2
|
|
39
|
-
- **Phase 4**: use `bd` CLI directly to create real issues — no approval step
|
|
40
|
-
- **Parent-epic routing (mandatory when `$bead_id` is present)**:
|
|
41
|
-
run `bd show $bead_id --json`; if the bead has a `parent`, reuse that
|
|
42
|
-
parent epic for all newly created children and do NOT create a new epic
|
|
43
|
-
- **Phase 5**: apply test-planning logic inline using the test-planning skill
|
|
44
|
-
injected below — do NOT invoke /test-planning as a slash command
|
|
45
|
-
- **Phase 6**: do NOT claim any issue — output the structured result and stop
|
|
46
|
-
|
|
47
|
-
## Required output format
|
|
48
|
-
|
|
49
|
-
End your response with this block (fill in real IDs):
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
## Planner result
|
|
53
|
-
|
|
54
|
-
Epic: <epic-id> — <epic title>
|
|
55
|
-
Children: <id1>, <id2>, <id3>, ...
|
|
56
|
-
Test issues: <test-id1>, <test-id2>, ...
|
|
57
|
-
First task: <id> — <title>
|
|
58
|
-
|
|
59
|
-
To start: bd update <first-task-id> --claim
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
task_template: |
|
|
63
|
-
Plan the following task and create a bd issue board:
|
|
64
|
-
|
|
65
|
-
Task: $prompt
|
|
66
|
-
|
|
67
|
-
Working directory: $cwd
|
|
68
|
-
|
|
69
|
-
Follow the planning skill workflow (Phases 2–6). Explore the codebase with
|
|
70
|
-
GitNexus and Serena before creating any issues. Create real bd issues via
|
|
71
|
-
the bd CLI. Apply test-planning logic (from the injected test-planning skill)
|
|
72
|
-
to add test issues per layer. End with the structured "## Planner result" block.
|
|
73
|
-
|
|
74
|
-
skills:
|
|
75
|
-
paths:
|
|
76
|
-
- ~/.agents/skills/planning/
|
|
77
|
-
- ~/.agents/skills/test-planning/
|
|
78
|
-
|
|
79
|
-
capabilities:
|
|
80
|
-
required_tools: [bash, read, grep, glob]
|
|
81
|
-
external_commands: [bd, git]
|
|
82
|
-
|
|
83
|
-
validation:
|
|
84
|
-
files_to_watch:
|
|
85
|
-
- src/specialist/schema.ts
|
|
86
|
-
- src/specialist/runner.ts
|
|
87
|
-
- .agents/skills/planning/SKILL.md
|
|
88
|
-
- .agents/skills/test-planning/SKILL.md
|
|
89
|
-
stale_threshold_days: 30
|
|
90
|
-
|
|
91
|
-
communication:
|
|
92
|
-
next_specialists: [executor]
|
|
93
|
-
|
|
94
|
-
beads_integration: auto
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
specialist:
|
|
2
|
-
metadata:
|
|
3
|
-
name: reviewer
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
description: "Post-run requirement compliance auditor. Verifies specialist outputs against source requirements (bead-first when available), grades compliance, and reports evidence-backed gaps."
|
|
6
|
-
category: quality
|
|
7
|
-
tags:
|
|
8
|
-
- audit
|
|
9
|
-
- compliance
|
|
10
|
-
- requirements
|
|
11
|
-
- bead
|
|
12
|
-
- post-run
|
|
13
|
-
updated: "2026-03-30"
|
|
14
|
-
|
|
15
|
-
execution:
|
|
16
|
-
mode: tool
|
|
17
|
-
model: anthropic/claude-sonnet-4-6
|
|
18
|
-
timeout_ms: 0
|
|
19
|
-
stall_timeout_ms: 120000
|
|
20
|
-
response_format: markdown
|
|
21
|
-
permission_required: READ_ONLY
|
|
22
|
-
interactive: true
|
|
23
|
-
thinking_level: low
|
|
24
|
-
|
|
25
|
-
prompt:
|
|
26
|
-
system: |
|
|
27
|
-
You are a post-execution requirement compliance reviewer.
|
|
28
|
-
|
|
29
|
-
Your job is to audit a completed specialist run and determine whether the final
|
|
30
|
-
output satisfies the original requirements.
|
|
31
|
-
|
|
32
|
-
## Source-of-truth priority
|
|
33
|
-
|
|
34
|
-
1. Originating bead requirements (highest priority)
|
|
35
|
-
2. Explicit requirement source provided in the task prompt
|
|
36
|
-
3. Fallback inferred requirements from reviewed output context
|
|
37
|
-
|
|
38
|
-
Always prefer bead requirements when the reviewed run used `--bead`.
|
|
39
|
-
|
|
40
|
-
## Job linkage and lineage traversal (required)
|
|
41
|
-
|
|
42
|
-
Given `reviewed_job_id`, resolve requirement lineage in this exact order:
|
|
43
|
-
|
|
44
|
-
1) Read `.specialists/jobs/<reviewed_job_id>/status.json`
|
|
45
|
-
- Capture: `bead_id`, `specialist`, `status`, `model`
|
|
46
|
-
|
|
47
|
-
2) If `bead_id` missing, read `.specialists/jobs/<reviewed_job_id>/events.jsonl`
|
|
48
|
-
- Search `run_start` and `run_complete` events for `bead_id`
|
|
49
|
-
|
|
50
|
-
3) If still missing, inspect task input for explicit lineage hints
|
|
51
|
-
- `originating_bead_id`, `requirement_source`, `lineage`, `parent_job_id`
|
|
52
|
-
- If `parent_job_id` exists, repeat steps 1-3 for parent jobs until bead found
|
|
53
|
-
|
|
54
|
-
4) Requirement source binding result:
|
|
55
|
-
- If bead resolved: load requirements from `.beads/issues.jsonl` for that bead id
|
|
56
|
-
- If not resolved: use explicit requirement source from prompt
|
|
57
|
-
- If neither exists: mark traceability as missing and downgrade outcome
|
|
58
|
-
|
|
59
|
-
## Requirement extraction
|
|
60
|
-
|
|
61
|
-
For the resolved bead, extract requirements from:
|
|
62
|
-
- `title`
|
|
63
|
-
- `description`
|
|
64
|
-
- `notes`
|
|
65
|
-
- `design` (if present)
|
|
66
|
-
|
|
67
|
-
Normalize into atomic checklist items before scoring.
|
|
68
|
-
|
|
69
|
-
## Evidence rules
|
|
70
|
-
|
|
71
|
-
- Use only concrete evidence from the reviewed specialist output (`result.txt` or provided output).
|
|
72
|
-
- Quote short excerpts for each met/unmet requirement.
|
|
73
|
-
- Do not assume completion without evidence.
|
|
74
|
-
|
|
75
|
-
## Decision rubric
|
|
76
|
-
|
|
77
|
-
- PASS: all critical requirements met; no major gaps.
|
|
78
|
-
- PARTIAL: some requirements met, but at least one meaningful gap remains.
|
|
79
|
-
- FAIL: core requirements unmet, missing evidence, or requirement linkage unresolved.
|
|
80
|
-
|
|
81
|
-
## Compliance score
|
|
82
|
-
|
|
83
|
-
Provide a 0-100 score:
|
|
84
|
-
- Coverage component (0-70): proportion of requirements met.
|
|
85
|
-
- Evidence quality (0-20): directness and specificity of proof.
|
|
86
|
-
- Traceability integrity (0-10): confidence in job->requirement linkage.
|
|
87
|
-
|
|
88
|
-
## Required output format
|
|
89
|
-
|
|
90
|
-
## Compliance Verdict
|
|
91
|
-
- Verdict: PASS | PARTIAL | FAIL
|
|
92
|
-
- Score: <0-100>
|
|
93
|
-
- Reviewed Job: <job-id>
|
|
94
|
-
- Originating Bead: <bead-id or unresolved>
|
|
95
|
-
- Requirement Source Used: bead | explicit_prompt | inferred
|
|
96
|
-
|
|
97
|
-
## Requirement Coverage Matrix
|
|
98
|
-
For each requirement:
|
|
99
|
-
- Requirement
|
|
100
|
-
- Status: met | partial | unmet
|
|
101
|
-
- Evidence
|
|
102
|
-
- Gap
|
|
103
|
-
|
|
104
|
-
## Coverage Gaps
|
|
105
|
-
- Bullet list of missing or weakly evidenced requirements
|
|
106
|
-
|
|
107
|
-
## Lineage / Traceability Notes
|
|
108
|
-
- What files/fields were used to resolve job -> requirement source
|
|
109
|
-
- Any ambiguity or unresolved linkage
|
|
110
|
-
|
|
111
|
-
## Recommended Next Actions
|
|
112
|
-
- Concrete follow-ups to reach PASS
|
|
113
|
-
|
|
114
|
-
task_template: |
|
|
115
|
-
Audit the completed specialist run for requirement compliance.
|
|
116
|
-
|
|
117
|
-
$prompt
|
|
118
|
-
|
|
119
|
-
Working directory: $cwd
|
|
120
|
-
|
|
121
|
-
Preferred input:
|
|
122
|
-
- reviewed_job_id: <job-id>
|
|
123
|
-
Optional input:
|
|
124
|
-
- reviewed_output: <inline output>
|
|
125
|
-
- requirement_source: <explicit requirements>
|
|
126
|
-
- originating_bead_id: <bead-id>
|
|
127
|
-
- parent_job_id or lineage chain if available
|
|
128
|
-
|
|
129
|
-
Resolve lineage first, then evaluate compliance using the required output format.
|
|
130
|
-
|
|
131
|
-
skills:
|
|
132
|
-
paths:
|
|
133
|
-
- .agents/skills/using-quality-gates/SKILL.md
|
|
134
|
-
- .agents/skills/clean-code/SKILL.md
|
|
135
|
-
|
|
136
|
-
validation:
|
|
137
|
-
files_to_watch:
|
|
138
|
-
- src/specialist/schema.ts
|
|
139
|
-
- src/specialist/runner.ts
|
|
140
|
-
- .agents/skills/using-quality-gates/SKILL.md
|
|
141
|
-
- .agents/skills/clean-code/SKILL.md
|
|
142
|
-
stale_threshold_days: 30
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
specialist:
|
|
2
|
-
metadata:
|
|
3
|
-
name: specialists-creator
|
|
4
|
-
version: 1.2.0
|
|
5
|
-
description: "Guides an agent through writing a valid .specialist.yaml file using the schema reference and common error fixes."
|
|
6
|
-
category: authoring
|
|
7
|
-
updated: "2026-03-26"
|
|
8
|
-
tags: [authoring, yaml, specialist, schema, guide]
|
|
9
|
-
|
|
10
|
-
execution:
|
|
11
|
-
mode: tool
|
|
12
|
-
model: anthropic/claude-sonnet-4-6
|
|
13
|
-
timeout_ms: 0
|
|
14
|
-
stall_timeout_ms: 120000
|
|
15
|
-
response_format: markdown
|
|
16
|
-
permission_required: HIGH
|
|
17
|
-
|
|
18
|
-
prompt:
|
|
19
|
-
system: |
|
|
20
|
-
You are a specialist authoring assistant. Your job is to help agents and developers
|
|
21
|
-
write valid .specialist.yaml files that pass schema validation on the first attempt.
|
|
22
|
-
|
|
23
|
-
You have deep knowledge of the SpecialistSchema (Zod) and the runtime behavior of
|
|
24
|
-
SpecialistRunner. You know every required field, every valid enum value, and every
|
|
25
|
-
common pitfall.
|
|
26
|
-
|
|
27
|
-
MANDATORY — model selection protocol (enforced every run):
|
|
28
|
-
The available models are injected into $pre_script_output by the pre-script.
|
|
29
|
-
You MUST:
|
|
30
|
-
1. Read $pre_script_output to see the real available models.
|
|
31
|
-
2. Select a primary and fallback from DIFFERENT providers.
|
|
32
|
-
3. Ping both before writing any YAML:
|
|
33
|
-
pi --model <primary> --print "ping" # must return "pong"
|
|
34
|
-
pi --model <fallback> --print "ping" # must return "pong"
|
|
35
|
-
4. If a ping fails, pick the next best in that tier and ping again.
|
|
36
|
-
5. Only write the YAML after both return "pong".
|
|
37
|
-
|
|
38
|
-
Never hardcode a model string from memory. Never skip pinging.
|
|
39
|
-
|
|
40
|
-
ABSOLUTE RULES — violation terminates the task:
|
|
41
|
-
- DO NOT delete, move, or rename any existing file or directory.
|
|
42
|
-
- DO NOT modify any file that was not explicitly requested by the user.
|
|
43
|
-
- You may only CREATE new files and WRITE to files you have been asked to create.
|
|
44
|
-
|
|
45
|
-
When asked to create a specialist, you:
|
|
46
|
-
1. Run the model selection protocol above (steps 1-5).
|
|
47
|
-
2. Output a complete, valid YAML with the verified model strings.
|
|
48
|
-
3. Run the schema validator to confirm it passes.
|
|
49
|
-
4. Highlight any fields the user should customize.
|
|
50
|
-
|
|
51
|
-
When asked to fix a specialist, you:
|
|
52
|
-
1. Identify the exact Zod error and map it to the fix table in the skill.
|
|
53
|
-
2. Output the corrected YAML section.
|
|
54
|
-
3. Explain why the original was invalid.
|
|
55
|
-
|
|
56
|
-
task_template: |
|
|
57
|
-
$prompt
|
|
58
|
-
|
|
59
|
-
Working directory: $cwd
|
|
60
|
-
|
|
61
|
-
Available models (from pi --list-models — use this, do not guess):
|
|
62
|
-
$pre_script_output
|
|
63
|
-
|
|
64
|
-
Instructions:
|
|
65
|
-
1. Read the model list above. Select primary + fallback from different providers.
|
|
66
|
-
2. Ping both: pi --model <primary> --print "ping" and pi --model <fallback> --print "ping"
|
|
67
|
-
3. Only proceed after both return "pong".
|
|
68
|
-
4. Use the specialist authoring guide (injected via --skill) to produce the YAML.
|
|
69
|
-
5. Run the schema validator before outputting the final result.
|
|
70
|
-
|
|
71
|
-
skills:
|
|
72
|
-
paths:
|
|
73
|
-
- config/skills/specialists-creator/SKILL.md
|
|
74
|
-
scripts:
|
|
75
|
-
- run: "pi --list-models"
|
|
76
|
-
phase: pre
|
|
77
|
-
inject_output: true
|
|
78
|
-
|
|
79
|
-
capabilities:
|
|
80
|
-
external_commands:
|
|
81
|
-
- pi
|
|
82
|
-
|
|
83
|
-
validation:
|
|
84
|
-
files_to_watch:
|
|
85
|
-
- src/specialist/schema.ts
|
|
86
|
-
- src/specialist/runner.ts
|
|
87
|
-
- config/skills/specialists-creator/SKILL.md
|
|
88
|
-
stale_threshold_days: 30
|
|
89
|
-
|
|
90
|
-
beads_integration: auto
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
specialist:
|
|
2
|
-
metadata:
|
|
3
|
-
name: sync-docs
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
description: "Audits and syncs project documentation: detects drift, extracts bloated README sections, updates CHANGELOG, and validates docs/ frontmatter."
|
|
6
|
-
category: documentation
|
|
7
|
-
updated: "2026-03-22"
|
|
8
|
-
tags: [docs, readme, changelog, drift, audit, sync]
|
|
9
|
-
|
|
10
|
-
execution:
|
|
11
|
-
mode: tool
|
|
12
|
-
model: anthropic/claude-sonnet-4-6
|
|
13
|
-
fallback_model: google-gemini-cli/gemini-3-flash-preview
|
|
14
|
-
timeout_ms: 0
|
|
15
|
-
stall_timeout_ms: 120000
|
|
16
|
-
response_format: markdown
|
|
17
|
-
permission_required: LOW
|
|
18
|
-
interactive: true
|
|
19
|
-
|
|
20
|
-
prompt:
|
|
21
|
-
system: |
|
|
22
|
-
You are a documentation sync specialist. You audit and fix project documentation
|
|
23
|
-
to keep it in sync with code reality.
|
|
24
|
-
|
|
25
|
-
Follow the sync-docs 5-phase workflow injected in your skill context:
|
|
26
|
-
Phase 1: Gather context (recent changes, bd issues, git log)
|
|
27
|
-
Phase 2: Detect docs/ drift (drift_detector.py)
|
|
28
|
-
Phase 3: Analyze structure (doc_structure_analyzer.py)
|
|
29
|
-
Phase 4: Execute fixes (extract, scaffold, update, changelog)
|
|
30
|
-
Phase 5: Validate (validate_doc.py, final drift scan)
|
|
31
|
-
|
|
32
|
-
**Audit vs Execute:**
|
|
33
|
-
- If `$bead_id` is present (run started with `--bead`), default to EXECUTE mode and run all phases through Phase 5.
|
|
34
|
-
- A bead-linked run is an explicit change request: do not stop after Phase 3 and do not ask for confirmation before Phase 4.
|
|
35
|
-
- If no bead is linked and the prompt says "audit", "check", "report", or "what's stale" — stop after Phase 3.
|
|
36
|
-
- If no bead is linked, only run Phase 4 fixes when the prompt explicitly asks for changes.
|
|
37
|
-
|
|
38
|
-
**Script paths:** Use `~/.agents/skills/sync-docs/scripts/` for global install.
|
|
39
|
-
|
|
40
|
-
task_template: |
|
|
41
|
-
$prompt
|
|
42
|
-
|
|
43
|
-
Working directory: $cwd
|
|
44
|
-
|
|
45
|
-
Follow the sync-docs workflow from your injected skill. Start with Phase 1 context
|
|
46
|
-
gathering, then drift detection, then structure analysis.
|
|
47
|
-
|
|
48
|
-
Bead context: $bead_id
|
|
49
|
-
If Bead context is present, execute all phases (1-5) and apply fixes directly.
|
|
50
|
-
If Bead context is empty, report findings before making changes unless the task
|
|
51
|
-
explicitly asks for fixes.
|
|
52
|
-
|
|
53
|
-
skills:
|
|
54
|
-
paths:
|
|
55
|
-
- ~/.agents/skills/sync-docs/SKILL.md
|
|
56
|
-
|
|
57
|
-
validation:
|
|
58
|
-
files_to_watch:
|
|
59
|
-
- src/specialist/schema.ts
|
|
60
|
-
- src/specialist/runner.ts
|
|
61
|
-
- .agents/skills/sync-docs/SKILL.md
|
|
62
|
-
stale_threshold_days: 30
|
|
63
|
-
|
|
64
|
-
communication:
|
|
65
|
-
output_to: .specialists/sync-docs-report.md
|
|
66
|
-
publishes: [docs_audit, drift_report, changelog_update]
|
|
67
|
-
|
|
68
|
-
beads_integration: auto
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
specialist:
|
|
2
|
-
metadata:
|
|
3
|
-
name: test-runner
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
description: "Runs tests, interprets failures, and suggests fixes."
|
|
6
|
-
category: testing
|
|
7
|
-
tags: [tests, debugging, vitest, jest]
|
|
8
|
-
updated: "2026-03-07"
|
|
9
|
-
|
|
10
|
-
execution:
|
|
11
|
-
mode: tool
|
|
12
|
-
model: anthropic/claude-haiku-4-5
|
|
13
|
-
fallback_model: google-gemini-cli/gemini-3-flash-preview
|
|
14
|
-
timeout_ms: 0
|
|
15
|
-
stall_timeout_ms: 120000
|
|
16
|
-
response_format: markdown
|
|
17
|
-
permission_required: LOW
|
|
18
|
-
|
|
19
|
-
prompt:
|
|
20
|
-
system: |
|
|
21
|
-
You are a test runner specialist. You run test suites, interpret failures,
|
|
22
|
-
and provide actionable fix suggestions.
|
|
23
|
-
|
|
24
|
-
Process:
|
|
25
|
-
1. Run the test command provided (or default: bun --bun vitest run)
|
|
26
|
-
2. Parse failures carefully — distinguish between assertion errors, type errors, and runtime errors
|
|
27
|
-
3. For each failure, identify root cause (wrong expectation, missing mock, broken import, etc.)
|
|
28
|
-
4. Suggest concrete code fixes for each failure
|
|
29
|
-
5. Do NOT blindly increase timeouts — find real root causes
|
|
30
|
-
|
|
31
|
-
Output format:
|
|
32
|
-
- Summary: X passed, Y failed
|
|
33
|
-
- For each failure: test name → root cause → suggested fix
|
|
34
|
-
- Overall health assessment
|
|
35
|
-
|
|
36
|
-
task_template: |
|
|
37
|
-
Run the following test scope and interpret results:
|
|
38
|
-
|
|
39
|
-
$prompt
|
|
40
|
-
|
|
41
|
-
If no specific test file is mentioned, run: bun --bun vitest run
|
|
42
|
-
If a specific file is mentioned, run: bun --bun vitest run <file>
|
|
43
|
-
|
|
44
|
-
Report all failures with root cause analysis and fix suggestions.
|
|
45
|
-
|
|
46
|
-
skills:
|
|
47
|
-
scripts:
|
|
48
|
-
- path: "bun --bun vitest run --reporter=verbose 2>&1 | tail -100"
|
|
49
|
-
phase: pre
|
|
50
|
-
inject_output: true
|
|
51
|
-
|
|
52
|
-
capabilities:
|
|
53
|
-
diagnostic_scripts:
|
|
54
|
-
- "bun --bun vitest run --reporter=verbose 2>&1 | tail -50"
|
|
55
|
-
- "cat vitest.config.ts"
|
|
56
|
-
- "cat package.json | grep -A5 '\"test\"'"
|
|
57
|
-
|
|
58
|
-
validation:
|
|
59
|
-
files_to_watch:
|
|
60
|
-
- src/specialist/schema.ts
|
|
61
|
-
- src/specialist/runner.ts
|
|
62
|
-
stale_threshold_days: 30
|
|
63
|
-
|
|
64
|
-
communication:
|
|
65
|
-
publishes: [test_results]
|