/open-source-hardening-skills:oss-refactorfrom open-source-hardening-skills
Applies minimal structure and style hardening to a repository: sets up linting, formatting, and type-checking without unnecessary churn. Useful when refactoring for maintainability or cleaning up a repo.
Ships in open-source-hardening-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Harden structure and style with the smallest credible set of changes. Preserve behavior, avoid vanity renames, and prefer extension of existing tooling over toolchain replacement.
OSS_PLAN.md or a selected subset of plan items.OSS_PLAN.md.Produce:
OSS_REFACTOR.md summarizing:
The final summary in OSS_REFACTOR.md must include "Changed now" vs "Deferred intentionally".
Prefer existing repo choices first. If the repo has nothing yet, choose the lightest credible option:
ruff format + ruff check.mypy only if the repo already has meaningful annotations or the plan explicitly asks for it.prettier.eslint.tsc --noEmit.gofmt, go vet, go test.cargo fmt --check, cargo clippy, cargo test.bash -n or sh -n validation before adding extra tools.Examples of valid refactor targets:
Examples of invalid churn:
OSS_REFACTOR.md.Before declaring this stage complete, verify:
OSS_REFACTOR.md exists and records selected scope, tooling choices, touched paths, commands run, and rollback notes if any.Changed now section and a Deferred intentionally section.OSS_REFACTOR.md and hand control back to /oss-plan instead of expanding silently.OSS_REFACTOR.md exists and lists selected scope, tooling choices, touched paths, commands run, and rollback notes.Changed now section and a Deferred intentionally section.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-refactoring, linting, formatting, type-checking, repo-hygiene
Generated from the plugin's indexed repository (zeyuzhangzyz/open-source-hardening-skills) — no native marketplace selected
npx claudepluginhub p/zeyuzhangzyz-open-source-hardening-skills10 skills in this plugin
/oss-auditAudit an existing repository or paper-code release for open-source hardening gaps across correctness, maintainability, testability, security, performance, observability, and documentation. Use when the user says "audit this repo", "harden this project", "open source readiness", or wants a prioritized file-level report before changing code./oss-ciAdd or improve a minimal GitHub Actions CI pipeline for linting and tests. Use when the user says "set up CI", "add GitHub Actions", "block bad PRs", or wants a cache-enabled pull-request workflow that runs without secrets./oss-docsImprove the repository's open-source documentation and metadata. Use when the user says "improve docs", "make this repo easier to adopt", "fix the README", or wants README polish plus SECURITY.md, CHANGELOG.md, FAQ, architecture notes, and paper-release metadata./oss-hardeningOrchestrate an end-to-end open-source hardening pass for a repository. Use when the user wants to turn a loose codebase or paper-code release into a readable, testable, maintainable open-source project and wants audit, plan, refactor, tests, CI, and docs to run as one continuous workflow unless a blocker appears./oss-planConvert an open-source hardening audit into an executable implementation plan. Use when the user says "turn this audit into a plan", "make a checklist", "write a GitHub issue", or wants a PR-ready checklist with acceptance criteria and commands for a software repo or paper-code release./oss-reviewGet a deep external review of an open-source hardening pass from Codex MCP. Use when the user wants a senior maintainer-style review of repository or paper-code release readiness, wants a score and minimum-fix list before publishing, or wants the oss-hardening pipeline to end with an external open-source quality gate.Other plugins' skills for the same job