| name | skill |
| category | utility |
| status | active |
| description | Manage local WorkBuddy skills - list, add, remove, search, edit, info, sync, setup. Use for skill authoring and inventory. |
| agent_created | true |
| triggers | ["skill list","create a skill","add skill","remove skill","search skills","skill management"] |
Ported from oh-my-codex skill. OMX runtime conventions ($macro invocation, omx CLI, .omx/ state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list, .workbuddy/memory).
Skill Management
Meta-skill for managing WorkBuddy skills via CLI-like subcommands. WorkBuddy skills are just directories containing a SKILL.md with YAML frontmatter.
Two scopes:
- user —
~/.workbuddy/skills/<name>/SKILL.md (available across all projects)
- project —
.workbuddy/skills/<name>/SKILL.md (committed with the repo, team-shared)
Subcommands
/skill list
Show all local skills organized by scope.
- Scan
~/.workbuddy/skills/ and .workbuddy/skills/ with Glob (**/SKILL.md).
- For each file, read the frontmatter (
name, description, triggers).
- Display an organized table (Name | Triggers | Description | Scope).
- If metadata is missing, show "N/A".
/skill add [name]
Interactive wizard for creating a new skill.
- Ask for the skill name if not provided — validate: lowercase, hyphens only, no spaces.
- Ask for a one-line
description.
- Ask for
triggers (comma-separated keywords).
- Ask for scope:
user or project.
- Create the file with this template:
---
name: <name>
description: <one sentence: what it does + when to use + trigger keywords>
agent_created: true
triggers: ["<trigger1>", "<trigger2>"]
---
[Describe what this skill does]
[Describe triggers and conditions]
1. [Step 1]
2. [Step 2]
[Usage examples]
- Report success with the file path.
- Suggest: "Edit with
/skill edit <name> to customize content."
/skill remove
Remove a skill by name.
- Search both scopes for
<name>/SKILL.md.
- If found, show its info and ask for confirmation ("Delete ''? (yes/no)") via the AskUserQuestion tool or chat.
- If confirmed, delete the whole skill directory.
- If not found, report: "Skill '' not found in user or project scope."
Safety: never delete without explicit confirmation.
/skill edit
Edit an existing skill interactively.
- Find the skill by name (search both scopes).
- Read current content with the Read tool.
- Show current values (description, triggers, content).
- Ask what to change:
description | triggers | content | rename | cancel.
- For the selected field, show current value, ask for new value, update via Edit/Write.
- Report a summary of changes.
/skill search
Search skills by name, description, triggers, or full content (case-insensitive).
- Use
Grep with the query across both skill directories.
- Rank name/trigger matches above content matches.
- Show each match with context (where the query matched).
/skill info
Show detailed info about one skill: scope, description, triggers, file path, and full content (read the file).
/skill sync
Compare user and project scopes and report sync opportunities (user-only, project-only, common). For any desired copy, ask for confirmation before moving files between scopes. Never overwrite without confirmation.
/skill setup
Guided wizard.
- Ensure both skill directories exist (create with
Bash mkdir -p if missing).
- Run the
/skill list scan and show the inventory.
- Offer a quick-actions menu via AskUserQuestion:
- Add new skill → invoke
/skill add
- List skills → invoke
/skill list
- Scan conversation for skill-worthy patterns → look for non-obvious debugging solutions, codebase-specific workarounds, repeated error patterns; offer to extract one as a skill
- Import skill → accept a URL or pasted markdown, ask for scope, validate and save
- Done
/skill scan
Quick scan of both skill directories (subset of /skill setup without the wizard).
Skill Templates
When creating a skill, you may reuse these proven shapes (express frontmatter in WorkBuddy format — name, description, agent_created: true, triggers):
- Error Solution — The Insight / Why It Matters / Recognition Pattern / The Approach (step-by-step with file:line refs) / Example.
- Workflow — Insight / Why It Matters / Recognition Pattern / Approach / Gotchas.
- Code Pattern — Principle / Recognition / Approach (heuristic, not just code) / Example / Anti-Pattern.
- Integration — Insight / Recognition / Approach (config + setup + verification) / Gotchas.
Skill Quality Guidelines
Good skills are: Non-Googleable (codebase-specific), Context-Specific (real files/errors), Actionable with Precision (exact what + where), and Hard-Won (required real debugging effort).
Error Handling
Every command must handle: missing directory, permission errors, malformed YAML, duplicate names, invalid names (spaces/special chars). Report clearly:
✗ Error: <clear message>
→ Suggestion: <helpful next step>
Notes
- Use Read/Edit/Write tools for file operations; use Glob/Grep for discovery.
- Always confirm destructive operations (remove, overwrite on sync).
- Validate naming (lowercase, hyphens only) on
add/edit.