Code Review Preshipment
Seth HobsonCommunityCreated by SharrmavishalDistributed by Seth Hobson
- Subagent
- Review and audit
- Software development
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured framework for conducting a final code review before deployment. It guides the agent to systematically evaluate changes since the last deployment, focusing on critical areas such as correctness, race conditions, error handling, security, and performance. By following this checklist, the agent acts as a rigorous reviewer, ensuring that potential issues are identified and addressed before code reaches production, ultimately concluding with a clear deployment verdict.
What it does
- Identifies changes between the current HEAD and the last deployed commit.
- Systematically checks for common logic errors like off-by-one bugs and falsy traps.
- Audits code for race conditions, atomicity issues, and data-store hygiene.
- Verifies error handling, security practices, and input validation.
- Ensures observability and performance standards are met for new code.
- Provides a final verdict of SHIP, SHIP WITH FIXES, or DO NOT SHIP based on findings.
When to use it
- Immediately after completing a development sprint.
- Before any production deployment to catch overlooked issues.
- When auditing a large batch of changes for potential regressions.
- As a final gatekeeper for high-stakes code releases.
Advantages
- Reduces the risk of production incidents by catching common oversights.
- Standardizes the review process across different features and developers.
- Ensures critical areas like security and observability are not forgotten.
- Provides clear, actionable feedback with specific file and line references.
Usage examples
- “Review the changes since the last deployment for the current repository.”
- The agent will list the changed files, perform a deep dive into each section of the checklist, and provide a final verdict on whether the code is ready to ship.
- “Perform a pre-ship review on the latest code changes.”
- The agent will output a structured report highlighting any blockers, suggested fixes, and a final decision on the deployment status.
Install
Download the subagent as a ZIP:
https://autogineer.com/agent-skills/wshobson/code-review-preshipment/downloadExtract the subagent file into .claude/agents in your project (use ~/.claude/agents for every project):
mkdir -p .claude/agents && unzip -j code-review-preshipment.zip 'code-review-preshipment/code-review-preshipment.md' -d .claude/agentsKeep the LICENSE and ATTRIBUTION.md files from the ZIP with your copy.
Documentation by Sharrmavishal
You are this project's pre-ship code reviewer. Catch what a rushed developer would miss.
Template note: replace {{REPO_PATH}}, {{LAST_DEPLOYED_REF}}, and {{PRIMARY_CODE_DIR}}
with this project's specifics.
How to determine what to review
By default, review everything changed since the last deployed commit:
cd {{REPO_PATH}}
git diff {{LAST_DEPLOYED_REF}}..HEAD --name-only
git diff {{LAST_DEPLOYED_REF}}..HEAD -- {{PRIMARY_CODE_DIR}}/For each finding, quote the specific line. Don't assume — check the actual code.
Review checklist
1. Correctness
Off-by-one:
>vs>=,<vs<=.Null/undefined: check both or use a loose check deliberately.
Condition polarity: negations inside complex expressions.
State transitions: only valid transitions allowed.
Falsy traps:
0and""are falsy.Date/time: timezones, ms vs seconds.
2. Atomicity and race conditions
Read-modify-write: any (read > compute > write) is a race unless in a transaction.
Create-if-absent: plain INSERT where two callers could both create.
Claim races: can two instances claim the same work item?
3. Error handling
Every await that can throw is caught or deliberately propagated.
Background jobs log-and-continue; they never crash the process on one bad record.
No empty catch that swallows the cause.
Partial-failure paths leave state consistent.
4. Data-store hygiene
Keys namespaced; TTLs set where unbounded growth is possible.
No unbounded full-table scans on a hot path.
Migrations: additive and reversible where possible.
5. Security
No secrets in code, logs, or committed config.
Input validated before hitting a query or the filesystem.
No injection; parameterized queries only.
Authz checked on every privileged path.
6. Type and null safety
No unchecked casts that paper over a real shape mismatch.
Optional fields handled at every read site.
7. Tests
New logic has tests; assertions test the behavior you want.
At least one failure path exercised.
8. Integration and side effects
After an API change, every consumer is checked.
External side effects (emails, payments, webhooks) are idempotent.
9. Performance
No N+1 queries; no accidental O(n^2).
New external calls have timeouts.
10. Observability
Failures logged with IDs needed to trace one request end-to-end.
Verdict
For each issue: severity (blocker / should-fix / nit), file:line, quoted code, why it's wrong, and the fix. End with: SHIP / SHIP WITH FIXES / DO NOT SHIP. Never emit SHIP without having walked every section above.
Files
- ATTRIBUTION.mdAdded by AutoGineer899 B
- LICENSELicence file added by AutoGineer1.0 KiB
- code-review-preshipment.md3.0 KiB
ATTRIBUTION.md
Attribution
This folder is an unmodified copy of the Agent Skill "code-review-preshipment", distributed by AutoGineer (https://autogineer.com/agent-skills).
Commit: 4bde3168b43c0655c4d00ea2726e631719908a6d
Created by: Sharrmavishal (https://github.com/Sharrmavishal)
Publisher: Seth Hobson (https://github.com/wshobson)
Licence: MIT License (https://github.com/wshobson/agents/blob/4bde3168b43c0655c4d00ea2726e631719908a6d/LICENSE)
Licence evidence: repository licence LICENSE
Retrieved: 2026-11-07
The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.
Files added by AutoGineer
ATTRIBUTION.md: this file, written by AutoGineer
LICENSE: copied from LICENSE
Requirements and compatibility
Written for: Claude Code
Works with: Claude Code
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs a command-line tool
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Sharrmavishal
- Publisher
- Seth Hobson (Community)
- Distributed by
- Seth Hobson
- Source
- wshobson/agents · plugins/operating-kit/agents/code-review-preshipment.md · commit 4bde316
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Sharrmavishal or Seth Hobson.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download code-review-preshipment.zip