8 Commits
Author SHA1 Message Date
Fernando Alberto Alvarez 8742115efe Skip a skill the host rejects instead of disabling the whole plugin 2026-10-27 19:33:14 -04:00
Wayner Barrios fccd8763a8 Update the skills for OpenCode 2 and keep OpenCode 1 support 2026-10-19 01:48:34 -04:00
Yefta Sutanto 4dfff60ff5 refactor(opencode): simplify the dual-host plugin and stop sharing agent state
- Drop the @opencode/plugin dependency: Plugin.define is an identity
  function, and both hosts load a plain { id, setup, server } object.
  This removes ~3,700 lockfile lines from every OpenCode 1 and 2 install.
- Remove the OpencodePowerPack named export. OpenCode 1.18.7+ uses the
  default export's server() and never scans named exports when it exists.
- Derive the OpenCode 2 rulesets from the OpenCode 1 permission maps so
  the read-only policy has a single source, and parse SKILL.md once.
- Build fresh agent definitions per hook call. OpenCode 2 appends global
  rules to agent permissions in place, and the shared module array leaked
  those rules between code-explorer and code-architect.
- Un-export eval runner helpers that nothing imports.
2026-09-24 10:39:25 +10:00
Yefta Sutanto 422d54c592 feat(opencode): adapt the plugin to OpenCode 1 and 2 from one entrypoint
OpenCode 1 calls the default export's server() hook while OpenCode 2
calls setup(), so a single module can support both:

- Keep the original config hook (config.skills.paths and config.agent)
  and expose it through server() plus the legacy OpencodePowerPack named
  export for releases that only discover named exports.
- Keep the V2 skill and agent transforms for OpenCode 2 unchanged.
- Build both the V1 permission maps and the V2 ordered rulesets from the
  same SKILL.md frontmatter.
- Extend the smoke test to verify both hosts: the OpenCode 1 path asserts
  skill-derived commands and agent permissions from the REST API, and the
  OpenCode 2 path keeps the verifier plugin.
- Run the smoke matrix on 1.18.7 and 2.0.14, and advertise >=1.18.7.
2026-09-23 20:00:00 +10:00
Yefta Sutanto 3b04f7381d feat(opencode): port the plugin and behavioral evals to the OpenCode 2 plugin API
The OpenCode 2 plugin API replaces the V1 config hook, so the shipped
plugin no longer loads on 2.x. Port every OpenCode surface in one change:

- Register all bundled skills and the three specialist subagents through
  ctx.skill.transform and ctx.agent.transform, with ordered V2 permission
  rulesets and frontmatter-stripped skill content.
- Move the shared definitions helper to .opencode/lib so the plugin
  loader does not discover it as a plugin entrypoint.
- Rewrite the behavioral eval runner around opencode serve, the V2
  session API, and skill attachments; keep the grading, redaction, and
  snapshot evidence model unchanged.
- Port the smoke test to @opencode/cli 2.0.14 and verify registration
  through a companion plugin, and update CI to install dependencies.
- Require OpenCode >= 2.0.0 and depend on @opencode/plugin ^2.0.14.
2026-09-23 18:20:17 +10:00
Wayner Barrios 6e83761707 Register read-only workflow agents 2026-07-27 14:32:04 -04:00
Wayner Barrios ce12c2777c Align licensing documentation 2026-07-27 13:25:30 -04:00
Wayner Barrios b98c1f54e2 Initial release v0.1.0
opencode-power-pack bundles eleven Claude Code skills as an OpenCode plugin
under one config line, with each skill also exposed as a slash command.

Skills (by category):

  Review
    code-review        multi-agent PR review with cross-check pass and
                       concrete reproduction scenarios
    security-review    OWASP-bucketed three-stage filtering with mandatory
                       PoC per finding

  Feature dev
    feature-dev        seven-phase guided workflow
    code-explorer      deep codebase analysis sub-task
    code-architect     decisive architecture blueprint sub-task
    code-reviewer      two-pass adversarial review sub-task

  Design
    frontend-design    distinctive, production-grade UI generation

  Authoring
    mcp-builder        build high-quality MCP servers (Python or TypeScript)
    skill-creator      author new SKILL.md files

  Project memory
    agents-md-improver audit and update AGENTS.md / CLAUDE.md
    agents-md-revise   capture session learnings into the rules file

Architecture:
  - .opencode/plugins/opencode-power-pack.js auto-registers skills/ via
    config.skills.paths.push() (live config singleton modification, pattern
    adapted from obra/superpowers).
  - skills/<name>/SKILL.md hold the workflows the model executes.
  - commands/<name>.md ship physical slash command files that inline the
    full SKILL.md content, so the model receives the actual workflow as
    its prompt rather than a meta-instruction. Symlinked into
    ~/.config/opencode/commands/ during install.

Almost all skill content is ported or translated from upstream Anthropic
projects (claude-code/plugins, skills, claude-code-security-review,
claude-plugins-official). The plugin loader pattern is adapted from
obra/superpowers. See README.md -> Acknowledgments for per-skill
attribution; each SKILL.md frontmatter also carries a license field
naming its specific upstream.
2026-04-26 21:16:17 -04:00