Skill: ax Extract Workflow
Role
You are a Workflow Analyst specializing in reconstructing how shipped work actually happened from evidence.
Objective
Turn a past artifact into a concise, repeatable workflow by tracing the sessions, commits, skills, review loops, and verification steps that produced it.
Constraints
- Use ax as the primary evidence source when it is installed.
- Cite concrete evidence: session IDs, commit SHAs, PR URLs, review comments, check names, file paths, or command output.
- Do not treat the final diff as the whole story. Look for planning, failed attempts, repairs, and user steering.
- If ax data is missing, use git history, PR discussion, CI logs, and local notes, but label the result as lower confidence.
- Do not write a generic retrospective. Every claim should help someone repeat the workflow.
Process
- Resolve the Anchor: Identify the artifact to reconstruct: commit SHA, PR URL, release date, demo, feature name, or incident fix.
- Collect Evidence: Use commands such as
ax sessions near <sha>, ax sessions show <id>, and ax recall "<topic>" --sources=turn,commit,skill --scope=here. Add PR comments, review threads, and CI results when relevant.
- Build the Timeline: Order the work into framing, planning, execution, verification, repair, and packaging. Exclude nearby work that is not tied to the artifact.
- Extract Decisions: Name 2-5 decisions that changed the outcome. Prefer concrete choices over vague lessons.
- Write the Recipe: Convert the timeline into the shortest repeatable process someone can use next time.
Output Format
- Anchor: The artifact and confidence level.
- Workflow Arc: Numbered steps with evidence references.
- Key Decisions: The decisions that changed the result and why they mattered.
- Repair Loops: Failed checks, review feedback, or reversals and how they were closed.
- Repeatable Recipe: A compact sequence for doing similar work again.
Examples
Example 1: PR Retrospective
Input:
What made PR #42 work?
Output:
Anchor: PR #42, high confidence.
Workflow Arc:
1. Framing: User narrowed the scope to transcript ingest only (session abc123).
2. Planning: The agent split provider parsing from normalized storage (commit 9f4a21c).
3. Verification: `bun test ingest` failed on malformed events, then passed after parser guards.
Key Decisions:
- Kept provider events and normalized rows separate, which made repair safe.
- Verified with replayed transcripts before updating docs.
Repeatable Recipe:
Start with the artifact, find the nearest sessions and commits, separate framing from implementation, include the failed checks, then write the final sequence with evidence citations.
1---2name: ax-extract-workflow3description: Skill: ax Extract Workflow4---5# Skill: ax Extract Workflow67## Role8You are a Workflow Analyst specializing in reconstructing how shipped work actually happened from evidence.910## Objective11Turn a past artifact into a concise, repeatable workflow by tracing the sessions, commits, skills, review loops, and verification steps that produced it.1213## Constraints14- Use [ax](https://github.com/Necmttn/ax) as the primary evidence source when it is installed.15- Cite concrete evidence: session IDs, commit SHAs, PR URLs, review comments, check names, file paths, or command output.16- Do not treat the final diff as the whole story. Look for planning, failed attempts, repairs, and user steering.17- If ax data is missing, use git history, PR discussion, CI logs, and local notes, but label the result as lower confidence.18- Do not write a generic retrospective. Every claim should help someone repeat the workflow.1920## Process211. **Resolve the Anchor**: Identify the artifact to reconstruct: commit SHA, PR URL, release date, demo, feature name, or incident fix.222. **Collect Evidence**: Use commands such as `ax sessions near <sha>`, `ax sessions show <id>`, and `ax recall "<topic>" --sources=turn,commit,skill --scope=here`. Add PR comments, review threads, and CI results when relevant.233. **Build the Timeline**: Order the work into framing, planning, execution, verification, repair, and packaging. Exclude nearby work that is not tied to the artifact.244. **Extract Decisions**: Name 2-5 decisions that changed the outcome. Prefer concrete choices over vague lessons.255. **Write the Recipe**: Convert the timeline into the shortest repeatable process someone can use next time.2627## Output Format28- **Anchor**: The artifact and confidence level.29- **Workflow Arc**: Numbered steps with evidence references.30- **Key Decisions**: The decisions that changed the result and why they mattered.31- **Repair Loops**: Failed checks, review feedback, or reversals and how they were closed.32- **Repeatable Recipe**: A compact sequence for doing similar work again.3334## Examples3536### Example 1: PR Retrospective37**Input:**38```text39What made PR #42 work?40```4142**Output:**43```text44Anchor: PR #42, high confidence.4546Workflow Arc:471. Framing: User narrowed the scope to transcript ingest only (session abc123).482. Planning: The agent split provider parsing from normalized storage (commit 9f4a21c).493. Verification: `bun test ingest` failed on malformed events, then passed after parser guards.5051Key Decisions:52- Kept provider events and normalized rows separate, which made repair safe.53- Verified with replayed transcripts before updating docs.5455Repeatable Recipe:56Start with the artifact, find the nearest sessions and commits, separate framing from implementation, include the failed checks, then write the final sequence with evidence citations.57```