agentleFS
jamesctuckerjamesctucker/moraine/.agents/skills/create-skill/SKILL.md

create-skill

Skill1 starsChanged 8 days agoMITView on GitHub

Guide for building new agent skills with proper structure, frontmatter, and progressive disclosure. Use when user wants to create a new skill, write a SKILL.md, or set up agent capabilities.

154 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cost-reducer, migrate-to-skills 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.
  • huyvpSkill

    cost-reducer

    Reduce cloud, infrastructure, and operational costs while maintaining performance. Use when writing database queries, configuring cloud resources, optimizing bundles, setting up caching, choosing between services, sizing instances, configuring CDN, managing storage, or reviewing code for cost inefficiencies. Covers AWS/GCP/Vercel pricing, database optimization, serverless tuning, image pipelines, observability costs, and FinOps practices.

    Also in 11 projects that use this

  • 32103210Skill

    migrate-to-skills

    Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.

    Also in 7 projects that use this

  • 32103210Skill

    update-cursor-settings

    Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.

    Also in 7 projects that use this

  • PandelisZSkill

    update-cli-config

    View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.

    Also in 6 projects that use this

  • yawningwhaleAISkill

    build-premium-website

    Build a premium, animated marketing website (React + Vite + Tailwind + GSAP) for any industry. Use when the user asks to "build a website", "make a landing page for [business]", "build a marketing site", or wants a high-end animated company website. Adapts color, copy, services, and signature animation to the industry.

    Also in 8 projects that use this

  • yawningwhaleAISkill

    instantly-campaign

    Create a new Instantly cold-email campaign in the proven 5-email structure of the user's top-performing campaign (~16% reply rate). Use when the user wants to launch a new outbound campaign, write a cold email sequence, create an Instantly campaign, draft outreach for a new service or niche, or set up a sales sequence.

    Also in 7 projects that use this

  • +3 more from yawningwhaleAI

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 144 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No leading/trailing hyphens, no consecutive --

    line 14
  2. Distinctive:

    Must match the directory name exactly

    line 15
  3. Distinctive:

    Keep it under 1024 characters

    line 34
  4. Very specific:

    Draft SKILL.md: start with quick start, then workflows, then advanced references

    line 71
  5. Very specific:

    Validate: run python3 scripts/moraine sync, then opencode debug skill to confirm discovery

    line 73

“Common” is measured: kept by at least 6 in 10 of the 144 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

Skills you write live in packs/local/skills/<name>/SKILL.md. Run python3 scripts/moraine sync afterwards to link the folder into .agents/skills/, where the harness discovers it.

Name rules

Names must match ^[a-z0-9]+(-[a-z0-9]+)*$:

  • Lowercase alphanumeric, single hyphens between segments
  • No leading/trailing hyphens, no consecutive --
  • Must match the directory name exactly

Frontmatter

---
name: my-skill
description: What this does and when to load it. Use when [trigger phrase].
---

name and description are required. Optional: license, compatibility, metadata.

Writing the description

The description is what agents see when deciding which skill to load. Make it count:

  • First sentence: what the skill does
  • Second sentence: "Use when [context/triggers]"
  • Keep it under 1024 characters
  • Be specific enough that an agent can tell this skill apart from others

Good: Search, create, and manage notes in the Obsidian vault with wikilinks and PARA organization. Use when user wants to find, create, or organize notes in the Obsidian vault.

Weak: Helps with notes. (too vague to match on)

Directory layout

my-skill/
├── SKILL.md          # Required — main instructions
├── REFERENCE.md      # Optional — extended docs
└── scripts/          # Optional — utility scripts

When to split into files

Pull content out of SKILL.md when:

  • SKILL.md approaches ~100 lines
  • Content covers distinct sub-topics
  • Advanced sections are rarely needed

Reference files from the main SKILL.md with relative links.

When to add scripts

Add scripts when:

  • The operation is deterministic (validation, parsing, formatting)
  • You'd otherwise generate the same code repeatedly
  • Errors need structured handling

Scripts save tokens and run more reliably than generated code.

Process

  1. Understand the domain: what exact task does this skill cover? What are the trigger phrases?
  2. Draft SKILL.md: start with quick start, then workflows, then advanced references
  3. Review: does it cover the use cases? Is anything missing or overwritten?
  4. Validate: run python3 scripts/moraine sync, then opencode debug skill to confirm discovery

Checklist

  • Name follows the naming regex
  • Directory name matches name in frontmatter
  • moraine sync linked the folder into .agents/skills/
  • Description includes a trigger phrase ("Use when...")
  • SKILL.md is concise (under ~100 lines)
  • No time-sensitive or hardcoded paths
  • Concrete examples included
  • Verified with opencode debug skill

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.