/yka-code:doc-hygienefrom yka-code
[yka-code] Documentation discipline for README, CLAUDE.md, docs/, changelogs, design docs. Use when editing or generating any markdown/rst/asciidoc intended for humans or future AI sessions. Enforces brevity (<50 lines unless structurally required), no filler phrases, dated verification, and deletes rules that the code already demonstrates. Complements karpathy-guidelines (general principles) and claude-md-management:claude-md-improver (CLAUDE.md-specific audits).
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.
Every documentation line is a line a future human or agent has to read. Docs that don't pay rent should be deleted, not preserved. Inherits karpathy-guidelines: Simplicity First, Surgical Changes.
docs/, wiki/, .github/, adr/, or similarship-feature when the feature produces user-facing docsonboard-codebase Phase 6 (writing the final brief)| Need | Tool |
|---|---|
| Audit existing CLAUDE.md files | claude-md-management:claude-md-improver skill (auto-activates on "audit CLAUDE.md") |
| Surface filler/redundant patterns | ast-grep for common filler phrases; Grep for banned list below |
| Read existing docs structure | Glob **/*.md then selectively Read |
| Prior doc decisions | /claude-mem:mem-search "docs|README" |
| Verify library claims before documenting them | docfork MCP — latest lib docs, catches stale API refs in examples |
| Verify open-source behavior before citing in docs | deepwiki MCP — public repo Q&A, confirms current semantics |
| Preview Markdown output | Obsidian (obsidian command) for structured reading |
| Generate changelog entries from git | gh api repos/.../commits or git log --oneline piped through /commit-commands:commit-push-pr's generator |
50 is a budget, not a limit. If you're over 50, justify it out loud:
Banned (delete on sight):
This is the subtle rule. If a rule is followed by the codebase without being documented, the documentation is redundant — delete it. Rules exist to correct drift, not to flatter the reader.
Test: "If I delete this rule, will any future change violate it?" If no → delete.
At the bottom or in frontmatter:
<!-- last verified: 2026-04-15 against <tool@version, commit abc1234> -->
Lets future readers (human or AI) decide whether to trust it.
If the existing docs say "we use Redis" but the code now uses Postgres, don't just update the doc. Flag the contradiction to the user:
Silently updating loses the "why" signal.
If docs mention a library: "We use zod ^3.22.0" (not just "zod"). Pinned references reveal staleness quickly on the next read.
If a single doc covers authentication AND database AND logging, it's three docs fighting for the same filename. Split.
If another doc (or the code) already explains something, link to it. Don't re-explain in prose.
Our pre-secrets-guard hook blocks secrets. Do not add a doc rule "don't commit secrets" — the hook is self-documenting by running. Adding a prose rule for a hook-enforced behavior is pure duplication.
What question does this doc answer? One sentence. If you can't, the doc probably shouldn't exist.
Grep your output for filler phrases. Count lines. Verify frontmatter date.
If while editing you notice OTHER docs that are now stale or contradicted, surface them to the user in a short list. Don't silently fix them in the same PR (scope creep).
wiki/ articlesWhat 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