Files
mattpocock-skills-opencode/TODO.md
T
2026-10-14 12:34:57 +02:00

67 lines
3.8 KiB
Markdown

# TODO
Persistent task list. Check off + note outcome; move done items to the bottom log with date.
State: `.opencode/state/status.md`. Design: `docs/architecture.md`.
## Phase 0 — analysis
- [x] Inspect repo, fastcrw reference, pocock-agents, upstream skills, OpenCode v2 plugin + agent docs
- [x] Architecture (docs/architecture.md §1)
- [x] Plugin API requirements (§3)
- [x] Agent architecture (§4)
- [x] Sync strategy (§5)
- [x] Gitea Actions design (§6)
- [x] Testing strategy (§7)
- [x] Phased plan (§9)
- [x] Skill inventory + classification matrix → docs/skill-mapping.md +
.opencode/state/classification.json (38 skills analyzed from SKILL.md sources)
- [x] Commit phase-0 docs
## Phase 1 — plugin package
- [x] 1.1 scaffold package (`@haylan/opencode-pocock` confirmed by owner 2026-10-14)
- [x] 1.2 scripts/sync-upstream.ts + vendor upstream/ @49dd158 + state update
- [x] 1.3 scripts/generate.ts: manifest.json + skills/ output + unit tests (parser, manifest)
- [x] 1.4 src/index.ts plugin: skill injection (frontmatter-stripped content), options validation,
agent-staleness warning + fake-ctx integration tests (Skill.Info verified: cast needed for
effect-branded fields; runtime PASS)
- [x] 1.5 bin init (copy agents, -g global, no silent overwrite, .pocock-version stamp) + tests
- [x] 1.6 agents/: pocock + pocock-worker + pocock-reviewer, V2-native frontmatter; drift tests
(upstream names, worker skill allow-list, reviewer read-only, no subagent recursion)
- [x] 1.7 scripts/release.ts + version.ts adapted from fastcrw + unit tests
- [x] 1.8 .gitea/workflows/: check.yml, nightly.yml, smoke.yml (dispatch); scripts/smoke.ts —
PASS on v2.0.29 (plugin active, 31 skills, 16 hidden, agents + permissions decoded)
- [x] 1.9 local runtime verification → docs/runtime-checks.md (findings folded into README/AGENTS)
- [ ] 1.10 manual release 0.1.0 to Gitea registry; verify install-from-registry by package name
- [ ] ask repo admin to add Gitea secret PACKAGE_TOKEN (write:package + write:repository)
## Phase 2 — conversion
- [x] 2.1 deep per-skill analysis → .opencode/state/classification.json + docs/skill-mapping.md
(done in phase 0; generator must regenerate mapping doc from classification.json — keep in 1.3 scope)
- [ ] 2.2 guardrails plugin hook (opt-in, tool.hook execute.before on shell) + tests
- [ ] 2.3 pocock-reviewer: CONFIRMED by analysis (D8) — implement template + skill-permission scoping
- [ ] 2.4 orchestrator V2 flow wiring (background-subagent status in V2? batch fallback; worktree
permission guidance; slash UX for user-invoked skills)
- [ ] 2.5 per-skill regression checks + manual orchestration smoke (token-spending, documented)
- [ ] 2.6 README usage guide + finalize skill-mapping
- [ ] 2.7 one week of green nightlies → declare stable
## Open questions
- ~~Exact `Skill.Info`/editor.add field set~~ RESOLVED 2026-10-14 (`@opencode/plugin@2.0.29`):
`{id, name, description?, autoinvoke?, path, content}`; no `slash` in Info.
- V2 background subagents: still env-gated? Affects orchestrator dispatch loop wording only
(agent text covers both modes) — low priority, observe at 2.5.
- ~~Slash exposure for injected skills~~ RESOLVED: none (runtime check 2026-10-14); README
documents file-based alternatives.
- Package name/scope: CONFIRMED `@haylan/opencode-pocock` (owner, 2026-10-14).
- Does nightly runner have network access to github.com for upstream fetch? (1.8 — fallback: mirror
upstream to Gitea and sync from the mirror.) Verify on first nightly run.
- Install-from-registry by package name (npm-name plugin entry resolving through `exports`) —
verify at 1.10; local dir entry verified.
## Done log
- 2026-10-14: phase-0 analysis docs written (AGENTS.md, state/, docs/architecture.md, TODO.md).