**Phase:** {phase_number} - {phase_name} **Phase directory:** {phase_dir} **Padded phase:** {padded_phase} - {context_path} (USER DECISIONS from /gsd:discuss-phase) - {research_path} (Technical Research) **Output file:** {phase_dir}/{padded_phase}-PATTERNS.md Extract the list of files to be created/modified from CONTEXT.md and RESEARCH.md. For each file, classify by role and data flow, find the closest existing analog in the codebase, extract concrete code excerpts, and produce PATTERNS.md.