claude

srk

Shrinkage — write less, better code: token-lean codemaps, reuse-first extension ladder, provably-safe reduction. An LSP reference oracle and runtime deprecation probes turn 'looks unused' into proof before deletion. /srk:map, /srk:gate, /srk:audit, /srk:shave, /srk:coverage.

1 on GitHubby Jason Ratzlaffv0.45.0MITupdated 28 days agodevelopment
/

Plugin srk from marketplace parkktech in parkktech/shrinkage. Commands read from the repo's manifest — 27 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (1)

  • shrinkage

    Write less, better code by extending what exists instead of adding new code — and safely remove code the repo no longer needs — guided by a token-lean symbol map. Use this skill whenever writing, modifying, refactoring, planning, reviewing, or cleaning up code in an existing codebase — adding a feat

Slash commands (12)

  • /srk:srk:audit

    Repo-wide shrink audit: seven evidence sweeps, tiered candidates, ranked SHRINK-PLAN.md backlog

  • /srk:srk:config

    View or change any Shrinkage setting: gate hardness, map commit policy, PR scoreboard, token budget, comedy

  • /srk:srk:coverage

    Upgrade tiering: generate the repo's first coverage artifact (suite-gated → coverage-aware)

  • /srk:srk:gate

    Run the reuse gate for a task: candidate symbols, extend-or-justify, minimal-diff proposal

  • /srk:srk:help

    Show every Shrinkage command in the order you'd use them, with a one-line usage guide

  • /srk:srk:map

    Build or refresh the token-lean codemap; prints detected languages and which rules to load

  • /srk:srk:onboard

    ▶ START HERE — one-shot setup: status line, codemap, every preference (gate, map policy, PR scoreboard, comedy), quickstart

  • /srk:srk:query

    Query the codemap for symbols matching a term instead of grepping the repo

  • /srk:srk:score

    The minimalism scoreboard: lines removed/added/net, symbols, and how many plan items were removed/merged/cleaned

  • /srk:srk:shave

    Safe subtraction pass: remove/consolidate code with evidence chains, atomic commits, and zero behavior change

  • /srk:srk:trend

    Lifetime shrinkage total across EVERY shave commit — removed/merged/cleaned — plus recent scored changes

  • /srk:srk:update

    Check installed vs latest version and print the reliable update steps (uninstall → install → relaunch)

Subagents (3)

  • srk-auditor

    Read-only Shrinkage auditor — finds and evidences code-reduction candidates (dead code, duplication, speculative structure) in an assigned sweep. Produces evidence, never edits files. This is the "find WHAT to lift and shift" role — runs on the capable model because judging what is truly removable i

  • srk-surgeon

    Shrinkage surgeon — executes exactly ONE already-decided consolidation-catalog transform atomically, with a green-test gate and revert-on-red. This is the mechanical "lift and shift" role — runs on a cheaper/faster model because the judgment (what and how) was already made by the auditor; the surgeo

  • srk-verifier

    Adversarial Shrinkage verifier — tries to prove a completed reduction BROKE behavior, by re-deriving evidence independently and checking the transform's known failure modes. This is a judgment role — runs on the capable model because catching a subtle break is worth more than the tokens saved.

Hooks (7)

  • SessionStart

    PY=$(command -v python3 || command -v python); [ -n "$PY" ] && "$PY" "${CLAUDE_PLUGIN_ROOT}/skills/shrinkage/scripts/codemap.py" refresh --auto 2>/dev/null; if ! grep -qs statusLine .claude/settings.j

  • SessionStart

    PY=$(command -v python3 || command -v python); [ -n "$PY" ] && { "$PY" "${CLAUDE_PLUGIN_ROOT}/skills/shrinkage/scripts/watchdog.py" heartbeat; "$PY" "${CLAUDE_PLUGIN_ROOT}/skills/shrinkage/scripts/wat

  • PreToolUse

    PY=$(command -v python3 || command -v python); if [ -n "$PY" ]; then exec "$PY" "${CLAUDE_PLUGIN_ROOT}/hooks/guard_staging.py"; fi

  • PreToolUse

    PY=$(command -v python3 || command -v python); if [ -n "$PY" ]; then exec "$PY" "${CLAUDE_PLUGIN_ROOT}/skills/shrinkage/scripts/records.py" hook; fi

  • PreCompact

    PY=$(command -v python3 || command -v python); [ -n "$PY" ] && "$PY" "${CLAUDE_PLUGIN_ROOT}/skills/shrinkage/scripts/progress.py" 2>/dev/null; true

  • PostToolUse

    PY=$(command -v python3 || command -v python); [ -n "$PY" ] && "$PY" "${CLAUDE_PLUGIN_ROOT}/skills/shrinkage/scripts/codemap.py" refresh --hook --quiet 2>/dev/null; true

  • PostToolUse

    PY=$(command -v python3 || command -v python); if [ -n "$PY" ]; then exec "$PY" "${CLAUDE_PLUGIN_ROOT}/skills/shrinkage/scripts/organize.py" hook; fi

View source on GitHub

Similar plugins

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

context7

claudecodex

Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your coding agent's context.

1 MCP server

upstash/context7 64,709

Build powerful, stateful CLI interfaces for any GUI application using the cli-anything harness methodology.

5 commands

HKUDS/CLI-Anything 58,665

Automates browser interactions for web testing, form filling, screenshots, and data extraction

12 skills

vercel-labs/agent-browser 50,373

Use Alibaba Open Code Review from local Codex.

2 skills

alibaba/open-code-review 50,068

slidev

claude

Claude Code skill for creating and presenting Slidev slidedecks

1 skill

slidevjs/slidev 49,452

Maintain srk?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex pluginslisted