@webpresso/opencode-plugin 3.1.12 → 3.1.13
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 +4 -1
- package/index.js +13 -1
- package/package.json +3 -1
- package/plugin-skill-ownership.json +84 -0
- package/skills/autopilot/SKILL.md +39 -0
- package/skills/autoresearch/SKILL.md +49 -0
- package/skills/best-practice-research/SKILL.md +89 -0
- package/skills/browse/SKILL.md +25 -0
- package/skills/claude/SKILL.md +154 -0
- package/skills/codex/SKILL.md +79 -0
- package/skills/deep-research/SKILL.md +258 -0
- package/skills/design-review/SKILL.md +26 -0
- package/skills/devex-review/SKILL.md +28 -0
- package/skills/fix/SKILL.md +129 -0
- package/skills/goal/SKILL.md +27 -0
- package/skills/hooks-doctor/SKILL.md +78 -0
- package/skills/lore-protocol/SKILL.md +84 -0
- package/skills/opencode-go/SKILL.md +106 -0
- package/skills/plan-ceo-review/SKILL.md +27 -0
- package/skills/plan-design-review/SKILL.md +27 -0
- package/skills/plan-devex-review/SKILL.md +19 -0
- package/skills/plan-eng-review/SKILL.md +24 -0
- package/skills/plan-refine/SKILL.md +49 -0
- package/skills/plan-refine/references/full-methodology.md +645 -0
- package/skills/ralplan/SKILL.md +50 -0
- package/skills/team/SKILL.md +60 -0
- package/skills/tech-debt/SKILL.md +79 -0
- package/skills/testing-philosophy/SKILL.md +53 -0
- package/skills/testing-philosophy/references/full-testing-philosophy.md +523 -0
- package/skills/tph/SKILL.md +35 -0
- package/skills/verify/SKILL.md +209 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: opencode-go
|
|
3
|
+
description: "OpenCode Go aggregate outside-voice reviewer for read-only plan, code, or implementation critique."
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# OpenCode Go aggregate reviewer via OpenCode Go
|
|
8
|
+
|
|
9
|
+
Use when the user asks for an OpenCode Go aggregate reviewer / OpenCode Go review. Treat output as external advice until independently verified.
|
|
10
|
+
|
|
11
|
+
## Model routing
|
|
12
|
+
|
|
13
|
+
Rendered from the committed OpenCode reviewer policy. It does not hardcode model IDs; it resolves the live `opencode models opencode-go` catalog.
|
|
14
|
+
Use the aggregate reviewer when the user wants an OpenCode Go review but did not specify a family. The default outside-voice lane is Kimi K2.7 Code first for coding quality, then DeepSeek V4 Pro for deeper review depth, then DeepSeek V4 Flash for cheap/high-availability follow-up passes; only after that should it fall back to the remaining families.
|
|
15
|
+
Use the aggregate reviewer for general outside-voice plan critique, implementation review, or when the user wants the current best OpenCode Go lane without naming a family.
|
|
16
|
+
|
|
17
|
+
## Auth and availability check
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
opencode providers list >/dev/null
|
|
21
|
+
opencode models opencode-go >/dev/null
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Portable prompt file
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
PROMPT_FILE=$(mktemp -t wp-opencode-go-review.XXXXXX)
|
|
28
|
+
trap 'rm -f "$PROMPT_FILE"' EXIT
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Dashboard helper relation
|
|
32
|
+
|
|
33
|
+
When `wp dash` provides dashboard context, use the shared helper emitter around this outside-voice review. The commands leave standalone OpenCode Go reviews unchanged.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
DASH_HELPER_RUN_ID=""
|
|
37
|
+
if [ "${WP_DASH:-}" = "1" ] && [ -n "${WP_DASH_RUN_ID:-}" ]; then
|
|
38
|
+
DASH_HELPER_RUN_ID=$(wp dash-helper-start --provider opencode-go --role reviewer --artifact "${OPENCODE_GO_REVIEW_ARTIFACT:-}")
|
|
39
|
+
fi
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
After the review runtime exits, record its actual result and optional artifact:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
OPENCODE_GO_REVIEW_CODE=$?
|
|
46
|
+
if [ -n "$DASH_HELPER_RUN_ID" ]; then
|
|
47
|
+
if [ "$OPENCODE_GO_REVIEW_CODE" -eq 0 ]; then
|
|
48
|
+
wp dash-helper-complete --provider opencode-go --run-id "$DASH_HELPER_RUN_ID" --role reviewer --outcome completed --artifact "${OPENCODE_GO_REVIEW_ARTIFACT:-}"
|
|
49
|
+
else
|
|
50
|
+
wp dash-helper-complete --provider opencode-go --run-id "$DASH_HELPER_RUN_ID" --role reviewer --outcome failed --artifact "${OPENCODE_GO_REVIEW_ARTIFACT:-}"
|
|
51
|
+
fi
|
|
52
|
+
fi
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The managed OpenCode plugin currently has no parent-linked native subagent completion lifecycle. This capability is explicit unsupported coverage, not an inferred dashboard relation.
|
|
56
|
+
|
|
57
|
+
## Review command
|
|
58
|
+
|
|
59
|
+
Use read-only prompts. Run from the repo directory; do NOT pass `--dir "$PWD"` because opencode already uses the current directory and the extra index can stall reviews.
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Aggregate reviewer: honor the canonical reviewer policy (Kimi K2.7 Code → DeepSeek V4 Pro → DeepSeek V4 Flash first, then cross-family fallbacks).
|
|
63
|
+
CATALOG=$(opencode models opencode-go)
|
|
64
|
+
MODEL=$(echo "$CATALOG" | grep '^opencode-go/kimi' | grep -- '-code$' | sort -V | tail -1)
|
|
65
|
+
[ -z "$MODEL" ] && MODEL=$(echo "$CATALOG" | grep '^opencode-go/deepseek' | grep -- '-pro$' | sort -V | tail -1)
|
|
66
|
+
[ -z "$MODEL" ] && MODEL=$(echo "$CATALOG" | grep '^opencode-go/deepseek' | grep -- '-flash$' | sort -V | tail -1)
|
|
67
|
+
[ -z "$MODEL" ] && MODEL=$(echo "$CATALOG" | grep '^opencode-go/qwen' | grep -- '-max$' | sort -V | tail -1)
|
|
68
|
+
[ -z "$MODEL" ] && MODEL=$(echo "$CATALOG" | grep '^opencode-go/glm' | sort -V | tail -1)
|
|
69
|
+
[ -z "$MODEL" ] && MODEL=$(echo "$CATALOG" | grep '^opencode-go/minimax' | sort -V | tail -1)
|
|
70
|
+
[ -z "$MODEL" ] && MODEL=$(echo "$CATALOG" | grep '^opencode-go/mimo' | grep -- '-pro$' | sort -V | tail -1)
|
|
71
|
+
[ -z "$MODEL" ] && MODEL=$(echo "$CATALOG" | sort -V | tail -1)
|
|
72
|
+
|
|
73
|
+
# Fail fast on blocked quota before launching a long review. The typed runtime
|
|
74
|
+
# consumes provider JSON events and resets its idle clock only on semantic progress.
|
|
75
|
+
[ -n "$MODEL" ] || { echo "No OpenCode Go model resolved for this reviewer." >&2; exit 2; }
|
|
76
|
+
OPENCODE_GO_REVIEW_EFFORT=${OPENCODE_GO_REVIEW_EFFORT:-medium}
|
|
77
|
+
[ "$OPENCODE_GO_REVIEW_EFFORT" = medium ] || [ "$OPENCODE_GO_REVIEW_EFFORT" = high ] || { echo "OPENCODE_GO_REVIEW_EFFORT must be one of: medium, high" >&2; exit 2; }
|
|
78
|
+
OPENCODE_GO_PROBE_IDLE_SECONDS=${OPENCODE_GO_PROBE_IDLE_SECONDS:-180}
|
|
79
|
+
OPENCODE_GO_REVIEW_IDLE_SECONDS=${OPENCODE_GO_REVIEW_IDLE_SECONDS:-180}
|
|
80
|
+
OPENCODE_GO_REVIEW_ARTIFACT_ROOT=${OPENCODE_GO_REVIEW_ARTIFACT_ROOT:-"$(pwd)/.webpresso/reviews"}
|
|
81
|
+
PROBE_FILE=$(mktemp -t wp-opencode-go-probe.XXXXXX)
|
|
82
|
+
trap 'rm -f "$PROMPT_FILE" "$PROBE_FILE"' EXIT
|
|
83
|
+
printf 'Reply exactly OPENCODE_GO_OK.\n' >"$PROBE_FILE"
|
|
84
|
+
|
|
85
|
+
wp review run \
|
|
86
|
+
--provider opencode \
|
|
87
|
+
--prompt-file "$PROBE_FILE" \
|
|
88
|
+
--model "$MODEL" \
|
|
89
|
+
--effort "$OPENCODE_GO_REVIEW_EFFORT" \
|
|
90
|
+
--stage probe \
|
|
91
|
+
--expected-marker OPENCODE_GO_OK \
|
|
92
|
+
--artifact-root "$OPENCODE_GO_REVIEW_ARTIFACT_ROOT" \
|
|
93
|
+
--idle-seconds "$OPENCODE_GO_PROBE_IDLE_SECONDS"
|
|
94
|
+
|
|
95
|
+
wp review run \
|
|
96
|
+
--provider opencode \
|
|
97
|
+
--prompt-file "$PROMPT_FILE" \
|
|
98
|
+
--model "$MODEL" \
|
|
99
|
+
--effort "$OPENCODE_GO_REVIEW_EFFORT" \
|
|
100
|
+
--stage review \
|
|
101
|
+
--artifact-root "$OPENCODE_GO_REVIEW_ARTIFACT_ROOT" \
|
|
102
|
+
--idle-seconds "$OPENCODE_GO_REVIEW_IDLE_SECONDS"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
If `$MODEL` is empty, run `opencode models opencode-go` and choose a present reviewer.
|
|
106
|
+
Treat `true-idle`, `protocol-unsupported`, provider failure, abort, spawn failure, or artifact failure as unavailable review evidence. Never replace them with a static timeout, arbitrary byte-growth heartbeat, or buffered-output fallback.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-ceo-review
|
|
3
|
+
description: "CEO/founder plan review for scope, ambition, customer value, sequencing, and whether the plan is the right bet."
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# CEO plan review
|
|
8
|
+
|
|
9
|
+
Review the plan as a founder accountable for product leverage and customer value.
|
|
10
|
+
|
|
11
|
+
## Modes
|
|
12
|
+
|
|
13
|
+
Choose one mode explicitly:
|
|
14
|
+
|
|
15
|
+
- **Scope expansion:** the plan is too timid; propose a bigger wedge.
|
|
16
|
+
- **Selective expansion:** keep the core but add one or two high-leverage improvements.
|
|
17
|
+
- **Hold scope:** ambition is right; demand sharper execution and proof.
|
|
18
|
+
- **Scope reduction:** remove distracting work and ship the smallest valuable slice.
|
|
19
|
+
|
|
20
|
+
## Review checklist
|
|
21
|
+
|
|
22
|
+
1. Who urgently wants this outcome and why now?
|
|
23
|
+
2. What is the 10-star version, and what is the smallest credible slice of it?
|
|
24
|
+
3. What should be deleted because it does not advance the wedge?
|
|
25
|
+
4. What proof will convince us the work mattered?
|
|
26
|
+
|
|
27
|
+
Return a verdict, the recommended mode, and specific plan edits.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-design-review
|
|
3
|
+
description: "Designer plan review for UI/UX clarity, hierarchy, interaction quality, accessibility, and visual coherence."
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Design plan review
|
|
8
|
+
|
|
9
|
+
Review the plan as a product designer before code is written.
|
|
10
|
+
|
|
11
|
+
## Scorecard
|
|
12
|
+
|
|
13
|
+
Rate each dimension from 0-10 and explain what would make it a 10:
|
|
14
|
+
|
|
15
|
+
- User intent and primary task clarity
|
|
16
|
+
- Information hierarchy and content structure
|
|
17
|
+
- Interaction states and error recovery
|
|
18
|
+
- Accessibility and keyboard/screen-reader paths
|
|
19
|
+
- Visual coherence, spacing, and affordances
|
|
20
|
+
- Responsiveness and empty/loading states
|
|
21
|
+
|
|
22
|
+
## Output
|
|
23
|
+
|
|
24
|
+
- Overall score and verdict
|
|
25
|
+
- Top three design risks
|
|
26
|
+
- Minimal plan edits that improve the score
|
|
27
|
+
- Acceptance criteria for visual and accessibility verification
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-devex-review
|
|
3
|
+
description: "Developer-experience plan review for onboarding, docs, CLI/API ergonomics, migration risk, and time-to-hello-world."
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Developer-experience plan review
|
|
8
|
+
|
|
9
|
+
Use before implementing developer-facing features, setup flows, CLIs, docs, SDKs, or migrations.
|
|
10
|
+
|
|
11
|
+
## Review checklist
|
|
12
|
+
|
|
13
|
+
- Who is the developer and what are they trying to do?
|
|
14
|
+
- Is the first successful path obvious and short?
|
|
15
|
+
- Are errors actionable and copy-pastable?
|
|
16
|
+
- Does the plan preserve existing workflows and migration safety?
|
|
17
|
+
- What docs, examples, and smoke tests prove the experience?
|
|
18
|
+
|
|
19
|
+
Return DX score, blockers, simplifications, and acceptance tests.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-eng-review
|
|
3
|
+
description: "Engineering-manager plan review for architecture, data flow, sequencing, edge cases, tests, and rollout risk."
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Engineering plan review
|
|
8
|
+
|
|
9
|
+
Review the plan as an engineering manager who must make it safe to execute.
|
|
10
|
+
|
|
11
|
+
## Process
|
|
12
|
+
|
|
13
|
+
1. Identify the target outcome, non-goals, constraints, owners, and stop condition.
|
|
14
|
+
2. Map the implementation path: changed files, data flow, public interfaces, migrations, and backward-compatibility concerns.
|
|
15
|
+
3. List edge cases and failure modes by severity.
|
|
16
|
+
4. Check test shape: unit, integration, e2e, fixtures, regression coverage, and verification commands.
|
|
17
|
+
5. Recommend the smallest plan repair that materially reduces risk.
|
|
18
|
+
|
|
19
|
+
## Output
|
|
20
|
+
|
|
21
|
+
- **Verdict:** ready / ready with edits / not ready
|
|
22
|
+
- **Blocking issues:** concrete fixes required before coding
|
|
23
|
+
- **Recommended edits:** concise patch-level plan changes
|
|
24
|
+
- **Verification contract:** commands and evidence required before completion
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: skill
|
|
3
|
+
slug: plan-refine
|
|
4
|
+
title: Plan Refinement Methodology
|
|
5
|
+
status: active
|
|
6
|
+
scope: repo
|
|
7
|
+
applies_to: [agents]
|
|
8
|
+
related: []
|
|
9
|
+
created: "2026-05-07"
|
|
10
|
+
last_reviewed: "2026-07-03"
|
|
11
|
+
name: plan-refine
|
|
12
|
+
description: "Blueprint hardening: fact-check assumptions, run plan reviews, split parallel tasks, and lock verification."
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Plan Refinement Methodology
|
|
16
|
+
|
|
17
|
+
Use when a blueprint or implementation plan needs fact-checking, architecture hardening, parallel task shaping, or review consolidation before execution.
|
|
18
|
+
|
|
19
|
+
## Core principle
|
|
20
|
+
|
|
21
|
+
A plan is only as strong as its weakest unchecked assumption and only as fast as its coarsest task granularity.
|
|
22
|
+
|
|
23
|
+
## Required workflow
|
|
24
|
+
|
|
25
|
+
1. **Technology fact-check.** Verify API, version, runtime, platform, and package claims against official/upstream sources when external behavior matters.
|
|
26
|
+
2. **Codebase verification.** Confirm file paths, exports, existing patterns, dependency availability, and local command surfaces in the repo.
|
|
27
|
+
3. **Architecture review.** Challenge race conditions, error cascades, ownership boundaries, concurrency, auth/session edges, public-package leakage, and unnecessary abstractions.
|
|
28
|
+
4. **Plan-review lenses.** Folded `/autoplan`: run the relevant CEO/founder, design, engineering, and DevEx review lenses; consolidate keep/change/drop decisions, unresolved taste calls, tests, and go/no-go.
|
|
29
|
+
5. **Blueprint enforcement.** Split tasks for independent execution, declare dependencies, identify file conflicts, require TDD/proof steps, and preserve acceptance criteria.
|
|
30
|
+
6. **Apply and record.** Update edge cases, risks, technology choices, cross-plan references, and verification gates. Do not edit implementation code during plan refinement.
|
|
31
|
+
|
|
32
|
+
## Mandatory gates
|
|
33
|
+
|
|
34
|
+
- Apply DRY, SOLID, YAGNI, and KISS; reject speculative abstractions.
|
|
35
|
+
- For package, catalog, generated-surface, or release changes, require package-surface and public-content checks.
|
|
36
|
+
- Prefer deletion/reuse over new layers or dependencies.
|
|
37
|
+
- Stop on unverified external claims, unresolved shared-file conflicts, or missing authority for destructive work.
|
|
38
|
+
|
|
39
|
+
## Output
|
|
40
|
+
|
|
41
|
+
Return a concise plan review with:
|
|
42
|
+
|
|
43
|
+
- verdict: ready / ready with edits / blocked
|
|
44
|
+
- material corrections with evidence
|
|
45
|
+
- task/dependency changes needed for parallel execution
|
|
46
|
+
- required tests and audits
|
|
47
|
+
- residual risks or explicit blockers
|
|
48
|
+
|
|
49
|
+
For the full historical checklist and examples, read `references/full-methodology.md` only when deeper plan surgery is needed.
|