Edit and release skills
Goal
Change reusable skills at their canonical source, validate the complete catalog, and publish the change through gated Gitflow-style pull requests.
Workflow
Locate the canonical skills repository and read its
AGENTS.md. Edit the repository source first. Never make a durable edit in an installed OpenCode, Claude, Codex, or other client copy.Keep each skill under
skills/<name>/SKILL.md; update the canonical flake catalog, README catalog, and CI export/package checks when adding a skill.Run the complete validator before committing:
bash scripts/validate-skills git diff --checkReview
git status,git diff, and recent history. Create a fresh Gitflow-style branch namedfeature/<short-name>, stage only the intended skill and catalog changes, and commit them.Push the feature branch and open a pull request with
gh. Record the PR number and URL; do not push directly to the default branch.Wait for every required check:
gh pr checks <number> --watchDo not merge while checks are pending, failing, or stale. Fix failures on the same feature branch and rerun the complete validator.
Merge only after all required checks are green, then delete the remote feature branch.
Rules
- Treat
skills/<name>/SKILL.mdas the one durable source for each skill. - Use
skill-portabilityto remove usernames, hosts, absolute paths, private services, and undeclared machine-specific assumptions before release. - Validate every skill, not only the package being edited.
- Do not create or maintain an OpenCode-specific customization skill as a parallel source; client deployment is an adapter of the canonical package.
- Never commit credentials, tokens, generated caches, or unrelated work.
- Never merge red, pending, or stale CI.