Prompt file imported from accesswatch/pdf-a11y-tool (
.github/prompts/implement-phase.prompt.md). Fill in{{input}}before use. Copyright stays with the author.
Implement Phase
Implement phase {{ input }} from the project roadmap.
Steps
- Read PROJECT-PLAN.md and locate the section for phase {{ input }}
- Identify all stub files listed for that phase (files with only
from __future__ import annotationsand a docstring) - Read the "Planned public API" in each stub's docstring to understand the interface contract
- Read any completed modules that the phase depends on (check the Phase Dependencies Map in PROJECT-PLAN.md)
- Implement each module following these rules:
from __future__ import annotationsat the top of every file- Core modules (
src/pdf_a11y/core/): no wx imports, use Command pattern for edits - UI modules (
src/pdf_a11y/ui/): wxPython panels with keyboard navigation and screen reader labels - Match the code style: 100-char lines, type hints, module docstring with "Public API:" section
- Create or update tests in
tests/test_<module>.pyfor each implemented module - Run
ruff check src testsandpytestto verify everything passes - Summarize what was implemented and what the next phase should tackle