About PromptIndex
PromptIndex is an open-source library of prompt templates designed to help developers get better results from large language models. Every prompt is tested, documented, and ready to customize.
How to Contribute
PromptIndex is community-maintained. Contributions are welcome via pull requests to the GitHub repository.
- Fork the repository on GitHub
- Add your prompt template to
src/data/prompts.ts - Follow the
PromptTemplateinterface - Submit a pull request with a description of the prompt and what it does
What Makes a Good Prompt Template
Specific and actionable. The prompt should produce useful output with minimal customization. Vague instructions produce vague results.
Well-structured output. Define the expected output format clearly. Use sections, lists, tables, or code blocks so the response is easy to scan.
Customizable via variables. Use {{variable}} placeholders for parts that change between uses: language, framework, context, data.
Model-agnostic when possible. Good prompts work across multiple models. Note model-specific features if used.
Tested with real inputs. Every template should have been used with actual data to verify it produces the expected quality and format.
License
PromptIndex is open source. All prompt templates are available under the MIT License for any use, including commercial.