This contributing guide covers how to contribute to the prompts repository.
All prompts in this repository follow a standardized format defined in the prompt schema. Each prompt is stored as an MDX file in the prompts directory.
A prompt file must include:
- Title: Clear, descriptive title of what the prompt does
- Description: Brief explanation of the prompt's purpose
- Version: Following semantic versioning (e.g.,
1.0.0) - Prompt: The actual prompt text with variable placeholders using
{{variable_name}} - Variables: Descriptions of all variables used in the prompt
- Examples: At least 2-3 examples showing input and expected output
- Evaluation Notes: Notes on edge cases, failure modes, and improvement ideas
- Identify a use case that would benefit from an AI prompt
- Create a new MDX file in the
promptsdirectory - Follow the structure outlined in the prompt schema
- Add clear examples that demonstrate how the prompt should work
- Include notes on evaluation criteria and edge cases
Before submitting a prompt:
- Test it with multiple inputs, including edge cases
- Verify that it produces consistent and helpful outputs
- Check for any potential issues with different AI models
All submitted prompts will be reviewed by the maintainers for:
- Adherence to the prompt structure
- Quality and usefulness of examples
- Clarity and effectiveness of the prompt
- Appropriate handling of edge cases
When updating existing prompts, please follow semantic versioning:
- Patch (
1.0.x): Minor text corrections that don't change functionality - Minor (
1.x.0): Improvements that enhance the prompt but maintain compatibility - Major (
x.0.0): Significant changes that alter how the prompt works
- Fork this repository
- Create a branch for your changes
- Make your changes following the contribution guidelines
- Submit a pull request with a clear description of your changes
- Address any feedback from reviewers
Happy prompting! ✨