Skip to content
Back to skills

Skill Creator

ASecurity

Create new skills or refactor existing skills to follow the standard directory structure.

  • 42 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
ai-agentsgoshellrefactoringgitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add tsukhani/jclaw --skill skill-creator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Creator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill Creator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tsukhani-skill-creator/badge)](https://www.skillsdirectory.com/skills/tsukhani-skill-creator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: skill-creator
description: >-
  Create new skills or refactor existing skills to follow the standard directory structure.
metadata:
  version: "1.4.0"
  author: Tarun Sukhani
  jclaw-icon: "🛠️"
  jclaw-tools: filesystem
---
# Skill Creator & Refactorer

You help the user create new skills or refactor existing skills in your workspace to follow the standard directory structure.

## Standard Directory Structure

Every skill MUST follow this layout:

```
{skill-name}/                  # kebab-case name (required)
├── SKILL.md                   # Skill definition with YAML frontmatter (required)
├── references/                # Detailed material SKILL.md points to (optional)
│   └── *.md                   # Catalogs, templates, examples — TEXT FILES ONLY
└── tools/                     # Binary tools and their docs (optional)
    ├── {binary}               # Executable/binary files
    └── *.md or *.txt          # Usage documentation for the tools
```

### Rules

- **Binaries are ONLY allowed in the `tools/` folder.** No binaries in the root folder.
- A skill folder holds no settings or credentials file. Everything a skill needs to reach a service is declared in its `## Secrets` section (see Secrets); a key, token or password NEVER goes in any file. A `credentials/` folder is only something an older skill may still read: refactor it into the Secrets section, never create one.
- The `references/` folder may ONLY contain text files, one level deep: a reference file never points to another reference file.
- The skill root folder may ONLY contain `SKILL.md` and the two subfolders.
- Skill names must be kebab-case (e.g., `web-scraper`, `slack-notifier`), at most 64 characters, and the same as the folder name.

## SKILL.md size limit

A SKILL.md MUST stay under 20,000 characters (about 5,000 tokens, or 500 lines). Once an agent reads a skill, JClaw keeps its first 20,000 characters for the rest of the conversation and cuts the rest; Anthropic's Agent Skills guidance sets the same bound. When a SKILL.md would pass 18,000 characters, split it:

1. Keep in SKILL.md the frontmatter, the purpose, the workflow and every rule the agent must always follow (safety rules, required formats, "never do X" lines), near the top.
2. Move detailed reference material (long catalogs, templates, examples, troubleshooting) word for word into `references/{topic}.md`. Drop nothing and reword nothing.
3. Where a section moved, leave one line in SKILL.md saying when to read it, e.g. "Before any course operation, read `skills/{skill-name}/references/courses.md` with the filesystem tool's readFile."
4. A reference file over 100 lines starts with a short table of contents.
5. A skill with a `references/` folder MUST list `filesystem` in `jclaw-tools`, so it is never offered to an agent that cannot read its references.

## Secrets

Only the operator gives a skill what it needs to reach a service, in the skill's Secrets panel. A skill that needs an API key, token or password, or a per-install value such as an address, a user name or a path, MUST have a `## Secrets` section in its SKILL.md that:

1. Declares each one in a fenced code block whose language is `secrets`, one line each: `NAME=example-host   # what it is` for a secret, `setting NAME=example-value   # what it is` for a value that is not secret, `renewed NAME=example-host from POST /path json field using PASSWORD_NAME in json field   # what it is` for a session key a sign-in returns. When in doubt, it is a secret. No agent is offered the skill until every required one has a value.
2. Tells the agent to use `$NAME` in its commands. A secret arrives as a stand-in JClaw swaps for the value on requests to its hosts; a setting, as its value.

Never write a value into a file or ask for one in chat. Write defaults (a city, a unit) in SKILL.md. A session key a sign-in returns is a renewed secret, which JClaw stores itself. Another secret the skill saves between runs (a cookie jar) goes in `skill-state/{skill-name}/` in the workspace, never in the skill's folder; anything else it keeps goes in `skill-data/{skill-name}/`. First read `skills/skill-creator/references/secrets.md` with the filesystem tool's readFile.

## Frontmatter layout

JClaw skills use the Agent Skills format (agentskills.io), the same one Claude reads, so a skill can be exported to Claude unchanged. Only `name`, `description`, `license`, `compatibility`, `allowed-tools` and `metadata` may sit at the top level of the frontmatter. JClaw's own entries all go under `metadata`, and every value there is a string:

| Entry under `metadata` | What it holds |
| --- | --- |
| `version` | System-managed — see the version note below |
| `author` | Your agent name |
| `jclaw-icon` | One emoji |
| `jclaw-tools` | The JClaw tools the skill uses, separated by spaces |
| `jclaw-commands` | The binaries the skill ships in `tools/`, separated by spaces |

`allowed-tools` is Claude's list of tools to run without asking; JClaw ignores it. Declare the tools a skill needs in `jclaw-tools`.

The `description` says what the skill does and when to use it, in at most 1024 characters and without `<` or `>`. Write it as `description: >-` with the text on the next line, indented two spaces, so a colon or `#` inside it stays part of the text.

## Tool Catalog (authoritative)

Every skill MUST declare the exact tools it needs in the `jclaw-tools` entry under `metadata`. The authoritative list of valid tool names lives in the `## Tool Catalog` section of your system prompt — it is generated live from the running JClaw build and filtered to the tools this specific agent has enabled, so every name in the table is guaranteed to be callable. Pick ONLY from the names in that table. If a name isn't in the Tool Catalog section, it either doesn't exist or is disabled for this agent, and either way the skill cannot use it.

## Commands Catalog (shell binaries the skill bundles)

Separate from `jclaw-tools` — which names JClaw **tools** the skill consumes (`exec`, `filesystem`, `browser`, ...) — a skill that ships executable binaries in its `tools/` folder MUST declare them in the `jclaw-commands` entry under `metadata`. `jclaw-commands` drives the per-agent shell allowlist: at promotion time these exact names become the blessed set for this skill in the global registry, and at skill-install time they are snapshotted into the consuming agent's effective shell allowlist so the agent can run them via `exec`.

Before writing `jclaw-commands` for a skill that ships binaries in `tools/`, read `skills/skill-creator/references/commands-rules.md` with the filesystem tool's readFile: every executable in `tools/` must be listed by basename, and every listed name must exist there.

## Author field

Every skill MUST include an `author` entry under `metadata`. The value is the **name of the agent creating the skill** — i.e., *your own* agent name, substituted from your Environment section of the system prompt (its `Agent name:` line). Operators use this to see which agent authored which skill when auditing the global registry after promotion, and to route bug reports back to the right agent's workspace.

- Use the agent's literal name, not a description. If that line says `main`, write `author: main`; `research-bot`, write `author: research-bot`.
- The value is a single unquoted YAML scalar: `author: main` (no list, no object).
- When refactoring an existing skill, leave the existing `author` value alone — it records the original creator. Only edit it if the user explicitly asks to reassign authorship.

## Icon field

Every skill MUST include a `jclaw-icon` entry under `metadata` — a single emoji, in double quotes, that visually represents the skill.

- Pick one emoji only (e.g., `🛠️`, `📺`, `🍽️`). Never use text, ASCII art, or multiple emojis.
- Choose an icon relevant to the skill's purpose. If unsure, default to `🛠️` for general utility skills.
- When creating a new skill, assign the icon yourself based on the skill name and description. If the user specifies a preference, use theirs; otherwise pick the most fitting emoji (e.g. `📺` for video/movie skills, `🍽️` for restaurant skills, `📇` for contact/ business-card skills).
- When refactoring an existing skill that already has a `jclaw-icon`, leave it alone unless it's clearly wrong (e.g. a restaurant skill using `💀`).

## Creating a New Skill

1. **Ask** the user what the skill should do. Get a clear name and description.
2. **Determine required tools.** Walk through the steps the skill will perform and pick EVERY tool it will need from the `## Tool Catalog` section of your system prompt. Be exhaustive but exact: do not add tools the skill will not use, and do not omit tools the skill cannot work without. Read each tool's description in the Tool Catalog and match it against what the skill actually does.
   - Only use names that appear verbatim in the Tool Catalog table. If a capability isn't in the catalog, the skill cannot do it.
   - Because the Tool Catalog is already filtered to this agent's enabled tools, any name you pick from it is guaranteed to be callable — no pre-flight check needed.
   - **Pure reasoning / computation only (no I/O, no external data)** → `jclaw-tools: ""` (empty string). Do NOT invent tools for tasks the LLM can answer on its own. Example: "compute 2+2" or "rephrase this sentence" need zero tools.
3. **Determine bundled commands.** If the skill will ship executable binaries under `tools/`, list every binary's basename in `jclaw-commands`. If the skill ships no binaries, use `jclaw-commands: ""`. See the Commands Catalog section above for rules. A skill that uses the `exec` tool but calls only system commands already in the global allowlist (`git`, `ls`, etc.) still ships zero commands — `jclaw-commands` only covers binaries the skill itself contributes.
4. **Draft** the SKILL.md content:
   - YAML frontmatter in the layout above: `name` and `description` at the top level, then `metadata:` holding `author` (your own agent name — see the Author field section), **`jclaw-icon` (a single emoji; see Icon field below)**, `jclaw-tools` (the exact list from step 2) and `jclaw-commands` (the exact list from step 3)
   - `version` is **system-managed** — you never hand-write it (the filesystem tool injects it under `metadata`; see the version note below).
   - A clear title and purpose
   - Step-by-step instructions the agent should follow
   - Reference each declared tool by name in the body
   - If the skill has entries in `jclaw-commands`, reference each bundled binary by its path in the body (e.g., `tools/wacli`) so the reader can find it
   - Example inputs and expected outputs
   - Edge cases and error handling
   - If the skill needs secrets, the `## Secrets` section with its `secrets` block (see Secrets)
   - **Output Location:** If this skill generates files (HTML diagrams, documents, etc.), include: `Outputs are written to \`{skill-name}/\` at the root of the agent's workspace (e.g., \`my-skill/\`).`
   - Count the characters: a draft over 18,000 is split into `references/` as the SKILL.md size limit section describes.
   - **Leave the `version` entry out by default.** When you omit it, the system auto-bumps the patch component on every material write (e.g., `1.0.3 → 1.0.4`) and new skills start at `1.0.0`. Set an explicit `version` only when the user asks to promote the skill forward; before you do, read `skills/skill-creator/references/versioning.md` with the filesystem tool's readFile.
5. **Check the draft before you save it**, with `skills/skill-creator/references/secrets.md` section 7 read first. Save only a draft that passes all four; fix one that fails and check it again:
   - Every `$NAME`, `${NAME}` and environment variable that SKILL.md's commands and the `tools/` scripts read is declared in the `secrets` block, and each name that reads as a key, token or password is a secret, never a setting.
   - No file of the skill holds a key, token or password, and nothing reads one from a file, a `credentials/` folder or `skill-state/`. The one exception, until the secrets proxy holds cookies, is a cookie jar under `skill-state/{skill-name}/`.
   - A session key a sign-in returns is a `renewed` secret with a suggested capture rule, and no step saves it to a file.
   - The skill's folder holds `SKILL.md` and nothing but `tools/` and `references/` beside it.
6. **Create** the skill using the filesystem tool:
   - Create the directory: `skills/{skill-name}/`
   - Write `skills/{skill-name}/SKILL.md` with `writeFile` (brand-new files use `writeFile`; existing files should use `editFile` — see the Refactoring section).
   - If binary tools are needed, create `tools/` with documentation. Every binary dropped here MUST also appear in `jclaw-commands`, and every name in `jclaw-commands` MUST correspond to a file in `tools/`.
   - **Creating multiple files at once?** Use `applyPatch` to add several files atomically — it validates all ops before touching disk, so you won't end up with half a skill on a parse error. Example: `*** Begin Patch` / `*** Add File: skills/foo/SKILL.md` / `+---` / `+name: foo` / ... / `*** End of File` / `*** Add File: skills/foo/references/notes.md` / ... / `*** End Patch`.
7. **Confirm** creation. Tell the user the declared `jclaw-tools` and `jclaw-commands` lists so they can verify. If the skill ships binaries, remind the user that installing this skill to another agent will grant that agent execution rights for those exact command names via the shell allowlist. If it declares secrets or settings, name each one and tell the user to fill it in in the skill's Secrets panel on the Skills page.

### Rules for the `jclaw-tools` entry

- Write the names on one line, separated by spaces: `jclaw-tools: tool_a tool_b` — substitute real names from the Tool Catalog.
- Use an empty string if the skill uses no tools at all: `jclaw-tools: ""`
- Tool names are case-sensitive and MUST match the Tool Catalog exactly.
- NEVER invent tool names. If a name isn't in the Tool Catalog section of your system prompt, it doesn't exist. Common mistakes: writing `readFile` instead of `filesystem`, `shell` instead of `exec`, `http` instead of `web_fetch`.
- The declared list must equal the set of tools actually referenced in the skill body — no more, no less.

## Self-modification restriction

**The built-in skills are read-only for every agent except `main`.** `skill-creator`, `jclaw-api` and `task-creator` ship with JClaw, and only the `main` agent can change them. Every other agent can use them, and can create or refactor skills of its own, but cannot alter any file inside `skills/skill-creator/`, `skills/jclaw-api/` or `skills/task-creator/`, through the file tool or its shell. If a user asks a non-main agent to change one, explain: "I cannot change a built-in skill — only the main agent can. If you want it updated, change it on the main agent and promote it to the global registry, then drag it from global onto my agent card to get the new version."

If the global skill-creator is updated to a newer version, out-of-date copies on non-main agents are automatically hidden from `<available_skills>` — the agent cannot use skill-creator again until the user drags the updated version from global onto my agent card.

## Refactoring an Existing Skill

When asked to refactor or update an existing skill, or when you notice a skill that doesn't follow the standard structure:

1. **Audit** the existing skill directory by listing all files and subfolders.
2. **Identify violations and changes needed:**
   - Any binary files in the root folder or `credentials/` → must move to `tools/`
   - A settings or credentials file, in the root folder or `credentials/` → declare each value it holds in the `## Secrets` section and use `$NAME` instead (see Secrets); the user deletes the file
   - Any files other than SKILL.md in the root folder → categorize and move to the correct subfolder
   - Missing YAML frontmatter in SKILL.md → add it
   - JClaw entries at the top level of the frontmatter (`version`, `author`, `icon`, `tools`, `commands`) → move them under `metadata` as `version`, `author`, `jclaw-icon`, `jclaw-tools` and `jclaw-commands`, lists written as space-separated strings. The filesystem tool also does this when it saves the file.
   - Missing `jclaw-icon` → add it. Pick a single emoji relevant to the skill.
   - Non-kebab-case skill name → rename the folder
   - Missing `jclaw-commands` → add it. Populate from binaries in `tools/` (basenames), or `jclaw-commands: ""` if none.
   - Binaries present under `tools/` that aren't listed in `jclaw-commands` → either add them to the list (if they're intended for execution) or delete them (if they're leftovers). No dormant binaries.
   - SKILL.md over 20,000 characters → split it into `references/` as the SKILL.md size limit section describes.
   - Missing `author` → add it under `metadata`. For legacy skills with no recorded author, set `author` to the agent name that's doing the refactor (i.e., your own agent name from your Environment section). Do NOT invent a historical author.
3. **Move files** to the correct locations using the filesystem tool.
4. **Update SKILL.md** to reference the new file paths (e.g., `tools/wacli` instead of `./wacli`).
5. **Update the SKILL.md with `editFile`, not `writeFile`.** For any refactor that touches an existing SKILL.md, use `editFile` with a batch of `{oldText, newText}` entries. This is dramatically more efficient than rewriting the whole file and is also the only way to edit a skill body that would exceed your output token budget as a single `writeFile` argument. Each `oldText` must appear exactly once in the file — include enough surrounding context (a surrounding line or two) to guarantee uniqueness. For cross-file refactors (e.g., moving a binary from the skill root into `tools/` AND updating SKILL.md to reference the new path), use `applyPatch` to do both changes atomically in one tool call. Leave the `version` entry alone by default — the filesystem tool auto-bumps the patch component on every material write. **Only set an explicit `version` when the user asks to promote the skill forward**; in that case read `skills/skill-creator/references/versioning.md` first and include the `version: "X.Y.Z"` edit in the same batch. The filesystem tool response will quote the final version — report it to the user.
6. **Verify** the final structure matches the standard layout, and run the four checks of Creating a New Skill step 5 on the result.
7. **Report** what was changed and quote the new version as reported by the filesystem tool.

## Example

For a worked example of a skill folder and its SKILL.md (one with binaries and one prompt-only), read `skills/skill-creator/references/examples.md` with the filesystem tool's readFile.

## Output File Locations

Skills that generate files (HTML diagrams, courses, reports, etc.) MUST store output in `{skill-name}/` at the root of the agent's workspace and link each file for download. When writing such a skill, read `skills/skill-creator/references/output-locations.md` with the filesystem tool's readFile for the rules and an example.

## Guidelines

- Skills should be focused on one task — create multiple skills for complex workflows
- Skills you create go into your workspace and are available only to you

Files in this skill

  • SKILL.md17.3 KB
  • references/commands-rules.md1.1 KB
  • references/examples.md1.7 KB
  • references/output-locations.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.