From auto-research
Generate a niche-specific research skill from templates. Creates a standalone skill with Research-Review-Pivot loop customized for your domain. Use when you want a permanent, reusable research skill for PR reviews, spec reviews, plan reviews, or a custom niche.
How this skill is triggered — by the user, by Claude, or both
Slash command
/auto-research:generate [gh-review | spec-review | plan-review | custom][gh-review | spec-review | plan-review | custom]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Scaffold a standalone research skill customized for a specific domain.
Scaffold a standalone research skill customized for a specific domain.
/research-loop directly)Bash — reading source template files. Read — reading reference materials to inline.
Write — creating generated SKILL.md and reference files. Edit — updating existing
plugin.json if output target is an existing plugin. All four are minimum necessary for
the generator to scaffold a complete standalone skill.
| Template | Best for |
|---|---|
gh-review | GitHub PR review comments — groups by file, outputs PR comments |
spec-review | Spec/RFC feedback — groups by theme, outputs markdown report |
plan-review | Implementation plan feedback — groups by theme, outputs annotated plan |
If the user specified a template name in the argument, use it.
If not, or if "custom", ask: "What kind of findings will you be researching? (PR review comments, spec feedback, plan critiques, or describe your niche)"
Ask these using AskUserQuestion, adapting based on the template chosen:
Input source: "Where do findings come from?"
gh api)Output target: "Where should the generated skill live?"
.claude/skills/ in a project (project-local, no plugin)Output format: "How should results be delivered?"
Reference ${CLAUDE_SKILL_DIR}/references/output-formats.md for details.
Exploration scope: "What should the Research agent explore?"
Skill name: "What should the skill be called?"
pr-research, spec-research)[a-z0-9]+(-[a-z0-9]+)*, max 64 charactersRead these files to assemble the generated skill:
${CLAUDE_SKILL_DIR}/../../templates/{{template_name}}.md${CLAUDE_SKILL_DIR}/../research-loop/references/loop-protocol.md${CLAUDE_SKILL_DIR}/../research-loop/references/agent-prompts.md${CLAUDE_SKILL_DIR}/references/skill-template.mdIf any file is not found, stop and report which file is missing. This likely means
the auto-research plugin directory was moved or partially installed. The user should
reinstall via claude plugin marketplace add or verify their plugin path.
Create the output structure:
{{output_target}}/
├── .claude-plugin/
│ └── plugin.json # Only if output target is a plugin
└── skills/
└── {{skill_name}}/
├── SKILL.md # Orchestration skill (~250 lines)
└── references/
├── loop-protocol.md # Full state machine (copied from source)
└── agent-prompts.md # Niche-customized prompts
SKILL.md: Use skill-template.md as the structure. Fill placeholders with:
loop-protocol.md: Copy verbatim from the research-loop source. Do not modify.
agent-prompts.md: Copy the agent prompt templates, replacing {{niche_context}} placeholders with the niche-specific context from the chosen template.
plugin.json (if applicable):
{
"name": "{{plugin_name}}",
"version": "0.1.0",
"description": "{{niche}} research skill — iterative verification loop"
}
After writing all files:
loop-protocol.md was copied completelyagent-prompts.md has niche context filled in (no remaining {{placeholders}}){{path}}. Test with: claude --plugin-dir {{path}}"If the user chose "custom" for any interview question, help them define:
Write their custom definitions directly into the generated skill (no placeholder references to templates that won't exist in the standalone skill).
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub dance-cmdr/claude-plugins --plugin auto-research