ai-toolkit-rules
Mandatory engineering, security, testing, git, performance, quality, and response rules. Claude MUST load this skill for every…
Hierarchical retrieval: KB → MCP/Context7 → web. Triggers: research, fact-check, verify, synthesize, cross-reference, multi-source, cite sources.
Claude Code
$ npx -y skills add softspark/ai-toolkit --skill research-mastery --agent claude-code
Codex
$ npx skills add softspark/ai-toolkit --skill research-mastery -a codex -y
Cursor
$ npx skills add softspark/ai-toolkit --skill research-mastery -a cursor -y
Gemini CLI
$ npx skills add softspark/ai-toolkit --skill research-mastery -a gemini-cli -y
GitHub Copilot
$ npx skills add softspark/ai-toolkit --skill research-mastery -a github-copilot -y
OpenCode
$ npx skills add softspark/ai-toolkit --skill research-mastery -a opencode -y
Windsurf
$ npx skills add softspark/ai-toolkit --skill research-mastery -a windsurf -y
name: research-mastery description: "Hierarchical retrieval: KB → MCP/Context7 → web. Triggers: research, fact-check, verify, synthesize, cross-reference, multi-source, cite sources." effort: medium user-invocable: false allowed-tools: Read
You are not a guessing machine. You are an information retrieval engine.
You MUST search in this order. Do not skip steps.
**Source of Truth**: The project's Knowledge Base (`kb/`). **Tool**: `smart_query(query)` (Standard) OR `crag_search(query)` (High Precision) **Why**: This is YOUR project context. It overrides everything else. **Protocol**: 1. Try `smart_query("task context")`. 2. **CRITIC (Self-Correction)**:
1. **LOG GAP**: Append query to `kb/gaps.log` 2. Proceed to Step 2.
**Source of Truth**: Connected MCP servers (e.g., databases, external APIs). **Tool**: `use_mcp_tool(...)` **Why**: Live data from the environment.
**Source of Truth**: The Web. **Tool**: `search_web(query)` **Why**: For documentation of public libraries not in KB. **Rule**: ONLY if Step 1 & 2 yield nothing.
**Source of Truth**: Your training data. **Why**: Fallback for general programming concepts. **Rule**: Use only for generic syntax/logic, NEVER for project specifics.
Before you reach for any tool, decide whether retrieval is even warranted. Two axes settle it:
When both axes say "timeless and recognized", skip the hierarchy and answer. Otherwise, enter it at Step 1.
Match effort to the question. Over-retrieving on a one-fact lookup wastes the turn; under-retrieving on a comparison ships a half-answer.
| Question shape | Rough budget | |---|---| | Single discrete fact ("which version", "default port") | ~1 lookup | | Medium question, one entity, a couple of angles | a few lookups | | Deep comparison, multiple entities or trade-offs | more lookups, broaden then narrow |
**Escalation handoff** — when a question genuinely needs sustained fan-out (many sources, cross-checking, adversarial verification, a synthesized report), stop expanding inline. Hand off to the `deep-research` skill/agent instead of letting one turn balloon into a dozen ad-hoc searches. Inline research is for bounded lookups; deep, multi-source investigation has its own harness.
The Hierarchy of Truth above already puts KB first — that order stands. Add a routing heuristic on top:
For securit
AI coding toolkit with machine-enforced safety, 116 skills, 44 agents, lifecycle hooks, persona presets, opt-in plugin packs, and benchmark tooling.
Mandatory engineering, security, testing, git, performance, quality, and response rules. Claude MUST load this skill for every…
Searches past coding sessions for observations, decisions, context. Triggers: mem-search, recall session, past work, prior…
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG, EAA, ARIA, contrast, keyboard, screen…
Creates new specialized agents with frontmatter, tools, delegation. Triggers: new agent, create agent, agent scaffold,…
Analyzes code quality, complexity, patterns across codebase. Triggers: quality report, hotspot scan, code analysis, architecture…
API design: naming, versioning, pagination, idempotency, OpenAPI, error contracts and safe retries. Triggers: API design, REST,…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.