/open-source-hardening-skills:oss-testsfrom open-source-hardening-skills
Creates a minimal automated test loop for a repository, focusing on critical paths, failure branches, and input validation. Useful when adding tests or making code CI-safe.
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.
Create the minimum automated test loop that materially protects the repository. Bias toward deterministic tests that run in CI without secrets.
OSS_AUDIT.md or OSS_PLAN.md if available.python app.py.Produce:
OSS_TEST_STRATEGY.md containing:
The strategy file must include a table like:
| Test class | Target | Why it matters | CI notes |
|------------|--------|----------------|----------|
| Critical path | `src/cli.py` happy path | protects the main user workflow | no network, fixture input |
| Failure branch | missing file / bad config | proves clear failure behavior | assert exit code and stderr |
| Input validation | invalid arguments | blocks unsafe or confusing inputs | pure unit test |
Examples:
python -m unittest or existing pytest commandnpm test or node --testgo test ./...cargo testStart with:
Only add more once those are stable.
For paper code, the "critical path" is often the smallest reproducible run: load a tiny fixture, execute one representative step, and assert the expected output shape or file exists.
OSS_TEST_STRATEGY.md.Before declaring this stage complete, verify:
OSS_TEST_STRATEGY.md exists and names the framework, test command, mock/fake strategy, and known gaps.OSS_TEST_STRATEGY.md exists and records the chosen framework, exact local test command, mock/fake strategy, known gaps, and coverage table.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 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.Generated from the plugin's indexed repository (zeyuzhangzyz/open-source-hardening-skills) — no native marketplace selected
npx claudepluginhub p/zeyuzhangzyz-open-source-hardening-skillsOther plugins' skills for the same job