Borrowing it
Nothing to install: this file belongs to sophonfinance-wq/finance-automation-portfolio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sophonfinance-wq/finance-automation-portfolio/main/.claude/skills/loops/SKILL.mdgit clone --depth 1 https://github.com/sophonfinance-wq/finance-automation-portfolioWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sophonfinance-wq/finance-automation-portfolio/loops)<a href="https://agentmods.dev/skills/sophonfinance-wq/finance-automation-portfolio/loops"><img src="https://agentmods.dev/badge/skills/sophonfinance-wq/finance-automation-portfolio/loops/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sophonfinance-wq/finance-automation-portfolio/loops"><img src="https://agentmods.dev/badge/skills/sophonfinance-wq/finance-automation-portfolio/loops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.00361 |
| Opus 5 | $0.00023 | $0.00180 |
| Sonnet 5 | $0.00009 | $0.00072 |
| Haiku 4.5 | $0.00005 | $0.00036 |
Grade A, and why
loops scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
The Self-Healing Loop Family
Five loops, one architecture: observe -> detect -> remediate -> re-verify -> gate -> repeat. Sensor = the engine's own control harness. Authority = deterministic re-derivation from the seeded source of record. The loop never invents a number.
| Engine | Command (from its folder) | Gate policy | Exit |
|---|---|---|---|
| Close | python -m close_engine.loop --demo |
autonomous + quarantine (AUTO-POSTED/PARTIAL/HALTED) |
HALTED=1 |
| Tax surplus | python -m surplus_engine.loop --demo |
human-gated (PASS/FLAG/FAIL) |
FAIL=1 |
| Recon | python -m recon_engine.loop --demo |
materiality (PASS/FLAG/FAIL) |
FAIL=1 |
| Knowledge brain | python -m brain_engine.loop --demo |
verbatim-or-refuse (CLEAN/REMEDIATED/ESCALATED) |
ESCALATED=3 |
| Triangulate | python -m triangulate.loop --sample adversarial |
arithmetic vs judgment (CLEAN/AUTO-CLEARED/ESCALATED) |
non-PASS=1 |
Full sweep: run all five demos and report each verdict line. Docs: ARCHITECTURE.md section 5a; each engine README has a loop section; assets/flows/self-healing-close-loop.svg is the CPA-readable diagram.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 19 lines · 46 tokens per session scan A ea9583d50aa5
loops is a skill published in the GitHub repository sophonfinance-wq/finance-automation-portfolio (11 stars, last pushed 15d ago), licensed MIT. It adds 46 tokens to every session and 361 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
browser-edge-cases
SOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.
ios-simulator
Verify and debug native, React Native, Expo, or Flutter apps on an iOS Simulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an iPhone or iPad Simulator.
debugging-executions
Debug failed or wrong-output workflow executions using executions tools. Load when the user reports execution failures, unexpected node output, empty parameter values after a successful run, or a node showing a red or failed expression error.
atmos-schemas
JSON Schema for Atmos: stack-manifest and atmos.yaml config schemas, IDE auto-completion, validate stacks/schema/config, SchemaStore integration.
issue
Use when starting a chain from a GitHub issue — turning an issue URL or number into a triaged, planned, dispatched, and reviewed pull request. Classifies the thread (bug → root-cause discipline, feature → plan chain, question → drafted reply), synthesizes a spec from the issue's own acceptance criteria, then runs the…
therapeutic-ifs
Unified inner work engine: Schema deconstruction (diagnosis) + IFS therapy (treatment). Absorbs: schema-deconstruction.