Skip to content
Back to skills

Peekumi

ASecurity

Verify code changes in an OS sandbox, audit architecture rules, set up linters/tests/CRAP coverage, plug in custom tool or semantic review layers, and bootstrap .peekumi.json for any Git repository without running the PWA. Use whenever the user asks to set up Peekumi, verify changes, audit architecture rules, add custom checks or review layers, or check CRAP risk.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
developmentpythonrustgosqlnoderailsgitapisecurity

Works with

  • claude code
  • cursor
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add tee-jagz/peekumi --skill peekumi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Peekumi?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Peekumi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tee-jagz-peekumi/badge)](https://www.skillsdirectory.com/skills/tee-jagz-peekumi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: peekumi
description: Verify code changes in an OS sandbox, audit architecture rules, set up linters/tests/CRAP coverage, plug in custom tool or semantic review layers, and bootstrap .peekumi.json for any Git repository without running the PWA. Use whenever the user asks to set up Peekumi, verify changes, audit architecture rules, add custom checks or review layers, or check CRAP risk.
---

# Peekumi Verification Harness

Peekumi verifies uncommitted or committed Git changes in an OS sandbox (macOS Seatbelt / Linux bubblewrap), enforces static dependency rules, scans diffs for leaked secrets, computes Python/JS/TS/Rust CRAP risk scores, and tracks scoped semantic agent reviews — all without requiring the Peekumi PWA server.

## 1. Agent-driven onboarding (zero manual JSON)

When setting up Peekumi in a new repository, do not just drop a bare starter config — handle check & rule discovery proactively:

1. Check if `peekumi` is on `PATH` (`peekumi verify --help`). If not, check `~/.local/bin/peekumi`.
2. Inspect the repo read-only first:
   - Via MCP: use prompt `setup-verification` (or call `scan_repo` + `graph_lookup` `overview`/`cycles`) and read manifests (`package.json`, `pyproject.toml`, `Cargo.toml`, `.github/workflows/*`).
   - Via CLI: run `peekumi init --dry-run`.
3. **Automatically design complete sandboxed checks** based on what the codebase actually uses:
   - `checks.prepare`: offline cache for dependencies (`node_modules`, `cargo vendor`, Python venv) keyed by lockfiles.
   - `checks.items`: formatting, linting (`prettier`, `eslint`, `biome`, `ruff`, `clippy`, `rustfmt`), typechecking (`tsc`, `mypy`, `pyright`), unit tests, and security/static tools — each tagged with `layer` (`lint`, `typecheck`, `tests`, `security`, `architecture`, `custom`).
   - LCOV `coverage` on test checks where supported (e.g. Node `--experimental-test-coverage --test-reporter=lcov`, `pytest --cov`, Vitest/Jest lcov, Rust llvm-cov) to unlock CRAP risk.
   - `checks.newTests` (`{files}`, optional `paths` for pure unit tests) for fail-to-pass proof.
4. **Run an architectural rule audit** (MCP prompt `audit-architecture`):
   - Ask the user briefly if they have specific architectural boundaries to protect (e.g. *"adapters must only be called through their contract"*), or propose a curated set right away.
   - Ground rules in Peekumi's 8 principles: **Layering**, **Acyclic dependencies**, **Dependency inversion**, **Open-closed** (adapters/plugins only through contract), **Separation of concerns**, **Encapsulation**, **Stable dependencies**, and **Test isolation**.
   - Base rules on intended architecture (never blindly copy existing messy imports). Trial every candidate with `propose_rule` so Peekumi checks breaks and rejects duplicates/dead globs.
5. Run `peekumi init` (add `--hook` for Claude Code `.claude/settings.json` Stop hook, `--cursor` for `.cursor/rules/peekumi.mdc`), merge the owner-approved checks and rules into `.peekumi.json`, and remind the user to **commit** `.peekumi.json` and `.gitignore` (Peekumi only trusts committed config). If `checks.prepare` is defined, run `peekumi verify --prepare` once after committing.

## 2. Iterative verification during development (no commit needed)

- Call MCP tool `verify_all` (runs sandboxed checks, diff secret scanning, static dependency rules, CRAP risk, and scoped review matching together), or run:
  - `peekumi hook` — full gate printing Peekumi's compact receipt (exit `0` pass, `1` fail/rule break/leaked secret, `2` blocked; add `--claude-stop` for Claude Code native Stop hook JSON).
  - `peekumi verify` — snapshots uncommitted edits privately and runs checks, secrets, rules, CRAP, and review matching against committed `HEAD` config.
  - `peekumi rules check` — checks static dependency rules on uncommitted edits.
  - `peekumi receipt [id]` — prints the latest persisted receipt (`--full` for failed check logs).
  - `peekumi crap` — reports before/after Python, JS/TS, and Rust CRAP risk scores from sandboxed LCOV coverage.
- **Scoped semantic agent reviews (`AGENT REVIEWS`):** If the receipt shows a `pending` review layer under `AGENT REVIEWS`, spawn a **fresh read-only reviewer subagent** (never the writer grading its own work in the same context) with only the diff and the review layer's `prompt`, require exact `file:line` citations for any finding, and attach the verdict via MCP `record_review`. Keep semantic reviews clearly distinct from deterministic sandbox checks.
- **Always quote Peekumi's verbatim receipt block** (including `CHECKS`, `RULES`, `AGENT REVIEWS` if present, `BLIND SPOTS`, and `receipt: v...`) in a fenced code block in your final response. Never paraphrase a blocked, degraded, pending-review, or failed receipt as passing.

## 3. Fixing failures (root cause first)

- When any check, rule, secret scan, parser, or review fails or degrades, **diagnose and fix the underlying root cause** — never apply a symptom patch, silence warnings, or weaken tests/`.peekumi.json` just to turn the receipt green.
- Re-run `verify_all` / `peekumi hook` after each root-cause fix until the receipt passes cleanly.
- **Disclose bigger changes clearly:** If fixing the true root cause requires a broader refactor, architectural move, or touching files beyond the user's original request, **explicitly inform the user in your final output** — explain what the root cause was, why a wider change was needed instead of a quick patch, and what extra scope changed (or ask first if it alters public APIs or crosses major boundaries).

## 4. Custom check layers & proactive guardrails

- **Plugging in a user-requested check layer** (MCP prompt `add-check-layer`):
  - **Deterministic tool or custom script (`checks.items`):** Plug in CLI tools (`semgrep`, `knip`, `gitleaks`, `sqlfluff`, `cargo-audit`, etc.) or scaffold a zero-dependency script (e.g. `scripts/checks/<name>.mjs` or `.py`), tag it with `layer`, print `PEEKUMI_SIGNAL: <short outcome>` on stdout so the receipt shows a crisp outcome column, validate with `propose_check`, and verify it catches a real failing case and passes on clean code.
  - **Scoped semantic agent review (`reviews`):** When a check requires judgment static tools cannot prove (auth/tenant gaps, zero-downtime migrations, race conditions, UX invariants), scope it by `paths` globs with `mode` (`advisory` or `blocking`) and validate via `propose_review`. Never mix probabilistic reviews into deterministic `checks.items`.
- **Be proactive during normal work (non-intrusively):** When you notice a real guardrail gap — such as a new adapter/module folder without an architecture rule, complex uncovered files (`~ CRAP: N files uncovered`), or a CI linter/typechecker missing from `.peekumi.json` — call `propose_rule`, `propose_check`, or `propose_review` and mention the suggested guardrail briefly at the end of your reply. Never silently edit `.peekumi.json` without explicit owner confirmation.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.