---
title: "Write a skill · HopperLabs"
canonical: https://guides.hopperlabs.ai/write-a-skill/
---

Part 4 of Make a guide

# Write a skill

Turn a job you keep explaining to an agent into one skill folder that Claude, Codex and Gemini load when that job comes up.

[Pick one job](https://guides.hopperlabs.ai/write-a-skill/#job)

## Pick one job

One job you keep explaining to an agent, such as "write our weekly report". A skill is a folder with a SKILL.md file. The agent loads it when that job comes up, so give each job its own skill.

- the job, as you would say it to a colleague
- the words people use when they ask for it
- the steps you want followed every time.
- What do I write first? The requests you will test with.

## Say when to use it

It is what the agent reads to decide whether to load your skill. When an agent starts, it loads only the name and the description of every skill. It reads the rest of a SKILL.md when that skill is used.

- So the description has two things to say: what the skill does, and when to use it.
- How is it written? In the third person, in at most 1024 characters: "Writes the weekly report", not "I can write reports".

## Name the folder

Lowercase letters, numbers and hyphens, at most 64 characters, with no hyphen at the start or the end. weekly-report fits. Weekly Report does not.

- Anthropic's products add one more rule: the name cannot contain anthropic or claude.
- Where is the name written? In two places that must match: the folder's name, and the name line in the front matter at the top of SKILL.md.
- What is the front matter? The lines between two rows of three hyphens at the very top of the file.

## Write what it does not know

Only what the agent does not already know: your steps, your format, your rules, the names of your things. It knows how to sum up a week. It does not know that your report starts with risks and never names a customer.

- How exact should it be? Exact where a mistake costs something, loose where judgment is fine.
- How long can it be? Under 500 lines, and the specification recommends under 5000 tokens.

## Move detail into files

Anything long that is needed only some of the time: a full example, a table of codes, a script. Put it in a file inside the skill folder and link to it from the body. The specification names three optional folders: scripts/, references/ and assets/.

- How deep can the files go? One level.

## Name the tools to call

A skill says how the job is done. A connector's tools do the parts an agent cannot do alone, such as reading your notes. Name each tool exactly in the body, say when to call it, and say what to do when the connector is not there.

- How does this site's skill do it? Its list of tools is not typed by hand.
- Can a skill say which tools it may use? The specification has an optional allowed-tools line in the front matter: tool names separated by spaces, approved in advance.

## Put it where agents look

In its own folder. Claude Code reads .claude/skills/ in a project and ~/.claude/skills/ for you alone. Codex reads .agents/skills/. Gemini CLI reads .gemini/skills/, and .agents/skills/ as well. So two copies in a project reach all three.

- What about the Claude apps? Upload the skill as a ZIP file with the skill folder at its top level.
- Does it matter where I start the agent? For a project copy, yes.

## Check the skill

The folder's name and the whole text of SKILL.md. It checks the front matter, the name against the folder, the length and wording of the description, and the length of the body. List the folder's other files too, and it checks every link.

- Ask an agent that has this site's connector to check your skill.
- Is a clean check enough? No.

## Share it as a plugin

A folder that carries skills so that someone installs them with one command. For Claude Code, put your skill under skills/ and add a file at .claude-plugin/plugin.json. name is its only required key.

- How do people install it? From a marketplace: a file at .claude-plugin/marketplace.json with a name, an owner and a plugins list.
- What about Codex and Gemini CLI? Codex has the same two steps: codex plugin marketplace add <source>, then codex plugin add <plugin>@<marketplace>.

## Sources

- [Agent Skills specification](https://agentskills.io/specification.md)
- [Agent Skills](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview.md)
- [Skill authoring best practices](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices.md)
- [Create custom skills](https://claude.com/docs/skills/how-to.md)
- [Build skills](https://learn.chatgpt.com/docs/build-skills.md)
- [Agent Skills in Gemini CLI](https://raw.githubusercontent.com/google-gemini/gemini-cli/main/docs/cli/skills.md)
- [Plugin manifest reference](https://code.claude.com/docs/en/plugins/manifest-reference.md)
- [Create a marketplace](https://code.claude.com/docs/en/plugins/create-marketplace.md)
- [Gemini CLI extensions](https://raw.githubusercontent.com/google-gemini/gemini-cli/main/docs/extensions/index.md)

## Use this guide

[Read the whole guide](https://app.write-a-skill.guides.hopperlabs.ai/) · [Connect your agent to this guide](https://write-a-skill.guides.hopperlabs.ai/#agent-setup)

## Connected guides

Explore the journey [Make a guide](https://guides.hopperlabs.ai/#atlas/journeys/make-a-guide) .

[View this guide on the map](https://guides.hopperlabs.ai/#atlas/guides/write-a-skill)

Use your agent

Choose where you want to work. Once you connect, try the question below before sharing documents. [See all agents and setup methods](https://guides.hopperlabs.ai/agent-setup/guide/write-a-skill/)

Claude.ai

In Plugins, select Add, then Add custom connector. Paste this Server URL, select Continue, choose No sign-in, then select Add and Try in chat.

`https://app.guides.hopperlabs.ai/api/mcp/write-a-skill`

[Open Claude plugins](https://claude.ai/plugins)

ChatGPT

In Plugins, select Add, then Add custom MCP server. Paste this Server URL, choose No authentication, select Create as a plugin, then Connect and Try in chat. Your workspace must allow custom connectors.

`https://app.guides.hopperlabs.ai/api/mcp/write-a-skill`

[Open ChatGPT plugins](https://chatgpt.com/plugins)

Codex or Claude Code in my terminal

Run the command for your client and start a new chat. If Codex prints an OAuth registration notice for hopper-guides, ignore it—the public server is still saved and works without sign-in.

**Codex**

`codex mcp add hopper-guide-write-a-skill --url https://app.guides.hopperlabs.ai/api/mcp/write-a-skill`

**Claude Code**

`claude mcp add --transport http hopper-guide-write-a-skill https://app.guides.hopperlabs.ai/api/mcp/write-a-skill`

Use my agent in the browser

Choose a guide with browser tools, or use a connector above to work from your own chat.

Open the tool-enabled reader

### Try the connection

`Use the Hopper Guides connector to open the Write a skill guide (ID write-a-skill). What should I have ready before the first step?`

Look for a HopperLabs tool call in your chat, followed by the guide or source it returned. [View connector information](https://app.guides.hopperlabs.ai/api/mcp/write-a-skill)

---

## Agent & connector discovery

- **Guide index (`llms.txt`):** https://guides.hopperlabs.ai/llms.txt
- **All connectors, URLs & CLI commands (`connectors.json`):** https://guides.hopperlabs.ai/connectors.json
- **Step-by-step setup for 15 clients:** https://guides.hopperlabs.ai/agent-setup.md
- **Use directly in a WebMCP browser tab (no install):** https://guides.hopperlabs.ai/write-a-skill/?webmcp=1 (registers `list_guides`, `list_connectors`, `get_connection_instructions`, `read_guide_page`)
- **Install public remote MCP (no sign-in):**
  - All guides (`hopper-guides`): `https://app.guides.hopperlabs.ai/api/mcp`
  - Make a guide (`hopper-guide-makeaguide`): `https://app.guides.hopperlabs.ai/api/mcp/makeaguide`
  - Turn a subject into a graph (`hopper-guide-graph-a-subject`): `https://app.guides.hopperlabs.ai/api/mcp/graph-a-subject`
  - Design tools an agent uses well (`hopper-guide-design-tools`): `https://app.guides.hopperlabs.ai/api/mcp/design-tools`
  - Give your product a connector (`hopper-guide-add-a-connector`): `https://app.guides.hopperlabs.ai/api/mcp/add-a-connector`
  - Write a skill (`hopper-guide-write-a-skill`): `https://app.guides.hopperlabs.ai/api/mcp/write-a-skill`
  - Test which agent does best (`hopper-guide-test-agents`): `https://app.guides.hopperlabs.ai/api/mcp/test-agents`
  - Claude Code: `claude mcp add --transport http hopper-guides https://app.guides.hopperlabs.ai/api/mcp`
  - Codex: `codex mcp add hopper-guides --url https://app.guides.hopperlabs.ai/api/mcp`
