agentleFS
chinkanchinkan/RustFox/skills/creating-skills/SKILL.md

creating-skills

Skill9 starsChanged 2 months agoMITView on GitHub

Use when the user asks to create, add, or write a new bot skill, or wants to teach the bot a new behavior, capability, or workflow.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use building-chatgpt-apps, building-chat-interfaces and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mjunaidcaSkill

    building-chatgpt-apps

    Guides creation of ChatGPT Apps with interactive widgets using OpenAI Apps SDK and MCP servers. Use when building ChatGPT custom apps with visual UI components, embedded widgets, or rich interactive experiences. Covers widget architecture, MCP server setup with FastMCP, response metadata, and Developer Mode configuration. NOT when building standard MCP servers without widgets (use building-mcp-servers skill instead).

    Also in 4 projects that use this

  • mjunaidcaSkill

    building-chat-interfaces

    Build AI chat interfaces with custom backends, authentication, and context injection. Use when integrating chat UI with AI agents, adding auth to chat, injecting user/page context, or implementing httpOnly cookie proxies. Covers ChatKitServer, useChatKit, and MCP auth patterns. NOT when building simple chatbots without persistence or custom agent integration.

    Also in 4 projects that use this

  • +10 more from mjunaidca

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask the user (one question at a time if unclear):

    line 15
  2. Very specific:

    Trigger: When should this activate?

    line 17
  3. Distinctive:

    Every line earns its token cost — cut ruthlessly

    line 46
  4. Distinctive:

    Every sentence must directly enable action — delete explanatory prose

    line 83
  5. Distinctive:

    Prefer bullet lists over paragraphs

    line 84
  6. Distinctive:

    Use imperative mood throughout ("Call X", "Write Y", not "You should call X")

    line 85
  7. Distinctive:

    No meta-commentary ("This skill helps you..."), no caveats

    line 86
  8. Very specific:

    Before calling write_skill_file, verify:

    line 90
  9. Distinctive:

    If any item fails — revise before writing.

    line 101
  10. Very specific:

    Call write_skill_file once per file.

    line 105
  11. Very specific:

    Call reload_skills after all files are written.

    line 114

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Creating Skills

Writes high-performance, token-efficient skill directories in skills/ and activates them immediately without restarting the bot.

Process

1. Gather Requirements

Ask the user (one question at a time if unclear):

  • Name: Slug — lowercase, numbers, hyphens only, e.g. processing-reports
  • Trigger: When should this activate? (→ becomes the description field)
  • Behavior: What should the agent do step-by-step?
  • Files: Heavy reference content? Templates? Scripts?

2. Select Archetype

Pick the right pattern from templates.md:

ArchetypeWhenSKILL.md budget
workflowStep-by-step procedures< 150 lines
reference-heavyLookup tables, schemas, large specs< 80 lines + reference.md
tool-wrapperWraps specific tools with usage guidance< 100 lines
personaRole-play or communication style shifts< 60 lines

3. Design the Structure

skills/<name>/
├── SKILL.md           # Always: main entry point (keep within archetype budget)
├── reference.md       # When: heavy content that would exceed budget
├── examples.md        # When: input/output examples help significantly
└── scripts/           # Rarely: utility scripts
    └── helper.py

Rules:

  • References are one level deep only — no chained references
  • Split only when SKILL.md exceeds archetype budget
  • Every line earns its token cost — cut ruthlessly

4. Write SKILL.md

Required format:

---
name: skill-name-with-hyphens
description: Use when [triggering conditions only — third person, no workflow summary, max 1024 chars]
tags: [optional]
---

# Skill Title

One sentence overview.

## When to Use

- Concrete trigger phrase 1
- Concrete trigger phrase 2

## [Core Section]

Imperative instructions. No fluff.

## Supporting Files

**Topic**: See [reference.md](reference.md)

Frontmatter rules:

  • name: lowercase, numbers, hyphens; max 64 chars; avoid "anthropic" / "claude"
  • description: "Use when..."; triggers only; no how/what summary; third person; max 1024 chars
  • A bad description causes the agent to skip reading the body — be precise about triggers

Body performance rules:

  • Every sentence must directly enable action — delete explanatory prose
  • Prefer bullet lists over paragraphs
  • Use imperative mood throughout ("Call X", "Write Y", not "You should call X")
  • No meta-commentary ("This skill helps you..."), no caveats

5. Self-Evaluate Before Writing

Before calling write_skill_file, verify:

☐ Description triggers are specific (not vague like "when the user needs help")
☐ Body is within archetype token budget
☐ Every line earns its token cost (no filler sentences)
☐ Instructions are imperative, not explanatory
☐ No time-sensitive content, no hardcoded values
☐ Description does NOT summarize how the skill works — triggers only

If any item fails — revise before writing.

6. Write Files

Call write_skill_file once per file. Always write SKILL.md first:

write_skill_file(skill_name="my-skill", relative_path="SKILL.md", content="...")
write_skill_file(skill_name="my-skill", relative_path="reference.md", content="...")

7. Activate

Call reload_skills after all files are written.

Report to user:

  • Skill is live (no restart needed)
  • Files created
  • Trigger phrase that activates it

Description Writing Guide

# ✅ Good — triggering conditions only, third person
description: Use when the user asks to generate weekly reports, export data summaries, or create formatted output from raw data.

# ✅ Good — specific triggers
description: Use when analyzing code for bugs, reviewing pull requests, or the user asks for a code review.

# ❌ Bad — summarizes workflow (agent skips the body)
description: Use when creating reports — reads data, formats it, writes to file.

# ❌ Bad — first person
description: I help users create reports from their data.

Supporting Files

Skill archetypes and starter templates: See templates.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.