/yka-code:pre-review-checklistfrom yka-code
[yka-code] Pre-submit self-review gate. Use BEFORE running `git commit`, before claiming a task is "done", or before invoking `pr-review-toolkit`. Catches the issues post-hoc multi-agent review would find — tests failing, types dirty, lint warnings, debug leftovers, comment rot, scope creep — but earlier, cheaper, and locally. Complements `pr-review-toolkit:review-pr` (reactive, multi-agent, after push) with proactive self-review before the diff leaves the workstation.
Ships in yka-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Submitting a diff without running the checklist is why pr-review-toolkit keeps finding the same 5 issues on every PR. This skill fires before commit and catches them locally in 60 seconds, so the multi-agent review can focus on real signal.
pr-review-toolkit:review-pr (chain this FIRST)ship-feature Phase 1 (implementation) — before Phase 2 (multi-agent review)Skip for: uncommitted exploration, scratch work in tasks/ / notes/, config-only changes that don't execute.
Run these in order. Stop at the first red and fix before continuing. Don't skip to the next check hoping the red clears itself.
bun test # or: pytest / cargo test / go test ./... / npm test
If no test command is standard for the project, run whatever CI runs (check .github/workflows/*.yml or justfile). If the touched code has no tests and the change is non-trivial, escalate to test-driven-development (add one) or evals-first (if it's LLM-behavior code).
bun run typecheck # or: bunx tsc --noEmit / mypy / cargo check / go vet ./...
Type warnings are not acceptable. "It runs fine" is not a type check.
# project-specific — check package.json / pyproject.toml / justfile
bun run lint
Lint warnings in YOUR diff are blockers. Pre-existing warnings in unchanged files are the user's call.
rg -n 'console\.log|debugger|pdb\.set_trace|dbg!\(|fmt\.Println|print\(.*# debug' -- $(git diff --name-only HEAD)
Empty output = clean. Any hit = remove or justify.
rg -n 'TODO|FIXME|XXX|HACK' -- $(git diff --name-only HEAD)
If you added a TODO, either file an issue and commit with the issue link in the comment, or delete the TODO and do the work now. Dangling TODOs rot.
Visual scan the diff. Removed a call site? Did you remove the import? Removed a function's last caller? Did you remove the function?
git diff --stat HEAD # scope-check: do the file counts match what you meant to change?
Per coding-style rule 1: a comment exists only for hidden constraint / subtle invariant / bug workaround / non-obvious tradeoff. Re-read every new comment: if removing it wouldn't confuse a future reader, delete it.
Does every changed line trace to the user's request? If you "improved" adjacent code while you were in the file, split that into a separate commit or revert it. karpathy-guidelines Surgical Changes rule.
If you added/renamed a CLI flag, a skill's name, a plugin routing, or an env var: the relevant CLAUDE.md / README / docs/ entry needs the same update in the same commit. Invoke doc-hygiene for the doc edits.
If the diff touched:
deployHooks() (core.ts) AND in HOOK_EVENT_KEYS (utils.ts) if it's a new event?skills/do/SKILL.md routing table?components/index.ts category lists?appendToShellRc() via core.ts?Leaving any of these unwired is the #1 class of "works on my machine" bug.
Only commit when ALL checks pass. If any check fails, the diff isn't done.
If the project's CI runs more than this checklist (integration tests, security scans), note the extra signals this checklist DOESN'T cover — the user may want to escalate to ship-feature Phase 2 (pr-review-toolkit) or run CI locally before committing.
stop-summary will call them out, but that's post-hoc noise.pr-review-toolkit:review-pr without running this first. You're wasting multi-agent reviewer tokens on issues the local checklist would catch in 60 seconds.ship-feature Phase 2 — this skill fires right before Phase 2's multi-agent review.fix-bug final phase — before committing the fix, run this.test-driven-development / evals-first — if check 1 (tests) fails and coverage is weak, escalate.doc-hygiene — if check 9 (docs) triggers, delegate the doc edits.coding-style — checks 4, 6, 7, 8 are enforcements of coding-style rules 1-5.pr-review-toolkit:review-pr — the post-push counterpart. Both run; this one first.pr-review-toolkit — that plugin owns the multi-agent deep review after push. This skill is the fast local gate.caveman-commit / commit-commands:commit own that.commit-commands:commit-push-pr.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (youssefkadaouiabbassi/yka-code) — no native marketplace selected
npx claudepluginhub p/youssefkadaouiabbassi-code-tools-setup20 skills in this plugin
/audit-rigor[yka-code] Discipline for audit, review, and technology-comparison tasks. Use when the request is "audit X", "review our stack", "is this the best option", "compare alternatives", "what should we swap / add / drop", or any task that produces prioritized recommendations rather than new code. Enforces a ≥70% confidence threshold, delegate-retrieval-to-subagent pattern, inline citations with ISO dates, MCP-first sourcing, and a fixed output format (SWAP / ADD / DROP / KEEP-BUT-UPGRADE / SURPRISE). Pair with research-first (retrieval discipline) and karpathy-guidelines (surgical scope). Chained from security-audit, onboard-codebase, and any /do route that smells like "is this the best we have"./ci-hygiene[yka-code] CI/CD and DevOps hygiene enforcer. Activates when editing GitHub Actions workflows, Dockerfiles, docker-compose, justfile, deploy scripts, or any CI configuration. Enforces pinned versions, proper Claude Code invocation in CI (--bare, API key not Max sub), secret management, and reproducibility. Fills the DevOps gap — no plugin covers this in the wild./coding-style[yka-code] Enforce minimalist, self-documenting, defensively-sane coding style. Use ALWAYS when writing, editing, or reviewing ANY code in ANY language — every function, every edit, every diff, no exceptions. Covers five rules: (1) no comments unless critical (WHY only, never WHAT, never history), (2) clean + optimized (no dead code, no speculative abstractions, no stale imports, delete over deprecate), (3) self-documenting names (full words, verbs for functions, nouns for data), (4) smallest surface (one function one concern, extract only on 3rd reuse, validate only at boundaries), (5) no dead defense (no try/catch for impossible cases, no fallbacks for inputs you control, let errors bubble to the right handler). Pair with karpathy-guidelines for behavioral principles (Think Before Coding, Simplicity First, Surgical Changes, Goal-Driven Execution).Other plugins' skills for the same job