archived/skills/active-loop/SKILL.md
Iterative improvement protocol — declare a measurable target, run cycles via /loop, experiment, measure, learn, and accumulate work in a DRAFT PR.
npx skillsauth add nicsuzor/academicops active-loopInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
An iterative improvement protocol for agents. The agent declares a measurable optimization target, runs repeated cycles via /loop, experiments with different approaches, measures outcomes, and accumulates all work in a DRAFT PR with a learning log.
When a task requires repeated, incremental improvement over multiple cycles rather than a single execution pass. Examples:
Before any work begins, the agent MUST:
If the target is unclear, ask the user. Do not guess.
Optimization target: [what we're improving]
Metric: [how we measure it]
Baseline: [current value]
Tool: [command/tool that produces the metric]
active-loop/<target-slug>Every cycle follows this sequence:
MEASURE → DECIDE → DO → MEASURE → LOG → PUSH
After each cycle, check:
If running via /loop, output a brief status line so the user can see progress without interrupting.
When the target is met (or the user decides to stop):
## Optimization Target
**Target**: [what]
**Metric**: [how measured]
**Baseline**: [starting value]
**Goal**: [target value or "continuous improvement"]
## Cycle Log
### Cycle 1 — [date]
- **Approach**: [what was tried]
- **Before**: [metric value]
- **After**: [metric value]
- **Delta**: [change]
- **Learnings**: [what we discovered]
- **Next**: [what to try next cycle]
### Cycle 2 — [date]
...
To run an active loop on a schedule:
/loop 30m /active-loop <task-id>
The agent reads the PR body to recover state, runs one cycle, updates the PR, and exits. The /loop command handles re-invocation.
When resuming from a previous cycle:
active-loop/<slug>Active-loop is a protocol, not a domain skill. It composes with domain skills:
| Domain | Compose with | | -------------------- | ------------------------------------------------------- | | Task graph health | [[planner]] (maintain mode), graph_stats | | Code quality | linters, test coverage tools | | Knowledge base | [[planner]] (maintain mode), PKB search quality metrics | | Framework governance | [[audit]], compliance metrics |
data-ai
Canonical session close — commit, push, PR, release_task, reflection blocks, handover. Use /dump for emergency bail (no commit/PR/reflection).
data-ai
Emergency session bail — fast resume task + short handover, no commit/PR/reflection. For when you (or the user) need a clean context now. Use /end-session for canonical close.
data-ai
Daily note lifecycle — compose and maintain a factual daily note. Reports the state of the day; does not prioritise or recommend. SSoT for daily note structure.
testing
Launder supervisor/worker task-log output into a Nic-facing narrative — what happened, where things are headed, and what (if anything) is genuinely his to decide. Never relays raw process detail (worker IDs, thread pointers, log paths) or verbatim task-log stream-of-consciousness.