handle-unused-code SKILL.md skillA

handle-unused-code from linkerdog/rara is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add linkerdog/rara/handle-unused-code@git:20260611.d9a3cd5

Pins git:20260611.d9a3cd5 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
linkerdog/rara
Path
.agents/skills/handle-unused-code/SKILL.md
Versions recorded
2
Latest version
git:20260611.d9a3cd5, committed Jun 11, 2026
First version recorded
Jun 10, 2026
Size
5,725 bytes
Repository stars
17
License
Apache-2.0

Handle unused code warnings by investigating purpose via journals, then choose the right fix: suppress, wire-up, or remove.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Handle Unused Code

Use this skill when the compiler or clippy reports unused-code warnings
(`dead_code`, `unused_imports`, `unused_variables`, etc.).

## Core Rules

1. **Never blindly suppress or delete.**  First understand WHY the code was
   written before deciding what to do with it.
2. **Check the journal** (`docs/journal/`) and `docs/todo.md` for the item's
   purpose and planned activation milestone.
3. **Classify, then act.**  Every unused item falls into one of three buckets.

## Step 1 — Investigate

For each unused item:

1. Search the codebase for references (call sites, tests, config wiring).
2. Search `docs/journal/` for dated notes mentioning the symbol, its file,
   or the feature it belongs to.
3. Search `docs/todo.md` for the planned milestone.
4. Check git log (`git log --all -S "<symbol>"`) for the commit that introduced
   it, and read the commit message for intent.

## Step 2 — Classify

### Bucket A: Unimplemented capability

The code exists because a feature was planned but the implementation was
never finished.  The code describes the INTENT.

**Signs:**
- Feature-gated behind a cfg that is never active
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add linkerdog/rara/handle-unused-code@sha256:27ec5632d6b031b7

The line at the top of this page pins the label git:20260611.d9a3cd5, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_mfpkft2q5hzmizah.svg)](https://markdownregistry.com/a/art_mfpkft2q5hzmizah)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Jun 10, 2026 and Jun 11, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20260611.d9a3cd5 latest2026-06-11 d9a3cd5 5,725 BA view · diff
git:20260610.eb24e8d2026-06-10 eb24e8d 5,723 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5725 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

linkerdog/rara · 17 stars · license Apache-2.0 · pushed 2026-10-26 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_mfpkft2q5hzmizah
GET https://markdownregistry.com/api/v1/resolve?ref=linkerdog/rara/handle-unused-code
GET https://markdownregistry.com/api/v1/blob/27ec5632d6b031b744769ba271b9bb43dcaa85d1ff2e9ef03aab86350a0d2a68

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from linkerdog/rara

add_tests SKILL.md skill
linkerdog/rara · .agents/skills/add_tests/SKILL.md · Add or update tests for the RARA codebase. Use when implementing non-trivial behavior changes, fixing regressions…
git:20260512.3a03083 · audit A · 17 stars
context-cache-management SKILL.md skill
linkerdog/rara · .agents/skills/context-cache-management/SKILL.md · Extend RARA context compression, provider cache behavior, memory placement, or model context budgeting while preserving…
git:20260506.4e0a138 · audit A · 17 stars
project-github-titles SKILL.md skill
linkerdog/rara · .agents/skills/project-github-titles/SKILL.md · Use when preparing commit messages, pull request titles, or first-line summaries for the RARA repository. Enforces the…
git:20260512.3a03083 · audit A · 17 stars
rara-codebase SKILL.md skill
linkerdog/rara · .agents/skills/rara-codebase/SKILL.md · Use when you need to understand the RARA codebase structure — what each file does, where subsystems live, and how they…
git:20260727.f48e907 · audit A · 17 stars
rara-docs-journal SKILL.md skill
linkerdog/rara · .agents/skills/rara-docs-journal/SKILL.md · Use when creating, updating, or reviewing RARA implementation journals under docs/journal/. Applies to dated rollout…
git:20260512.3a03083 · audit A · 17 stars
rara-docs-spec SKILL.md skill
linkerdog/rara · .agents/skills/rara-docs-spec/SKILL.md · Use when creating, revising, or reviewing RARA canonical feature specs under docs/features/. Applies to stable runtime…
git:20260512.3a03083 · audit A · 17 stars
release-rara SKILL.md skill
linkerdog/rara · .agents/skills/release-rara/SKILL.md · Use when preparing, validating, tagging, or troubleshooting a RARA release. Enforces the release order that prevents…
git:20260706.5853a8e · audit A · 17 stars
support-acp SKILL.md skill
linkerdog/rara · .agents/skills/support-acp/SKILL.md · Guide for building external clients (IDE plugins, agents) that integrate with RARA via the Agent Client Protocol (ACP)…
git:20260509.481d119 · audit A · 17 stars
AGENTS.md AGENTS.md file
linkerdog/rara · AGENTS.md
git:20260917.4c79bb8 · audit A · 17 stars

Every file in linkerdog/rara

Browse by kind, by grade A, or by owner.