/yka-code:coding-stylefrom yka-code
[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).
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.
Read when SKILL.md points to them.
Five rules. Every edit, every function, every diff. No exceptions.
These are style — how code should look. For behavior (think before coding, simplify, surgical scope, verifiable goals), pair with the karpathy-guidelines skill. Both load together at /do Phase 0.
Code readable by reading. Names carry the meaning. Comments only exist for the hidden things a reader can't infer.
Write a comment ONLY when:
Never comment:
The test: if you remove the comment, will a future reader be confused by behavior they couldn't predict from the code? If no → delete the comment.
See references/no-comments.md for examples.
Code is smaller than it was. Every pass reduces surface.
@deprecated tombstonesThe test: after your diff, does the codebase have less or equal surface area? More surface must be justified by a concrete requirement, not "future flexibility."
See references/clean-optimized.md for examples.
Names carry intent. Reading the name tells the reader what it does.
parseUserInput, persistSession, retryUntilStable — not handleInput, doPersist, tryItuserEmail, retryDelay, activeConnections — not data, val, connuser not usr, connection not conn, configuration not cfg (unless the abbreviation is itself the canonical term, e.g., url, id, db)user is one; users is manyisActive, hasAccess, shouldRetry — not active, access, retryThe test: show the function signature to someone unfamiliar with the codebase. Can they predict what it does from the name + types alone, without reading the body? If no → rename.
See references/self-documenting-names.md for examples.
One function, one concern. Extract only when justified.
parseAndValidate), splitThe test: can you describe the function's purpose in one sentence without using "and" / "also" / "then"? If no → split.
See references/smallest-surface.md for examples.
Error handling exists to serve recovery. If there's no recovery, there's no handler.
catch (e) {} or except: pass discards information. Let the error bubble or transform it; never swallowThe test: for every try/catch you write, name the recovery action in one sentence. If you can't ("we catch so it doesn't crash"), remove the handler and let the error bubble.
See references/no-dead-defense.md for examples.
/do Phase 0 invokes Skill("coding-style") and Skill("karpathy-guidelines") together on every coding task. The paths: frontmatter above scopes activation to code/config file types — this skill does not fire on non-code edits (docs, images, binaries).
Edit this file (or the references/*.md) to change defaults. Project-specific overrides: create <project>/.claude/skills/coding-style/SKILL.md with a different name (user scope wins on name collisions per CC skill-resolution rules — rename for project overrides, e.g. coding-style-project).
karpathy-guidelines — behavioral principles (pair at /do Phase 0)refactor-safely — when applying these rules to existing codepr-review-toolkit:code-simplifier — catches rule violations in reviewpr-review-toolkit:comment-analyzer — enforces rule 1 on existing commentsWhat 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-setupOther plugins' skills for the same job
20 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./do[yka-code] Front-door entry skill for ANY coding task. Use whenever the user asks to build, fix, refactor, review, audit, understand, or otherwise work on code. Classifies the request, applies karpathy-guidelines, routes to the right sub-workflow (ship-feature, fix-bug, refactor-safely, security-audit, onboard-codebase), and keeps the full toolkit (Anthropic-official plugins, MCPs, auto-installed LSPs, 17 custom skills, hooks) in-context. This is the skill to activate first on almost every coding turn.