$npx -y skills add huangjia2019/claude-code-engineering --skill route-scanningScan Express.js source files to discover all API route definitions.
| 1 | # Route Scanning Skill |
| 2 | |
| 3 | Discover all API route definitions in Express.js source files. |
| 4 | |
| 5 | ## Process |
| 6 | |
| 7 | ### Step 1: Run Route Scanner |
| 8 | |
| 9 | Execute the scanning script: |
| 10 | |
| 11 | ```bash |
| 12 | python3 scripts/scan-routes.py <source_directory> |
| 13 | ``` |
| 14 | |
| 15 | The script outputs a structured route list with method, path, file, and line number. |
| 16 | |
| 17 | ### Step 2: Enrich Route Data |
| 18 | |
| 19 | For each discovered route, also identify: |
| 20 | - Middleware applied (auth, validation, etc.) |
| 21 | - Whether it's a standard route or chained route (`router.route()`) |
| 22 | |
| 23 | ### Output Format |
| 24 | |
| 25 | Return a JSON-compatible route manifest: |
| 26 | |
| 27 | ```json |
| 28 | [ |
| 29 | { |
| 30 | "method": "GET", |
| 31 | "path": "/api/products", |
| 32 | "file": "src/routes/products.js", |
| 33 | "line": 8, |
| 34 | "middleware": ["requireAuth"], |
| 35 | "type": "standard" |
| 36 | } |
| 37 | ] |
| 38 | ``` |
| 39 | |
| 40 | This manifest will be consumed by the next pipeline stage (doc-writing). |