# setup

Installs the ax environment, builds a local DuckDB session graph, and validates the agent configuration.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 121
- Author: Necmttn
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Necmttn/ax/tree/HEAD/skills/setup/SKILL.md
- Updated: 2026-10-07
- HTML: https://affpapa.org/en/nevibecode/skills/necmttn-setup

## What it does

The skill fetches `install.sh` into a temporary directory, presents it for review, and runs the script only after explicit confirmation. Next, it links `axctl` to `~/.local/bin/ax`, adds ax skills to the coding agent, and executes `ax ingest --since=7`. That step ingests the last 7 days of agent transcripts into a local graph.

Storage runs on an embedded DuckDB file inside `~/.local/share/ax/`. No background daemon stays in memory. Cache queries automatically trigger a background refresh when stale. The skill then runs `ax doctor --json` to verify the setup and prompts you to categorize untagged tools with `ax skills classify`. If `$HOME/.local/bin` is missing from `PATH`, shell sessions will fail to locate `ax`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add Necmttn/ax --skill setup -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/setup/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/setup/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Necmttn/ax --skill setup -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/setup/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Necmttn/ax --skill setup -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/setup/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Necmttn/ax setup
```

2. **Manually: put the files in place**
- File: `.github/skills/setup/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Necmttn/ax --skill setup -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Necmttn/ax --path skills/setup
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/setup/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Necmttn/ax --skill setup -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Necmttn/ax/tree/HEAD/skills/setup/SKILL.md

## When to use it
- install the ax CLI and related agent skills
- verify environment health using `ax doctor`
- seed the DuckDB session graph with 7 days of history
- assign functional roles to unclassified skills
- review model spending breakdown across runs

## Example prompts
- Install and set up ax in Claude Code
- ax not found, fix the installation
- Run ax doctor to check the system

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

## Other versions with the same name
- [setup · alirezarezvani](https://affpapa.org/en/nevibecode/skills/setup.md) — 1480 installs
- [setup · aws](https://affpapa.org/en/nevibecode/skills/aws-setup.md) — 1500 installs
- [setup · marketcalls](https://affpapa.org/en/nevibecode/skills/marketcalls-setup.md) — 2000 installs
- [setup · assistant-ui](https://affpapa.org/en/nevibecode/skills/assistant-ui-setup.md) — 6100 installs
- [setup · aladicf](https://affpapa.org/en/nevibecode/skills/aladicf-setup.md) — 605 installs

From the same set: [necmttn/ax](https://affpapa.org/en/nevibecode/by/necmttn/ax.md) — 11 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
