> For the full index of Sherpa pages for agents, see https://www.withsherpa.ai/llms.txt

URL: https://www.withsherpa.ai/docs/skills-and-knowledge
Title: Write skills and knowledge files | Sherpa Docs
Description: Give every agent that works on your website the same instructions by writing them down once.

[Docs](https://www.withsherpa.ai/docs) For agents and developers

# Write skills and knowledge files

Give every agent that works on your website the same instructions by writing them down once.

Every agent that works on your website starts by reading the same instructions. Knowledge files say what is true about you. Skills say how you do a job. Write them once and Claude, ChatGPT, Devin and a coding agent on someone's laptop all follow the same playbook.

## See it in action

Ask your agent this.

> Write a skill for how we publish a customer story, based on how the last two were done. Keep it short and mark anything you are guessing.

It answers with something like this.

I wrote the skill from your last two customer stories. Read it over and correct anything that is not how you do it.

## What happens

1. Your agent reads the existing work and drafts the skill in a change.

2. You read it and correct anything that is not how you do it.

3. You publish. Every agent now gets the skill when it starts a change.

## Knowledge or skill

| | Knowledge | Skill |
| --- | --- | --- |
| Answers | What is true about us | How we do a job |
| Examples | Voice rules, design system, approved quotes | Weekly changelog, customer story, launch page |
| Lives in | `.sherpa/knowledge/` | `.agents/skills/` |
| See it in Sherpa | Library, Knowledge | Library, Skills |

## What makes a good one

- Short. Agents read it every time.

- Specific. **Never use colons in headlines** beats **write well**.

- Earned. Add a rule when you have corrected the same thing twice.

- Current. Remove rules that no longer apply.

## How agents get them

When an agent starts a change, Sherpa hands it the website's guide and the list of skills and knowledge files. It reads the ones that fit the job before it edits.

**Pro tip**

When a job goes well, say turn what we just did into a skill. The whole team gets it, and next time it is one sentence.

## Common questions

### What is the difference between a knowledge file and a skill?

Knowledge says what is true about you, such as voice rules and approved quotes. A skill says how you do a job, such as a weekly changelog.

### Where do they live?

Knowledge in `.sherpa/knowledge/` and skills in `.agents/skills/`. Both show in Sherpa under Library.

### Do they work across different agents?

Yes. Claude, ChatGPT, Devin and coding agents all get the same files when they start a change.

## Example prompts

Each one works as written in Claude or ChatGPT once Sherpa is connected. Swap in your own pages and dates.

### The request from the example

> Write a skill for how we publish a customer story, based on how the last two were done. Keep it short and mark anything you are guessing.

Basing it on real work keeps it honest, and asking for the guesses shows you exactly what to correct.

### The correction keeper

> Add what I just corrected to our voice notes so it does not happen again.

The fastest way to build good notes is one correction at a time.

### The stale rule check

> List our skills and knowledge files and say what each one is for. Which are out of date?

Agents read these every time, so stale rules cost you on every change.

### The edit

> Read our voice notes and rewrite them to be half as long without losing a rule.

Short notes get followed. Long ones get skimmed, even by an agent.

## For agents

Sherpa MCP tools for this job, in the order they are usually called. `start_change`, `read_file`, `edit_files`. Work inside a change, and only call submit_change when the person asks to publish. A person presses Publish. Every tool is described in the [MCP reference](https://www.withsherpa.ai/docs/mcp-reference).

## Next

[**My agent cannot see Sherpa** Fix a connection when your agent says it has no Sherpa tools or cannot find your website.](https://www.withsherpa.ai/docs/agent-cannot-see-sherpa) [**A preview build failed** Get a preview working again when the build did not finish.](https://www.withsherpa.ai/docs/preview-build-failed)
