<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Templates on Dustin Lee</title>
    <link>/templates/</link>
    <description>Recent content in Templates on Dustin Lee</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>Dustin Lee</copyright>
    <lastBuildDate>Thu, 19 Feb 2026 09:14:40 +1000</lastBuildDate>
    <atom:link href="/templates/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>AI Specification Template</title>
      <link>/templates/ai-specification/</link>
      <pubDate>Thu, 19 Feb 2026 09:14:40 +1000</pubDate>
      <guid>/templates/ai-specification/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;&#xA;&lt;p&gt;A structured template for specifying AI-assisted features, agent behaviours, or LLM-integrated components in a software project. Use this to document what the AI should do, how it should behave, and where the boundaries are.&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;&lt;div class=&#34;sect1&#34;&gt;&#xA;&lt;h2 id=&#34;_the_template&#34;&gt;The Template&lt;/h2&gt;&#xA;&lt;div class=&#34;sectionbody&#34;&gt;&#xA;&lt;div class=&#34;listingblock&#34;&gt;&#xA;&lt;div class=&#34;content&#34;&gt;&#xA;&lt;pre class=&#34;highlight&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;# AI Specification: [Feature/Component Name]&#xA;&#xA;## Overview&#xA;&#xA;- **Purpose**: [One sentence — what does this AI component do?]&#xA;- **Model**: [e.g. Claude Sonnet 4.6, GPT-4o, local Llama 3]&#xA;- **Integration**: [e.g. API call, Claude Code agent, embedded SDK]&#xA;- **Owner**: [Team or person responsible]&#xA;&#xA;## Behaviour&#xA;&#xA;### Core Function&#xA;&#xA;[Describe what the AI does in concrete terms. Focus on inputs, outputs,&#xA;and the transformation between them.]&#xA;&#xA;- **Input**: [What the AI receives — e.g. user query, code diff, document]&#xA;- **Processing**: [What the AI does — e.g. summarise, classify, generate]&#xA;- **Output**: [What the AI produces — e.g. JSON response, text, code patch]&#xA;&#xA;### Persona / System Prompt&#xA;&#xA;[Define the AI&amp;#39;s role, tone, and constraints at the system level.]&#xA;&#xA;```&#xA;You are a [role] that [primary function].&#xA;&#xA;Rules:&#xA;- [Constraint 1]&#xA;- [Constraint 2]&#xA;- [Tone/style guidance]&#xA;```&#xA;&#xA;### Examples&#xA;&#xA;#### Example 1: [Scenario Name]&#xA;&#xA;**Input:**&#xA;[Sample input]&#xA;&#xA;**Expected Output:**&#xA;[Sample output]&#xA;&#xA;#### Example 2: [Edge Case]&#xA;&#xA;**Input:**&#xA;[Edge case input]&#xA;&#xA;**Expected Output:**&#xA;[How the AI should handle it]&#xA;&#xA;## Boundaries&#xA;&#xA;### Must Do&#xA;&#xA;- [Required behaviour — e.g. &amp;#34;Always cite sources&amp;#34;]&#xA;- [Required behaviour — e.g. &amp;#34;Return valid JSON&amp;#34;]&#xA;&#xA;### Must Not Do&#xA;&#xA;- [Prohibited behaviour — e.g. &amp;#34;Never fabricate data&amp;#34;]&#xA;- [Prohibited behaviour — e.g. &amp;#34;Never expose internal system details&amp;#34;]&#xA;&#xA;### Fallback Behaviour&#xA;&#xA;[What happens when the AI cannot fulfil a request or encounters&#xA;an error. Define graceful degradation.]&#xA;&#xA;- **Uncertain input**: [e.g. &amp;#34;Ask for clarification&amp;#34;]&#xA;- **Out of scope request**: [e.g. &amp;#34;Respond with a polite refusal&amp;#34;]&#xA;- **Model failure/timeout**: [e.g. &amp;#34;Return cached response or error message&amp;#34;]&#xA;&#xA;## Data&#xA;&#xA;### Input Data&#xA;&#xA;| Field | Type | Required | Description |&#xA;|-------|------|----------|-------------|&#xA;| [field] | [string/object/array] | [Yes/No] | [What it contains] |&#xA;&#xA;### Output Schema&#xA;&#xA;```json&#xA;{&#xA;  &amp;#34;result&amp;#34;: &amp;#34;[description]&amp;#34;,&#xA;  &amp;#34;confidence&amp;#34;: &amp;#34;[0.0-1.0]&amp;#34;,&#xA;  &amp;#34;metadata&amp;#34;: {&#xA;    &amp;#34;model&amp;#34;: &amp;#34;[model used]&amp;#34;,&#xA;    &amp;#34;tokens_used&amp;#34;: &amp;#34;[count]&amp;#34;&#xA;  }&#xA;}&#xA;```&#xA;&#xA;### Context / RAG Sources&#xA;&#xA;- [Document collection, database, or knowledge base the AI draws from]&#xA;- [How context is retrieved — e.g. vector search, keyword match]&#xA;- [Maximum context window budget allocation]&#xA;&#xA;## Quality &amp;amp; Evaluation&#xA;&#xA;### Success Criteria&#xA;&#xA;| Metric | Target | Measurement |&#xA;|--------|--------|-------------|&#xA;| Accuracy | [e.g. &amp;gt;95%] | [How measured — e.g. human review, test suite] |&#xA;| Latency | [e.g. &amp;lt;2s p95] | [Monitoring tool or method] |&#xA;| Cost | [e.g. &amp;lt;$0.01/request] | [Token tracking method] |&#xA;&#xA;### Test Cases&#xA;&#xA;1. [Test description] → Expected: [outcome]&#xA;2. [Test description] → Expected: [outcome]&#xA;3. [Edge case test] → Expected: [outcome]&#xA;&#xA;### Human Review&#xA;&#xA;- **Review frequency**: [e.g. Weekly sample of 50 outputs]&#xA;- **Escalation path**: [When and how human review is triggered]&#xA;- **Feedback loop**: [How review results improve the system]&#xA;&#xA;## Safety &amp;amp; Ethics&#xA;&#xA;### Content Filtering&#xA;&#xA;- [Pre-processing filters on input — e.g. PII detection]&#xA;- [Post-processing filters on output — e.g. toxicity check]&#xA;&#xA;### Bias Considerations&#xA;&#xA;- [Known bias risks for this use case]&#xA;- [Mitigation strategies]&#xA;&#xA;### Audit Trail&#xA;&#xA;- [What is logged — e.g. inputs, outputs, model version, timestamps]&#xA;- [Retention policy]&#xA;- [Access controls on logs]&#xA;&#xA;## Implementation&#xA;&#xA;### Architecture&#xA;&#xA;```&#xA;[User/System] → [Pre-processing] → [Model API] → [Post-processing] → [Output]&#xA;```&#xA;&#xA;### Configuration&#xA;&#xA;| Parameter | Value | Notes |&#xA;|-----------|-------|-------|&#xA;| Model | [e.g. claude-sonnet-4-6] | [Why this model] |&#xA;| Temperature | [e.g. 0.3] | [Lower = more deterministic] |&#xA;| Max tokens | [e.g. 1024] | [Output length limit] |&#xA;| Top-p | [e.g. 0.9] | [Nucleus sampling threshold] |&#xA;&#xA;### Dependencies&#xA;&#xA;- [API keys / credentials needed]&#xA;- [SDKs or libraries — e.g. anthropic Python SDK]&#xA;- [Infrastructure — e.g. Redis for caching, vector DB for RAG]&#xA;&#xA;### Cost Estimate&#xA;&#xA;| Scenario | Requests/day | Avg tokens | Daily cost |&#xA;|----------|-------------|------------|------------|&#xA;| Low usage | [count] | [tokens] | [$amount] |&#xA;| Normal | [count] | [tokens] | [$amount] |&#xA;| Peak | [count] | [tokens] | [$amount] |&#xA;&#xA;## Rollout&#xA;&#xA;- [ ] Prototype with hardcoded examples&#xA;- [ ] Integration with real data source&#xA;- [ ] Internal testing (team review)&#xA;- [ ] Staged rollout (% of traffic)&#xA;- [ ] Full deployment&#xA;- [ ] Monitoring and alerting configured&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Claude Code Prompt Template</title>
      <link>/templates/claude-code-prompt/</link>
      <pubDate>Thu, 19 Feb 2026 09:14:40 +1000</pubDate>
      <guid>/templates/claude-code-prompt/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;&#xA;&lt;p&gt;A reusable template for writing structured prompts that get consistent, high-quality results from Claude Code. Copy the skeleton below and fill in each section for your task.&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;&lt;div class=&#34;sect1&#34;&gt;&#xA;&lt;h2 id=&#34;_the_template&#34;&gt;The Template&lt;/h2&gt;&#xA;&lt;div class=&#34;sectionbody&#34;&gt;&#xA;&lt;div class=&#34;listingblock&#34;&gt;&#xA;&lt;div class=&#34;content&#34;&gt;&#xA;&lt;pre class=&#34;highlight&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;# [Task Title]&#xA;&#xA;## Context&#xA;&#xA;[Describe the project, codebase, or situation. Include relevant tech stack,&#xA;frameworks, and conventions. Reference specific files or directories.]&#xA;&#xA;- Language/framework: [e.g. Python 3.12 / FastAPI]&#xA;- Key files: [e.g. `src/api/routes.py`, `tests/test_routes.py`]&#xA;- Conventions: [e.g. PEP 8, existing patterns to follow]&#xA;&#xA;## Objective&#xA;&#xA;[One or two sentences describing exactly what you want done.&#xA;Be specific about the desired outcome, not the steps.]&#xA;&#xA;## Requirements&#xA;&#xA;1. [Specific requirement with acceptance criteria]&#xA;2. [Another requirement]&#xA;3. [Constraint or boundary — e.g. &amp;#34;Do not modify the public API&amp;#34;]&#xA;&#xA;## Current Behaviour&#xA;&#xA;[What happens now. Include error messages, logs, or reproduction steps&#xA;if this is a bug fix.]&#xA;&#xA;## Expected Behaviour&#xA;&#xA;[What should happen after the change. Be precise.]&#xA;&#xA;## Files Summary&#xA;&#xA;| File | Action |&#xA;|------|--------|&#xA;| `path/to/file.py` | Modify — [brief description] |&#xA;| `path/to/new_file.py` | Create — [brief description] |&#xA;| `path/to/tests.py` | Update — [add tests for new behaviour] |&#xA;&#xA;## Verification&#xA;&#xA;1. [How to verify the change works — e.g. run a command, check output]&#xA;2. [Additional verification step]&#xA;3. [Edge case to test]&#xA;&#xA;## Out of Scope&#xA;&#xA;- [Things you explicitly do NOT want changed]&#xA;- [Adjacent improvements to skip for now]&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
