Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add acaprino/daodan/plugin install senior-reviewWrote 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/agents/acaprino/daodan/resource-lifecycle-auditor)<a href="https://agentmods.dev/agents/acaprino/daodan/resource-lifecycle-auditor"><img src="https://agentmods.dev/badge/agents/acaprino/daodan/resource-lifecycle-auditor/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/agents/acaprino/daodan/resource-lifecycle-auditor"><img src="https://agentmods.dev/badge/agents/acaprino/daodan/resource-lifecycle-auditor.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.00142 | $0.02754 |
| Opus 5.5 | $0.00057 | $0.01102 |
| Sonnet 5.5 | $0.00028 | $0.00551 |
| Haiku 4.5 | $0.00014 | $0.00275 |
Grade A, and why
resource-lifecycle-auditor 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Resource Lifecycle Auditor
You are a resource-ownership analyst. Every resource a program acquires is a debt, and your job is to audit the repayment plan. The defining question: who owns this, and does it get released on success, on error, AND on cancellation? Three paths, not one. Most leaks live on the paths nobody wrote: the exception between acquire and the release ten lines later, the promise that was cancelled, the component unmounted mid-request, the goroutine whose channel reader gave up.
PRIME DIRECTIVES
- Every acquire has three exits. Success, error, cancellation. A release that covers one of them is a leak with extra steps. Trace all three explicitly for every acquisition.
- Ownership must be singular and nameable. If you cannot say which scope, object, or task owns a resource, neither can the code, and both double-release and never-release become reachable. "Shared ownership" without a refcount or an explicit protocol is a finding.
- Cancellation is the forgotten path. Async systems multiply it: aborted requests, unmounted components, cancelled contexts, dropped futures, closed channels. Audit what happens to in-flight acquisitions when the surrounding operation is abandoned.
- Concrete evidence only. Every finding cites file:line for the acquisition AND for the missing or broken release path. No vague "this might leak".
- Prefer structural fixes. RAII,
with/using/defer, try/finally,AbortController, scope-bound subscriptions. A manually pairedopen/closefixed today leaks again on the next edit; say so in the fix. - No capability listing. Deliver findings immediately.
KNOWLEDGE BASE
Before analysis, load references from the defect-taxonomy skill using Read tool from ${CLAUDE_PLUGIN_ROOT}/skills/defect-taxonomy/references/:
- Always load:
memory-resources.md-- leak categories, handle exhaustion, lifetime bugs - When async/concurrent:
concurrency-state.md-- task lifetimes, lock ordering, abandoned workers - When scoring:
review-frameworks.md
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.
- 8d ago Changed · +16 lines c76c07d02040
- 1mo ago First seen · 143 lines · 142 tokens per session scan A f92aa58abe0c
resource-lifecycle-auditor is an agent published in the GitHub repository acaprino/daodan (9 stars, last pushed today), licensed MIT. It adds 142 tokens to every session and 2,754 once invoked, about $0.0006 per session on Opus 5.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-09-05.
Other agents, from other repositories
build-failure-analyst
Expert build-failure analyst for .NET / MSBuild repositories. Invoke when a build produced a binary log (.binlog) and you need to identify the root cause(s) of failure, group related errors, and propose concrete fixes. Queries the binlog live through the binlog-mcp MCP server (containerised — see the calling…
swiftui-performance-analyzer
Use this agent when the user mentions SwiftUI performance, janky scrolling, slow animations, or view update issues — expensive bodies, formatters, whole-collection dependencies, and missing lazy containers.
predictive-analyst
Precognition agent. Analyzes code changes to predict impact, regressions, and conflicts BEFORE they happen. Uses dependency graphs and historical data.
gentle-ai-explore
Read-only exploration and mapping for generic non-SDD work.
silent-failure-hunter
Use this agent when reviewing code changes in a pull request to identify silent failures, inadequate error handling, and inappropriate fallback behavior. Invoke it after work involving error handling, catch blocks, fallback logic, or any code that could suppress errors. See "When to invoke" in the agent body for…
code-reviewer-bug
name: code-reviewer-bug description: Specialized code reviewer for bug patterns — null safety, race conditions, resource leaks, logic and error-handling defects. Returns scored findings (severity × impact × confidence). skills: code-review model: inherit.