/open-source-hardening-skills:oss-review-loopfrom open-source-hardening-skills
Autonomously reviews a repository, applies minimum hardening fixes, and re-reviews until it passes an external quality gate. Use for 'review until it passes' workflows.
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.
Autonomously iterate: review -> implement the minimum hardening fixes -> re-review, until the external reviewer gives a positive release-readiness assessment or MAX_ROUNDS is reached.
mcp__codex__codex for round 1 and mcp__codex__codex-reply for rounds 2+. These are the canonical entry points — always try them first.codex:rescue skill as a fallback to delegate the review task through the Codex CLI runtime.OSS_REVIEW_LOOP.md, surface the blocker to the user, and suggest they verify their Codex MCP setup.Never skip step 1 and jump to a fallback. Always attempt the official tool first.
ready or almostOSS_REVIEW_LOOP.md in the project rootgpt-5.4. Use a currently available Codex model; prefer gpt-5.4, gpt-5.3-codex, or gpt-5.2-codex.OSS_AUDIT.mdOSS_PLAN.mdOSS_REFACTOR.mdOSS_TEST_STRATEGY.mdOSS_CI.mdOSS_DOCS.mdOSS_HARDENING_STATUS.mdOSS_REVIEW.md if a one-shot review already happenedCreate or update OSS_REVIEW_LOOP.md as a cumulative log. Each round must include:
ready, almost, or not readyAlso update OSS_HARDENING_STATUS.md after every round with:
README*, CONTRIBUTING.md, package/build manifests, CI workflows, tests, and the OSS_*.md hardening artifacts.OSS_REVIEW_LOOP.md with a header and timestamp.Round 1 — call mcp__codex__codex directly (the official tool, not a Bash wrapper):
mcp__codex__codex:
config: {"model_reasoning_effort": "xhigh"}
prompt: |
[Round 1/MAX_ROUNDS of open-source review loop]
Repository briefing:
[purpose, setup commands, verification commands, hardening artifacts, known gaps]
Please act as a senior open-source maintainer reviewing this repository for public release readiness.
Evaluate:
1. Onboarding and usability
2. Correctness and user safety
3. Maintainability and structure
4. Testability and automation
5. CI and release hygiene
6. Documentation, licensing, and contributor clarity
7. Security and responsible maintenance
Then provide:
1. Overall score 1-10
2. Overall verdict: Ready / Almost / Not Ready
3. Remaining critical weaknesses ranked by severity
4. For each weakness, specify the MINIMUM fix
5. For each fix, specify the best return stage: audit / plan / refactor / tests / ci / docs
Be direct and practical. Focus on the smallest fix package that materially improves open-source quality.
Save the returned threadId immediately after round 1 — it is required for all subsequent rounds.
Round 2+ — call mcp__codex__codex-reply with the saved threadId to maintain conversation context. Do NOT create a new thread for each round.
If mcp__codex__codex is unreachable, fall back per the Tool Dispatch priority order above.
Save the full raw response verbatim for the round log. Then extract:
Stop condition:
ready or almost, stop the loop and document final state.Apply the minimum fixes in priority order. Use the recommended return stage to guide how you respond:
audit: revisit the repo assumptions and update OSS_AUDIT.md and OSS_PLAN.md only as neededplan: tighten scope, ordering, or acceptance criteria in OSS_PLAN.mdrefactor: apply the smallest structural or tooling change that unlocks maintainabilitytests: add or repair CI-safe tests, fixtures, and local verification commandsci: update or add the minimal workflow needed to enforce checksdocs: tighten README, FAQ, architecture notes, SECURITY.md, CHANGELOG.md, LICENSE, or citation guidanceRules for implementation:
oss-* stage artifacts instead of inventing a parallel processAfter implementing fixes:
Typical verification sources:
README*OSS_TEST_STRATEGY.mdOSS_CI.mdnpm test, python -m unittest, pytest, cargo test, go test ./...Append to OSS_REVIEW_LOOP.md:
## Round N (timestamp)
### Assessment
- Score: X/10
- Verdict: ready / almost / not ready
- Key weaknesses: [bullet list]
### Minimum Fixes Requested
- [fix 1] -> return stage: tests
- [fix 2] -> return stage: docs
### Actions Taken
- [what was changed]
### Verification
- [command] -> [pass/fail]
### Reviewer Raw Response
<details>
<summary>Click to expand full reviewer response</summary>
[paste the complete raw response verbatim]
</details>
### Status
- [continuing to round N+1 / stopping]
Update OSS_HARDENING_STATUS.md with:
Increment round counter -> back to Phase A.
When the loop ends:
OSS_REVIEW_LOOP.mdOSS_HARDENING_STATUS.mdmcp__codex__codex / mcp__codex__codex-reply tools by shelling out to codex directly in Bash — the MCP tools handle authentication, threading, and config automatically.mcp__codex__codex-reply with the saved threadId to maintain thread continuity.mcp__codex__codex thread for rounds 2+; always use mcp__codex__codex-reply.MAX_ROUNDS without surfacing remaining blockers.Before declaring this stage complete, verify:
OSS_REVIEW_LOOP.md contains round entries with score, verdict, weaknesses, minimum fixes, actions taken, verification outcomes, and raw response.OSS_HARDENING_STATUS.md reflects the latest round number, score, verdict, and next action.mcp__codex__codex / mcp__codex__codex-reply tools first; only fall back to codex:rescue if the MCP endpoint is unreachableconfig: {"model_reasoning_effort": "xhigh"}threadId from the round 1 mcp__codex__codex call and reuse it with mcp__codex__codex-reply for all subsequent rounds — never create a new thread mid-loopmcp__codex__codex-reply tool)Always use the official mcp__codex__codex-reply tool for rounds 2+. This preserves thread context and avoids redundant briefings.
mcp__codex__codex-reply:
threadId: [saved from round 1 mcp__codex__codex call]
config: {"model_reasoning_effort": "xhigh"}
prompt: |
[Round N update]
Since your last review, we have:
1. [Action 1]: [result]
2. [Action 2]: [result]
3. [Action 3]: [result]
Updated verification status:
[commands and outcomes]
Please re-score and re-assess.
Same format: Score, Verdict, Remaining Weaknesses, Minimum Fixes, Return Stage for each fix.
mcp__codex__codex is unreachable, retry once. If still unavailable, fall back to codex:rescue skill. If neither works, record the failure in OSS_REVIEW_LOOP.md with the error details and surface the blocker to the user with setup instructions.mcp__codex__codex-reply on the same thread to request completion.MAX_ROUNDS without a positive verdict, stop, list remaining blockers, and recommend a return stage.OSS_REVIEW_LOOP.md contains 1 to 4 round entries with assessment, minimum fixes, actions taken, verification outcomes, raw response, and status.OSS_HARDENING_STATUS.md reflects the latest loop state.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-refactorApply careful structure and style hardening to a repository without unnecessary churn. Use when the user says "refactor for maintainability", "set up linting/formatting/types", "clean up this repo", or wants the minimum structural changes needed to make a project easier to maintain.Other plugins' skills for the same job