> 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, applied automatically while you build.

Agent skills are packaged integration knowledge for AI coding assistants. Installed once, the PredictHQ skill is applied automatically whenever your agent 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

```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 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

* [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 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.predicthq.com/ai/agent-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.
