fresh context review

    by Daniele Bordignon

    1

    Run independent, read-only design or mechanical code reviews focused on logic, security, and integrity.

    Free

    Security scanned

    Works with the AI Agents you already use

    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): The rotateToken function does not atomicity check the is_revoked status 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): The logFailedAttempt function prints the raw User-Agent string 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): The expireAll function returns void but the internal caller SessionManager.cleanup expects a Promise<number> count of deleted keys. This will cause the cleanup observer to fail silently.
    • Data Privacy: The session metadata object includes last_ip which, per docs/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 rotateToken using a transaction or findAndModify operation.
    • Wrap the User-Agent output in a sanitization utility before logging.
    • Update the expireAll return signature to match the SessionManager expectations.

    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

    1. Select a mode by specifying either a Design review for logic changes or a Mechanical review for refactors and version updates.
    2. Provide context by sharing the repository instructions, task acceptance criteria, and the diff to be inspected.
    3. Analyze execution as the agent traces error and recovery paths while checking for rule violations.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Read Files
    Listed12 days ago

    What's inside

    Frequently Asked Questions

    Generic prompts often suffer from 'confirmation bias' where the AI agrees with the author's logic; this skill uses a specialized read-only protocol and isolated execution to actively hunt for blockers and security flaws rather than just summarizing the code.

    The skill includes two specialized tracks: a Design review for high-level logic and architectural integrity, and a Mechanical review for verifying large-scale refactors, version bumps, and formatting changes.

    No, this skill is strictly read-only by design to ensure an unbiased audit. It identifies high-severity issues and provides file-and-line references so your team can make the necessary adjustments.

    It is framework-agnostic and works with any codebase that can be provided in a standard diff format, utilizing universal tools like syntax checkers and AST formatters to validate changes.

    You receive the fully configured agent skill, including the specialized Design and Mechanical review protocols, isolated testing logic, and the structured reporting template for actionable feedback.

    The skill runs in an isolated environment using temporary directories and read-only commands, ensuring it never touches your live data or main branches during the audit process.

    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.

    Free