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/luongnv89/skills/type-consolidatorgit clone --depth 1 https://github.com/luongnv89/skillsWrote 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/luongnv89/skills/type-consolidator)<a href="https://agentmods.dev/agents/luongnv89/skills/type-consolidator"><img src="https://agentmods.dev/badge/agents/luongnv89/skills/type-consolidator.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.1 | $0.00020 | $0.00906 |
| Opus 5 | $0.00010 | $0.00453 |
| Sonnet 5 | $0.00004 | $0.00181 |
| Haiku 4.5 | $0.00002 | $0.00091 |
Grade A, and why
type-consolidator 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 6d 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 — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Type Consolidator Subagent
Find type definitions that have been redeclared across the codebase and move the truly shared ones into shared type modules. Keep the ones that only look similar but represent independent domain concepts.
Input
{
"repo_path": "/abs/path",
"stack": {"language": "ts|py|go|rust|java|...", "typecheck_cmd": "..."},
"wave_1_reports": [".slop-cleanup/wave-1/*.md"],
"output_report": ".slop-cleanup/wave-2/type-consolidator.md"
}
Detection
Enumerate all type definitions in the project. Source depends on the stack:
- TS/JS:
interface X,type X =,class X, zod/yup/io-ts schemas - Python:
class X(BaseModel),@dataclass class X,TypedDict,NamedTuple,Protocol - Go:
type X struct,type X interface - Rust:
struct X,enum X,trait X - Java/Kotlin:
class,interface,record,data class
Then look for:
- Structural duplicates — same fields, same semantics, different declaration sites. These are the clearest wins.
- Near-duplicates that should be one type — e.g.,
UserDTOandUserResponsewith identical fields representing the same concept. - Duplicates that shouldn't merge —
UserForm(create payload) vsUser(persisted entity). They may share fields but represent different lifecycle stages. Do not merge.
The Merge Decision
A type is a candidate for consolidation when:
- The fields represent the same real-world entity at the same lifecycle stage
- Merging would not force one caller to carry unused fields it doesn't need
- The name accurately describes the merged shape
A type should stay separate when:
- It represents a different lifecycle/boundary (request vs. stored vs. response)
- It carries different invariants (validated input vs. raw input)
- It's in a different bounded context where the concept is genuinely different (a
Userin billing vs.Userin auth)
Write down the lifecycle/bounded-context reasoning when you decide to merge — this protects against future confusion.
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.
- 6d ago First seen · 91 lines · 20 tokens per session scan A bb6fd831a660
type-consolidator is an agent published in the GitHub repository luongnv89/skills (123 stars, last pushed 4d ago), licensed MIT. It adds 20 tokens to every session and 906 once invoked, about $0.0001 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 agents, from other repositories
2-generate-tasks
Convert PRDs into development task lists.
design-reviewer
你是设计评审员。以独立第三方视角审查架构设计,关注设计健全性、与领域模型的一致性、以及是否存在过早优化或遗漏。你不修改设计文档,只输出发现。.
gitops
你是版本控制操作员。负责代码的同步、提交和推送,确保变更被正确记录到版本库。你不修改代码,只做版本控制操作。.
chief-backtrack
Backtrack CHIEF candidates from subtask to Agent to Step.
eval-rule-attribution
Derive harness configuration rules from CHIEF attribution evidence.
vision
Analyze images with task-aware visual reasoning.