writing-skills
Writing Skills
Overview
A skill exists to produce repeatable behavior in repeatable situations.
In this repository, skill sources live at:
packages/opencode-warcraft/skills/<skill-id>/SKILL.md
Generated registry target:
packages/opencode-warcraft/src/skills/registry.generated.ts
Authoring Rules
-
Use valid frontmatter:
name: kebab-case skill iddescription: starts withUse when ...and describes trigger conditions only
-
Keep content actionable:
- clear trigger conditions
- deterministic process/checklist
- red flags and common mistakes
-
Align with Warcraft behavior:
- prefer
warcraft_*tools for workflow operations - keep instructions compatible with this repo's plan-first guardrails
- prefer
Upgrading from Upstream Superpowers
When refreshing skills from obra/superpowers:
- Compare upstream skill directories with local
skills/. - Sync overlapping skill content where it improves guidance.
- Preserve Warcraft-specific behavior in workflow skills (for example:
warcraft_*tool usage, runnable-task logic, worktree lifecycle). - Keep project-only skills intact (
warcraft,parallel-exploration,agents-md-mastery, etc.). - Re-run generation and tests before handoff.
Rule of thumb: upstream provides process quality; local overrides provide project fit.
Validation Workflow
After adding/updating skills:
- Regenerate registry:
bun run --filter opencode-warcraft generate-skills
- Run targeted tests:
bun test src/skills
If tests fail, fix skill content or metadata and regenerate.
Red Flags
Never:
- Add vague descriptions that do not signal clear trigger conditions
- Copy upstream instructions that reference unavailable tools/workflows
- Edit
registry.generated.tsmanually
Always:
- Keep skill names unique
- Regenerate registry after skill edits
- Verify through tests before handoff
More from minhtri2710/opencode-warcraft
br
>-
1writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
1code-reviewer
Use when reviewing implementation changes against an approved plan or task (especially before merging or between Warcraft tasks) to catch missing requirements, YAGNI, dead code, and risky patterns
1executing-plans
Use when you have a written implementation plan to execute in a separate session with review checkpoints
1using-git-worktrees
Use when starting implementation work that requires Warcraft-managed task workspaces and reproducible task execution.
1agents-md-mastery
Use when bootstrapping, updating, or reviewing AGENTS.md — teaches what makes effective agent memory, how to structure sections, signal vs noise filtering, and when to prune stale entries
1