Skip to content
Back to search

gemini-cli-prompt-library

A curated library of high-quality, professionally crafted prompts for common development tasks. Save time and improve your AI interactions with battle-tested prompt templates. You can install it as an Gemini CLI Extension.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/harish-garg--gemini-cli-prompt-library/badge.svg)](/listings/harish-garg--gemini-cli-prompt-library)

HTML

<a href="/listings/harish-garg--gemini-cli-prompt-library"><img src="/api/listings/harish-garg--gemini-cli-prompt-library/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Install the extension using the Gemini CLI:

gemini extensions install yourusername/prompt-library-extension

Or install from a local directory:

git clone https://github.com/yourusername/prompt-library-extension.git
cd prompt-library-extension
gemini extensions link .

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 280 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # 📚 Prompt Library - Gemini CLI Extension
  2. A curated library of high-quality, professionally crafted prompts for common development tasks. Save time and improve your AI interactions with battle-tested prompt templates.
  3. [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
  4. [![Gemini CLI](https://img.shields.io/badge/Gemini%20CLI-Extension-blue)](https://geminicli.com/)
  5. ## ✨ Features
  6. - 🎯 **30+ Professional Prompts** - Carefully crafted for common development tasks
  7. - 🚀 **Instant Access** - Simple slash commands for quick execution
  8. - 📖 **Learn by Example** - See prompt engineering best practices in action
  9. - 🎨 **Organized Categories** - Easy to browse and discover prompts
  10. - 🔧 **Customizable** - Fork and adapt prompts to your needs
  11. - 💡 **Educational** - Learn prompt engineering principles
  12. ## 📦 Installation
  13. Install the extension using the Gemini CLI:
  14. ```bash
  15. gemini extensions install yourusername/prompt-library-extension
  16. ```
  17. Or install from a local directory:
  18. ```bash
  19. git clone https://github.com/yourusername/prompt-library-extension.git
  20. cd prompt-library-extension
  21. gemini extensions link .
  22. ```
  23. ## 🚀 Quick Start
  24. After installation, restart Gemini CLI and start using prompts:
  25. ```bash
  26. # Review code for security issues
  27. /code-review:security "your code here"
  28. # Generate a README file
  29. /docs:write-readme "describe your project"
  30. # Create unit tests
  31. /testing:generate-unit-tests "your function here"
  32. # Explain a complex concept
  33. /learning:explain-concept "recursion"
  34. # Debug an error
  35. /debugging:debug-error "paste your error here"
  36. ```
  37. ## 📋 Available Prompts
  38. ### 🔍 Code Review & Analysis
  39. - `/code-review:security` - Deep security analysis
  40. - `/code-review:performance` - Performance optimization
  41. - `/code-review:best-practices` - Best practices review
  42. - `/code-review:refactor` - Refactoring suggestions
  43. ### 📝 Documentation
  44. - `/docs:write-readme` - Generate comprehensive README
  45. - `/docs:write-api-docs` - Create API documentation
  46. - `/docs:write-changelog` - Generate changelog
  47. - `/docs:write-contributing` - Create contribution guidelines
  48. ### 🧪 Testing
  49. - `/testing:generate-unit-tests` - Create unit tests
  50. - `/testing:generate-e2e-tests` - Create end-to-end tests
  51. - `/testing:edge-cases` - Identify edge cases
  52. - `/testing:coverage-analysis` - Analyze test coverage
  53. ### 🐛 Debugging
  54. - `/debugging:debug-error` - Diagnose and fix errors
  55. - `/debugging:trace-issue` - Root cause analysis
  56. - `/debugging:performance-profile` - Performance profiling
  57. ### 🏗️ Architecture & Design
  58. - `/architecture:design-api` - Design RESTful APIs
  59. - `/architecture:design-database` - Design database schemas
  60. - `/architecture:system-design` - System architecture
  61. - `/architecture:design-patterns` - Suggest design patterns
  62. ### 📚 Learning & Explanation
  63. - `/learning:explain-concept` - Explain technical concepts
  64. - `/learning:eli5` - Explain like I'm 5
  65. - `/learning:compare-tech` - Compare technologies
  66. - `/learning:roadmap` - Create learning paths
  67. ### ✍️ Writing & Communication
  68. - `/writing:technical-blog` - Write technical posts
  69. - `/writing:email` - Draft professional emails
  70. - `/writing:presentation` - Create presentation outlines
  71. ### 🎨 Prompt Engineering
  72. - `/prompts:improve` - Improve existing prompts
  73. - `/prompts:create-template` - Create prompt templates
  74. - `/prompts:best-practices` - Learn prompt tips
  75. ## 💡 Usage Examples
  76. ### Security Code Review
  77. ```bash
  78. /code-review:security "
  79. function loginUser(username, password) {
  80. const query = 'SELECT * FROM users WHERE username = ' + username;
  81. return db.execute(query);
  82. }
  83. "
  84. ```
  85. **Output:** Comprehensive security analysis identifying SQL injection vulnerability, authentication issues, and providing secure code examples.
  86. ### Generate Unit Tests
  87. ```bash
  88. /testing:generate-unit-tests "
  89. function calculateDiscount(price, discountPercent) {
  90. return price - (price * discountPercent / 100);
  91. }
  92. "
  93. ```
  94. **Output:** Complete test suite with happy paths, edge cases, boundary values, and error conditions.
  95. ### Explain Concept
  96. ```bash
  97. /learning:explain-concept "closures in JavaScript"
  98. ```
  99. **Output:** Multi-level explanation from ELI5 to technical details, with examples, use cases, and best practices.
  100. ### Design API
  101. ```bash
  102. /architecture:design-api "A blog platform with posts, comments, users, and tags"
  103. ```
  104. **Output:** Complete REST API design with endpoints, data models, authentication, and OpenAPI documentation.
  105. ## 🎯 Why Use This Extension?
  106. ### Save Time
  107. - Pre-crafted prompts eliminate trial and error
  108. - Instant access via simple commands
  109. - Consistent, high-quality results
  110. ### Improve Quality
  111. - Based on prompt engineering best practices
  112. - Comprehensive, structured outputs
  113. - Professional-grade results
  114. ### Learn Prompt Engineering
  115. - See examples of effective prompts
  116. - Understand what makes prompts work
  117. - Build your own custom prompts
  118. ### Boost Productivity
  119. - Quick access to common tasks
  120. - Reduce context switching
  121. - Focus on problem-solving, not prompt crafting
  122. ## 🛠️ Customization
  123. ### Adding Your Own Prompts
  124. 1. Create a new `.toml` file in the appropriate `commands/` subdirectory:
  125. ```bash
  126. mkdir -p commands/mycategory
  127. touch commands/mycategory/myprompt.toml
  128. ```
  129. 2. Write your prompt:
  130. ```toml
  131. prompt = """
  132. # My Custom Prompt
  133. Your prompt content here with {{args}} for user input.
  134. """
  135. ```
  136. 3. Restart Gemini CLI to load the new prompt
  137. ### Modifying Existing Prompts
  138. Fork the repository and edit any `.toml` file to customize prompts to your needs.
  139. ## 📚 Prompt Engineering Tips
  140. Based on the prompts in this library, here are key principles:
  141. ### 1. **Be Specific**
  142. ```
  143. ❌ "Review this code"
  144. ✅ "Perform a security analysis focusing on input validation, SQL injection, and XSS vulnerabilities"
  145. ```
  146. ### 2. **Provide Structure**
  147. Use clear sections, numbering, and formatting to guide the AI's response.
  148. ### 3. **Include Context**
  149. Specify the language, framework, use case, and constraints.
  150. ### 4. **Request Examples**
  151. Ask for code examples, not just explanations.
  152. ### 5. **Define Output Format**
  153. Specify exactly how you want the response structured.
  154. ### 6. **Use Variables**
  155. Make prompts reusable with `{{args}}` placeholders.
  156. ## 🤝 Contributing
  157. Contributions are welcome! Here's how you can help:
  158. 1. **Add New Prompts** - Share your best prompts
  159. 2. **Improve Existing Prompts** - Make them clearer and more effective
  160. 3. **Report Issues** - Found a bug or unclear prompt?
  161. 4. **Suggest Categories** - What prompt categories are missing?
  162. ### Contribution Guidelines
  163. 1. Fork the repository
  164. 2. Create a feature branch: `git checkout -b feature/new-prompt`
  165. 3. Add your prompt in the appropriate category
  166. 4. Test it thoroughly
  167. 5. Submit a pull request with clear description
  168. ## 📖 Documentation
  169. For more information about Gemini CLI extensions:
  170. - [Gemini CLI Documentation](https://geminicli.com/docs/)
  171. - [Extension Development Guide](https://geminicli.com/docs/extensions/)
  172. - [Model Context Protocol](https://modelcontextprotocol.io/)
  173. ## 📄 License
  174. MIT License - see [LICENSE](LICENSE) file for details.
  175. ## 🙏 Acknowledgments
  176. - Inspired by the Gemini CLI community
  177. - Built on prompt engineering best practices
  178. - Thanks to all contributors
  179. ## 📞 Support
  180. - 🐛 [Report Issues](https://github.com/yourusername/prompt-library-extension/issues)
  181. - 💬 [Discussions](https://github.com/yourusername/prompt-library-extension/discussions)
  182. - 📧 Email: your.email@example.com
  183. ## 🗺️ Roadmap
  184. - [ ] Add more prompt categories
  185. - [ ] Interactive prompt builder
  186. - [ ] Prompt analytics (most used, success rate)
  187. - [ ] Community prompt sharing
  188. - [ ] Multi-language support
  189. - [ ] Prompt versioning
  190. - [ ] A/B testing for prompts
  191. ---
  192. ## About me
  193. My name is Harish Garg. I am a solo developer. I write at my blog [here](https://harishgarg.com/).
  194. I also maintain a [MCP Resources Directory](https://www.mcpstack.org/) & a [coding ai tools directory](https://www.codeaidirectory.com/)
  195. ---
  196. **Made with ❤️ for the Gemini CLI community**
  197. Star ⭐ this repo if you find it useful!

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.