Borrowing it
Nothing to install: this file belongs to jonapoul/aktual. 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/jonapoul/aktual/main/.claude/skills/redundant-module-links/SKILL.mdgit clone --depth 1 https://github.com/jonapoul/aktualWrote 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/jonapoul/aktual/redundant-module-links)<a href="https://agentmods.dev/skills/jonapoul/aktual/redundant-module-links"><img src="https://agentmods.dev/badge/skills/jonapoul/aktual/redundant-module-links/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/jonapoul/aktual/redundant-module-links"><img src="https://agentmods.dev/badge/skills/jonapoul/aktual/redundant-module-links.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.00048 | $0.01411 |
| Opus 5.5 | $0.00019 | $0.00564 |
| Sonnet 5.5 | $0.00010 | $0.00282 |
| Haiku 4.5 | $0.00005 | $0.00141 |
Grade A, and why
redundant-module-links 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 5d 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 — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Two checks on project(...) dependencies in build.gradle.kts files:
- Unexposed
api: anapidependency whose types don't appear in the module's public API, so it can beimplementation. - Redundant: a dependency that another direct dependency already exposes through
apilinks.
Run the unexposed check first, since flipping api links changes which chains exist.
When to run
After any change that adds, removes or switches (api <-> implementation) a project(...) dependency, or changes a public signature, alongside compile.sh and ktfmt.sh.
Process
1. Refresh the inputs
Both scripts read **/build/atlas/project-links.json, which only reflect the build files as of the last atlas run. The unexposed check also reads compiled main classes. Regenerate both first, through the gradle-runner agent:
./gradlew compileAll --continue
./gradlew atlasGenerate
2. Report unexposed api links
python3 .claude/skills/redundant-module-links/unexposed_api.py
It runs Exposed.java (plain java with ASM, kotlin-metadata-jvm and kotlin-stdlib from the Gradle cache) to read Kotlin metadata from every module's compiled classes, and lists which project modules each module's public API uses. An api link is reported when nothing from the dependency, or from anything it re-exports through api, appears in the public API. Modules are processed bottom-up, so a flip lower down is taken into account above it.
3. Report redundant links
python3 .claude/skills/redundant-module-links/redundant_links.py
Each line shows the build file line and the api chain that already exposes the dependency. If $ARGUMENTS contains --report-only, stop here and summarise both reports.
4. Apply
Flip the unexposed links first, then fix what breaks before removing redundant links:
python3 .claude/skills/redundant-module-links/unexposed_api.py --apply
./gradlew sortDependencies
./gradlew compileAll --continue
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 5d ago Changed · +41 lines · +8 tokens per session 059fc389a41e
- 26d ago Changed 6b4433659841
- 1mo ago First seen · 64 lines · 40 tokens per session scan A 0d032ba465e4
redundant-module-links is a skill published in the GitHub repository jonapoul/aktual (43 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 1,411 once invoked, about $0.0002 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-05.
redundant-module-links compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| redundant-module-linksjonapoul/aktual | Skill | 43 | yesterday | Apache-2.0 | A | 48 | Claude Code |
| compose-animationschrisbanes/skills | Skill | 1.1k | yesterday | Apache-2.0 | A | 64 | Claude Code |
| compose-focus-navigationchrisbanes/skills | Skill | 1.1k | yesterday | Apache-2.0 | A | 41 | Claude Code |
| compose-multiplatformericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 80 | Claude Code, Codex |
| deliver-specchrisbanes/skills | Skill | 1.1k | yesterday | Apache-2.0 | A | 33 | Claude Code, Codex |
| to-planchrisbanes/skills | Skill | 1.1k | yesterday | Apache-2.0 | A | 73 | Claude Code, Codex |
| changelogchrisbanes/skills | Skill | 1.1k | yesterday | Apache-2.0 | A | 39 | Claude Code |