Borrowing it
Nothing to install: this file belongs to drujensen/aiagent. 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/drujensen/aiagent/main/.claude/commands/check-layers.mdgit clone --depth 1 https://github.com/drujensen/aiagentWrote 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/commands/drujensen/aiagent/check-layers)<a href="https://agentmods.dev/commands/drujensen/aiagent/check-layers"><img src="https://agentmods.dev/badge/commands/drujensen/aiagent/check-layers/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/commands/drujensen/aiagent/check-layers"><img src="https://agentmods.dev/badge/commands/drujensen/aiagent/check-layers.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.00019 | $0.00264 |
| Opus 5.5 | $0.00008 | $0.00106 |
| Sonnet 5.5 | $0.00004 | $0.00053 |
| Haiku 4.5 | $0.00002 | $0.00026 |
Grade A, and why
check-layers 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 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.
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
Check that the DDD dependency rules are not violated in the aiagent project.
Rule
internal/domain/ must NEVER import from internal/impl/.
internal/impl/ may import from internal/domain/.
internal/tui/ and internal/ui/ may import from both.
Check Commands
Run these to find violations:
# Find any domain file that imports from impl
grep -r "drujensen/aiagent/internal/impl" internal/domain/ --include="*.go" -l
# Show full import context for any violations
grep -r "drujensen/aiagent/internal/impl" internal/domain/ --include="*.go" -n
Also verify:
- All domain interfaces are defined in
internal/domain/interfaces/(not in impl) - All entity constructors follow
NewXxxnaming - All entities have both
jsonandbsonstruct tags - No naked errors (errors without wrapping context)
Report any violations found and suggest the correct fix (e.g., move the dependency to an interface, inject it via constructor).
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 · 32 lines · 19 tokens per session scan A d7a75bcce6dc
check-layers is a command published in the GitHub repository drujensen/aiagent (5 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 264 once invoked, about $0.0001 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-10-03.
Other commands, from other repositories
go-review
Go code review for idiomatic patterns.
go-review
Comprehensive Go code review for idiomatic patterns, concurrency safety, error handling, and security. Invokes the go-reviewer agent.
review-golang
Run a comprehensive Go code review on git-changed files.
go-review
A Go code review command that examines changed Go files for coding conventions, error handling, security, and concurrency problems.
go-review
Comprehensive Go code review for idiomatic patterns, concurrency safety, error handling, and security. Invokes the go-reviewer agent.
go-review
Go code review for idiomatic patterns.