Archived completed OpenSpec change after successful deployment. The template path fix has been applied to specs and is now in production. Change archived as: 2026-01-12-fix-coverletter-template-path Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
26 lines
1.3 KiB
Markdown
26 lines
1.3 KiB
Markdown
# cover-letter-pdf-conversion Delta
|
|
|
|
## MODIFIED Requirements
|
|
|
|
### Requirement: Template Management
|
|
|
|
The system SHALL provide and maintain the Swiss letter LaTeX template with explicit path resolution to ensure consistent template usage across all execution contexts.
|
|
|
|
#### Scenario: Template availability
|
|
- **WHEN** the `/convert-cover-letter` command is run
|
|
- **THEN** the system uses the template at `src/.claude/templates/swiss-letter.tex`
|
|
- **AND** the path is specified explicitly relative to the typical execution location
|
|
- **AND** passes it to Pandoc via the `--template` option with the full relative path
|
|
|
|
#### Scenario: Template path resolution
|
|
- **WHEN** converting a cover letter from an application folder location (`applications/pending/[job-folder]/`)
|
|
- **THEN** the template path `../../../src/.claude/templates/swiss-letter.tex` is used
|
|
- **AND** the path goes up three levels to the project root and then to the template directory
|
|
- **AND** the explicit path ensures consistent template discovery regardless of execution context
|
|
|
|
#### Scenario: Template customization
|
|
- **WHEN** users need to modify letter styling
|
|
- **THEN** they can edit the swiss-letter.tex template at `src/.claude/templates/swiss-letter.tex`
|
|
- **AND** changes apply to all subsequent conversions
|
|
- **AND** the template includes comments explaining customizable sections
|