/yka-code:dofrom yka-code
[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.
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.
Single entry point for coding work. Figures out what the user wants, applies the principles, routes to the right workflow, and keeps the full toolkit visible so nothing gets forgotten.
Skill(skill: "using-superpowers") — installed from obra/superpowers@using-superpowers via skills.sh, always-on. Establishes the rule: if there is even a 1% chance a skill might apply, you MUST invoke it. No inlined copy here — the upstream skill owns the enforcement text and auto-updates.
The skill-level 1%-rule doesn't cover the tool choice between Agent() fan-out and team-do. That decision is made INSIDE /do and /do sub-skills. The rule here is the same shape:
If there is even a 1% chance the work benefits from multi-turn coordination, parallel review, staged handoffs, iteration, or a verify-fix loop — route to team-do. You do not get to decide "this is simple enough for solo Agent()" — the Phase 1b burden-of-proof test decides.
Red flags that mean you're about to pick Agent when team is correct:
Before Phase 1 classification, before any Read/Grep/Glob/Bash/Edit/Write/WebSearch/WebFetch/MCP call, invoke these three skills via the Skill tool:
Skill(skill: "karpathy-guidelines")
Skill(skill: "coding-style")
Skill(skill: "research-first")
Make all three calls in one message (parallel). Do not paraphrase or interpret their bodies inline — the Skill tool is what loads their full content into the turn and activates their rules. Reading the skill markdown yourself is a lint failure: it skips activation and wastes tokens.
The three skills are complementary:
karpathy-guidelines — behavioral (Think Before Coding / Simplicity First / Surgical Changes / Goal-Driven Execution)coding-style — surface style (No comments / Clean + optimized / Self-documenting names / Smallest surface / No dead defense)research-first — research discipline (MCP-first for library claims, date-pin or version-pin, cite inline, never silently assert, delegate heavy research to a subagent)If you notice partway through a turn that you didn't invoke them at Phase 0, invoke them now, then continue. Don't "catch up by reading" — the tool call is the activation.
The pre-research-check.sh hook (PreToolUse on WebSearch / WebFetch / mcp__docfork__* / mcp__deepwiki__* / mcp__github__*) emits an advisory to stderr if a research tool fires before Skill("research-first") has been invoked this turn. Treat the advisory as a correction prompt — invoke the skill, then retry.
Subagents spawned via Agent(...) start with a fresh context. They do NOT inherit main's loaded skills. Main's Skill("research-first") invocation only applies to main.
So when main delegates work to a subagent, the Agent(prompt: ...) call MUST include a Phase-0 preamble for the subagent:
Before any tool call, invoke these in parallel:
Skill(skill: "karpathy-guidelines")
Skill(skill: "research-first") ← include when the subagent does research
Skill(skill: "coding-style") ← include when the subagent writes/edits code
Then proceed with the task below.
---
<actual task>
Rule of thumb: whichever of the three base skills applies to the subagent's work, name it in the preamble. The subagent invokes them itself at its own Phase 0; main doesn't forward skill content, just the instruction to load.
Read the user's request and decide which bucket fits best:
| Signal in user's message | Route to |
|---|---|
| Any multi-file / multi-part / multi-concern task — "build several", "fix across", "refactor + review", "audit + fix", "plan and implement", "work on N things", or ANY request that fails the four-question solo-qualification test | team-do (default for non-trivial work — primary bucket, not a Phase 1b override) |
any non-trivial feature request ("build X", "add Y", "implement Z") that lacks an existing tasks/specs/<date>-<topic>.md spec file, OR fuzzy-scope language ("rough idea", "I'm thinking", "maybe we should", "not sure yet", "figure out") | brainstorming (produces a short spec at tasks/specs/<date>-<topic>.md, then re-enters Phase 1 with the spec) |
"help me clarify the spec", "pin down the requirements", "what am I missing", OR a spec at tasks/specs/*.md has ≥3 [NEEDS CLARIFICATION] markers | speckit-clarify (from dceoy/speckit-agent-skills@speckit-clarify, installed via skills.sh — faithful port of spec-kit's /speckit.clarify max-5-Q bounded loop) |
| "build", "implement", "add", "ship", "create a new …" | ship-feature |
| "broken", "error", "crash", "failing test", "bug", "doesn't work" | fix-bug |
| "refactor", "clean up", "simplify", "extract", "dedupe", "reorganize" | refactor-safely |
| "security review", "audit", "vuln", "is this safe" | security-audit |
| "how does this work", "explain", "what is this repo", "onboarding" | onboard-codebase |
| "review our stack", "is this the best", "compare alternatives", "what should we swap" | Phase 3 + Skill(audit-rigor) (audit/review task — load the rigor discipline, then execute with parallel Agent() fan-out) |
| "write a skill", "add a skill", "modify the routing", "this skill isn't firing" | writing-skills (from obra/superpowers@writing-skills, installed via skills.sh — upstream canonical skill-authoring guide with anthropic-best-practices, persuasion-principles, worked examples) |
| "write an eval", "regression test for a prompt", "how do I know this skill still works" | evals-first |
| "is this ready to commit", "/commit", "self-review before PR", "about to push" | pre-review-checklist (chain BEFORE pr-review-toolkit:review-pr) |
| None match, or just a question/small tweak | Phase 3 (fall-through) |
When ambiguous, pick based on whether existing behavior changes:
Before you emit "done", "complete", "shipped", "passes", or any claim that your work is finished — AFTER any Write / Edit / MultiEdit tool call in the turn — you MUST invoke Skill(skill: "verification-before-completion"). The upstream skill runs the iron-law self-challenge (red → green verification, full test suite re-run, evidence capture) before you're allowed to claim done. The stop-verification-check.sh hook emits a post-hoc advisory if you skip it — treat that advisory as a correction prompt and re-invoke on the next turn.
This is the parallel of research-first + stop-research-check.sh: post-hoc audit + explicit skill-call instruction + never-silent-assert.
Pick based on what the work needs to get done correctly. Not based on cost — cost is not your concern.
| What the work needs | Use |
|---|---|
| Independent parallel reads that all return once (explore + lint + test + scan) | Subagents — N parallel Agent() calls in one message |
| One-shot specialist reviews that don't argue with each other | Subagents |
| Multi-turn coordination — an agent's output at turn 2 depends on another's at turn 1 | Team |
| Debate / competing hypotheses — agents must send messages to each other | Team |
| Verify → fix loop where reviewers keep prior findings across iterations | Team |
| Staged pipeline with handoff docs between phases (plan → exec → verify → fix) | Team |
Default route: team-do. Solo Agent() fan-out must justify itself.
Per Anthropic's official TeamCreate schema: "When in doubt about whether a task warrants a team, prefer spawning a team." — code.claude.com/docs/en/agent-teams
To pick solo Agent() fan-out, ALL FOUR of these must hold (not some — all):
If ANY of those four is false → team-do. No discretion. "This feels simple enough for solo" is a lint failure — the same rationalizations that using-superpowers forbids for skill invocation apply here for the team-vs-agent decision.
Even under the default-team rule, skip team mode when ANY of these is true:
DEV_TEAM_WORKER=1 in env (this session is already a teammate)team_name param (you're a worker, not a lead)claude -p / SDK mode (teams incompatible per Anthropic docs — lifecycle mismatch)Note: onboard-codebase is NOT in this list anymore. Anthropic recommends teams for cross-challenge research and competing-hypothesis debugging — onboarding often fits.
When team-do fires, route via Skill(skill: "team-do", args: "<original task>") — it owns the stage pipeline AND the mandatory TeamDelete teardown per stage. Phase 2 below runs the ToolSearch preload for team primitives BEFORE invoking the skill, so team-do's entry cost is zero.
Classification at turn start can't predict what a plan will produce. The common failure mode: user asks for something that routes to onboard-codebase / audit / "plan X" (solo route), the plan surfaces N independent implementation phases, and then Claude grinds through all N phases solo because the original classification never re-fired.
Hard rule — re-run Phase 1b before executing a plan when ANY of these are true:
/claude-mem:make-plan, research fan-out) produced a phased implementation planAt this checkpoint, count:
If ≥3 concurrent parcels exist, fire team-do unless:
DEV_TEAM_WORKER=1 in env (you're already a teammate)A → B → C dependencies (truly sequential)Solo-grinding a 6-phase plan is observably 3–5× slower than dispatching to a team in parallel — and loses the parallel-review benefit. Default to team when the shape warrants it.
Invoke the matched sub-skill using the Skill tool — this is the proper activation mechanism, not a "read the SKILL.md" approximation. The sub-skill runs with full context integration and returns its results.
| Matched bucket | Invocation |
|---|---|
| team-do (default route, or Phase 1b fired) | Step 1: ToolSearch({query: "select:TeamCreate,TeamDelete,SendMessage,TaskCreate,TaskUpdate,TaskList,TaskGet,TaskStop", max_results: 10}) — preload team primitives so team-do's entry cost is zero. Step 2: Skill(skill: "team-do", args: "<task>") |
| ship-feature | Skill(skill: "ship-feature", args: "<task>") |
| fix-bug | Skill(skill: "fix-bug", args: "<task>") |
| refactor-safely | Skill(skill: "refactor-safely", args: "<task>") |
| security-audit | Skill(skill: "security-audit", args: "<task>") |
| onboard-codebase | Skill(skill: "onboard-codebase", args: "<task>") |
The sub-skill takes over from here and runs its workflow end-to-end. Do not try to "interpret" the sub-skill's markdown yourself — let the Skill tool handle it.
For tiny tweaks (one-file edits, typo fixes, config changes, answer-only questions), don't over-orchestrate. Apply karpathy-guidelines and use the minimum surface needed:
Reserve the full workflows for work that earns it (>1 file, >15 min, or anything shipping to users).
/plugin:command)Your installed plugins expose these commands:
/feature-dev:feature-dev/code-review:code-review/pr-review-toolkit:review-pr/commit-commands:commit, /commit-commands:commit-push-pr, /commit-commands:clean_gone/claude-md-management:revise-claude-md/claude-mem:mem-search, :make-plan, :do, :smart-explore, :timeline-report, :knowledge-agent, :version-bump/caveman:caveman, /caveman:caveman-commit, /caveman:caveman-review (terse mode — default active)snyk_code_scan, snyk_sca_scan, snyk_iac_scan, snyk_container_scan)DOCFORK_API_KEY)GITHUB_PAT)COMPOSIO_API_KEY + COMPOSIO_MCP_SERVER_ID; use COMPOSIO_LIST_TOOLKITS / COMPOSIO_INITIATE_CONNECTION to wire Gmail/Slack/Linear/etc. from inside a session)@_davideast/stitch-mcp — one-time OAuth)ship-feature, fix-bug, refactor-safely, security-audit, onboard-codebaseteam-do — native TeamCreate parallel workflow for multi-subsystem / debate / verify-heavy tasks. Never invoked directly by users; only via /do classifier upgrade.test-driven-development — red → green → refactor for unit/integration code. Invoked by ship-feature/fix-bug when correctness matters.evals-first — red → green → refactor for LLM-behavior code (prompts, skills, hooks, agent instructions). Harness = claude -p subprocess (Claude Max, NOT Anthropic SDK). Chains with test-driven-development when a feature has both code and prompt surface.writing-skills — observed-failure-first discipline for creating or modifying SKILL.md files. Delegates eval step to evals-first. Owns routing-table + Phase-0-preamble consistency sweeps.pre-review-checklist — pre-submit self-review gate. Runs before git commit / before pr-review-toolkit:review-pr. Catches cheap local issues so multi-agent review focuses on signal.doc-hygiene — brevity + no filler on docs. Invoked when any README/CHANGELOG/CLAUDE.md is touched.ci-hygiene — pinned versions, --bare, no Max-sub in CI. Invoked when .github/workflows/* or Dockerfile edited.knowledge-base — Karpathy-style raw/ → wiki/ → output/ research workflow. Invoked for deep research tasks.loop-patterns — recipes for /loop, CronCreate, ScheduleWakeup recurring tasks. Invoked when user asks to "keep checking", "poll", "run every N min".worktree-task — EnterWorktree/ExitWorktree isolation for multi-file features. Invoked automatically by ship-feature for net-new features.audit-rigor — confidence threshold + SWAP/ADD/DROP output format for stack/architecture reviews. Loaded at Phase 0 when the task is an audit..env readsrm -rf /, force push, SQL DROP, curl-pipe-sh, etc. on BashInstaller provisions binaries only when the language is present in the user's project. Currently provisioned by src/components/code-intel.ts: TypeScript (typescript-language-server), Rust (rust-analyzer). For other languages, the LSP activates only if the user installs the binary manually (pyright, gopls, clangd, jdtls, kotlin-language-server, lua-language-server, sourcekit-lsp, omnisharp, solargraph, intelephense). Don't assume a language LSP is on disk — check with command -v first.
psql / mongosh / ORM CLI when the task involves SQL/NoSQL correctness, JOINs, or index tuning (no DB MCP installed — connect directly via the project's client)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