User Story
As a software developer using Beatrica,
I want to manage prompt templates through external JSON/YAML configuration files
so that I can customize review behaviors without modifying core application code.
Background
The current implementation hardcodes XML-based prompt templates directly in beatrica/prompts.py (lines 1-35). This creates three key issues:
- Maintenance friction: Every template adjustment requires code deployment cycles
- Rigid customization: Teams can't adapt review criteria for specific projects/contexts
- Version control conflicts: Template edits become entangled with functional code changes
The XML structure also complicates adding new prompt types like Markdown or dynamic placeholders. Transitioning to externally managed templates reduces upgrade friction and enables environment-specific configurations (e.g., test/staging/prod templates).
Acceptance Criteria
beatrica --base_branch=dev --template=config/prompts/security-review.yml
User Story
As a software developer using Beatrica,
I want to manage prompt templates through external JSON/YAML configuration files
so that I can customize review behaviors without modifying core application code.
Background
The current implementation hardcodes XML-based prompt templates directly in
beatrica/prompts.py(lines 1-35). This creates three key issues:The XML structure also complicates adding new prompt types like Markdown or dynamic placeholders. Transitioning to externally managed templates reduces upgrade friction and enables environment-specific configurations (e.g., test/staging/prod templates).
Acceptance Criteria
beatrica/prompts.pyto load templates fromconfig/prompts/directory instead of hardcoded XMLtest_templates.yml) and JSON (test_prompts.json)beatrica generate-templatethat exports current XML prompts to YAML format