ai-toolkit-rules
Mandatory engineering, security, testing, git, performance, quality, and response rules.…
Hierarchical retrieval: KB → MCP/Context7 → web. Triggers: research, fact-check, verify, synthesize, cross-reference, multi-source, cite sources.
$ npx -y skills add softspark/ai-toolkit --skill research-mastery --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/research-masteryContext preview
The summary Claude sees to decide when to auto-load this skill.
Hierarchical retrieval: KB → MCP/Context7 → web. Triggers: research, fact-check, verify, synthesize, cross-reference, multi-source, cite sources.
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:
> Carve-out
AI coding toolkit with machine-enforced safety, 116 skills, 44 agents, lifecycle hooks, persona presets, opt-in plugin packs, and benchmark tooling.
Repo: softspark/ai-toolkit
Mandatory engineering, security, testing, git, performance, quality, and response rules.…
Searches past coding sessions for observations, decisions, context. Triggers: mem-search,…
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG,…
Creates new specialized agents with frontmatter, tools, delegation. Triggers: new agent,…
Analyzes code quality, complexity, patterns across codebase. Triggers: quality report,…
API design: naming, versioning, pagination, idempotency, OpenAPI, error contracts and safe…