loerei/myskills/write-a-skill
Claude Code and agent skill by loerei/myskills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when asked to create, write, or build a new skill.
Install
npx vskill@latest install loerei/myskills/write-a-skillSKILL.md
The same SKILL.md was published earlier as loerei/myskills/write-a-skill.
Write a Skill
Create and distribute agent skills across workspaces.
Directives
- Prerequisite: MUST read write-for-ai/SKILL.md before drafting or editing any skill (rules on Occam compression, non-lossy invariants, Drop Test, and portable wording live there).
- Description / Trigger Gate: Frontmatter
descriptionMUST use formatUse when [specific triggers].in 10-15 words. NEVER summarize internal features (What), explain benefits (Why), or include slash commands. - Mindset Over Micro-Format: Directives MUST define thinking principles and decision criteria rather than rigid output layouts that get replayed verbatim.
- Match Structure to Job: Pick the lightest structure that fits the skill instead of forcing a uniform multi-section template. NEVER invent section headers for 1-2 sentences or inject unrelated meta-commands (such as
agents distribute) into domain skills. - Progressive Disclosure: Keep
SKILL.mdunder 100 lines. Extract heavy tables, branch-bound checklists, and reference guides to subdocs (REFERENCE.md,<DOMAIN>.md) per HEURISTICS.md and REFERENCE.md. - Context-Independent Portability: Instructions MUST stand on first principles. NEVER leak local repository paths, dataset names, or project jargon into shared skills.
Skill Shapes (Frontmatter + Shape by Role)
All skills require valid YAML frontmatter (name, description, optional disable-model-invocation: true per REFERENCE.md). Choose the body format by execution complexity:
| Skill Role | Recommended Body Shape | |
|---|---|---|
| Micro-habit / constraint | Frontmatter + 2-6 direct lines (+ optional minimal snippet/template). No ## Directives / ## Workflow boilerplate. | |
| Workflow / orchestrator | Frontmatter + core invariants (MUST/NEVER), sequential steps or Mermaid state machine, and explicit completion/recovery gates. | |
| Audit / reviewer / tool guide | Scope isolation, conditional subdoc routing (When to Load), concrete defect contrasts (BAD/GOOD) or 4-part tool doc, and exact verdict/output schema. |
Workflow
- Identify domain scope, target category, skill shape, and tool integrations; read write-for-ai/SKILL.md.
- Draft
SKILL.mdusing the lightest matching shape and evaluate subdoc extraction per HEURISTICS.md. - Review draft with user and incorporate feedback.
- Write files under
<category>/<skill-name>/, runagents auditto validate frontmatter/duplicates/policies, then runagents distributeto sync workspaces and IDEs.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingproductivity/write-a-skill/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/loerei/myskills/write-a-skill)