Route scanning

From huangjia2019/claude-code-engineering · View interactive version

Route scanning is an AI agent skill from the GitHub repository huangjia2019/claude-code-engineering. Scan Express.js source files to discover all API route definitions.

How to use this skill

Skill file

Route Scanning Skill

Discover all API route definitions in Express.js source files.

Process

Step 1: Run Route Scanner

Execute the scanning script:

python3 scripts/scan-routes.py <source_directory>

The script outputs a structured route list with method, path, file, and line number.

Step 2: Enrich Route Data

For each discovered route, also identify:

Output Format

Return a JSON-compatible route manifest:

[
  {
    "method": "GET",
    "path": "/api/products",
    "file": "src/routes/products.js",
    "line": 8,
    "middleware": ["requireAuth"],
    "type": "standard"
  }
]

This manifest will be consumed by the next pipeline stage (doc-writing).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.