> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudthinker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Skill Format

> Write a SKILL.md file that uploads cleanly and that agents follow: frontmatter fields, zip layout, limits, and a complete example.

Every skill is a `SKILL.md` file: a short YAML header (frontmatter) that names the skill and says when to use it, followed by Markdown instructions. This page covers the rules a file must pass to load and the writing patterns that make agents follow it.

## Minimal valid skill

Copy this, change the name, description, and rules, and it will load:

```markdown theme={null}
---
name: security-review-checklist
description: Enforce our SQL and secrets rules when reviewing code. Use for any pull request review or security question about code.
---

## SQL injection

- Flag SQL built with string concatenation or f-strings.
- Require parameterized queries or ORM methods.

## Secrets

- Flag hardcoded credentials, tokens, and API keys.
- Require secrets to come from a secrets manager or environment variables.
```

| Part | Required | Purpose |
| - | - | - |
| Frontmatter (between the `---` lines) | Yes | Holds `name` and `description`. It must be valid YAML. |
| Instruction body | Yes | The Markdown rules the agent reads when it uses the skill. |
| One `##` heading per rule group | Recommended | Keeps rules easy to scan for you and the agent. |
| Good and bad examples | Recommended | Anchors each rule to something concrete. |

## Frontmatter fields

| Field | Required | Rules |
| - | - | - |
| `name` | Yes | Starts with a letter or digit, then letters, digits, `_`, or `-`. Uppercase letters are allowed. No spaces. Up to 255 characters. Names are case-sensitive, and the `/` command uses the exact name. Must not match a CloudThinker built-in skill, such as `pdf`, `docx`, or `deep-research`. |
| `description` | Yes | A non-empty sentence saying what the skill does and when to use it. Agents read descriptions to decide which skill fits a task, so a vague one means the skill rarely gets picked. Quote it if it contains a colon: `description: "Use when: reviewing PRs"`. Up to 2,000 characters. |
| `argument-hint` | No | Applies only when someone runs the skill from the chat `/` menu. Text shown next to the skill in that menu, such as `<service-name>`, to tell people what to type after the command. It doesn't change behavior. Whatever people type after `/skill-name` reaches the agent as part of their message. |

Other fields, such as `license` or `allowed-tools` from SKILL.md files written for other tools, don't block an upload, and CloudThinker doesn't use them. A skill ported from another tool loads as long as it has `name` and `description`.

Name examples:

| Name | Valid? |
| - | - |
| `security-checklist` | Yes |
| `security_checklist` | Yes |
| `Security-Checklist` | Yes |
| `Security Checklist` | No (space) |
| `-checklist` | No (must start with a letter or digit) |

> [!NOTE]
>
> When you create a skill with **Write skill instructions**, CloudThinker builds the frontmatter from the **Skill name** and **Description** fields for you. You only write the frontmatter yourself when you upload a `.zip` or edit `SKILL.md` by hand.

## Zip package layout

Use a `.zip` when a skill needs supporting files, or to move a skill between workspaces. Upload it from **More → Workspace settings → Skills → +** (next to **Search skills**) **→ Upload zip file**.

```text theme={null}
security-review-checklist.zip
└── security-review-checklist/
    ├── SKILL.md            required
    ├── references/         optional: longer docs the skill points to
    ├── scripts/            optional: scripts the skill runs
    └── schemas/            optional: schemas the skill validates against
```

* Put `SKILL.md` at the root of the zip or inside one top-level folder. The skill takes its name from `name` in the frontmatter, so the folder name doesn't need to match.

* Name the zip file exactly after the frontmatter `name`, including case (for example `security-review-checklist.zip`). CloudThinker uses the zip's file name to spot an existing skill and offer **Replace**. If the two differ, **Replace** can delete the skill the zip name matches and upload a skill under another name. With no match, an upload whose frontmatter `name` is taken fails with **This skill name is already in use.**

* Only `scripts/`, `schemas/`, and `references/` are kept. Other files and folders are ignored.

* Refer to supporting files from `SKILL.md` by relative path. Agents don't read them automatically: they open a file when the instructions point to it, for example:

  ```markdown theme={null}
  For the escalation order, read references/escalation-matrix.md.
  ```

* For a script, name it and say when to run it, for example "Run `scripts/check_tags.sh` with the account ID." Scripts can be Bash or TypeScript (run with `bun`). The agent runs a script with the same command tool it uses for any other command, so any write it makes goes through [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md) like any other command.

* The script gets your workspace [Credentials](https://docs.cloudthinker.io/guide/credentials.md) as environment variables, named by each credential's **Key**. A credential with the key `DATADOG_API_KEY` is `$DATADOG_API_KEY` in the script.

> [!NOTE]
>
> Credentials aren't specific to skill scripts: every command an agent runs gets every workspace credential, whether or not the skill or prompt uses it. You can't scope a credential to one skill or agent. Store only the keys your skills need and prefer read-only vendor keys. See [how agents use credentials](https://docs.cloudthinker.io/guide/credentials.md#how-agents-use-credentials).

## Limits

| Item | Limit |
| - | - |
| `SKILL.md` created or edited in the app | 50,000 characters |
| `SKILL.md` uploaded in a zip | No limit beyond the zip limits below. A file over 50,000 characters can't be saved from the in-app editor. |
| Description | 2,000 characters |
| Skill name | 255 characters |
| Zip upload size | 5 MB |
| Files in a zip | 1,024 |
| Zip size after extraction | 50 MB, the only limit on files in `references/`, `scripts/`, and `schemas/` |

## Check before you upload

* `SKILL.md` is named in uppercase and sits at the zip root or one folder down.
* The file starts with `---` on the first line, and the frontmatter closes with `---`.
* `name` starts with a letter or digit and uses only letters, digits, `_`, and `-`.
* `name` isn't a built-in skill name, such as `pdf` or `deep-research`.
* `description` is filled in, and quoted if it contains a colon.
* The zip file name matches `name` exactly.
* Supporting files sit in `references/`, `scripts/`, or `schemas/`.

## Write instructions agents follow

**Write only what the agent doesn't already know.** Agents already understand SQL injection. They don't know your rules about it.

```markdown theme={null}
<!-- Too general: the agent already knows this -->
SQL injection is a vulnerability where attackers run arbitrary SQL
through unsanitized input, so always be careful with queries...

<!-- Useful: your specific rules -->
## SQL injection
- Flag `execute()` calls that take f-strings or `.format()`.
- Require the `db.query(sql, params)` helper for every new query.
```

**Match the rule style to how much freedom you want:**

| Freedom | Style | Use it for |
| - | - | - |
| High | Principles and guidelines | Architecture advice, exploratory reviews |
| Medium | Checklists with examples | Standard reviews, security checks |
| Low | Exact templates and fixed fields | Output formats, mandatory sections |

**Show, don't describe.** A pair of examples beats a paragraph:

```markdown theme={null}
## Naming
- `remaining_retries`, not `r`
- `is_authenticated`, not `auth`
- Booleans start with `is_`, `has_`, or `should_`.
```

**Keep one topic per skill.** Separate security rules from performance rules so you can make each available in different places. If a skill runs past about 300 lines, split it, or move long reference tables into `references/` and point to them. That's advice for keeping agents on track, well below the 50,000-character hard limit.

## Complete example

A pull request standards skill you can adapt:

````markdown theme={null}
---
name: pr-review-standards
description: Enforce our pull request standards for size, tests, and docs. Use when reviewing any merge request or pull request.
argument-hint: <pull request link>
---

## Size

- Flag pull requests over 500 changed lines as "needs splitting" and suggest split points.
- Generated files (migrations, lockfiles) don't count toward the limit.

## Tests

- Require tests for every new public function.
- Flag deleted tests that have no matching feature removal.

## Docs

- Flag breaking API changes without a migration note.
- Require a README update when a new environment variable is added.

## Comment format

```text
**[severity]** Short title

What is wrong and why it matters.

**Suggestion:** How to fix it.
```

Severity is one of `critical`, `warning`, `suggestion`, `nitpick`. For example:

```text
**[warning]** New endpoint has no tests

`create_invoice()` is public and has no test, so a regression would reach production unnoticed.

**Suggestion:** Add a test in `tests/test_invoices.py` that covers the happy path and an invalid amount.
```
````

After you save it, tick **Review** under **Available in** so it applies to pull request reviews. Reviews never use `argument-hint`; it only helps someone who runs the skill from the `/` menu in chat. See [custom skills](https://docs.cloudthinker.io/guide/skills/custom-skills.md#choose-where-the-skill-applies).

## Troubleshooting

> [accordion] Failed to upload skill to executor
>
> * **Frontmatter.** It's missing, it has a YAML error, or `name` or `description` is empty. Check that `SKILL.md` starts with `---`, that the header closes with `---`, and that both fields have values. Put a description that contains a colon in quotes. Also check that `name` follows the naming rules above.
> * **No `SKILL.md` where CloudThinker looks.** It must be at the zip root or one folder down, and the file name is case-sensitive. Rename `skill.md` to `SKILL.md` and zip again.

> [accordion] SKILL.md name must match the selected skill
>
> When you edit an existing skill by hand, the `name` in the frontmatter must stay exactly the same. To rename a skill, download it, change the name, and upload it as a new skill. Then delete the old skill, and re-tick **Available in** on the new one, since it starts on **Chat** only.

> [accordion] My scripts or docs are missing after upload
>
> Only files inside `scripts/`, `schemas/`, and `references/` next to `SKILL.md` are kept. Move other files into one of those folders.

> [accordion] The skill loads but agents rarely use it
>
> Rewrite the `description` to say when to use the skill, with the words people actually type ("Use when reviewing a pull request"). Then make the rules concrete and add examples.

## Related

> [card] [Custom skills](https://docs.cloudthinker.io/guide/skills/custom-skills.md)
>
> Create, upload, and choose where a skill applies.

> [card] [Skills overview](https://docs.cloudthinker.io/guide/skills/overview.md)
>
> How agents pick and apply skills.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.