关于
This skill handles the initial installation and verification of the ax CLI, daemon, and skills via install scripts and `ax doctor`. It triggers on setup-related phrases like "install ax" or "ax not found" to get the system running. After setup, it directs users to other skills like `ax:retro` for daily use.
快速安装
Claude Code
推荐npx skills add Necmttn/ax -a claude-code/plugin add https://github.com/Necmttn/axgit clone https://github.com/Necmttn/ax.git ~/.claude/skills/setup在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
ax:setup
Install and verify ax - the local agent-experience graph. After this skill
the user has the ax CLI on PATH, a running SurrealDB, the launchd watcher
reacting to new transcripts, and the ax skills loaded into Claude Code.
This skill is intentionally narrow: install + verify only. For day-to-day
use see ax:retro (experiment loop), ax:extract-workflow (reconstruct
the recipe behind a shipped artifact), or run the CLI directly.
When to fire
Trigger phrases:
- "install ax" / "set up ax" / "first-time ax setup"
- "ax not found" / "where is axctl"
- "ax doctor" / "is ax running" / "is ax working"
- "what does ax give me"
Do NOT auto-trigger on unrelated work or when the user is already deep in
an ax workflow (ax improve list, ax recall …).
Install
# 1. CLI binary (downloads the latest GitHub release; macOS-first,
# Linux works for ingest + CLI without launchd reactivity).
curl -fsSL https://raw.githubusercontent.com/Necmttn/ax/main/install.sh | bash
# 2. Skills - installs this skill + ax:retro + ax:extract-workflow
# into ~/.claude/skills/ (and ~/.agents/skills/ for codex).
npx skills add Necmttn/ax
# 3. First ingest - seeds the graph from the user's last 7 days of
# Claude Code + Codex transcripts.
PATH="$HOME/.local/bin:$PATH" ax ingest --since=7
If any step fails, run ax doctor --json and surface the blocker. If
ax itself isn't found after step 1, the user probably has a custom
shell rc - tell them to add $HOME/.local/bin to PATH.
Verify
ax --version # expect axctl v0.1.x
ax doctor --json # expect ok: true for db + watcher + skills
ax skills taste --limit=5 # rank top skills - proof the graph populated
Specific failure modes:
- DB connection refused →
scripts/db-start.shfrom the ax repo, orbrew services start surrealdb. - Watcher not loaded (macOS) →
axctl installre-runs the launchd registration. On Linux the watcher isn't supported - manualax ingest --since=1periodically. - Zero skill invocations after ingest → user has a different Claude
transcripts path. Set
AX_TRANSCRIPTS_DIRand re-ingest.
Label skills ax can't classify (do this for the user)
ax tags skills with roles (e.g. framing, execution, verification) so
ax skills weighted ranks by usage × role, not raw count. A skill the user
invokes ≥3× with no role is "unclassified" - ax hands each one back to YOU as a
task brief to fill. This is the core agent-in-the-loop step; don't skip it.
ax skills classify # writes .ax/tasks/classify-<skill>.md per unclassified skill
For each brief written:
- Read the skill (its SKILL.md / what it does) and the brief's evidence.
- Fill the YAML frontmatter at the top of the brief:
primary_role:(required, one label), plus optionalsecondary:,confidence:(0–1),rationale:. Runax rolesto see labels already in use; reuse them when they fit. - Apply + check:
ax skills lint # reads filled briefs → writes plays_role edges
ax skills weighted # the re-ranked list, now role-weighted
If classify reports "no unclassified skills", the user hasn't used enough yet -
say so and revisit after a few days (the watcher keeps ingesting). One-off
override without a brief: ax skills tag <skill> <role>.
Also surface the config front door when relevant:
ax skills config- skill lifecycle (live / orphan / out-of-scope / parked).ax hooks config- hooks across claude/cursor/codex/opencode (+ add/remove/edit).ax hooks init- scaffold~/.ax/hooksfor authoring custom TypeScript guards (defineHookfrom@ax/hooks-sdk); validate withax hooks backtestbeforeax hooks install.ax agents config- agent definitions and the skills they scope.
After the first ingest completes, show the user where their model spend goes - this is the fastest "aha" in the product:
ax cost split --days=7 # main loop vs subagents, by model
ax dispatches --candidates # dispatches that could run on cheaper models
If the candidates list is non-empty, point at the routing loop: the
efficient-dispatch skill (installed with the others), the route-dispatch
hook (ax hooks init scaffolds it; install with
ax hooks install ~/.ax/hooks/route-dispatch.ts --providers=claude), and
docs/design/cost-routing.md for the full picture.
What's installed
| Component | Where | Owner |
|---|---|---|
ax / axctl CLI | ~/.local/bin/ax (symlink to ~/.local/share/ax/bin/axctl) | install.sh |
| SurrealDB | 127.0.0.1:8521 (ns=ax, db=main) | scripts/db-start.sh |
| Launchd watcher (macOS) | com.necmttn.ax-watch reacts to new transcripts | axctl install |
| Weekly checkpoint (optional) | com.necmttn.ax-checkpoint runs experiment-loop math | bun run checkpoint:install from the repo |
| Claude skills | ax:setup (this one), ax:retro (experiment loop), ax:extract-workflow (recipe reconstruction), ax:release-announcement (release notes from git + session evidence) | npx skills add Necmttn/ax |
After install
To run the experiment loop:
let's do an ax retro
That fires ax:retro which walks the user through proposal triage +
verdict review against their recent work.
For ad-hoc queries the CLI is direct:
ax skills taste --limit=10 # most-used skills (with clean-run boost)
ax recall "auth middleware" # cross-session text search
ax insights tools --limit=5 # tool-failure leaderboard
ax project context --json # grounding for the current repo
Common questions
- "What does ax do?" Local typed graph of every Claude Code + Codex session, skill invocation, edit, and commit. Surfaces what skills you actually use, what context to ground on, and which repeated workflows are worth packaging.
- "Is my data shared?" No. Everything stays in your local SurrealDB
at
127.0.0.1:8521. No telemetry leaves the box. - "How do I uninstall?"
bash scripts/uninstall-watcher.sh bash scripts/uninstall-daemon.sh rm ~/.local/bin/ax ~/.local/bin/axctl rm -rf ~/.local/share/ax
What this skill is NOT for
- Experiment-loop workflow → use
ax:retro. - Reconstructing how a shipped artifact was built → use
ax:extract-workflow. - Drafting release notes or changelog pages → use
ax:release-announcement. - Day-to-day skill queries → run the CLI directly; no skill mediation needed.
- Schema / dev work on the ax repo itself → see
docs/development.mdin the repo.
GitHub 仓库
常见问题
什么是 setup Skill?
setup 是一个 Claude Skill,作者为 Necmttn。Skill 将 Claude 按需加载的说明和资源打包,让 Claude 无需额外提示即可执行与 setup 相关的任务。
如何安装 setup?
使用本页的安装命令:将 setup 作为插件添加到 Claude Code,或将其仓库克隆到 skills 目录,然后重启 Claude 以加载该 Skill。
setup 属于哪个分类?
setup 属于元分类。
setup 可以免费使用吗?
可以。setup 已收录在 AIMCP,可免费安装。
相关推荐技能
Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。
该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。
SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
