ax-extract-workflow
它能做什么
这个工具可以帮你了解一个项目或功能是如何构建出来的。它会查看编码智能体的历史记录,展示最终成果背后的步骤、工具和决策。
适用场景
- ✓当你想问“X 是怎么做出来的?”时。
- ✓当你想查看某个东西是通过哪些操作步骤创建的时。
- ✓当你手头有代码、日期或功能名称,想要进行调查时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ax-extract-workflow/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“实时数据接入(live ingest)仪表盘是怎么做出来的?”
每周 5 个新技能,1 分钟读完。
工作原理
工具会搜索编码智能体的工作记录,把其中的操作、工具和决策串联起来,并整理成一条简单的时间线,解释整个过程。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
ax Extract Workflow
Overview
Use this skill to reconstruct the workflow behind a past coding-agent artifact:
a shipped feature, PR, demo, refactor, report, or other concrete result. It uses
the local ax graph to connect commits, sessions, turns, skills, and tool traces
into a short "how this got made" narrative.
ax must be installed, available on PATH, and able to reach its local database.
If ax cannot connect to its DB, report the connection failure and stop instead of
guessing from memory.
When to Use This Skill
- Use when the user asks "how did we build X?", "what made X work?", or "extract the workflow behind this artifact."
- Use when the anchor is a commit SHA, date, feature name, PR, session, or repo-local artifact.
- Use when the user wants the sequence of agent skills, prompts, commands, decisions, and checks that led to a result.
- Do not use for a generic activity summary; use normal session listing instead.
How It Works
Step 1: Resolve the Anchor
Identify the best anchor from the user's request:
- Commit SHA: use it directly.
- Date or date range: inspect sessions around the date.
- Topic, feature, or artifact name: search recall for related turns, commits, and skills.
- "This repo recently": list recent sessions for the current repo.
ax recall "live ingest dashboard" --sources=turn,commit,skill --scope=here
ax sessions near abc1234 --json
ax sessions around 2026-06-15 --days=3 --json
ax sessions here --days=14
These commands are read-only inspection commands.
Step 2: Pick Relevant Sessions
Choose the few sessions most likely to explain the artifact. Prefer sessions that mention the artifact, touch related files, include relevant commits, or have skills and tool calls that match the work.
If several candidates are plausible, show the user the candidates and ask which one to inspect.
Step 3: Inspect the Session Trail
Open each selected session and look for:
- skills used and their order
- user steering points and clarified constraints
- files, tests, and commands that changed the direction of the work
- subagent or tool traces that produced key evidence
- verification steps before the result was considered done
ax sessions show <session-id> --json
ax sessions show <session-id> --by-role
ax recall "specific keyword from the artifact" --sources=turn,commit --scope=here
Step 4: Write the Reconstruction
Return the result inline unless the user asks for a file. Keep it short and evidence-grounded:
- Anchor: the date, commit, feature, or artifact you resolved.
- Ordered workflow: 4-8 steps showing the skill or action and what it produced.
- Key decisions: the user or agent choices that changed the path.
- Verification: tests, reviews, checks, or manual evidence.
- Reproducer brief: the compact recipe for doing similar work again.
Use session IDs, commit SHAs, and file paths as citations when available.
Examples
Reconstruct a Feature from a Commit
ax sessions near 8f31c2a --json
ax sessions show <session-id> --by-role
ax sessions show <session-id> --json
Output shape:
Anchor: 8f31c2a, live ingest dashboard
Workflow:
1. Problem framing -> narrowed the failure to stale dashboard polling.
2. Session recall -> found the earlier ingest-stream design and constraints.
3. Implementation -> wired the server event bus and browser subscription.
4. Verification -> ran typecheck and refreshed the dashboard locally.
Reproducer brief:
Start from the failing artifact, find nearby sessions, inspect role-grouped
skills, then summarize the smallest ordered path from framing to verification.
Reconstruct Work Around a Date
ax sessions around 2026-06-15 --days=2 --json
ax recall "otel receiver" --sources=turn,commit,skill --scope=here
Use this when the user remembers when the work happened but not the commit.
Best Practices
- Start from the most concrete anchor available: SHA beats date, date beats vague topic.
- Treat ax as the source of truth; do not invent missing skills, costs, commands, or decisions.
- Quote sparingly and only when a user decision or command matters to the reconstruction.
- Keep private transcript details private; summarize rather than dumping logs.
- Separate "what happened" from "what to repeat next time."
Limitations
- Requires a working local ax installation and reachable local ax database.
…
常见问题
什么是“产物”(artifact)?
“产物”是智能体工作的任何具体成果,比如一个完成的功能、一次提交的代码(PR)、一个演示或一份报告。
什么是 ax?
ax 是编码智能体用来记录工作过程的工具。使用这个技能前,你需要先在电脑上安装好 ax,并确保它能正常运行。
我能用它来回顾昨天做了什么吗?
可以。只要你记得工作完成的大致时间,或者知道它的名称,工具就能帮你还原当时的过程。
详情
作者的原始描述
Reconstruct workflow behind a past coding-agent artifact using local ax sessions/commits/skills/tool traces. Use when asked how X was built.
热度
- GitHub 星标
- 48k
- 排名
- #3873
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。