一键导入
create-reference
Create or update an AI-optimized reference document for a tool, library, framework, or API via thorough research.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create or update an AI-optimized reference document for a tool, library, framework, or API via thorough research.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add terms, context, or instructions to Shama voice-to-text files for clipboard mode (Ctrl+Opt+Space) or shell-command mode (Ctrl+Opt+S), at project or global level.
Initialize Shama voice-to-text config for the project — create voice.json, voice-vocabulary.md, voice-context.md, and register the project in Shama's registry.toml.
Reflect on codebase navigation effectiveness at end of conversation. Surfaces dead ends, inefficiencies, missing context. Does not write files — pair with /kiro:steering-custom to persist.
Use when picking or vetting a keyboard shortcut on macOS. Triggers include "what hotkey should I use for X", "is `<combo>` available", "does this shortcut conflict", "recommend a keybinding for…", "check `<combo>` against my setup", "pick a hotkey for…", or any mention of choosing/binding/changing a shortcut in WezTerm, tmux, Zed, Chrome, Claude Code, or macOS. Determines whether a proposed combo collides with OS-reserved bindings, app defaults, or the user's customizations, and recommends ergonomic alternatives when needed.
Detect and remove dead code with knip. Use when the user asks to "run knip", "find unused files", "find unused exports", "find unused dependencies", "clean up dead code", "remove dead code", "set up knip", "configure knip", "knip.json", "knip false positive", "knip CI", or mentions a `knip` config, dependency bloat, bundle bloat from unused imports, or tree-shaking unused exports. Covers the configuration-first workflow, confidence-gated deletion, framework-specific gotchas (Next.js 15+, Tailwind, Storybook, Jest, Bun's test runner and `bun build --compile`), monorepos, CI integration, and performance tuning.
This skill should be used when the user asks to "set up react-scan", "install react-scan", "diagnose React re-renders", "find unnecessary renders", "find unstable props", "automate React render checks with Playwright", "react-scan + playwright", "measure component renders programmatically", "check why a React component is slow", or mentions React rendering issues, slow React interactions, render counts, or component-level perf attribution. Covers install across Next.js/Vite/Remix/script-tag/browser-extension, the lite headless API for CI, and the canonical render-attribution → fix → validate loop driven through Playwright.
| name | create-reference |
| description | Create or update an AI-optimized reference document for a tool, library, framework, or API via thorough research. |
| argument-hint | <subject> [--update <existing-file>] [--language <language>] |
| allowed-tools | Read, Write, Glob, Grep, WebSearch, WebFetch, Task, AskUserQuestion, Bash(ls:*) |
| disable-model-invocation | true |
Create or update reference documents that provide AI agents with comprehensive knowledge of a tool, technology, library, framework, or API. The resulting document enables an AI agent to work effectively with the subject without prior knowledge.
$ARGUMENTSDetermine the mode and subject from the arguments:
--update <path> is specified or the user asks to update an existing document, read the existing document first and extend/revise itDetermine the subject source:
If the subject or scope is ambiguous, use AskUserQuestion to clarify:
Conduct thorough research to build comprehensive understanding. Adapt approach based on subject source.
Combine findings from web and local sources. Local code takes precedence when web documentation contradicts actual implementation.
Structure the reference document following these principles.
# [Subject Name] Reference Guide for AI Agents
<Overview>
[1-3 sentence description of what the tool does and its primary use case.]
[Key workflow or mental model in one sentence.]
</Overview>
## Installation / Setup
[Commands, dependencies, prerequisites]
## Core Concepts
[Key mental models and terminology the agent must understand]
## API Reference / Key APIs
[Function signatures, parameters, return types]
[Organized by logical groupings]
## Configuration
[Config files, environment variables, options]
## Common Patterns
[Practical recipes for frequent tasks]
## Commands / CLI
[If applicable: command syntax, flags, examples]
## Troubleshooting / Gotchas
[Common pitfalls and their solutions]
Adapt this structure to the subject. Not all sections apply to every tool. Add or remove sections as needed. The structure should follow the natural workflow of using the tool.
Format rules:
npm install", not "You should run npm install")<Overview>, <critical>, <example>) for structural clarity where appropriateContent rules:
Code examples:
Before saving, verify the document against this checklist:
For new documents:
agent-docs/ directory in the project root<subject-name>-reference.md (kebab-case)<subject-name>-reference-<language>.mdagent-docs/<subject-name>/For updates:
After saving, report the file path and a brief summary of what the document covers.
When updating an existing reference document: