Structured prompt templates for AI-assisted scientific software development
This repository provides prompt engineering templates and guidance for scientific researchers who write software as part of their research. Based on "Ten Simple Rules for AI-Assisted Coding in Science" by Bridgeford et al. (2025), these templates help you develop better prompts for AI coding assistants, leading to more reliable and scientifically sound code.
-
Clone the repository to a central location:
git clone git@github.com:sscivier/prompt-protocols.git ~/path/to/tools/prompt-protocols -
Symlink into your project:
cd ~/path/to/your-project mkdir -p ai-dev cd ai-dev ln -s ~/path/to/tools/prompt-protocols/prompts ./prompts ln -s ~/path/to/tools/prompt-protocols/assessment ./assessment
-
Add to .gitignore (if using git):
echo "ai-dev/" >> .gitignore
-
Start using templates - see SETUP.md for detailed instructions.
- Prompt Templates - Structured templates for domain research, problem framing, solution specification, test design, code review, and more
- Assessment Tools - Framework for evaluating prompt quality and effectiveness, that can be given to an AI assistant or used as a self-check
- Reference Guide - Shortened version of "Ten Simple Rules for AI-Assisted Coding in Science"
Suppose you need to implement a data processing function but aren't sure about domain standards:
- Research: Use
01-domain-research.mdto understand standard approaches - Frame: Use
02-problem-framing.mdto architect your solution - Specify: Use
05-solution-specification.mdto define clear requirements - Test: Use
06-test-design.mdto specify test cases before implementation - Implement: Use
implementation.mdto create your final prompt - Assess: Have AI review your prompt against
prompt-assessment.md - Revise: Incorporate AI feedback into your prompt
- Run: Run prompt with your AI assistant
- Review: Carefully review all AI-generated code, use
08-code-review.md,09-code-refinement.md, and10-debugging.mdas appropriate
See TEMPLATES-INDEX.md for all available templates and detailed usage guidance.
Full setup instructions: SETUP.md
Key points:
- Clone once to a central location
- Symlink into individual projects'
ai-dev/directory - Add
ai-dev/to.gitignoreto keep project repos clean - Updates propagate automatically across all projects
We welcome contributions from researchers! See CONTRIBUTING.md for:
- How to improve templates
- Adding domain-specific examples
- Contribution workflow and guidelines
Please read our Code of Conduct before contributing.
To cite the Bridgeford et al. (2025) paper, use:
@misc{bridgeford2025simplerulesaiassistedcoding,
title={Ten Simple Rules for AI-Assisted Coding in Science},
author={Eric W. Bridgeford and Iain Campbell and Zijao Chen and Zhicheng Lin and Harrison Ritz and Joachim Vandekerckhove and Russell A. Poldrack},
year={2025},
eprint={2510.22254},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2510.22254},
}Apache-2.0. See LICENSE for details.