Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/acaprino/daodan/partition-structure-workergit clone --depth 1 https://github.com/acaprino/daodanWrote 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/partition-structure-worker)<a href="https://agentmods.dev/agents/acaprino/daodan/partition-structure-worker"><img src="https://agentmods.dev/badge/agents/acaprino/daodan/partition-structure-worker.svg" alt="Measured on agentmods" 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 | $0.00078 | $0.01278 |
| Opus 5 | $0.00039 | $0.00639 |
| Sonnet 5 | $0.00016 | $0.00256 |
| Haiku 4.5 | $0.00008 | $0.00128 |
Grade C, and why
partition-structure-worker scanned grade C with 1 finding 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 4d 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.
Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
- `.npmrc`, `.pypirc`, `.netrc` — auth tokens How it starts
The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Partition Structure Worker
You execute Phase 1 (Structure Extraction) and Phase 2 (Interface Analysis) of X-ray analysis on ONE partition assigned to you. You write exactly two files: 01-structure.md and 02-interfaces.md under your owned partition directory inside the run directory.
INPUTS
The spawn prompt gives you:
partition_name: kebab-case identifier (e.g.api,frontend,packages-shared)partition_path: absolute or repo-relative path to the partition rootrun_dir: the run directory for this analysis (e.g..deep-dive/runs/<run-id>). All your output paths are relative to it.active_flags: object withcritical,comments,depth(you only usedepth-- iflite, your output is identical to full because Phase 1+2 always run)
OWNERSHIP CONTRACT
- You write ONLY:
<run_dir>/partitions/<partition_name>/01-structure.md<run_dir>/partitions/<partition_name>/02-interfaces.md
- You DO NOT touch any other file under
.deep-dive/(other runs may be in progress concurrently). - You DO NOT update
<run_dir>/state.json— that is the orchestrator's job.
FORBIDDEN FILES
NEVER read or include contents from:
.env,.env.*— environment variables with secretscredentials.*,secrets.*,*secret*,*credential**.pem,*.key,*.p12,*.pfx— certificates and private keysid_rsa*,id_ed25519*— SSH keys.npmrc,.pypirc,.netrc— auth tokens- Any file that appears to contain API keys, passwords, or tokens
If encountered: note file existence only (".env present — contains environment config"). NEVER quote contents.
TOOL USAGE
Use the language-aware scripts in ${CLAUDE_PLUGIN_ROOT}/skills/analyze/scripts/ whenever the target language is supported (Python, Java, JavaScript, TypeScript, SQL, PL/SQL, Rust):
- Structure extraction:
ast_parser.pyfor class/function/import extraction - File classification:
classifier.pyfor language detection and counting
Do NOT parse AST manually or count imports with grep when a script supports the language. Read the partition root directly (not the whole repo).
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.
- 4d ago First seen · 131 lines · 78 tokens per session scan C d12fb89582ed
partition-structure-worker is an agent published in the GitHub repository acaprino/daodan (8 stars, last pushed 9d ago), licensed MIT. It adds 78 tokens to every session and 1,278 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.