claude

refactor-go

Deterministic, compiler-gated decomposition of oversized Go files into same-package files and, when warranted, sub-packages; parallel subagents in git worktrees; file-size and boundary guardrails.

0 on GitHubv1.0.0MITupdated 2 months ago

Not in a marketplace yet, so it loads for one session with --plugin-dir.

Plugin refactor-go in nixlim/refactor-go. Commands read from the repo's manifest — 1 month 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 (2)

  • guardrails

    Install and verify file-size, complexity, and package-boundary guardrails for a Go repo worked on by AI agents: golangci-lint rules (funlen, gocyclo, gocognit, nestif, maintidx, depguard), a max-code-lines pre-commit hook with a grandfather baseline, a CI job, and a CLAUDE.md/AGENTS.md section point

  • split-file

    Safely decompose an oversized Go file (anything over ~500 code lines, especially multi-thousand-line "god files") into several files of the same package and, only when justified, into sub-packages. Uses deterministic tools (movedecl for relocation, a per-declaration hash oracle, go build/vet/test as

Subagents (5)

  • extractor

    Moves one cluster of declarations from a Go god-file into a target file using movedecl, runs the verification gate, and commits on its own worktree branch. Spawned in parallel by the split-file skill, one per cluster. Mechanical moves only.

  • gate-runner

    Runs the split-file verification gate (verify.sh) after a merge and returns a short verdict, keeping build/test output out of the main conversation. Use from the split-file skill in fan-in.

  • plan-critic

    Adversarially reviews a Go file-split plan from split-planner before any code moves. Use from the split-file skill in Phase 2. Read-only.

  • refactor-reviewer

    Adjudicating review of a completed Go file split: independently checks the diff AND verifies the headless Codex (GPT-5.6 Sol) review verdict finding by finding. Use from the split-file skill in Phase 6b, never as the extractor. Read-only.

  • split-planner

    Produces the decomposition plan for splitting one oversized Go file into same-package files (and optional sub-packages). Use from the split-file skill after inventory has run. Read-only.

Hooks (1)

  • PostToolUse

    bash "${CLAUDE_PLUGIN_ROOT}"/skills/split-file/scripts/check_file_length.sh --hook

View source on GitHub

Similar plugins

privacy

claude

Refuses a shell, file, web fetch or MCP call that holds the signed-in account's email address beside a word that declares who is calling, so the address does not go out as a client's identity.

anthropics/claude-code 155,476

Agent skills for Azure SQL Developer, the Azure SQL Database engine running locally in a container. Teaches your agent to run the engine, connect, migrate, scaffold, build RAG, wire CI, and go local-to-cloud, using the real Private Preview image instead of the SQL Server image.

17 skills

anthropics/claude-plugins-official 47,076

Systems programming with Rust, Go, C, and C++ for performance-critical and low-level development

3 skills · 1 command · 4 agents

wshobson/agents 42,461

ZoomInfo

claudecodex

Search companies and contacts, enrich leads, find lookalikes, and get AI-ranked contact recommendations. Pre-built skills chain multiple ZoomInfo tools into complete B2B sales workflows.

35 skills · 1 MCP server

anthropics/knowledge-work-plugins 35,601

Get a defense supplier ready for a CMMC 2.0 Level 2 assessment. Three deterministic stdlib scripts: an SPRS scorer that weights all 110 NIST SP 800-171 Rev 2 requirements per 32 CFR 170.24 and blocks gaps that can never go on a POA&M; a POA&M closeout tracker that checks every deferred gap against the 180-day Conditional status deadline and the annual affirmation calendar; and a scope classifier that sorts the asset inventory into the 170.19 categories and blocks on assets missing from the SSP or cloud providers holding CUI without FedRAMP. Ships cs-cmmc-assessor agent, /cs-cmmc-readiness and /cs-sprs-score commands, 3 cited references and a readiness sign-off.

1 skill · 2 commands · 1 agent

alirezarezvani/claude-skills 29,725

Go-to-market skills for PMs: GTM strategy, growth loops, GTM motions, beachhead segments, and ideal customer profiles.

6 skills · 3 commands

phuryn/pm-skills 27,939

Maintain refactor-go?

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