A small, opinionated set of OpenCode skills for shipping changes safely: test the right surface, show evidence, get approval, write clean commits and PRs, and keep diffs reviewable.
These skills are repo-agnostic. They read the host repository's own instructions and CI instead of hard-coding commands, so the same workflow works across projects.
| Skill | Trigger | What it does |
|---|---|---|
testing-before-push |
Before staging, committing, pushing or opening a PR | Chooses the right test for the change, runs the browse MCP flow for UI changes, collects evidence, enforces approval order, scans for secrets and reports what was not tested |
create-commits |
Staging changes or writing a commit message | Keeps staging scoped to the change and formats an imperative commit message |
create-pull-requests |
Opening a PR or writing its title and body | Applies the repo template, checks every checklist item and keeps the PR to summary plus verification |
code-quality |
Implementing or reviewing a change | Enforces existing conventions, small diffs, explicit errors, tests, boundary validation and self-review |
deep-project-research |
Researching a codebase or tracing a path | Keeps research read-only, starts from entry points, stops when the question is answerable and cites file paths |
testing-before-push is the gate. create-commits and create-pull-requests do not repeat its rules; they point to it. code-quality applies while you write the change. deep-project-research is for understanding the code before you change it.
research -> change -> test -> show evidence -> approval -> commit -> PR
Clone the repository and copy the skill folders into your OpenCode skills directory:
git clone https://github.com/tharinfernando/opencode-skills.git ~/src/opencode-skills
mkdir -p ~/.config/opencode/skills
cp -a ~/src/opencode-skills/*/ ~/.config/opencode/skills/Each destination folder must contain SKILL.md. Restart OpenCode or reload the window so the skills are discovered.
For a single project, copy the folders into .opencode/skills/ instead.
Skills are selected by their descriptions. Ask naturally:
- "Commit this" loads
create-commits, which first sends you throughtesting-before-push. - "Open a PR" loads
create-pull-requests, with the same test gate. - "Review this diff" loads
code-quality. - "Trace how authentication works" loads
deep-project-research.
- Identify the change surface.
- Run the tests that surface requires.
- Show the evidence.
- Ask for approval to stage and commit.
- Stage only the relevant files and commit.
- Open a PR only when it is requested and approved.
- The repo is the source of truth. Commands come from
AGENTS.md, CI config, package scripts, then docs. CI wins on conflict. - Never invent a command, URL, environment variable or deployment step.
- Approval is per action. A PR request does not approve a new commit.
- UI changes use the browse MCP. If it is unavailable, stop instead of switching browser tools.
- No em dashes (U+2014) in commits, PRs or skill files.
- An OpenCode build with skills support.
- The browse MCP for the browser-test workflow in
testing-before-push. - Git for the commit and PR workflows.
UI testing uses the browse MCP only. It drives your real browser through the browse extension and is required for the browser-test workflow in testing-before-push.
- Project: https://github.com/anomalyco/browse
- Install:
curl -fsSL https://opencode.ai/browse/install | bash - Or with Node.js:
npx @opencode/browse install - Browser extension: https://chromewebstore.google.com/detail/mfnicocicmmlkpjnaffgihfjhdgjkdjg
The installer adds the browse MCP server to your agent and pairs the browser extension. Verify it with browse status.
These skills explicitly do not use the Playwright MCP. Do not add it as a fallback.
.
├── code-quality/SKILL.md
├── create-commits/SKILL.md
├── create-pull-requests/SKILL.md
├── deep-project-research/SKILL.md
├── testing-before-push/SKILL.md
└── README.md
- Keep the description focused on when the skill should trigger.
- Put rules in the body.
- Reference the skill that owns a rule instead of duplicating it.
- Keep
nameequal to the folder name. - Check for U+2014 before committing.
There is no build step. Each skill is a single SKILL.md file.