Repository navigation
[Fix #31] feat(upgrade): one-shot v1->v2 upgrade via bundled skill + command - #41
Merged
Merged
Conversation
added 3 commits
October 7, 2026 00:56
…issue #31) Bundle skills/opencode-v2-upgrade/SKILL.md and commands/upgrade-opencode-v2.md, load them via new SkillLoader/CommandLoader, and register both from the plugin through ctx.skill.transform and ctx.command.transform. The command re-submits its template through ctx.session.prompt with the skill attached. Harness now audits skill and command registration; loader, fact-gate, and fixture-coverage tests added.
…ssue #31) README, AGENTS.md, CONTEXT.md glossary, the architect routing/reference notes, and an oneshot (Example 10) cover the one-shot upgrade flow and its safety contract.
…2 fixture, self-contained skill (issue #31) - Extract FrontmatterParser shared by the agent, skill, and command loaders (removes duplicated parse logic).\n- Registration effect reads as one Effect.gen sequence.\n- Drop the inert agent binding from the upgrade command frontmatter.\n- Make the skill's facts-record contract self-contained (no dependence on an unshipped docs file).\n- Add a golden v2 fixture (upgraded config/plugin/agent/skill + report) with tests proving the upgrade output validates against the pinned schema and carries no v1 remnant.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skills/opencode-v2-upgrade/SKILL.mdandcommands/upgrade-opencode-v2.md, loaded via newSkillLoader/CommandLoaderand registered from the plugin throughctx.skill.transformandctx.command.transform./upgrade-opencode-v2re-submits its template throughctx.session.promptwith the skill attached, giving a one-shot v1->v2 upgrade flow.FrontmatterParserused by the agent, skill, and command loaders (removes duplicated parse logic); registration reads as a singleEffect.gensequence.Why
Testing
tests/fixtures/v2-extension-package/) with tests proving the upgraded config/plugin/agent/skill and report validate against the pinned schema and leave no v1 remnants.tests/bundled-content.test.ts,tests/load-hook.test.ts,tests/v2-host.test.ts).