$npx -y skills add totvs/engpro-advpl-tlpp-skills --skill context-mapGenerate a context map of all files relevant to a task before implementing changes. Use when a user says "map the codebase for this change", "what files are affected", "show me dependencies", or before starting implementation to identify files to modify, dependencies, test files,
| 1 | # Context Map |
| 2 | |
| 3 | ## When to Use |
| 4 | |
| 5 | Use this skill when: |
| 6 | |
| 7 | - Preparing to implement changes and need to understand the affected codebase |
| 8 | - Identifying all files, dependencies, and tests related to a task |
| 9 | - Finding reference patterns and similar implementations in the codebase |
| 10 | - Creating a pre-implementation analysis to reduce missed changes |
| 11 | |
| 12 | Before implementing any changes, analyze the codebase and create a context map. |
| 13 | |
| 14 | ## Task |
| 15 | |
| 16 | {{task_description}} |
| 17 | |
| 18 | ## Instructions |
| 19 | |
| 20 | 1. Search the codebase for files related to this task |
| 21 | 2. Identify direct dependencies (imports/exports) |
| 22 | 3. Find related tests |
| 23 | 4. Look for similar patterns in existing code |
| 24 | |
| 25 | ## Output Format |
| 26 | |
| 27 | ```markdown |
| 28 | ## Context Map |
| 29 | |
| 30 | ### Files to Modify |
| 31 | | File | Purpose | Changes Needed | |
| 32 | |------|---------|----------------| |
| 33 | | path/to/file | description | what changes | |
| 34 | |
| 35 | ### Dependencies (may need updates) |
| 36 | | File | Relationship | |
| 37 | |------|--------------| |
| 38 | | path/to/dep | imports X from modified file | |
| 39 | |
| 40 | ### Test Files |
| 41 | | Test | Coverage | |
| 42 | |------|----------| |
| 43 | | path/to/test | tests affected functionality | |
| 44 | |
| 45 | ### Reference Patterns |
| 46 | | File | Pattern | |
| 47 | |------|---------| |
| 48 | | path/to/similar | example to follow | |
| 49 | |
| 50 | ### Risk Assessment |
| 51 | - [ ] Breaking changes to public API |
| 52 | - [ ] Database migrations needed |
| 53 | - [ ] Configuration changes required |
| 54 | ``` |
| 55 | |
| 56 | Do not proceed with implementation until this map is reviewed. |