Current Task

Create

SPRINT2_PROMPT_LIBRARY.md

This is a documentation task.

This is NOT an implementation task.

Do NOT modify any PHP source code.

Do NOT modify governance.

Do NOT modify architecture.

Do NOT modify Sprint planning.

Do NOT modify the Sprint 2 Execution Guide.

Do NOT create implementation reports.

Do NOT begin Sprint 2 implementation.

---

Mandatory Reading

Review before writing.

Governance

- AI.md v1.1
- AI_DEVELOPMENT_SYSTEM.md
- WORKFLOW.md
- PROJECT.md

Architecture

- DBP_v1.1
- ADR v1.0
- MASTER_IMPLEMENTATION_BACKLOG_v1.1

Sprint Documents

- SPRINT2_PLANNING.md
- SPRINT2_EXECUTION_GUIDE.md

---

Purpose

Create the official Prompt Library used throughout Sprint 2.

This document standardizes every implementation prompt.

It ensures every AI Implementation Agent receives identical instructions.

The Prompt Library must reduce prompt duplication while maintaining strict governance compliance.

---

Prompt Templates

Create reusable templates for:

---

1.

Pre-Implementation Prompt

Purpose:

Read all required documentation.

Verify dependencies.

Verify parent tasks.

Verify repository state.

Verify working tree cleanliness.

No implementation.

---

2.

Implementation Prompt

Purpose:

Execute exactly one AUTH task.

Include mandatory sections:

- Current Task
- Mandatory Reading
- Dependency Review
- Project Memory Review
- Scope
- Rules
- Files Expected
- Files Modified
- Acceptance Criteria
- Security Checklist
- Documentation Conflict Rules
- Output Requirements

This becomes the standard prompt for:

AUTH-001

AUTH-002

AUTH-003

AUTH-004

---

3.

Implementation Review Prompt

Purpose:

Review completed implementation.

Verify:

- Scope
- Files
- Acceptance Criteria
- Security Checklist
- PHP Syntax
- Documentation Deviations
- Dependency Checklist

Produce the standard Implementation Report.

---

4.

Architecture Review Prompt

Purpose:

Review Sprint 2 after implementation.

Determine objectively whether:

- Architecture remains valid.
- Governance remains valid.
- DRP v3.0 is required.

Do not assume a Design Revision Pack is necessary.

---

5.

Planning Review Prompt

Reusable editorial review template for future sprint planning documents.

---

6.

Execution Guide Review Prompt

Reusable editorial review template for future execution guides.

---

7.

Document Synchronization Prompt

Reusable prompt for synchronizing approved Design Revision Packs into:

- AI.md
- DBP
- MIB
- WORKFLOW
- PROJECT

Only after explicit approval.

---

Prompt Rules

Every implementation prompt must include:

- One task only.
- Dependency-first execution.
- No automatic continuation.
- Files Expected boundary.
- Conflict protocol.
- Human approval required.
- Git operations prohibited unless explicitly authorized.
- Final implementation report required.

---

Output

Produce

SPRINT2_PROMPT_LIBRARY.md

Then provide:

1.

Prompt Templates Created

2.

Standard Workflow Summary

3.

Reusable Templates Summary

4.

Governance Validation

5.

Recommended Improvements

Do NOT create any implementation prompts beyond the reusable templates.

Wait for approval.