regent-code 3.0.0
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/.github/workflows/ci.yml +38 -0
- package/.opencode/INSTALL.md +82 -0
- package/.opencode/agents/regent-explore.md +10 -0
- package/.opencode/agents/regent-general.md +8 -0
- package/.opencode/commands/accept.md +15 -0
- package/.opencode/commands/delegate.md +16 -0
- package/.opencode/commands/diagnose.md +19 -0
- package/.opencode/commands/orchestrate.md +22 -0
- package/.opencode/commands/plan.md +20 -0
- package/.opencode/commands/research.md +12 -0
- package/.opencode/commands/review.md +23 -0
- package/.opencode/commands/ship.md +18 -0
- package/.opencode/commands/spec.md +18 -0
- package/.opencode/commands/status.md +13 -0
- package/.opencode/commands/tdd.md +18 -0
- package/.opencode/commands/verify.md +18 -0
- package/.opencode/package.json +6 -0
- package/.opencode/plugins/regent.js +1623 -0
- package/.opencode/skills/code-review/SKILL.md +89 -0
- package/.opencode/skills/diagnose/SKILL.md +118 -0
- package/.opencode/skills/grilling/SKILL.md +59 -0
- package/.opencode/skills/handoff/SKILL.md +61 -0
- package/.opencode/skills/merge-conflicts/SKILL.md +39 -0
- package/.opencode/skills/orchestrator/SKILL.md +206 -0
- package/.opencode/skills/prototype/SKILL.md +40 -0
- package/.opencode/skills/ship/SKILL.md +42 -0
- package/.opencode/skills/spec/SKILL.md +61 -0
- package/.opencode/skills/tdd/SKILL.md +102 -0
- package/.opencode/skills/tickets/SKILL.md +71 -0
- package/.opencode/skills/using-regent/SKILL.md +71 -0
- package/.opencode/skills/verification-before-completion/SKILL.md +82 -0
- package/.opencode/skills/wizard/SKILL.md +45 -0
- package/.opencode/skills/worktrees/SKILL.md +39 -0
- package/.opencode/skills/zoom-out/SKILL.md +38 -0
- package/.prettierignore +2 -0
- package/.prettierrc +7 -0
- package/AGENTS.md +38 -0
- package/CONSTITUTION.md +101 -0
- package/LICENSE +21 -0
- package/README.md +264 -0
- package/docs/contributing.md +86 -0
- package/docs/superpowers/plans/windows-guardrail/plan.md +49 -0
- package/docs/superpowers/plans/windows-guardrail/tasks.md +58 -0
- package/docs/superpowers/specs/2026-06-12-regent-health-audit-design.md +49 -0
- package/docs/superpowers/specs/2026-08-26-windows-guardrail.md +66 -0
- package/eslint.config.js +23 -0
- package/handoff.md +100 -0
- package/mcp/cli.js +9 -0
- package/mcp/index.js +805 -0
- package/mcp/install.js +204 -0
- package/mcp/prompts.js +99 -0
- package/mcp/shared.js +428 -0
- package/package.json +52 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
verify:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- uses: actions/setup-node@v4
|
|
17
|
+
with:
|
|
18
|
+
node-version: 22
|
|
19
|
+
|
|
20
|
+
- name: Install root devDependencies
|
|
21
|
+
run: npm install
|
|
22
|
+
|
|
23
|
+
- name: Install plugin dependency
|
|
24
|
+
working-directory: .opencode
|
|
25
|
+
run: npm ci
|
|
26
|
+
|
|
27
|
+
- name: Check formatting
|
|
28
|
+
run: npm run format:check
|
|
29
|
+
|
|
30
|
+
- name: Lint
|
|
31
|
+
run: npm run lint
|
|
32
|
+
|
|
33
|
+
- name: Typecheck
|
|
34
|
+
run: npm run typecheck
|
|
35
|
+
|
|
36
|
+
- name: Test
|
|
37
|
+
working-directory: .opencode
|
|
38
|
+
run: node --test tests/regent.test.js tests/regent.v2.test.js tests/regent.live-test.js tests/regent.hybrid.v2.6.1.test.js tests/regent.runtime.v2.6.1.test.js
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
## Add to opencode.jsonc
|
|
4
|
+
|
|
5
|
+
```jsonc
|
|
6
|
+
{
|
|
7
|
+
"$schema": "https://opencode.ai/config.json",
|
|
8
|
+
"plugins": ["regent-code@git+https://github.com/nathwn12/regent-code.git#v2.7.1"],
|
|
9
|
+
}
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Use Latest Branch
|
|
13
|
+
|
|
14
|
+
```jsonc
|
|
15
|
+
{
|
|
16
|
+
"$schema": "https://opencode.ai/config.json",
|
|
17
|
+
"plugins": ["regent-code@git+https://github.com/nathwn12/regent-code.git"],
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The pinned version is recommended. Use the unpinned branch only when you intentionally want the latest changes. The `v2.7.1` git tag must be pushed to GitHub before the pinned spec resolves.
|
|
22
|
+
|
|
23
|
+
## Single-source rule (duplicate plugin ID)
|
|
24
|
+
|
|
25
|
+
OpenCode v2 auto-loads any plugin file under a project's `.opencode/plugins/`. If the regent-code repository itself is open as a project **and** regent is also pinned in `opencode.jsonc`, the host reloads both sources on every `.opencode/` change and fails the whole batch with `Duplicate plugin ID: regent`. Symptoms: sessions with a torn tool surface, plugin/skill edits that never go live, repeated `failed to reload plugins` log errors.
|
|
26
|
+
|
|
27
|
+
On a machine that also develops regent-code: keep exactly ONE source. Either leave regent unpinned (the repo project plugin is enough) or pin the repo file directly:
|
|
28
|
+
|
|
29
|
+
```jsonc
|
|
30
|
+
{
|
|
31
|
+
"$schema": "https://opencode.ai/config.json",
|
|
32
|
+
"plugins": ["file:///Q:/PROJECTS/PERSONAL/regent-code/.opencode/plugins/regent.js"],
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The file pin doubles as the live dev loop: skills, commands, and plugin edits in the repo take effect on the next reload tick instead of waiting for a release + cache refresh.
|
|
37
|
+
|
|
38
|
+
Targets the OpenCode v2 beta plugin API and `@opencode-ai/plugin@0.0.0-beta-18314`; the beta API may change. Requires an OpenCode v2 beta build that supports v2 plugins. If plugin loading fails, use the troubleshooting checks below and report your OpenCode version.
|
|
39
|
+
|
|
40
|
+
## Hybrid runtime behavior
|
|
41
|
+
|
|
42
|
+
OpenCode v2 discovers assets from the **project** and **global** `.opencode/` directories. Regent's twelve commands are also registered at runtime under the `/regent/` namespace:
|
|
43
|
+
|
|
44
|
+
- `/regent/orchestrate`
|
|
45
|
+
- `/regent/delegate`
|
|
46
|
+
- `/regent/research`
|
|
47
|
+
- `/regent/tdd`
|
|
48
|
+
- `/regent/diagnose`
|
|
49
|
+
- `/regent/verify`
|
|
50
|
+
- `/regent/review`
|
|
51
|
+
- `/regent/spec`
|
|
52
|
+
- `/regent/plan`
|
|
53
|
+
- `/regent/ship`
|
|
54
|
+
- `/regent/status`
|
|
55
|
+
- `/regent/accept`
|
|
56
|
+
|
|
57
|
+
The `subtask: true` command metadata does not create child sessions in V2. Plugin dispatch uses available child-capable agents and falls back to the built-in `general` agent. Regent does not select or require a named root agent — your host's configured primary agent remains authoritative. `primaryAgent` is an explicit optional existing primary-capable override.
|
|
58
|
+
|
|
59
|
+
A **shell guardrail** hook blocks destructive commands before they execute: `rm -rf` targeting root or home, `git push --force`/`-f`, `git clean -f`, `git reset --hard`, full-tree `git checkout`/`restore`, and database drop/truncate. The `verify` gate grades evidence **freshness** (fresh/stale/missing) against the files on disk — stale verified evidence fails the gate.
|
|
60
|
+
|
|
61
|
+
## Verify
|
|
62
|
+
|
|
63
|
+
Start a new session. The regent-code bootstrap injects automatically. Run `/regent/orchestrate` to test.
|
|
64
|
+
|
|
65
|
+
## Troubleshooting
|
|
66
|
+
|
|
67
|
+
**Plugin not loading:**
|
|
68
|
+
|
|
69
|
+
- Make sure the URL is correct and the repo is accessible
|
|
70
|
+
- Restart the OpenCode session
|
|
71
|
+
|
|
72
|
+
**Skills, commands, or agents not found:**
|
|
73
|
+
|
|
74
|
+
- Verify the plugin installed correctly — `opencode2 plugin list` should show `regent (active)`
|
|
75
|
+
- Test runtime command registration with `/regent/orchestrate`
|
|
76
|
+
- Check project and global `.opencode/` directories for discovered skills and agents
|
|
77
|
+
- If `primaryAgent` is set, confirm it names an existing primary-capable agent; otherwise dispatch falls back to the built-in `general` agent
|
|
78
|
+
|
|
79
|
+
**Orchestrator not auto-triggering:**
|
|
80
|
+
|
|
81
|
+
- The orchestrator loads on `/regent/orchestrate` or when user states a goal
|
|
82
|
+
- Restart the session after changing the plugin so its setup and discovered assets reload
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Regent subagent for focused codebase exploration, file discovery, and structural analysis before implementation.
|
|
3
|
+
mode: subagent
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are Regent Explore, the Mentor's (教官) reconnaissance arm.
|
|
7
|
+
|
|
8
|
+
Act under CONSTITUTION.md: Think Before Decree, Surgical Precision. Find smallest context needed. Prefer file lists, exact paths, key symbols, short structural summaries. Do not edit files.
|
|
9
|
+
|
|
10
|
+
Return concise findings with file references and any remaining uncertainty.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Regent subagent for focused implementation, verification, research, and review tasks delegated by Regent workflows.
|
|
3
|
+
mode: subagent
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are Regent General, a Fleet Commander (舰官) subagent.
|
|
7
|
+
|
|
8
|
+
Act under CONSTITUTION.md: Simplicity is Sovereign, Goal-Driven Execution. Complete delegated task directly. Use provided context and expected output as contract. Keep changes minimal. Verify when possible. Report files changed, commands run, blockers, concerns.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Accept the completed work — record human acceptance and continue per the report's options
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Accept the completed work:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Act as the sovereign's acceptance gate. Load the `orchestrator` skill's Phase 5.
|
|
11
|
+
|
|
12
|
+
1. Confirm this run's work passes the evidence gate: verified evidence, no stale files, no unverified changes (check `docs/superpowers/run/state.json`, `changed-files`, and the last verify result).
|
|
13
|
+
2. If evidence is missing or stale, do NOT accept — report what verification is needed and stop.
|
|
14
|
+
3. Record acceptance: update `docs/superpowers/run/state.json` (acceptance: accepted, accepted_at) so future sessions see the run closed.
|
|
15
|
+
4. Then continue per the report options: offer ship (evidence-gated commit/push/PR), a new goal (loop to clarify), or fixes (loop to execute). One option at a time; wait for the sovereign.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Delegate a single well-defined task to a subagent
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The user wants to delegate:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Call the `delegate` tool with:
|
|
11
|
+
|
|
12
|
+
- task: the specific work (must be concrete, 1-3 files, 2-15 min)
|
|
13
|
+
- context: relevant background, files, architecture decisions, constraints
|
|
14
|
+
- expected_output: what done looks like
|
|
15
|
+
|
|
16
|
+
Wait for the result. Report status, output, and any concerns to the user.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Systematic debugging — loop, reproduce, hypothesise, instrument, fix, cleanup
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The user wants to diagnose:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Load the `diagnose` skill. The Iron Law applies: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
|
|
11
|
+
|
|
12
|
+
Phase 1: Build a feedback loop (failing test, CLI invocation, HTTP script, harness — fast and deterministic)
|
|
13
|
+
Phase 2: Reproduce — confirm the bug matches user description
|
|
14
|
+
Phase 3: Hypothesise — 3-5 ranked falsifiable hypotheses, each with a prediction
|
|
15
|
+
Phase 4: Instrument — one variable at a time, tag every debug log
|
|
16
|
+
Phase 5: Fix + regression test — write failing test before fix, watch it fail, apply fix, watch it pass
|
|
17
|
+
Phase 6: Cleanup — remove instrumentation, document root cause
|
|
18
|
+
|
|
19
|
+
Do NOT propose fixes before completing root cause investigation. Build the feedback loop first — that is the real skill.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run the regent-code pipeline — clarify, plan, execute, verify, report
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The user's goal:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Load the `orchestrator` skill. Follow its 5-phase workflow:
|
|
11
|
+
|
|
12
|
+
1. CLARIFY — explore context, ask one question at a time, capture what/why/constraints/success criteria, propose 2-3 approaches, present design. Gate: user approval.
|
|
13
|
+
|
|
14
|
+
2. PLAN — scan available skills, explore codebase, build task tree with dependency levels. Level 1 = `delegate_many()` for parallel, Level N = sequential `delegate()`. No placeholders. Gate: user approval.
|
|
15
|
+
|
|
16
|
+
3. EXECUTE — walk the dependency graph. Handle statuses: done (continue), done_with_concerns (note it), needs_context (re-delegate), blocked (PAUSE).
|
|
17
|
+
|
|
18
|
+
4. VERIFY — call `verify()` with requirements from Clarify and implementation summary from Execute. Compliant → proceed. Minor issues → fix + re-verify. Major → PAUSE.
|
|
19
|
+
|
|
20
|
+
5. REPORT — evidence gate first (fresh verification required). Achievements with evidence, pending items, 2-3 options with recommendation.
|
|
21
|
+
|
|
22
|
+
Do not skip any phase. Do not proceed without gates passing.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Break a plan or spec into ordered task tickets with blocking edges (docs/superpowers/plans/<slug>/)
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Build the task plan for:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Load the `tickets` skill. Produce the durable plan artifact under `docs/superpowers/plans/<slug>/` (plan.md + tasks.md).
|
|
11
|
+
|
|
12
|
+
1. Work from the spec and current conversation; read the spec if a path was given.
|
|
13
|
+
2. Draft vertical-slice tasks: each cuts a complete path (schema → API → tests), is independently verifiable, and fits one fresh context window. Wide refactors use expand–contract.
|
|
14
|
+
3. Give every task its blocking edges; state which Level-1 tasks are parallelizable.
|
|
15
|
+
4. Quiz the user on granularity and blocking edges, then write the approved breakdown:
|
|
16
|
+
- `plan.md` — dependency levels, parallelization strategy, files to create/modify.
|
|
17
|
+
- `tasks.md` — one task per entry: id, title, what it delivers, blocked by, acceptance criteria.
|
|
18
|
+
5. No placeholders. Every task must be concrete enough to delegate.
|
|
19
|
+
|
|
20
|
+
This phase produces the plan only — do not execute or modify source.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Research a topic using parallel subagents
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The user wants to research:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Call the `research` tool. Break the topic into independent sub-questions and dispatch them in parallel. Each sub-question gets its own focused agent.
|
|
11
|
+
|
|
12
|
+
Report findings to the user: key answers per sub-question, any contradictions, and a synthesis paragraph.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Code review — quality, correctness, security, and spec compliance review
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The user wants a review of:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Load the `verification-before-completion` skill. Act as Inspector (监官).
|
|
11
|
+
|
|
12
|
+
Review along two axes:
|
|
13
|
+
|
|
14
|
+
1. **Standards** — Does the code follow the project's coding standards, conventions, and patterns? Check CONSTITUTION.md, AGENTS.md, and any `.eslintrc` or `tsconfig.json` for explicit standards.
|
|
15
|
+
|
|
16
|
+
2. **Spec** — Does the code match the requirements, the plan, or the issue/PRD it was written for?
|
|
17
|
+
|
|
18
|
+
For each axis, report:
|
|
19
|
+
- What passes
|
|
20
|
+
- What needs improvement
|
|
21
|
+
- Any blockers or security concerns
|
|
22
|
+
|
|
23
|
+
Keep the review actionable. Flag YAGNI (unrequested features) separately. Run lint/typecheck/test commands if relevant and report the output.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Evidence-gated deliver — fresh verification, commit, push, and pull request for the completed work
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Ship the completed work:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Load the `ship` and `verification-before-completion` skills. Act as Publisher (布官).
|
|
11
|
+
|
|
12
|
+
1. Evidence gate first — sync main; run the project's verification commands fresh (format, lint, typecheck, tests). No fresh evidence, no ship.
|
|
13
|
+
2. Scope the change: `git status`, `git diff --stat`, and the plan's tasks to confirm only intended files.
|
|
14
|
+
3. Commit with a clean message; never force-push, never `git reset --hard`, never `git clean -f` (the Regent guardrail blocks these).
|
|
15
|
+
4. Push and open a pull request; the PR body lists requirements from the spec, the verification evidence, and any pending issues.
|
|
16
|
+
5. If verification fails or files are unverified/stale, STOP and report to the Inspector instead of shipping.
|
|
17
|
+
|
|
18
|
+
Do not merge or deploy. Merging stays the sovereign's call.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Write or refine the Regent specification artifact (docs/superpowers/specs/YYYY-MM-DD-<topic>.md) from the current goal and conversation
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Write the specification for:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Load the `spec` skill. Produce the spec artifact at `docs/superpowers/specs/YYYY-MM-DD-<topic>.md` (use today's date and a topic slug derived from the goal).
|
|
11
|
+
|
|
12
|
+
1. Explore the repo for domain vocabulary (`CONTEXT.md`, `docs/adr/`, `UBIQUITOUS_LANGUAGE.md`) and current state.
|
|
13
|
+
2. Sketch the seams at which the feature will be tested; prefer existing seams, propose the highest seam possible.
|
|
14
|
+
3. Write the spec: Problem Statement, Solution, User Stories, Implementation Decisions, Testing Decisions, Out of Scope, Further Notes.
|
|
15
|
+
4. Do not include specific file paths or code snippets in the spec (except decision-rich prototype snippets).
|
|
16
|
+
5. Keep it reviewable: the Strategist gate asks "Is this design correct?" before the pipeline proceeds.
|
|
17
|
+
|
|
18
|
+
Do not plan, ticket, or implement. This phase produces the spec only.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Show the current pipeline state — phase, plan progress, evidence, and the one permitted next action
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Report the current Regent pipeline state. Scope: $ARGUMENTS (optional; omit for the whole run).
|
|
8
|
+
|
|
9
|
+
1. Read the run state at `docs/superpowers/run/state.json` (if present) for phase, goal, spec, and acceptance.
|
|
10
|
+
2. Read the plan artifact at `docs/superpowers/plans/<slug>/` (if present); summarize each task's status, blocking edges, and frontier (tasks whose blockers are all done).
|
|
11
|
+
3. Run `changed-files` for unverified evidence; look for stale verified evidence via the verify tool's evidence_gate.freshness.
|
|
12
|
+
4. Report `git status --short --branch` and any uncommitted changes.
|
|
13
|
+
5. End with exactly one permitted next action: clarify, plan, execute, verify, accept, ship, or wait-for-sovereign — never more. Read-only: do not mutate state, plan, or source.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: TDD red-green-refactor — iron law: no code without failing test
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The user wants to develop using TDD:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Load the `tdd` skill. The Iron Law applies: NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST.
|
|
11
|
+
|
|
12
|
+
RED — write one failing test (one behavior, clear name, real code). VERIFY RED — watch it fail.
|
|
13
|
+
|
|
14
|
+
GREEN — write minimal code to pass. No extra features. VERIFY GREEN — watch it pass, all tests green.
|
|
15
|
+
|
|
16
|
+
REFACTOR — clean up. Keep tests green.
|
|
17
|
+
|
|
18
|
+
One behavior per cycle. Do not write all tests first (horizontal slices = not TDD).
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Verification evidence gate — fresh proof before any completion claim
|
|
3
|
+
subtask: true
|
|
4
|
+
agent: regent-general
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The user wants to verify:
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
Load the `verification-before-completion` skill. The Iron Law applies: NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE.
|
|
11
|
+
|
|
12
|
+
1. IDENTIFY — what command proves the claim?
|
|
13
|
+
2. RUN — execute the full command (fresh, complete)
|
|
14
|
+
3. READ — full output, exit code, failure count
|
|
15
|
+
4. VERIFY — does output confirm the claim?
|
|
16
|
+
5. ONLY THEN — make the claim
|
|
17
|
+
|
|
18
|
+
No "should", "probably", "seems fine". Fresh evidence or it did not happen.
|