mcpbeat Sign in

Ax Extract Workflow Agent Skill

Reconstruct workflow behind a past coding-agent artifact using local ax sessions/commits/skills/tool traces. Use when asked how X was built.

2k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
223
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/lingxling/awesome-skills-cn --skill ax-extract-workflow

The instruction itself

15 sections, as written by the author

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.
  • Only sees sessions, commits, skills, and tool traces that ax has ingested.
  • Session data can be incomplete when an agent provider omits tool output, cost, or reasoning data.
  • It reconstructs workflow, not correctness; still inspect the code and run project checks when making engineering decisions.

Security & Safety Notes

  • Do not upload private transcripts, session logs, prompts, tool outputs, or local database exports.
  • Redact secrets, tokens, customer data, file contents, and private conversation text from summaries.
  • Use read-only ax inspection commands unless the user explicitly asks for a separate maintenance action.
  • Do not run commands that mutate .ax/, regenerate indexes, publish reports, or alter repositories as part of reconstruction.
  • @agenttrace-session-audit - Use for local agent-session health, cost, latency, and tool-failure audits.
  • @domain-modeling - Use when the reconstruction reveals terminology or architectural decisions that should be captured.
  • @planning-with-files - Use when the user wants to turn the reconstructed recipe into a new plan with tracked notes.

Other skills for the same job

different authors, same section of the catalogue
Declarative Agents
by github
vendor ×1

Complete development kit for Microsoft 365 Copilot declarative agents with three comprehensive workflows (basic, advanced, validation), TypeSpec support, and Microsoft 365 Agents Toolkit integration

1k tokens
Treatment Plans
by K-Dense-AI
×1

Format and structurally validate local treatment-plan documentation after clinical decisions have already been supplied and verified by authorized licensed professionals. Use for source traceability, clinician-authored intervention records, goals and checkpoints, shared-decision records, reconciliation handoffs, and release gates—not for clinical decision-making.

38k tokens scripts
Okx AI
by internet-court
×1

> provider/change budget/修改卖家/修改预算/draft/草稿/我的任务/my tasks/what am I working on/关闭/取消任务/决策列表/decision list/指定服务商/browse (sender.role = COUNTERPARTY, not you); (3) literal "Read the okx-ai skill" (or legacy "Read the okx-agent-task skill") in the envelope.

57k tokens
Prior Auth Review Skill
by anthropics
vendor ×1

Automate payer review of prior authorization (PA) requests. This skill should be used when users say "Review this PA request", "Process prior authorization for [procedure]", "Assess medical necessity", "Generate PA decision", or when processing clinical documentation for coverage policy validation and authorization decisions.

23k tokens
Pitchcraft
by moshuying
×1

Structured persuasion for tech leads, PMs, and founders—not activity logs. Five scenarios (kickoff, status update, wrap-up, investor pitch, solution selling) on one 5-part framework (Hook→Context→Proposal→Evidence→Ask). AI prompts for missing materials and audience context; pre-submit checklist. Claude Code plugin; Cursor, Codex, and chat via prompts.

5k tokens
Agentic Workflows
by github
vendor ×1

Route gh-aw workflow design/create/debug/upgrade requests to the right prompts.

1k tokens
Agentic Workflow
by ComeOnOliver
×1

Practical AI agent workflows and productivity techniques. Provides optimized patterns for daily development tasks such as commands, shortcuts, Git integration, MCP usage, and session management.

5k tokens
Agent Swarm Workflow
by ComeOnOliver
×1

Jeffrey Emanuel's multi-agent implementation workflow using NTM, Agent Mail, Beads, and BV. The execution phase that follows planning and bead creation. Includes exact prompts used.

7k tokens

How to use it

Copy the folder

Take lingxling/ax-extract-workflow from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.