prompt-library — Claude Code skill for prompt templates
Find prompt patterns for code review, debugging, tests, analysis, and more. Use the skill when you need a starting point for a request or want to shape the response format.
npx claude-code-templates@latest --skill ai-research/prompt-libraryWhat prompt-library does
The library groups prompts by role and task. It includes patterns for reviewing code, tracking down bugs, writing tests, documenting APIs, and examining complexity, performance, or security. There are also templates for brainstorming and moving code between languages. Choose one, then give the agent the relevant code and context.
A separate section covers prompt techniques, including example-based instructions, persona setup, and structured output. The testing template expects you to name the framework and its conventions, so supply those along with the code. This skill provides prompt patterns; it does not run the checks for you.
What it helps with
- prepare a focused code review request
- outline a prompt for debugging a failure
- draft test-generation instructions for a chosen framework
- ask for a performance analysis with ranked findings
- guide a code migration between languages
Example prompts for the agent
- Review this code for bugs and explain which changes you recommend.
- Write tests for this code using Jest conventions.
- Analyze this code’s performance and rank the findings by impact.
How to install prompt-library
1claude-code-templates
npx claude-code-templates@latest --skill ai-research/prompt-library2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill prompt-library -a claude-code3Manually: put the files in place
~/.claude/skills/prompt-library/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/prompt-library/
Manually: put the files in place
.agents/skills/prompt-library/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/prompt-library/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates prompt-library2Manually: put the files in place
.github/skills/prompt-library/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/ai-research/prompt-libraryManually: put the files in place
.devin/skills/prompt-library/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about prompt-library
How do I install prompt-library in Claude Code?
Run npx claude-code-templates@latest --skill ai-research/prompt-library.
What does prompt-library do?
It offers prompt patterns for code review, debugging, testing, and code analysis. It also includes ways to set a persona or request a structured response.
Do I need to name a test framework?
Yes. The testing pattern has a placeholder for the framework and its conventions, so include the one used by your project, such as Jest.