- Home
- Skills
- Code Quality & Review
- fresh context review
fresh context review
Run independent, read-only design or mechanical code reviews focused on logic, security, and integrity.
Free
fresh context review
Example session with this skill installed
Run a design review on the latest diff for the user-auth module. Focus on the new JWT rotation logic and session lifecycle. Acceptance criteria are in docs/auth-spec.md.
- Read your context and instructions
- Compiled the fresh context review
I have completed a fresh-context design review of the user-auth module diff against the criteria in docs/auth-spec.md. My review focused on the JWT rotation and session lifecycle logic.
Design Review Report
Blockers
- Logic Bug: Race Condition in Token Rotation (
src/auth/session.ts:142): TherotateTokenfunction does not atomicity check theis_revokedstatus before issuing a new pair. A concurrent request using the same refresh token during the 50ms database lookup window can result in multiple active session chains.- Scenario: User triggers two rapid API calls; both receive new JWTs, breaking the single-session invariant.
- Security: Unsanitized Input in Log (
src/auth/utils.ts:89): ThelogFailedAttemptfunction prints the rawUser-Agentstring to the audit log without sanitization.- Scenario: Potential log injection if a malicious client sends a payload containing CRLF characters.
Should-fix
- Contract Violation (
src/auth/session.ts:210): TheexpireAllfunction returnsvoidbut the internal callerSessionManager.cleanupexpects aPromise<number>count of deleted keys. This will cause the cleanup observer to fail silently. - Data Privacy: The session metadata object includes
last_ipwhich, perdocs/auth-spec.md, should be masked before storage to comply with internal PII policies.
Notes and Not verified
- Not verified: I could not verify the Redis connection timeout behavior as I do not have access to the live environment variables for the cache cluster.
- Note: The JWT signing algorithm has been correctly updated to RS256 as per the spec.
Next steps
- Address the atomic check in
rotateTokenusing atransactionorfindAndModifyoperation. - Wrap the
User-Agentoutput in a sanitization utility before logging. - Update the
expireAllreturn signature to match theSessionManagerexpectations.
Connects securely to your tools. The creator never sees your data.
About this skill
Assumptions and cognitive bias often lead to overlooked bugs during peer reviews. This skill provides a read-only, fresh-context audit of diffs or pull requests, ensuring changes are evaluated without the original author's blind spots. It separates reviews into two distinct tracks to maintain focus on either high-level architecture or low-level file integrity.
What it does
- Design auditing identifies logic bugs, unhandled edge cases, and broken caller/callee contracts in complex behavioral changes.
- Security scanning flags exposed secrets, personal data leaks, path traversal, and unsanitized inputs within the diff.
- Mechanical verification performs byte-for-byte file copy checks, version bump validation, and AST-preserving reformat audits.
- Isolated testing verifies claims using temporary directories and read-only commands without touching live data or main branches.
- Actionable reporting categorizes findings into Blockers with concrete failing scenarios, Should-fix items, and unverified assumptions.
How it works
- Select a mode by specifying either a Design review for logic changes or a Mechanical review for refactors and version updates.
- Provide context by sharing the repository instructions, task acceptance criteria, and the diff to be inspected.
- Analyze execution as the agent traces error and recovery paths while checking for rule violations.
- Receive report containing evidence-backed findings (file:line references) limited to 500 words for design or 250 words for mechanical audits.
Frameworks & tools
This skill is framework-agnostic and works with any codebase accessible via standard diff formats. It uses diff, syntax checkers, and formatters in isolated environments to validate changes.
Why this beats prompting it yourself
Generic prompts often result in the AI "rubber-stamping" changes or hallucinating fixes. This skill enforces a strict read-only protocol that prohibits the agent from editing code, forcing it to focus exclusively on finding high-severity blockers and security flaws.
Use cases
- Auditing security-sensitive data migrations or process lifecycle changes.
- Verifying large-scale codebase reformats or dependency version bumps.
- Checking new feature logic against existing caller/callee contracts.
- Identifying unhandled edge cases in complex error recovery paths.
Known limitations
The reviewer is read-only and will never commit or merge changes. It requires specific verification commands to be provided for mechanical reviews.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.