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

# Agent skills

Install PredictHQ agent skills to give AI coding assistants best-practice integration knowledge - recommended workflow, API selection, and Beam guidance, which your agent applies automatically while y

Agent skills are packaged integration knowledge for AI coding assistants. Once you install it, your agent applies the PredictHQ skill automatically whenever it works on a PredictHQ integration - no prompting, no pasting docs into context.

The skill encodes the same guidance these docs recommend, so code written with it follows the proven path instead of a plausible-looking wrong one:

* The recommended integration workflow - Saved Locations and Predicted Impact Area first, then Beam, then features
* API selection - Features API for model inputs, Events API for explainability, and when the Forecasts API is the better fit
* Beam best practices - one Analysis per location, `beam.analysis_id` on every downstream call, monthly refresh
* Common mistakes to avoid - manual event aggregation, fixed radii, skipping Beam

## Install

To install the skills, run:

```bash
npx skills add predicthq/agent-skills
```

Works with Claude Code, Cursor, Gemini CLI, GitHub Copilot, and other compatible agents. The skills are open source on [GitHub](https://github.com/predicthq/agent-skills).

## Skills and the PredictHQ MCP server

The two are complementary and often installed together. Agent skills teach your coding assistant how to *build* the integration correctly. The [MCP server](/ai/mcp.md) gives assistants and agents live access to PredictHQ data - for exploring while you build, and for [grounding](/ai/grounding-with-predicthq.md) AI systems in production.

## Next steps

To keep building, see these pages:

* [Build with AI](/ai/build-with-ai.md) - all the tools for building with AI assistants
* [MCP server](/ai/mcp.md) - live API access from any MCP-compatible client
* [Which API should I use?](/getting-started/core-concepts/which-api-should-i-use.md) - the guidance the skill applies, in human-readable form


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.predicthq.com/ai/agent-skills.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
