agentleFS
ShmayroShmayro/singularity-claude/skills/creating-skills/SKILL.md

creating-skills

Skill28 starsChanged 9 months agoMITView on GitHub

Use when a new reusable skill needs to be built, either detected by gap analysis, requested by the user, or triggered by /singularity-create

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, 6 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    Read superpowers:writing-skills if available — it defines SKILL.md authoring best practices

    line 12
  2. Distinctive:

    Ask the user ONE question at a time:

    line 19
  3. Distinctive:

    When: should it trigger? (symptoms, conditions, error messages)

    line 22
  4. Very specific:

    Read ~/.claude/singularity/registry.json to verify no duplicate or overlapping skill exists.

    line 28
  5. Distinctive:

    If a similar skill exists, ask: *"A skill called '<name>' already covers <overlap>.

    line 30
  6. Distinctive:

    Create the skill following these conventions:

    line 34
  7. Distinctive:

    When to use / when NOT to use

    line 45
  8. Distinctive:

    Keep under 500 words for frequently-used skills

    line 52
  9. Very specific:

    Use cross-references (superpowers:skill-name) not file paths

    line 53
  10. Very specific:

    If the skill needs supporting files (templates, rubrics, scripts), create them in: ~/.claude/skills/<skill-name>/references/

    line 60
  11. Very specific:

    Run singularity-claude:scoring on the test output to establish a baseline score.

    line 97

“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

Create a New Skill

Build a new Claude Code skill through a structured workflow that ensures quality, testability, and integration with the singularity evolution engine.

Prerequisites

  • Read superpowers:writing-skills if available — it defines SKILL.md authoring best practices
  • This skill creates standard Claude Code skills usable by any plugin

Workflow

Step 1: Requirements Gathering

Ask the user ONE question at a time:

  1. What does this skill do? (core purpose in one sentence)
  2. When should it trigger? (symptoms, conditions, error messages)
  3. What tools does it need? (Read, Write, Edit, Bash, Agent, etc.)
  4. What's the output? (files created, code modified, analysis produced)

Step 2: Check Registry

Read ~/.claude/singularity/registry.json to verify no duplicate or overlapping skill exists.

If a similar skill exists, ask: "A skill called '<name>' already covers <overlap>. Should I extend it or create a separate skill?"

Step 3: Generate SKILL.md

Create the skill following these conventions:

---
name: <skill-name>  # kebab-case, verb-first (e.g., creating-api-clients)
description: Use when <triggering conditions>  # Max 500 chars, start with "Use when"
---

Content structure:

  • Overview (1-2 sentences)
  • When to use / when NOT to use
  • Workflow steps (numbered, actionable)
  • Common mistakes / red flags
  • Integration with other skills (if applicable)

Rules:

  • Description = triggering conditions ONLY, not what the skill does
  • Keep under 500 words for frequently-used skills
  • Use cross-references (superpowers:skill-name) not file paths
  • Include a "When NOT to use" section

Step 4: Write the Skill

Write to ~/.claude/skills/<skill-name>/SKILL.md

If the skill needs supporting files (templates, rubrics, scripts), create them in: ~/.claude/skills/<skill-name>/references/

Step 5: Register

Update ~/.claude/singularity/registry.json:

# Using score-manager to initialize scoring
"${CLAUDE_PLUGIN_ROOT}/scripts/score-manager.sh" init <skill-name>

Then update registry.json to add the skill entry:

{
  "skills": {
    "<skill-name>": {
      "location": "~/.claude/skills/<skill-name>/SKILL.md",
      "createdBy": "singularity-claude:creating-skills",
      "createdAt": "<ISO-8601>",
      "currentVersion": "v1.0.0",
      "maturity": "draft",
      "tags": ["<relevant>", "<tags>"],
      "lastExecuted": null,
      "executionCount": 0,
      "averageScore": 0
    }
  }
}

Step 6: Initial Test

Invoke the newly created skill via the Skill tool to verify it loads correctly.

Step 7: Initial Score

Run singularity-claude:scoring on the test output to establish a baseline score.

Step 8: Log Telemetry

"${CLAUDE_PLUGIN_ROOT}/scripts/telemetry-writer.sh" log <skill-name> \
  --trigger "creation" \
  --summary "Created new skill: <description>"

Output

After creation, report:

  • Skill location: ~/.claude/skills/<skill-name>/SKILL.md
  • Initial version: v1.0.0
  • Maturity: draft
  • Next steps: use the skill, then score with /singularity-score

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.