Thank you for your interest in contributing to TeaPrompt! This document outlines the quality standards, review process, and guidelines for contributing prompts, skills, or improvements to the library.
TeaPrompt is a reflective engineering prompt library focused on quality over quantity. Our goal is to provide a small, curated set of composable workflows rather than a massive catalog of unmaintained prompts.
Core principle: Doing the right thing > doing things right.
TeaPrompt ships nine frozen workflow skills as natural-language harness policy — not a multi-agent runtime.
- Pick Strictness L1–L6 before choosing a skill (reflective-dispatch).
- Do not add a tenth core skill without the three-recurrence promotion gate (PROJECT_KNOWLEDGE).
- Routing fairness: ROUTING_CONTRACT; panel record: multi-agent-panel-consensus.
make all # tests + validate (routing, governance, benchmarks fixture, skill examples)Before tuning route_paraphrase_eval.py:
- Add fresh holdout phrases to
route-002-holdout-eval.yamland/or adversarial cases toroute-003-adversarial-eval.yaml. - Run
make all—validate_route_fixture.pyenforces minimum fixture coverage. - When fixing routing boundaries, add holdout phrases before editing
route_paraphrase_eval.py(seeROUTING_CONTRACT.mdR8–R12). - When cheatsheet cues change, update exported probe tuples in
plans/tests/test_validate_route_fixture.pyand runtest_cheatsheet_*_parity.pyplustest_cheatsheet_boundary_quick_cues.py. - Record governance-surface decisions in
PROJECT_KNOWLEDGE.mdDecision Index when routing contract changes. - When adding benchmark golden tasks in
benchmark_tasks.py, keep all nine workflows covered and updateMIN_TASK_COUNTinvalidate_benchmark_fixture.py.
See ROUTING_CONTRACT (R8–R12) and the Governance Maintenance Playbook.
All prompts must include:
- Clear Purpose - A concise statement of what the prompt achieves
- Module Contract - Structured definition of:
- Trigger - When to use this prompt
- Methods - Core techniques or approaches
- Output - Expected output format
- Never - Anti-patterns to avoid
- Escalation - When to route to other workflows or request human review
- Evidence-Based - Claims should be backed by research or experience where applicable
All skills (SKILL.md files) must include:
-
Frontmatter with required fields:
--- name: skill-name description: Clear one-line description license: MIT risk_level: low|medium|high human_review_required: true|false external_io: true|false ---
-
Required Sections:
- Purpose
- Module Contract (with Trigger, Methods, Output, Never subsections)
- Escalation or equivalent risk gating
-
Quality Signals:
- Acceptance criteria where applicable
- Human Review triggers for high-risk operations
- Clear boundaries and scope
- Actionable output format
- No broken links - All
ref_file,ref_snippet, and markdown links must validate - Valid frontmatter - YAML frontmatter must parse correctly
- Appropriate length - Skills should be focused (typically 50-500 lines)
- No dangerous patterns - Explicit gates for destructive operations
- Fork the repository and create a feature branch
- Run validation tools to ensure your changes pass quality gates
- Review existing patterns - Match the style and structure of similar prompts/skills
# Run link and schema validation
python3 reflective-prompt-library/plans/validate_links.py
# Run the linter
python3 reflective-prompt-library/plans/lint_skills.py
# Validate governance metadata
python3 reflective-prompt-library/plans/validate_governance.py
# Regenerate the index
python3 reflective-prompt-library/plans/generate_index.py- Create a pull request with clear description of changes
- Reference related issues if applicable
- Include validation results in the PR description
- Set the appropriate labels (e.g.,
new-prompt,new-skill,bugfix)
All contributions go through review:
- Automated Checks - Validation tools must pass
- Manual Review - Maintainers review for:
- Alignment with project philosophy
- Quality and clarity
- Consistency with existing patterns
- Documentation completeness
- Testing - When applicable, test the workflow in real scenarios
- Feedback - Maintainers may request changes before merge
Contributions must pass these quality gates:
- ✅ All links validate (no broken references)
- ✅ Frontmatter is valid and complete
- ✅ Required sections are present
- ✅ Governance metadata is complete
- ✅ No dangerous patterns without explicit gates
⚠️ Human Review triggers for high-risk content⚠️ Acceptance criteria for implementation prompts⚠️ Clear escalation paths⚠️ Evidence-based claims with sources
- Add to appropriate category directory (
00-core/,01-thinking/, etc.) - Follow existing prompt structure
- Include clear trigger conditions
- Document prompt sources if derived from existing work
- Add to
reflective-prompt-library/skills/ - Create subdirectory with
SKILL.md - Include required frontmatter with governance metadata
- Map to underlying prompt sources
- Consider adding example usage
- Update README files if adding new categories
- Update METHODOLOGY_MAP.md if changing workflows
- Add translations if multilingual
- Keep examples current
- Improve validation scripts
- Add new quality checks
- Enhance index generation
- Fix bugs in existing tools
- Operational documentation (README, CONTRIBUTING, plans) in English
- Prompt sources can be English or Traditional Chinese (zh-TW)
- Translations welcome - maintain both versions
- See
LANGUAGE_POLICY.mdfor details
Translation files (.zh-TW.md) must cover:
- All section headings
- All code blocks
- All warning, note, and callout boxes
Narrative sections may be summarised if a disclaimer at the top of the file notes the editorial choice. Translations that omit entire sections without an editorial note should not be merged. Existing abridged translations are grandfathered under this policy.
- Test the workflow - Use the prompt/skill in a real scenario
- Test edge cases - Try unusual inputs or contexts
- Test routing - Ensure it integrates well with other workflows
- Test quality - Verify output meets acceptance criteria
# Run all validations
python3 reflective-prompt-library/plans/validate_links.py
python3 reflective-prompt-library/plans/lint_skills.py
python3 reflective-prompt-library/plans/validate_governance.py
# Full governance gate (pytest + validate)
make all- Be concise - Prefer compact, direct language
- Be specific - Avoid vague claims or instructions
- Be actionable - Provide clear next steps
- Be evidence-based - Distinguish facts from claims
- Python scripts - Follow PEP 8 style
- Markdown - Use consistent heading levels
- YAML - Use simple key-value pairs in frontmatter
- File naming - Use kebab-case for files and directories
- Questions - Open an issue with the
questionlabel - Discussions - Use GitHub Discussions for design conversations
- Issues - Report bugs with reproduction steps
- Documentation - Suggest improvements via issues or PRs
By contributing, you agree that your contributions will be licensed under the MIT License, consistent with the project's existing license.
Contributors are recognized in the project's contributor list. Significant contributions may be highlighted in release notes.
TeaPrompt relies on community contributions to remain useful and current. We appreciate your help in building a high-quality reflective engineering resource!