Skip to content
Back to skills

Flow Check

ASecurity

Check from a hook trace that skills ran the way they are designed: /review and /dispatch start their agents together, /execute checks each step before recording it. Use on /flow-check.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 20, 2026
ai-agentsbashnodegit

Works with

  • claude code

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 20, 2026

npx -y skills add AcKeskin/contexture --skill flow-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flow Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flow Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ackeskin-flow-check/badge)](https://www.skillsdirectory.com/skills/ackeskin-flow-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: flow-check
description: "Check from a hook trace that skills ran the way they are designed: /review and /dispatch start their agents together, /execute checks each step before recording it. Use on /flow-check."
disable-model-invocation: true
---

# flow-check

Evals grade what a skill produced. This checks how it ran: the order and overlap of its tool calls, read from the trace the `skillTrace` hook writes.

## Setup (once)

The `skillTrace` hook bundle is off by default. Turn it on:

- Plugin install: set the **Skill trace** option to on.
- Bootstrap install: set `"skillTrace": true` under `enabled.hookBundles` in `~/.claude/hook-config.json`, then re-run bootstrap.

The hook then writes one line per tool call to `<project>/.claude/trace/<session>.jsonl`: tool name, start and end time, and the few fields the checks need (skill name, agent type, the first 200 chars of a Bash command, a file path, a memory tier). It never records prompt text or tool output. The folder ignores itself in git, and traces older than 14 days are deleted.

## Run

Run the script from this skill's folder. Claude Code fills in `${CLAUDE_SKILL_DIR}`; in another tool, use the folder this SKILL.md is in.

```sh
node "${CLAUDE_SKILL_DIR}/flow-check.js"               # newest trace in this project
node "${CLAUDE_SKILL_DIR}/flow-check.js" <trace.jsonl> # a given trace
```

Show the output as-is. One line per skill run:

| Status | Meaning |
| --- | --- |
| PASS | ran as designed |
| FAIL | broke its design; the line says how. Exit code 1 |
| NOTE | `/execute` edits after the last recorded step were not checked: the next step is still running, or the edits came after `/execute` ended |
| SKIP | nothing to compare (fewer than 2 agents, or no step records) |

With no trace, the script says how to turn the hook on.

## Checks

- **review, dispatch:** agents in one message run at the same time. Two agents in a row that each started after the one before ended means the fan-out ran one at a time. A single agent after a parallel wave (a verify pass) is fine. Agents started by a subagent are not counted.
- **execute:** each step ends with a scratch `write_memory` record (execute 3d). Every step that edited files must run a check (Bash, Read, Grep, Glob or a question to the user) after its last edit and before that record. No records at all is SKIP: project-memory may not be connected.

A run starts at a typed `/skill` or a Skill call for a checked skill, and ends at the next one. Skills called inside a run do not end it.

## Adding a check

Add a function to `CHECKS` in `flow-check.js` that takes a run (`{ skill, t, calls }`, each call `{ tool, start, end, ok, agent, sub, cmd, file, tier }`) and returns `{ status, why }`. Write the design as a check: what must be true of the calls, not what the output says. Add a case to `hooks/tests/skill-trace.test.js`.

Idea from `afurmanov/harness-profiler` (MIT): record tool calls from hooks, then check a skill's shape against the trace.

Files in this skill

  • SKILL.md2.9 KB
  • agents/openai.yaml43 B
  • flow-check.js7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.