/yka-code:research-firstfrom yka-code
[yka-code] Enforce research-before-asserting on any library, framework, API, SDK, or external-system claim. Use ALWAYS before stating version-specific behavior, API shape, flag, config option, or "how does X work" for any third-party code — every time, no exceptions. Triggers on any mention of library/framework names (React, Vue, Next, Bun, Axum, Django, FastAPI, Polars, Prisma, etc.), version numbers, import/require statements being added, API method names that aren't clearly internal, changelogs, breaking changes, migration questions, or upstream-repo references. Forbids version-specific assertions without either (a) a preceding `docfork:search_docs` / `deepwiki:ask_question` / `github` MCP call whose result is cited inline, or (b) an explicit "current as of <ISO date>, training-cutoff unverified" disclaimer. Pins queries to a date/version when the user specifies one; defaults to today (ISO date from `$(date -I)`) when they don't.
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.
Training cutoff ≠ current state. Library APIs rename, flags change default, features deprecate, packages get taken over. Every version-specific claim you make without fresh evidence is a gamble.
This skill makes the research step mandatory, not optional.
Activate and research before speaking when the task or your own reasoning involves any of:
If this skill was loaded inside a subagent spawned by a lead, the rules below apply to YOUR research, not the lead's. The lead delegated to you precisely because your retrieval shouldn't pollute main context. Follow the discipline:
date -I once and stamp every version-specific claim with that ISO date (or the user's specified reference if the lead passed one).mcp__docfork__* / mcp__deepwiki__* / mcp__github__* — don't fabricate from training data.Main-chat context is finite and expensive. Research tends to pull in long documents, multi-page search results, and full source files that balloon the transcript. Before doing research inline, check whether it should be a subagent call:
| Shape of research | Do it in main chat | Delegate to subagent (Agent() / general-purpose) |
|---|---|---|
| Single docfork/deepwiki lookup with a known answer shape | ✅ | — |
Single gh api call for a specific PR/issue | ✅ | — |
| Reading 1-2 files from a known repo path | ✅ | — |
| Comparing patterns across ≥3 repos / workflows / codebases | — | ✅ |
| ≥3 web searches needed to triangulate the answer | — | ✅ |
| Any research whose raw output will exceed ~2000 tokens (long API docs, multi-file source reads, changelogs) | — | ✅ |
| "What's the state of the art / industry standard for X?" surveys | — | ✅ |
| Spec extraction: read SPEC → produce a blueprint | — | ✅ |
When you delegate: give the subagent the problem, the list of sources to check, the fields to extract, and a word budget for the report. You stay focused on the task; the subagent burns its own context on retrieval.
Before querying anything:
github MCP ref=<tag-or-sha> for repo state; use docfork:search_docs with a version-qualified query like [email protected] useEffect semantics; use deepwiki against a specific revision if the repo supports it.date -I (Bash tool) ONCE at the start of research. Stamp all claims with that ISO date.Never straddle — either pin to the user's reference or to today, not a fuzzy middle.
| Question shape | MCP |
|---|---|
| "How do I use X library's Y feature?" | mcp__docfork__search_docs → fetch_doc on top result |
| "What does X do?" / "Does X still exist?" / "Did they change X?" | mcp__deepwiki__ask_question on the library's public repo |
| "What's on main?" / "Which tag has fix Y?" / "What's the latest release?" | mcp__github__* — get_file_contents, list_releases, list_commits with ref pinning |
| Cross-repo PR/issue state | mcp__github__search_issues, search_pull_requests |
| Historical memory ("did we hit this before?") | mcp__plugin_claude-mem_mcp-search__smart_search |
If the first MCP miss, escalate (docfork → deepwiki → github). Don't fall back to guessing.
Every version-specific claim must be followed by a citation:
React 19 removed `useEffect`'s silent-cleanup-on-dep-change — `fetch_doc` https://react.dev/reference/react/useEffect (accessed 2026-04-17)
`bun test` accepts `--bail=<n>` since v1.1.9 — deepwiki ask_question oven-sh/bun "when was --bail introduced"
Forbidden: asserting "React 19 does X" with no citation and no date disclaimer.
Allowed fallback when MCPs truly can't resolve something:
*Unverified (training-cutoff, no MCP coverage):* React Compiler stable status as of 2026-04-17 — I'd need to check the react.dev changelog or an upstream release note.
Always resolve and state the date. When you say "as of <date>", that's a promise your claim reflects that date's state.
date -I. "Current as of 2026-04-17 …"If the user's date or version lies in the future or past beyond what the MCP can reach, say so explicitly:
console.log, list.sort() in Python stdlib, Vec::new in Rust stdlib) — stdlib/core language features are OK to state without citation.coding-style + karpathy-guidelines — all three load at /do Phase 0audit-rigor — load together when the research feeds an audit/review report. research-first owns the retrieval/citation discipline; audit-rigor adds the ≥70% confidence threshold and the SWAP/ADD/DROP output structure on top.docfork, deepwiki, github, claude-mem MCPs — the research toolsetstop-research-check.sh — post-hoc audit; if it fires the warning, correct in the next turnreferences/mcp-selection.md — decision tree for which MCP to callreferences/date-pinning.md — full examples of pinning to user date/version vs todayreferences/citation-format.md — accepted citation formatsWhat 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