An OpenCode workflow by encode90 that detects suggested skills, lets you choose them in natural language, and installs only what your current project needs.
The goal is simple: reduce setup time for the current OpenCode project without forcing you through manual installs and repeated prompts.
Run one command, review the detected stack, and keep only the skills that make sense for the current repo.
Choose by directory name or by list number. You can answer things like “keep 1, 3, 4” or “all except 2”.
Detection and installation happen in one guided flow so you spend less time searching, copying commands, and cleaning unwanted skills later.
The custom OpenCode tool runs detection and installation for real instead of returning a prompt-only suggestion.
Stay inside OpenCode: detect, review, choose, and install without leaving the current workflow.
Reply with natural language or with list numbers. The flow supports exact names and phrases like “all except 2”.
Setup once globally, or keep it scoped with --local for a single repository.
No postinstall scripts. Minimal runtime surface. Path traversal prevention in setup.
Windows, macOS, and Linux. CI-tested on all three with GitHub Actions.
One-time setup. Then use /autoskills and answer with names or list numbers.
$ npx opencode-autoskills setup
$ npx opencode-autoskills setup --local
/autoskills # Or just tell the agent: > install skills for this project # After detection, answer like: > keep 1, 3, 4 > keep vitest, accessibility > all except 2
→ OpenCode invokes the autoskills tool → The tool runs real dry-run detection → You answer with names or numbers → The tool installs and filters the final set → Installed to .agents/skills/ → OpenCode discovers them automatically
Environment variables and requirements.
| Variable / Setting | Description |
|---|---|
| Node.js | Required >= 22.6.0 |
| @opencode-ai/plugin | Peer dependency >= 1.0.0 (provided by OpenCode) |
| global | Default setup mode. Writes the command file globally and registers the npm plugin in OpenCode config. |
| --local | Setup flag. Creates .opencode/commands/ and a local plugin wrapper for the current project |
| opencode.json | Global setup adds opencode-autoskills to the OpenCode plugin array so the custom tool is available |
| .agents/skills/ | Skills install path (autoskills default, OpenCode compatible) |
| GITHUB_TOKEN | Optional. Passed through to autoskills for increased API rate limits |