Skip to content

feat(skill): enable customize-opencode by default, link full schema#26899

Merged
kitlangton merged 3 commits into
devfrom
worktree-customize-skill-config-link
May 11, 2026
Merged

feat(skill): enable customize-opencode by default, link full schema#26899
kitlangton merged 3 commits into
devfrom
worktree-customize-skill-config-link

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

Follow-up to #26617.

  • Enable for everyone. Flips OPENCODE_EXPERIMENTAL_CUSTOMIZE_SKILL on for every install channel. Set the env var to false to opt out. The skill has been on by default for dev/beta/local since it landed — this just removes the channel gating. Dropped the unused unstableDefault/UNSTABLE_CHANNELS helper.
  • Point at the full schema. Added a short ## Full schema reference section at the top of customize-opencode.md so the model knows to fetch https://opencode.ai/config.json for any field the skill body does not cover, rather than guessing. The schema URL was already mentioned, but lower in the body and easy to miss; this surfaces it as the authoritative reference for fields the skill summary omits.

Test plan

  • bun run typecheck in packages/opencode and packages/core
  • bun run test test/skill in packages/opencode — 18/18 pass
  • Manually confirm the skill loads on a stable-channel build with no env var set
  • Manually confirm OPENCODE_EXPERIMENTAL_CUSTOMIZE_SKILL=false still disables it

Flips OPENCODE_EXPERIMENTAL_CUSTOMIZE_SKILL on for every channel; set
the env var to false to opt out. The unstable-channel default helper
had no other users, so it goes away.

Adds a 'Full schema reference' section at the top of the skill so the
model knows to fetch https://opencode.ai/config.json for any field the
skill body does not cover, instead of guessing.
Config is loaded once at startup and is not hot-reloaded, but the
skill never said so. Add an 'Applying changes' section so the model
will tell the user to quit and restart opencode after editing config,
agents, skills, or plugins. Mirror that as a final bullet in 'When
proposing edits'.

While reviewing the file, fix a few smaller issues:
- HTML comment referenced SKILL_NAME / SKILL_DESCRIPTION; the actual
  constants are CUSTOMIZE_OPENCODE_SKILL_NAME and
  CUSTOMIZE_OPENCODE_SKILL_DESCRIPTION.
- Replace ambiguous 'or the field is not covered above' with
  'in this skill' (the schema reference is at the top, not above the
  bullet).
- Reword '$schema' paragraph from 'also' (mid-topic-shift) to
  'Independently' for cleaner flow.
- Tighten 'Full schema reference' intro with em-dashes.
@kitlangton kitlangton force-pushed the worktree-customize-skill-config-link branch from 297bc2d to bb769ba Compare May 11, 2026 15:57
Always register the built-in customize-opencode skill. The previous
commit flipped the default on for every channel; this removes the
opt-out env var entirely. Users with a local skill of the same name
still override the built-in via the existing 'register before disk
discovery' ordering.

Tests filter '<built-in>' out of skill.all() results so disk-discovery
assertions remain exact.
@kitlangton kitlangton merged commit df386bd into dev May 11, 2026
9 checks passed
@kitlangton kitlangton deleted the worktree-customize-skill-config-link branch May 11, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant