> For the complete documentation index, see [llms.txt](https://docs.flatredball.com/gum/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flatredball.com/gum/using-gum-with-ai/ai/ai-skills.md).

# AI Skills

A **skill** is a small, self-contained document that teaches an AI assistant how to work in a particular area. Tools such as Claude Code load a skill automatically when its description matches what you are doing, giving the assistant durable, concept-level context it would otherwise lack — for example, how Gum's file formats are structured, how the layout system behaves, or when to reach for a Forms control versus a raw visual.

Gum ships a set of **consumer-facing skills** you can drop into your own project so your assistant understands Gum without you having to explain it every time.

## Getting the skills

The skills live in the [`gum-skills/`](https://github.com/vchelaru/Gum/tree/main/gum-skills) folder of the Gum repository. To use them, copy the skills you want into your project's `.claude/skills/` folder (or your machine-wide `~/.claude/skills/` folder so they apply everywhere).

A good starting set is the overview skill plus whichever topical skills match your work — for example layout, Forms controls, and the file format. Each skill is a folder containing a `SKILL.md` file with the standard frontmatter your assistant uses to decide when the skill is relevant.

{% hint style="info" %}
The `gum-skills/` folder is being populated incrementally. If a skill you expect is not there yet, check the folder for the current set. These consumer skills are distinct from the engine-internal skills under Gum's own `.claude/skills/`, which describe how to work *on* Gum rather than *with* it.
{% endhint %}

## Skills, the MCP server, and GumCli

The three AI pieces reinforce each other:

* **Skills** give your assistant durable context that loads automatically and shapes *what* it writes.
* The [MCP Documentation Server](/gum/using-gum-with-ai/ai/mcp-server.md) lets it look up authoritative, current details on demand.
* [GumCli](/gum/using-gum-with-ai/ai/gumcli-for-agents.md) lets it generate code, validate the project, and verify the result.

Using all three together gives an assistant the best chance of producing correct Gum UI on the first try.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flatredball.com/gum/using-gum-with-ai/ai/ai-skills.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
