feat: add af-status, af-score, af-dag, af-report slash command skills

This commit is contained in:
2026-04-06 21:10:22 +02:00
parent 43a147676e
commit 6bae80b874
6 changed files with 125 additions and 2 deletions

34
skills/af-dag/SKILL.md Normal file
View File

@@ -0,0 +1,34 @@
---
name: af-dag
description: |
Show the DAG of the current or last ArcheFlow run.
<example>User: "/af-dag"</example>
<example>User: "/af-dag 2026-04-06-jwt-auth"</example>
---
# ArcheFlow Run DAG
1. Parse `run_id` from args. If none provided, read the latest run_id from `.archeflow/events/index.jsonl`.
2. Run `./lib/archeflow-dag.sh .archeflow/events/<run_id>.jsonl` if the script exists. Display its output.
3. If the script does not exist, read `.archeflow/events/<run_id>.jsonl` and render a text DAG:
- Each node is an event (phase transitions, agent starts/completes, findings).
- Show parent relationships via indentation.
- Mark completed events with `[done]`, active with `[running]`, failed with `[FAIL]`.
Example output:
```
run.start 2026-04-06-jwt-auth
plan.start
agent.complete explorer (42s)
agent.complete creator (68s)
do.start
agent.complete maker (180s)
check.start
agent.complete guardian (55s) -- 3 findings
agent.complete skeptic (40s) -- 1 finding
act.start
fixes.applied 3/4
run.complete (6m12s)
```
4. If no events found for the run_id, say: "No events found for run `<run_id>`."