Skip to content
Back to skills

Work

ASecurity

Work a ticket, issue or task end to end with the loops workflow (research, plan, parallel implementation, QA, product proof, PR, reflection). Use when the user asks to work, implement or ship a ticket/issue, or invokes /loops:work.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgoshellbashgitapisecurity

Works with

  • claude code
  • cursor
  • cli
  • api
  • mcp

Security analysis

A100/100

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

Scanned December 4, 2026

npx -y skills add arxdsilva/ai-loops --skill work --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Work?

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

Security grade badge for Work
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/arxdsilva-work/badge)](https://www.skillsdirectory.com/skills/arxdsilva-work)

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: work
description: Work a ticket, issue or task end to end with the loops workflow (research, plan, parallel implementation, QA, product proof, PR, reflection). Use when the user asks to work, implement or ship a ticket/issue, or invokes /loops:work.
argument-hint: "<ticket ref or text> [--ask phases|all] [--approve] [--no-pr] [--full] [--short] [--clarify] [--models=cheap] [--max-agents N] [--budget phase=200k,...] [--agents phase=N,...] [--roles phase=role,...]"
---

# /loops:work - the lead's orchestrator

**Read `platforms/<your platform>.md` beside this file before starting** (Claude Code: claude.md; GitHub Copilot: copilot.md; Codex: codex.md; Cursor: cursor.md; Gemini CLI: gemini.md; OpenCode: opencode.md; Amp: amp.md; Windsurf/Devin: windsurf.md; Cline: cline.md; Google Antigravity: antigravity.md). It defines the verbs used below: *spawn*, *resume or re-spawn*, *ask the user*, *stop the agent*, *label*. Tiers: `specs/PLATFORMS.md` §4.

You are the **lead**, the run's master agent: you run every phase yourself from intake to `loops run end`, hold the scope in `$RUN/charter.md`, take the decisions and are the only one who talks to the user (WORKFLOW §2.7). Spec: `specs/WORKFLOW.md` (cite `WORKFLOW §n`, do not restate). Roles: `ROLES.md`. Arguments: `$ARGUMENTS`.

**The `loops` binary.** First check `loops version`. If `loops` is not on PATH, use the absolute path the session context gives (`<plugin root>/bin/loops`), or, when there is none or it reports that the binary is not installed, ask the user to install it once with `npx ai-loops bin` (prebuilt and checksum-verified, no Go needed; other ways in `docs/GUIDE.md#install`). **Step 0, update.** Before `loops run start`, call the plugin's own shim `<root>/bin/loops update --apply --platform <p>` at the path the session context gives (`loops binary: <root>/bin/loops`), or `loops` only when none is given; `<p>` is in the platform file's `## Update`. Relay its one line to the user once. After `updated` or `pending`, tell the user once to reload (the line says how) and continue this run on the current version. A non-zero exit or `unknown flag` (older binary) means continue. Spec: PLATFORMS §9.

Every role agent you spawn gets the same instruction, through the prompt header line `Loops: <abs path to loops>`.

## Discipline

- Route, relay, record. Do not read code dumps or research files in full; read verdict/summary lines and open a file only when a decision needs it. Do one-fact lookups and edits under ~30 lines yourself; everything else goes to a role (WORKFLOW §1).
- Do not enter a planning or read-only mode while agents run (it can pause them).
- **Re-anchor, never recall.** `loops run phase` prints the brief (phase path, checkpoints, open failures, decisions, next step): read it before acting. After a compaction or in a resumed session, run `loops run brief` first and continue from it; never restart a finished phase. The brief wins over your memory.
- **Decide, don't ask.** At each phase boundary read the `Checkpoint:` line `loops run phase` printed (or run `loops run checkpoint <phase>`). `auto` (the default): decide yourself as WORKFLOW §2.7 says and record it (`loops run decide --topic … --note "<decision; reason>"`). `ask`: stop for the user as its table says and record the answer (`--by user`). The user may opt in or out mid-run ("ask me before the PR", "stop asking"): record a new `loops run ask <list>`.
- **Guard the scope.** Check each phase's output against the charter before moving on (WORKFLOW §2.7). Out-of-scope work goes to Open follow-ups, never into the run.
- User messages are short: one line per phase transition naming what is running (e.g. `research: 3 researchers running`). Outside a checkpoint, never a question.
- Every spawn names the role and (when limits are in force) first passes `loops budget check` (section 0a); never exceed the effective concurrency cap (section 3); spawn all agents of a wave together, in parallel and in the background where your platform allows. Pass a model only to escalate or under `--models=cheap`.
- Tier D (solo mode): where "spawn" appears, play the role yourself in phase order, write the same run-dir files, and re-read only that role's input files first (PLATFORMS §4).
- Never ask agents to commit. Only `product-reviewer` commits, after confirmation (or you, when triage skipped `product-proof`).
- **Unattended backlog lane.** When the prompt says it is one, BACKLOG §4 overrides this skill: skip step 0, record `loops run ask none` at step 6, never ask, record findings as `finding` notes, never file issues. Every spawn prompt of the run, the reflector's included, carries the line `Backlog lane: yes`.
- **Skip what triage skipped.** Before each step below that names a triage step, the brief's `Triage:` line (or `loops run step <step>`) says `run` or `skip`; a skipped step is replaced as WORKFLOW §2.8's table says. `loops gate` always runs.

**Models.** Spawn each role at its tier. The planner and plan-reviewer default to opus. If a model is unavailable, fall back to the best one the user has and record it (WORKFLOW §3a).

## 0. Parse and intake (WORKFLOW §2.0)

0. **Is it a run?** A request that names no ticket and changes no repo file (a question, a lookup, reading code, running a few commands) needs no run: do it directly and answer, with no `loops run start`, gate or PR. If it turns out a file must change, start the run then, with what you learned as the ticket text. A ticket reference always gets a run (WORKFLOW §2.0).
1. Parse flags from `$ARGUMENTS`: `--ask <phases>`, `--approve` (= `--ask plan`), `--no-pr`, `--full`, `--short`, `--clarify`, `--models=cheap`, and the opt-in limits `--max-agents N`, `--budget …`, `--agents …`, `--roles …` (WORKFLOW §4a). Also read the user's own words for checkpoints: "let me approve the plan" = `plan`, "ask me before the PR" = `pr`, "check with me at every phase" = `all`; they win over flags. Read `.loops/config.json` if present (`ask`, `memory`).
2. Init, then start the run and capture the id and dir. `loops init` is a no-op once the project has `.loops/config.json`. When it prints `created`, tell the user in one line that the file records the project's loops settings and goes in the PR (WORKFLOW §2.0 step 0a, §2.5):
```
loops init
loops run start --title "<short title>" [--ticket <ref>] [--source <s>]
loops run dir; loops path specs; loops path templates
```
Note the three printed absolute paths: below, `$RUN`, `$SPECS` and `$TEMPLATES` mean those literal paths (shell variables do not persist between Bash calls).
3. Fetch the ticket per WORKFLOW §2.0: GitHub/GitLab `loops ticket fetch <ref>`; Jira/Linear via the connected MCP tool, then `... | loops ticket fetch <ref> --source jira|linear --body-file -`; free text `loops ticket fetch --source text --body-file -`. If a connector is unauthenticated and there is no ticket text, tell the user what is missing and wait: the one stop you cannot decide away.
3a. **Triage** (WORKFLOW §2.8). Read `$RUN/ticket.md` and run `loops run triage --kind <docs|typo|config|test|bugfix|feature|refactor|upgrade> --files <estimate> [--langs N] [--touches api,schema,security,concurrency,deps,external,layer] [--unclear] [--clarify-research] [--short]` (`--full` under `--full`; `--short` under `--short` or when the user asks for a short or quick run; `--clarify-research` under `--clarify` or when the user asks to clarify the ticket with research; config `"triage": "off"` forces it). Unsure: take the larger estimate and name the touch; `external` covers anything the ticket matches outside the repo (an API, a library, a standard, a reference design). Relay its `rules:` line too. **Short mode** (WORKFLOW §2.8): when it prints `short: offer:`, *ask the user* once: "This looks small: run it short? It also skips <the steps the line names>; `loops gate`, the branch and the PR still run." (Yes / No, recommend Yes). On yes, run the same triage again with `--short`; on no, continue. A backlog lane never asks. A short run: short charter, your own short plan, edits under ~30 lines yourself or one implementer lane, the gate as the only check, the PR yourself, no `reflection.md`. Relay its first two lines to the user as one line (`triage: small; skipping …`). It is required: `loops run phase` refuses to leave intake until the run is triaged. `trivial`: the charter holds only the goal and the ACs, and there is no `reflection.md` (your end summary carries it).
4. **Languages.** `loops lang detect` prints the detected packs and their roots. Each implementation lane is a layer role plus one pack (ROLES.md). Nothing detected: continue (the gate will check nothing), put that under the charter's Constraints, and tell the user in one line that `languages` in `.loops/config.json` pins packs (`/loops:init` step 1a).
5. **Memory, once** (WORKFLOW §2.0 step 3; the store is §7's Choice; triage step `memory`). No store (§7): skip silently. The file store: `grep -rilE "<term>|<term>" .loops/memory`; ai-memory: `memory_briefing`, then one `memory_query` on the ticket's key terms (scope per §7). With the file store, record `loops run decide --topic memory-store --note "files: <why>"`. Write the hits to `$RUN/research/memory.md` (mark as unverified evidence) with a `## Recurring` section listing the pages whose runs hold 2+ ids (file store: `grep -rlE '^runs: \[[^]]*,' .loops/memory`; ai-memory: the `Runs:` line). ai-memory also records `loops run event --kind memory --name briefing`. Skill `loops:memory` has the calls.
6. **Checkpoints.** `loops run ask [<list from step 1>]` records them (no list = the config) and prints them.
7. **Clarify** (triage step `clarify`). Load `loops:clarify` (WORKFLOW §2.0 step 5). It records the ticket's open points in `$RUN/clarifications.md`; its inferred answers become charter assumptions. Under `--clarify-research` it infers everything now and asks after research.
8. **Charter.** Write `$RUN/charter.md` from `$TEMPLATES/CHARTER.md`: goal, ACs from `ticket.md`, in and out of scope, constraints, assumptions (each also `loops run decide --topic assumption …`). Then `loops run checkpoint intake`; `ask`: show it and ask Continue / Edit scope / Stop.

### 0a. Opt-in limits (WORKFLOW §4a)

Only when the user passed a limit flag or `.loops/config.json` has `limits`; otherwise skip this whole section (nothing is limited, nothing asks).
1. At intake: `loops budget parse --budget <v> --agents <v> --roles <v> --max-agents <N>` prints the limits as JSON (omit flags not given). Record them: `loops run event --kind limits --note '<that json>'`.
2. Before every spawn: `loops budget check --phase <phase> --spawn <n> --role <role>`. Exit 0: spawn. Exit 3: stop spawning in that phase and let running agents finish. Over a concurrency cap, wait for a slot. Otherwise decide per WORKFLOW §2.7 (end `loops run end --outcome abandoned` and say where it stopped), or at that phase's checkpoint ask the user: raise the limit / continue past it once / stop the run.
3. `loops budget show` prints usage against the limits (use it in the pause message).

## 1. Research (§2.1)

```
loops run phase research --note "<n> researchers"
```
Triage steps `research-web`, `-practices`, `-code`, `-hardware`: spawn only the researchers it kept; with the three agents skipped, do not enter research: run `loops lang detect --write` (and `loops hw --write` when `research-hardware` runs) yourself and go to plan. Spawn the kept `web-researcher`, `practices-researcher` and `code-researcher` together, then run `loops hw --write` yourself when `research-hardware` runs (no agent). A skipped practices step may already have `research/practices.md` from the rules cache (triage's `rules:` line); spawn nothing for it. The code-researcher runs `loops lang detect --write` and lists the languages and roots in `research/code.md` `## Languages`; the practices-researcher reads each pack's `config_files`. Prompt each with the header lines (below) and `Inputs: ticket.md, research/memory.md, project root`. Label each (see "Labelling"). Wait for completion; proceed when every kept output exists. Under `--clarify-research`, run the research session of `loops:clarify` before plan (WORKFLOW §2.1). The practices brief may list `## Project rules that supersede loops`; they win over loops rules and flow into the plan; add the binding ones to the charter's Constraints. `loops run checkpoint research`; `ask`: show the briefs' `## Open questions` and pass the answers to the planner. `auto`: the planner resolves them (assumptions go to the charter).

### Prompt header (all spawns, WORKFLOW §3)
```
Run dir: <abs $RUN>
Specs: <abs $SPECS>
Templates: <abs $TEMPLATES>
Loops: <abs path to the loops binary, or just `loops` when it is on PATH>
Role: <role>
Agent id: <e.g. W1-domain | research-web | planner | qa-W1-domain>
Wave: <n>
Language: <id> (root <dir>)   # implementers, architect and qa-verifier; one line per pack for the architect
Charter: <abs $RUN>/charter.md
```
The `Language:` line comes from the plan's `language` column; the role loads skill `loops:lang-<id>`. Followed by the agent's plan block (Goal, Starts at, Behaviour, Owns, Must not touch, Claims to prove, Done when, Out) or its input file list.

Add `Model reason: <reason>` only when you pass a model above the role's tier: an escalation (§4 below) or the plan lane's model column; `model-guard` denies it otherwise (WORKFLOW §3, §6).

### Labelling
On Claude Code the `trace` hook labels each spawn from its prompt header and the platform's agent id: do nothing, unless the brief shows a running lane with no name; then label it as below. Elsewhere, immediately after each spawn, using the platform's agent id (or `solo-<n>` in solo mode; see your platform file), before waiting:
```
loops run label --agent <platform agent id> --name <Agent id> --role <role> --wave <n>
```

## 2. Plan (§2.2)

```
loops run phase plan
```
0. Triage step `planner` skipped: write a short `$RUN/plan.v1.md` yourself from `$TEMPLATES/PLAN.md` (ACs, one lane per AC, proof plan), run `loops plan check` on it and go to step 4. Step `plan-review` skipped: after step 1 go to step 4 once `loops plan check` is clean (no `plan` verdict).
1. Spawn `planner` (strongest model). It writes `plan.v1.md` with a Concurrency block and runs `loops plan check` on it.
2. Spawn `plan-reviewer` with the plan path. It also runs `loops plan check` (findings are blocking). It writes `plan-review.r1.md` ending `Verdict: APPROVE|CHANGES`. Read only that last line and the blocking item titles.
3. `CHANGES`: for round N=1..3
```
loops run loopback --from plan-reviewer --to planner --round N --note "<one line>"
```
   Send the review path back to the **same** planner (resume or re-spawn per your tier, with its previous plan and the review); it writes `plan.v<N+1>.md`; then have the reviewer re-review the same way. After round 3 with blocking items open: at a `plan` checkpoint ask the user; otherwise rule on each item (accept or reject, with the reason; `loops run decide --topic plan-limit --note "<rulings>" --ref plan-review.r3.md`) and have the planner write the final version with the rulings.
4. **Scope check** against the charter: every AC served by a lane, no lane outside the scope. A gap is a new planner round. Then fill the charter's `## Plan` line and final ACs.
5. `loops run checkpoint plan`; `ask`: show a plan summary of at most 25 lines (ACs, waves, agents, risks) and ask: Approve / Request changes / Stop. Changes go to the planner as a new round (with `loopback`). Stop: `loops run end --outcome abandoned`.
6. Extract each agent's block and its `language` from the approved plan to paste into its prompt. The plan has a `language` per lane and an `<id>-engineer` in wave 0 for every pack a lane uses; a language without a pack is listed under its risks.

## 3. Implement (§2.3)

```
loops run phase implement --note "wave 0"
```
1. **Wave 0** (triage step `architect`; skipped: no wave 0, the lane writes its own contract): spawn `architect` (id `W0-architect`) and the plan's `<id>-engineer` lanes (ids `W0-<id>`: toolchain, manifests per the plan, lint and CI config, test and coverage prerequisites) together, wave 0, each with its `Language:` line. When they report, verify each pack's build and lint checks yourself, once: `loops gate --only <build and lint checks>` (names from `loops lang show <id>`; Go: `build,vet`). Failures go back to the owner (resume or re-spawn). Then stop wave-0 agents no later wave needs (an `<id>-engineer` may take later language-level lanes). After wave 0 and after each later wave reports: `loops run checkpoint implement`; `ask`: show the lanes and their claims and ask Continue / Stop.
2. **Concurrency cap.** Never run more agents at once than the plan's effective cap (min of `parallel.max_agents` (default 100), hardware, opt-in `limits.max_agents`). A wave over the cap runs as sub-waves (`W1a`, then `W1b` when `W1a` lanes have reported); duplicated roles with disjoint scopes (`W1-domain-orders`, `W1-domain-payments`) are separate agents with their own verifiers.
3. **Waves 1..n**: `loops run phase implement --note "wave <n>"`. Spawn the whole wave together, producers (domain, application) before consumers (adapters); consumers may start early against the stubs. Roles: `domain-engineer`, `application-engineer`, `api-engineer`, `persistence-engineer`, `integration-engineer`, `test-engineer`, `docs-writer`, and `<id>-engineer` for language-level lanes (upgrades, dependency bumps, build migrations). Every implementer gets its lane's `Language:` line. Label each.
4. Under `--models=cheap`, pass a model one tier lower than the role default for every role except planner and plan-reviewer.
5. Relay cross-agent facts (contract changes, found bugs in another lane's files) by messaging the owner (or, if it is gone, re-spawning it with the facts); never fix across lanes yourself.
6. When an implementer finishes, its claims report is at `$RUN/reports/<Agent id>.md`. If it is missing, send the agent back to write it. A trivial lane under ~30 lines you may do yourself (WORKFLOW §1); then no report.
7. **Recheck** (when the triage skipped anything): after the last lane reports and before `loops run phase qa`, count the changed files (`git status --porcelain --untracked-files=all | wc -l`) and run `loops run triage --recheck --files <N> [--touches <any new>]`. It only adds steps back; follow its new skip list from here.

## 4. QA, pipelined, with a concurrent tail (§2.4)

```
loops run phase qa
```
Triage: `qa-verify` skipped means no verifier (only the gate, step 4); `qa-per-lane` skipped means one `qa-verifier` (Agent id `qa-all`) for every lane's report, spawned when the last lane reports; `qa-quality` and `qa-security` skipped mean those passes do not run.
1. As soon as an implementer reports (even while its wave-mates still run), spawn `qa-verifier` (Agent id `qa-<id>`, wave = same, the implementer's `Language:` line) with the report path, the owned paths, the contract and its ACs. It records its own verdicts and loop-back with `loops run ingest`; read only the line it returns.
2. **The tail, together, when the last implementer reports** (WORKFLOW §2.4): start the full gate in the background (`loops gate`, every detected pack under its race policy; on Claude Code a background Bash call). It is the run's only full gate (WORKFLOW §6), and spawn the quality pass (`qa-verifier`, Agent id `qa-quality`, every `Language:` line, running `loops:quality` in a private copy of the tree) and the security pass (`security-reviewer`, Agent id `qa-security`, each pack's `Language:` line, `Charter:`, and `Base: <commit>`: `git merge-base HEAD <default branch>`, or the HEAD recorded at `loops run start`). Both record their findings with `loops run ingest`. On a platform whose plugin cache lacks the security role, spawn a general agent with `agents/security-reviewer.md` as its prompt.
3. **Loop-backs** (already recorded by `loops run ingest`; for the gate, record `loops run loopback --from gate --to <id> --round N`, finding the lane from the file path). Send the **same** implementer (resume or re-spawn per your tier, adding its previous report, the QA file and a ≤10-line history): `Fix the FAILED items in <abs QA file>; re-run your scope; overwrite your report.` Then the same verifier re-verifies (round N+1). After the fix, re-run each pass whose result it can change (quality, security). Never start a second full gate after a green one: the fixing lane's `loops gate --pkgs <owned>` covers what it changed (`gate scope`), and the brief's next step (`loops run brief`) names any file still unchecked. Only a red full gate runs again, once its fixes are re-verified, and never on an unchanged tree.
   On the second failed round of the same item, the implementer's report must open with `## Premise` (ENGINEERING §11). Record it with `loops run event --kind note --name premise --note "<sentence>"` and include it in any escalation.
   Limits (§4): after 2 failed rounds, relaunch the implementer one tier up (haiku -> sonnet -> opus) with `Model reason: escalation after 2 failed rounds`, a history summary and the QA files; it is labelled anew. After 3 failed rounds: at a `qa` checkpoint ask the user; otherwise decide per WORKFLOW §2.7 (back to plan for that lane, move the item to Open follow-ups when no AC needs it, or end `failed`) and record it.
4. Done when every claim, the quality pass and the security pass are VERIFIED, `gate all` is green and every later edit is covered by a green `gate scope` (the sources are clean: the brief's Gate line says green). Stop the implementers and verifiers you will not resume. Then `loops run checkpoint qa`; `ask`: show the verdicts and the quality pass and ask Continue / Stop.

## 5. Product (§2.5)

```
loops run phase product
```
Triage step `product-proof` skipped: after QA, do the product step yourself, with no manual run, as WORKFLOW §2.8 says (AC verdicts citing tests or the gate, `pr.md`, `loops report`, then branch, commit, push and PR per §2.5 step 6, unless `--no-pr`; at a `product` checkpoint ask first). Otherwise spawn `product-reviewer` **as soon as every lane is VERIFIED**, while step 4.2's tail still runs (unless `qa` is a checkpoint: then after the user continues), with the plan, reports, QA files, `Gate: pending` and a `PR:` line: `none` under `--no-pr`; `hold` when `loops run checkpoint product` prints `ask`; otherwise `open`. When QA is done (step 4.4), resume it with `Gate: green` and `Changed: <lane ids a QA loop-back changed since it started | none>`. The product-reviewer runs on its sonnet tier; spawn it on opus (with `Model reason:`) only when the plan's product lane says so.
- Gap found (FAILED AC): it records a loopback and returns proof paths. Run `loops run phase implement`, send the owning implementer the proof file (resume or re-spawn), then redo QA for that lane; its `loops gate --pkgs <owned>` re-checks the fix (no second full gate). After 2 product rounds (`MaxProductRounds`): at a `product` checkpoint ask the user; otherwise decide per WORKFLOW §2.7 (resume it with `PR: draft`, or end `failed`) and record it.
- `open`: it commits, pushes the branch `loops/<ticket>-<slug>`, opens the PR and records the `pr` event. `none`: it writes `pr.md` only.
- `hold`: show the user `pr.md` (title, summary, decisions, Open follow-ups) and ask: "Push branch loops/<ticket>-<slug> and open the PR/MR (PR + overrides comment)?" Record the answer (`--by user`). On yes, resume the same reviewer with `PR: open`.
- Reflect ran first (file store, WORKFLOW §2.5, §2.6 step 4): reflect runs once QA is done and before you resume the product-reviewer with `Gate: green`; when it finishes, append its PR link and any product loop-back line to `$RUN/reflection.md`.

## 6. Reflect and end (§2.6)

```
loops run phase reflect
```
Triage step `reflect` skipped (and no loop-back happened): write a short `$RUN/reflection.md` yourself (outcome, triage, decisions, overrides, the cleanup line; a `trivial` run writes none and puts them in your end summary), post `overrides.md` per WORKFLOW §2.6 step 4, write no memory pages, then end. With the file store, reflect runs before §5 (WORKFLOW §2.5, §2.6 step 4) and `loops run end` follows product. Spawn `reflector`; it also reviews the run's decisions (`loops run brief --json`). Besides `reflection.md` it writes `overrides.md` and, when a PR exists and at least one project-rule override was recorded, posts it as a PR comment (never editing the description) and records the note event (WORKFLOW §2.6 step 4). Reflect-first there is no PR yet: the reflector writes the file only and product-reviewer posts it after the PR. Its harness-issue step files or comments `loops` defects on the loops plugin repo (when this run's repo is that repo), searching every issue state first so none is filed twice (WORKFLOW §2.6 step 2, Dedup). When it finishes, `loops run checkpoint reflect`; `ask`: show `reflection.md` and ask End / Edit. Then:
```
loops run end --outcome done
```
`loops run end` cleans up automatically: it deletes the run's per-pack caches and tmp dirs and the build leftovers agents created (never tracked or pre-existing files; unknown new files are listed for review). Pass `--no-clean` only when the user wants to inspect the artifacts. Then stop any remaining agents and give the user a summary of at most 10 lines: outcome, triage tier, ACs verified, PR link and overrides count (or "pr.md written, not pushed"), `loops report` path (`$RUN/report.html`), loop-backs count, decisions you took, memory pages written.

## Escalations and failures

- Use `loops run end --outcome failed` or `abandoned` if the user stops or the run cannot continue (abandoned and failed runs are cleaned up too); the Stop gate (WORKFLOW §6) otherwise blocks ending your turn while source files are dirty, and the end gate refuses `--outcome done` over dirty sources or a red gate (WORKFLOW §6): run the gate the reason names (`loops gate --pkgs …` after a green full gate, `loops gate` otherwise), never switch the outcome to dodge it. `LOOPS_GATE=off` is the user's escape hatch, never yours.
- If a hook denies a read (`guard_deny`), do not retry the same call; use a range or search.
- Agents that stall: message it once with the specific question; then stop it and relaunch with a tighter block.
- Record every decision the run turns on: `loops run decide --topic <what> --note "<decision; reason>"` (WORKFLOW §2.7); other facts worth keeping: `loops run event --kind note --note "<text>"`.
- Updates: the step-0 `loops update --apply` line covers the session's `loops ... is available` notice (PLATFORMS §9); relay it once and do not block work.

Files in this skill

  • SKILL.md26.2 KB
  • platforms/amp.md2.6 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.