Creating Local Skills
Agent Buildingcreating-local-skillsCreating Local Skills is an Agent Skill for agent building published in the haojing8312/WorkClaw repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when designing or iterating WorkClaw local skill templates and dialog-based creation flow for end users.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/haojing8312/WorkClaw/blob/HEAD/apps/runtime/src-tauri/builtin-skills/skill-creator-guide/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/creating-local-skills, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Creating Local Skills
Overview
This built-in guide defines how WorkClaw generates local skills in a stable, maintainable way. Use it as the single source of truth for skill scaffold structure and quality checks.
Core Principles
- Keep SKILL.md concise; include only task-relevant instructions.
- Description must be specific and discovery-friendly, including "Use when ..." trigger conditions.
- Use progressive disclosure: keep overview in SKILL.md and link extra files only when needed.
- Prefer one recommended workflow instead of many equivalent options.
- Ensure output can be verified with explicit quality checks.
- Treat trigger quality as a first-class concern: generated skills should reduce both false positives and false negatives.
- Keep default frontmatter minimal, but allow optional advanced fields such as
allowed_tools,context,agent, andmcp-serverswhen the skill needs tighter runtime constraints.
Template Source
- Primary scaffold template: templates/LOCAL_SKILL_TEMPLATE.md
- If creation flow changes, update this guide and the template together.
Creation Quality Checklist
- Frontmatter includes only
nameanddescription. - Description is in third person and contains concrete trigger context.
- Body includes
Overview,When to Use,When Not to Use,Workflow,Prompt Examples, andQuality Checklist. - Generated paths use forward slashes in examples and references.
- Default scaffold stays under a lightweight token budget.
- Prompt examples cover both should-trigger and should-not-trigger cases.
- Guide and template leave room for optional advanced frontmatter when needed.
Iteration Loop
- Observe real user-created skills and identify weak sections.
- Update template with minimal targeted changes.
- Validate generated output readability, trigger quality, and prompt examples.
- Look for
误触发and漏触发, then tighten the description or examples instead of adding verbose instructions. - Keep this guide aligned with the latest template behavior.