anfra docsAlpha
Set up local development

Set up your coding agent

Install the anfra agent skills in your coding agent, the second required step of installing anfra

Installing anfra takes two steps: install the CLI, then install the agent skills in your coding agent. The skills teach the agent to set up projects, model data and build apps with anfra.

The skills ship in the anfra plugin from holistics/anfra-skills. The plugin contains:

  • Skills that teach the agent to set up a project, write models and queries, build data apps and publish, such as anfra-setup-repo and anfra-build-data-app.
  • An aql-writer agent that writes and validates queries. Claude Code only.
  • Hooks: one validates AML files as the agent edits them, and one tells the agent at the start of a session when a newer anfra release is out.

See the Skills reference for every skill.

Install them in each coding agent you use. How depends on the agent:

AgentInstall withWhat you get
Claude Code, Codexanfra agent setupThe plugin
CursorCursor's marketplace, after an admin imports itThe plugin
GitHub Copilot, JunieThe agent's own plugin commandThe plugin
Amp and every other agentnpx skills addThe skills only, without the aql-writer agent and hooks

Claude Code and Codex

anfra agent setup
  • It installs the plugin through each agent's own CLI, per user, for every project.
  • Restart the agent afterwards to load it.
  • Run in an anfra project, it also writes an anfra block into the project's AGENTS.md, which tells any agent working there to use the skills. anfra init writes the same block.
FlagDescription
--agentSet up these agents only, by id, such as claude-code or codex. For any other id, such as cursor or opencode, it prints the install steps and installs nothing.

Cursor

Cursor takes the plugin from its marketplace, not from a command. Run anfra agent setup --agent cursor for the steps: an admin imports https://github.com/holistics/anfra-skills as a team marketplace, then each user installs anfra from the marketplace panel.

Amp and other agents

Install the skills with npx skills, naming the agent by its id. For Amp:

npx skills add holistics/anfra-skills -a amp -g -y

For another agent, replace amp with its id, such as opencode, gemini-cli, windsurf or cline. GitHub Copilot and Junie can take the full plugin instead. See Other agents.

Don't rely on anfra agent setup for these agents. It installs nothing for them and only prints a link to their install steps, so it can succeed without installing any skills.

Use the skills

Ask for a skill by name in your prompt.

Example prompt

Use the anfra-build-data-app skill. Build a revenue overview with a monthly trend and revenue by region. Clicking a region should filter the trend.

In Claude Code, a plugin's skills show with the plugin's name in front, such as anfra:anfra-build-data-app.

To check that the skills are installed, see Check the installation.

On this page