Hakim

    1

    A skeptical supreme judge that cross-examines bug fixes and architectural claims to prevent regressions and bloat.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Hakim

    Example session with this skill installed

    /judge The proposed fix for the race condition in the auth-service uses a 200ms sleep. The detective claims this prevents double-login attempts. Is this ready to ship?

    • Read your context and instructions
    • Compiled the hakim

    The court has reviewed the case regarding the auth-service race condition and the proposed sleep-based mitigation.

    ⚖️ Code Court Verdict (Hakim)

    • Case Under Review: Auth-Service Race Condition
    • Investigator: SKILL: BE-DETECTIVE (Manual Input)
    ⚔️ Cross-Examination Results

    Skepticism Check (Manipulator): Needs Hardening. A 200ms sleep is "luck-based" engineering. Under high CPU steal or network jitter, the race condition will still manifest. It fails to address concurrent requests that exceed the sleep window.
    2.

    Future Horizon Check (Overthinking): Hidden Risk Found. Adding artificial latency to the auth flow will degrade throughput. As the user base grows, this creates a bottleneck that compounds under load.
    3.

    Simplicity Check (Anti-Overengineering): Over-Engineered (Incorrect Approach). While the code change is small, it introduces a "magic number" dependency rather than a proper synchronization primitive.

    🔨 FINAL VERDICT

    STATUS: [REJECTED - INSUFFICIENT EVIDENCE]

    Reasoning: The proposed fix is a cosmetic patch, not a structural solution. Relying on timing (sleep) is inherently flaky in distributed systems and fails the manipulator test.

    Execution Order: Implement a unique constraint at the database level or use a distributed lock (Redis/Redlock) to ensure atomicity for the login transaction.

    Next steps

    1. Discard the sleep(200) patch immediately.
    2. Query the database schema to check for existing unique indexes on the session table.
    3. Re-submit the case with a transaction-based locking strategy.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The Skeptical Supreme Judge presiding over bug investigations, architectural claims, and code fixes. Cross-examines evidence through edge-case skepticism, 3-6 month future-impact checks, and minimalism gates before granting a [VERDICT APPROVED] or [REJECTED] decision. Includes a worked courtroom verdict example. Part of Detective-Zii-Skills—pair with Be-Detective (Free) or upgrade to Forensic PR Reviewer ($12) for full diff-level PR reviews.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    Does not scaffold boilerplate or UI copy. Requires a specific investigative claim or proposed patch to analyze; cannot find bugs from scratch without a case file.

    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 1 day ago

    • Free with an Agensi account

    Permissions

    Read Files

    Verification and cross-examination protocol over proposed bug fixes and case files; zero writes or network calls.

    Listed1 day ago

    What's inside

    Frequently Asked Questions

    Hakim acts as a 'skeptical supreme judge' that cross-examines code fixes and architectural changes. It solves the problem of 'yes-man' AI behavior and confirmation bias by intentionally attacking your logic to find hidden regressions, edge-case failures, and unnecessary code bloat.

    This skill is language-agnostic and works with any stack, including Node.js, Python, Go, and React. It is specifically optimized to complement debugging agents like 'be-detective' by auditing their findings before they are implemented.

    Simply add Hakim to your AI workspace and trigger a review by providing a case file or proposed patch using the `/judge` command or natural language. No complex configuration is required, as the skill uses a built-in 'courtroom framework' to analyze your input immediately.

    You receive the full Hakim skill logic, including its specialized Manipulator, Overthinking, and Simplicity lenses. This includes lifetime access to the courtroom framework and all future stability updates to ensure the 'judge' remains sharp as LLM models evolve.

    Hakim is a critical auditor, not a builder; it will not scaffold new boilerplate code or brainstorm UI copy. It requires a specific case, investigative claim, or proposed solution to analyze before it can issue a verdict.

    New in Testing & Debugging

    Free