Skip to content

docs(core): fix V1 docs URL in opencode skill - #65130

Open
ithinkihaveacat wants to merge 1 commit into
anomalyco:devfrom
ithinkihaveacat:docs/fix-opencode-skill-v1-url
Open

ithinkihaveacat wants to merge 1 commit into
anomalyco:devfrom
ithinkihaveacat:docs/fix-opencode-skill-v1-url

Conversation

@ithinkihaveacat

Copy link
Copy Markdown

Issue for this PR

No issue.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fixes a self-contradiction in the built-in opencode skill (packages/core/src/plugin/skill/opencode.md), where ## Version policy currently says:

Use only <https://opencode.ai/docs/> documentation as the source of truth for V2.
Do not use <https://opencode.ai/docs/>, which documents V1, ...

Commit 1a5b7239be (#62389) replaced /v2/docs/ with /docs/ across the repo, which made both sentences point to the same URL. (FYI @adamdotdevin.) This actually causes a (small) problem in practice: sessions loading skill://opencode hit the contradiction during live sessions and have to work around it (either ignoring the prohibition after checking the live site, or skipping the docs altogether and falling back to opencode --help and local state inspection).

This updates the V1 prohibition to <https://opencode.ai/v1/docs/>, matching v1Docs.base in services/site/src/docs/config.ts.

How did you verify your code works?

Checked services/site/src/docs/config.ts on dev (latestDocs.base is /docs/ and v1Docs.base is /v1/docs/) and verified git diff touches only that single URL in packages/core/src/plugin/skill/opencode.md.

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Commit 1a5b723 (anomalyco#62389) replaced /v2/docs/ with /docs/ across the
repo, leaving packages/core/src/plugin/skill/opencode.md both requiring
and forbidding <https://opencode.ai/docs/>.

Point the V1 prohibition at <https://opencode.ai/v1/docs/>, matching
v1Docs.base in services/site/src/docs/config.ts.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good. It fixes the contradiction in the skill's version policy: since #62389 the V2 docs and the forbidden V1 docs both pointed at https://opencode.ai/docs/. The new https://opencode.ai/v1/docs/ matches v1Docs.base in services/site/src/docs/config.ts, and the site's worker checks expect /v1/docs/ pages to return a 200. I checked this by reading the code, since there is nothing to run for a skill-text change. The public API is unchanged. I have no concerns.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant