Skip to content

docs(opencode): clarify skill installation and AGENTS.md scope - #516

Merged
addyosmani merged 1 commit into
addyosmani:mainfrom
alexmarco:bugfix/opencode-setup-agentsmd-scope
Aug 27, 2026
Merged

addyosmani merged 1 commit into
addyosmani:mainfrom
alexmarco:bugfix/opencode-setup-agentsmd-scope

Conversation

@alexmarco

@alexmarco alexmarco commented Aug 25, 2026 •

Copy link
Copy Markdown

Summary

Fixes the contradiction between the root AGENTS.md scope warning and the OpenCode setup guide, which currently tells users to keep AGENTS.md (root) in their workspace.

The root AGENTS.md states it is repo-scoped and should not be copied into other projects. CONTRIBUTING.md also warns setup-guide authors not to instruct users to copy AGENTS.md. However, docs/opencode-setup.md still says:

Ensure the following files are present in your workspace: AGENTS.md (root), skills/ directory

This PR rewrites the setup guide to:

  1. Document the fastest install path: npx skills add addyosmani/agent-skills.
  2. Document the manual path: clone this repository and copy skill directories into .opencode/skills/ (project), ~/.config/opencode/skills/ (global), or cross-compatible paths such as .claude/skills/ / .agents/skills/.
  3. Provide a project-local AGENTS.md template that users paste into their own repositories.
  4. Keep the existing intent mapping and lifecycle guidance, made clear it is enforced by the user's own AGENTS.md.
  5. Add instructions for copying/creating optional .opencode/commands/*.md slash commands.
  6. Update the README OpenCode summary to describe the new installation model.

Related issues / PRs

Files changed

  • docs/opencode-setup.md — rewritten
  • README.md — updated OpenCode summary

Rewrite docs/opencode-setup.md so it no longer instructs users to copy
the repo-scoped root AGENTS.md. Instead, document how to install skills
into .opencode/skills/ (project), ~/.config/opencode/skills/ (global),
and cross-compatible Claude/agent paths. Provide a project-local
AGENTS.md template and keep the intent mapping and lifecycle guidance.

Update the README summary to match the new installation model.

Refs addyosmani#99
Refs addyosmani#119

@addyosmani addyosmani left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Approving. This fixes the repo-scoped skills issue you reported in #515, and since you hit the bug and wrote the fix I'm trusting your OpenCode testing on the behavior claims. Reads clearly.

@addyosmani
addyosmani merged commit 9f2db93 into addyosmani:main Aug 27, 2026
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.

OpenCode setup docs instruct users to treat repo-scoped AGENTS.md as a reusable asset

3 participants