If you use AI coding agents every day, three failure modes probably feel painfully familiar:

  1. Guess-and-check debugging: You paste a stack trace, and the agent immediately edits the wrong file without verifying callers or runtime values.
  2. Pre-push repository clutter: Before git push, CLAUDE.md, .agents/, scratch/ scripts, or .env.local quietly end up staged.
  3. AI-slop React UI: You ask for a clean utility page and get three pill badges per card, decorative <Sparkles /> icons on every button, and copy bragging about "revolutionary all-in-one powerhouse" software.

Writing the same reminders at the top of every chat gets old fast. Instead, I packaged those workflows into portable SKILL.md files following the open agentskills.io format, so they work across Claude Code, Cursor, Codex CLI, Gemini CLI, OpenClaw, and Antigravity.

Start With the Free Core: The "Code Courtroom" Workflow

Rather than one giant prompt telling the model to "be careful," I split the core workflow into focused stages (open-sourced in Detective-Zii-Skills and also security-scanned on Agensi):

  1. Be-Detective (Forensic Investigator): Strictly forbids editing code before proving the root cause with exact file:line references, runtime values, and falsifiable hypotheses.
  2. Hakim (Skeptical Cross-Examiner): Challenges the proposed patch across edge cases, 3–6 month scaling risk, and simplicity before approving it.
  3. Anti-Overengineering (Occam's Razor): Blocks single-use Repository / Factory / Interface boilerplate when a few lines of native stdlib handle the job cleanly.

Example Output: Before vs. After Adding Forensic Rules

Without structure, an agent tends to respond with "Maybe coupon.discount is null, try wrapping it in try/catch." With Be-Detective + Hakim, you get an evidence-backed case file first:

### Detective Case File - **Crime Scene:** `src/services/cartTotal.ts:24` - **Hypothesis A:** Discount arrives as a string -> Refuted (`typeof coupon.percent === "number"` at line 18) - **Hypothesis B:** `subtotal / items.length` produces `NaN` when `items = []` -> **Verified** - **Minimal Fix:** Guard empty `items` at line 23 (`items.length ? subtotal / items.length : 0`) 

You can install all 9 open-source starter skills right away:

npx skills add muammarRM/Detective-Zii-Skills 

Turning Plain Rules Into Script-Backed Pro Workflows

Plain Markdown rules are great for mindset, but deterministic checks work much better when paired with read-only helper scripts, grading rubrics, and worked before/after examples.

I packaged three stack-focused Pro skills (all 8-point security-scanned on Agensi so teams don't have to trust unvetted scripts from random repos):

1. Forensic PR Reviewer ($12)

A structured diff reviewer that pairs read-only Bash & PowerShell git diff collectors with an OWASP/concurrency checklist and a False-Positive Gate so noisy nitpicks get dropped before output.

Instead of vague praise, it catches real production defects grouped by file:

### Forensic PR Review Report — [REQUEST CHANGES]  1. `[CRITICAL]` Missing Ownership Check (IDOR) on `orderId` — `src/orders/claimCoupon.ts:6` - Evidence: `db.orders.findUnique({ where: { id: orderId } })` never verifies `order.userId === req.user.id`. - Minimal Fix: Reject when `!order || order.userId !== req.user.id`. 2. `[CRITICAL]` Non-Atomic Coupon Race Condition — `src/orders/claimCoupon.ts:16-19` - Evidence: Read-check-write (`coupon.remaining - 1`) executes outside a transaction lock. - Minimal Fix: Wrap in one transaction using `remaining: { gt: 0 }` and `{ decrement: 1 }`. 

2. Pre-Push Leak Guard ($9)

Includes zero-dependency, 100% read-only Python 3 and PowerShell scanners plus .gitignore presets for Next.js, Laravel, Python, and AI coding agents:

=== Pre-Push Leak Guard Report === Scanned files: 3 (staged=1, tracked=1, untracked=2) STATUS: BLOCKED (3 potential leak(s) found) - [UNTRACKED] .env.local -> Env file - [STAGED] CLAUDE.md -> Prohibited file name - [UNTRACKED] scratch/debug.py -> Prohibited directory (scratch) 

3. Anti-Slop Next.js Audit ($12)

Built for React, Next.js, and Tailwind CSS codebases. Its read-only static Python scanner flags the exact telltale patterns before refactoring:

=== Anti-Slop UI Audit Report === Scanned files: 1 STATUS: NEEDS POLISH (7 pattern(s) found) - src/components/ImageTool.tsx:12 [SPARKLE_SPAM] Decorative sparkle/wand icon or emoji - src/components/ImageTool.tsx:13 [AI_HYPE] Robotic marketing phrase 'Revolutionary' - src/components/ImageTool.tsx:19 [DEBUG_PLACEHOLDER] Dashed box contains developer TODO/config text - src/components/ImageTool.tsx:27 [A11Y] Icon-only button missing aria-label - src/components/ImageTool.tsx:7 [BADGE_OVERLOAD] Found 3 'rounded-full' elements 

Try the Free Skills or Grab the Bundle

If you try Be-Detective + Hakim on a messy bug or PR, let me know what edge case it caught first. I'm actively expanding the suite based on real failure patterns.