All AI resources

AIMates resources

AI Templates

Copy-ready Markdown templates for planning and building AI work. Copy one into your doc tool or download it as a .md file.

Prompt spec

Before you write a prompt that other people or an app will reuse.

.md
# Prompt spec: <name>

## Role
You are a <role> helping <audience>.

## Task
<One sentence: what the model must produce.>

## Context
- Who will read the output: <audience>
- Background the model needs: <facts, links, data>

## Constraints
- Length: <e.g. max 150 words>
- Tone: <e.g. friendly, plain English>
- Must not: <e.g. invent numbers, mention competitors>

## Output format
<e.g. Markdown table with columns A, B, C / JSON with keys x, y>

## Examples
Input: <example input>
Output: <example output>

## How we check it
- [ ] Follows the format
- [ ] No made-up facts
- [ ] Tested on 5 real inputs

AI use-case canvas

To decide whether a task is worth automating with AI.

.md
# AI use-case canvas: <name>

## Problem
What is slow, costly or error-prone today?

## Users
Who does this work now, and how often?

## Current process
1.
2.
3.

## Where AI helps
Which step(s) could AI draft, classify, extract or summarise?

## Data needed
What inputs does it need? Where do they live? Any personal data?

## Risk if wrong
Low / Medium / High. What happens if the AI makes a mistake?

## Human check
Who reviews the output, and when?

## Success measure
<e.g. time per case from 20 min to 5 min, error rate below 2%>

## First small test
What can we try in one week with 20 real examples?

RAG design doc

When planning a chatbot or assistant that answers from your documents.

.md
# RAG design doc: <assistant name>

## Goal
Users ask: <typical questions>. The assistant answers from: <sources>.

## Sources
| Source | Owner | Format | Update frequency | Access rules |
|---|---|---|---|---|
| | | | | |

## Ingestion
- Cleaning: <remove headers, duplicates, old versions>
- Chunking: <size, overlap, split on headings?>
- Metadata kept: <title, date, department, URL>

## Retrieval
- Embedding model: <name>
- Vector store: <name>
- Top-k: <e.g. 5>, filters: <e.g. department>
- Re-ranking: yes / no

## Answering
- Cite sources in every answer
- If nothing relevant is found: say so, do not guess

## Evaluation
- Test set: <e.g. 50 real questions with correct answers>
- Measures: answer correctness, citation accuracy, "I don't know" rate

## Security
- Respect document permissions per user
- Treat document text as data, not instructions (prompt injection)

Agent spec

Before building an agent that calls tools or takes actions.

.md
# Agent spec: <agent name>

## Goal
<What the agent achieves, in one sentence.>

## Trigger
<What starts it: a user request, a schedule, an event?>

## Tools
| Tool | What it does | Read or write | Needs approval? |
|---|---|---|---|
| | | | |

## Boundaries
- Never: <e.g. send emails to external addresses, delete data>
- Max steps per run: <e.g. 10>
- Budget: <e.g. max tokens or cost per run>

## Human approval
Which actions need a person to confirm first?

## Memory
What does it remember between runs, and for how long?

## Logging
Log every tool call with inputs, outputs and time.

## Failure handling
What happens when a tool fails or the agent is unsure?

## Test cases
1. Happy path:
2. Missing data:
3. Malicious input (prompt injection):

AI project brief

To align your team or manager before an AI project starts.

.md
# AI project brief: <project>

## Why now
<The business problem and its cost.>

## Scope
In scope:
-
Out of scope:
-

## Users and stakeholders
- Users:
- Owner:
- Approvers (legal, security, data):

## Approach
<Off-the-shelf tool, API + prompts, RAG, agent, fine-tuning?>

## Data and privacy
- Data used:
- Personal data? Yes / No. If yes, how is it protected?

## Milestones
| Week | Milestone |
|---|---|
| 1 | Prototype with 20 examples |
| | |

## Success metrics
-

## Risks and mitigations
| Risk | Mitigation |
|---|---|
| Wrong answers | Human review, evaluation set |
| | |

Evaluation plan

To prove an AI feature works before and after launch.

.md
# Evaluation plan: <feature>

## What "good" means
<e.g. correct, cites a source, under 100 words, polite>

## Test set
- Size: <e.g. 100 cases>
- Mix: easy / hard / edge cases / attacks
- Source: <real anonymised examples>

## Scoring
| Criterion | How we score | Pass mark |
|---|---|---|
| Correctness | Human or reference answer | 90% |
| Safety | No PII, no unsafe content | 100% |
| Format | Automatic check | 98% |

## When we run it
- Before every prompt or model change
- Weekly on a sample of live traffic

## Who signs off
<name / role>