---
url: https://paperpic.dev/guide/ai-agents.md
description: >-
  How to give Claude Code, Cursor, Copilot and other coding agents the PaperPic
  docs, with the agent skill, the docs in node_modules, llms.txt or Context7.
---

# AI coding agents

When a coding agent has to guess how PaperPic works, it writes code that looks right but fails: a container with no height, a missing stylesheet, or the original image uploaded instead of the edited one. Give it the docs so that it doesn't have to guess. Start with the skill, and add one of the other options when the agent needs the full docs. They are all in English, the language agents read best.

## The agent skill {#skill}

The skill tells the agent how to set up PaperPic, how to handle the common tasks and which behavior to plan for. The agent only loads it when a task involves PaperPic. Install it in your project:

```sh
npx skills add paperpic/paperpic
```

It works with Claude Code, Cursor, GitHub Copilot and any other agent that supports skills.

## The docs in node_modules {#node-modules}

Each package ships these pages as Markdown in `dist/docs`, matching the version you installed:

```txt
node_modules/@paperpic/core/dist/docs/
├── examples/
├── guide/
└── reference/
```

Agents that search `node_modules` find them there, even offline. To send yours there, add a line that names your package to the instructions it reads, such as `AGENTS.md` or `CLAUDE.md`:

```md
The PaperPic docs are in node_modules/@paperpic/vue/dist/docs.
```

## llms.txt {#llms-txt}

The site also publishes its pages in two files made for language models:

* [`llms.txt`](https://paperpic.dev/llms.txt) lists every page with its description and a link to its Markdown version.
* [`llms-full.txt`](https://paperpic.dev/llms-full.txt) holds every page in a single file.

You can read any page as Markdown too: add `.md` to its URL, such as `https://paperpic.dev/guide/getting-started.md`.

## Context7 {#context7}

[Context7](https://context7.com/paperpic/paperpic) serves these docs to agents through its MCP server, along with rules for setting up PaperPic. Once your agent uses Context7, ask it to read the docs of `/paperpic/paperpic`.
