Skip to content
Back to skills

Flow

ASecurity

Shared rules for one agent run - input checks, decisions, blockers, handoffs, and the RESULT block. Used by every working agent.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgodockerapidatabase

Works with

  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add sayeed1999/aidlc-agent-crew --skill flow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flow?

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

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

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
description: Shared rules for one agent run - input checks, decisions, blockers, handoffs, and the RESULT block. Used by every working agent.
---

# flow

The rules for one run. Who runs next is the orchestrator's job, not yours.

## Steps
### 1. Log the input
- Before anything else, append the complete prompt received for this run verbatim to `prompt_log/YYYY_MM_DD.txt`, using the date from the timestamp.
- Format each entry as `[<ISO-8601 timestamp with offset>] [<agent-name>] [prompt]`, followed by the verbatim message and a blank line.
- `<agent-name>` is the agent the prompt invokes, as in its `name` field (e.g. `architect`). Your own input: your name. A prompt you send to another agent: that agent's name.
- Log the prompt only. No system messages.
- Create the folder or daily file if missing. Never edit earlier entries.

### 2. Check the input
- `T-NN`: read `docs/tasks/T-NN.md` and its row in `docs/tasks.md`. You must be the Owner. Every task in Depends on must be finished. If not, change nothing and return `failed`.
- `H-NNN`: read `handoffs/H-NNN.md`. Fix only what it reports.
- Other inputs (`design`, `ship-check`, `run`, `approve R-NN`, notes): use them only if your agent file lists them.
- No Stage in the input: use `MVP`.

### 3. Check Requires
- Every file under Requires in your agent file must exist.
- If one is missing, create nothing. Return `failed` with a Blocker that names the file and the agent that writes it.
- Never invent a missing architecture, contract, schema, task spec, screen, or skeleton.

### 4. Read open handoffs
- Open files in `handoffs/` with `To: <you>` and `Status: open`.
- Handle them first if they block your input.

### 5. Do the work
- Follow the Workflow in your agent file, in order.
- Set your task `in-progress` when you start.

### 6. Decide, or raise a blocker
- Use Decisions and Blockers below.
- Finish every part of the work that is not blocked before you return.

### 7. Finish
- Set your task status: `built` when done, `blocked` when a blocker stops it.
- End with the RESULT block.

## Decisions
A decision exists when two or more options are reasonable and the files do not settle it.

### Decide alone when
- Your agent file lists it under CAN.
- It is easy to change later: names, copy, spacing, file layout inside your own area.
- `skills/stack-defaults`, `docs/architecture.md`, or your task spec already answers it.

### Ask the user when
- It changes scope, API, data model, auth, or the stack.
- It is hard to undo.
- Stage is `PROD` and the files do not settle it.

### Always ask before
- Deleting data
- Deploying
- Spending money

## Blockers
A blocker is anything that stops you from finishing your input. Every blocker goes in the RESULT block. Never leave one only in a file or a log.

### Kinds
- `user`: a decision, an answer, a credential, or an approval only the user can give.
  - Outcome `question`. Write it under Asks.
- `agent`: another agent's file is wrong, missing, or contradicts the spec.
  - Write one handoff per problem (`skills/handoff-report`). Set your task `blocked` and add `[H-NNN]` to its title in `docs/tasks.md`.
  - Outcome `blocked`.
- `env`: the machine is missing something: Docker not running, a tool not installed, a port in use, no network.
  - Outcome `question`. Give the exact command the user runs to fix it.
  - Never mark the work `built` or PASS around it. Mark it `NOT VERIFIED` when your skill allows that.

### How to write one
- Name exactly what is missing: the file, field, endpoint, table, command, or decision.
- Name who must act: `user`, or the agent name.
- Name the exact action that unblocks you.
- For a question: 2 to 4 numbered options. The first is your recommendation. One-line trade-off each.
- Send all open blockers together in one RESULT. Never one per run.

## Format: RESULT block
```
RESULT
Agent: <name>
Input: <input>
Outcome: done | blocked | question | failed
Verdict: PASS | FAIL | SHIP | BLOCK | -
Summary: <1-2 lines>
Requirements: <R-IDs covered, or ->
Tasks: <T-NN -> status, or ->
Handoffs: <H-NNN -> agent, or ->
Resolved: <H-NNN, or ->
Asks:
- Q1 [user | env] <question> | 1. <option> (recommended) - <trade-off> | 2. <option> - <trade-off> | Blocks: <what stops until answered>
Next: <the one action that unblocks this run, e.g. "user answers Q1", "database-engineer resolves H-007", or ->
```
- `done`: the input is finished. `Asks` and `Next` are `-`.
- `blocked`: waiting on another agent's handoff. `Next` names the agent and the handoff.
- `question`: needs the user. The orchestrator asks each item under Asks, then runs you again with the answers.
- `failed`: wrong input or missing required file. `Next` names the agent that must write the file.

## MUST
- Do one input per run.
- End with RESULT.
- Fill `Next` whenever Outcome is not `done`.

## NEVER
- Do another agent's work.
- Start another agent.
- Guess when the decision belongs under Ask the user.
- Return `done` with a known blocker.

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.