removing-dead-code SKILL.md skillA

removing-dead-code from ivan-magda/swift-claw is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ivan-magda/swift-claw/removing-dead-code@git:20261103.cd59070

Pins git:20261103.cd59070 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
ivan-magda/swift-claw
Path
.claude/skills/removing-dead-code/SKILL.md
Versions recorded
5
Latest version
git:20261103.cd59070, committed Nov 3, 2026
First version recorded
Oct 10, 2026
Size
12,396 bytes
Repository stars
15
License
MIT

Use when asked to find, audit or remove dead, unused or unreachable code in a Swift package or Xcode app, repository-wide or in one module ("dead code cleanup", "удалить неиспользуемый код", unused declarations, imports, target dependencies, resources, assets or files), or when judging whether such a cleanup is complete before its PR. Needs the swift-dead-code CLI.

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

# Removing dead code with swift-dead-code

The CLI finds candidates deterministically; you decide what the tool cannot: whether a
finding is a seam, a contract or AMBIGUOUS, and whether a deletion leaves anything behind. A
scanner's list is a set of leads, never the verdict and never the complete set. A cleanup is
finished when the completeness sweep (§5) finds nothing new, not when a list is empty or the
build passes.

If `swift-dead-code` is missing, install it with `brew install ivan-magda/tap/swift-dead-code`;
`scan` also needs Periphery 3.8.0
([install](https://github.com/ivan-magda/swift-dead-code#install)).

Run every command from the project root. `.deadcode.yml` there holds the project's settings:
schemes, test support, allowlist, baseline path, contract documents. Without one, run
`swift-dead-code init > .deadcode.yml` and fill it in: an Xcode project's schemes and
`builds`, test support targets, `module_names` for a product whose modules have other names
(an umbrella product such as `SwiftToolsSupport-auto`), and `periphery.arguments:
[--retain-public]` for a library. Commit it in a cleanup; in an audit, leave it uncommitted.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ivan-magda/swift-claw/removing-dead-code@sha256:3e7f340319644247

The line at the top of this page pins the label git:20261103.cd59070, 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_c5r5zrc7uz2xzw6m.svg)](https://markdownregistry.com/a/art_c5r5zrc7uz2xzw6m)

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

Versions

The registry has recorded 5 versions of this file, between Oct 10, 2026 and Nov 3, 2026, about one every 6 days.

versioncommittedcommitsizeaudit
git:20261103.cd59070 latest2026-11-03 cd59070 12,396 BA view · diff
git:20261014.13e2df02026-10-14 13e2df0 9,510 BA view · diff
git:20261011.d1a8e6b2026-10-11 d1a8e6b 8,170 BA view · diff
git:20261010.511a9102026-10-10 511a910 8,167 BA view · diff
git:20261010.f8abe812026-10-10 f8abe81 7,979 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 (12396 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

ivan-magda/swift-claw · 15 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_c5r5zrc7uz2xzw6m
GET https://markdownregistry.com/api/v1/resolve?ref=ivan-magda/swift-claw/removing-dead-code
GET https://markdownregistry.com/api/v1/blob/3e7f3403196442473cae37f1f0f906f37c972989a1d5a73500cf9f0895894f7f

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 ivan-magda/swift-claw

removing-duplication SKILL.md skill
ivan-magda/swift-claw · .claude/skills/removing-duplication/SKILL.md · Use when asked to find and remove duplicated code or duplicated rules in swift-claw, within one module or across…
git:20261010.f875e04 · audit A · 15 stars
verify SKILL.md skill
ivan-magda/swift-claw · .claude/skills/verify/SKILL.md · Verify clawd CLI or configuration changes with isolated doctor probes that need no real Telegram or LLM credentials.
git:20260930.3a3336d · audit A · 15 stars
AGENTS.md AGENTS.md file
ivan-magda/swift-claw · AGENTS.md
git:20260615.e8b436a · audit B · 15 stars
CLAUDE.md CLAUDE.md file
ivan-magda/swift-claw · CLAUDE.md
git:20261005.97f04df · audit A · 15 stars

Every file in ivan-magda/swift-claw

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