In short.
api-generating is a Claude Code skill for Express.js developers who want API documentation drafts, but its scanner cannot establish a complete endpoint inventory. It detects certain literal route declarations and reports source locations, while the assistant must inspect handlers for schemas, authentication and validation. Despite the source's claims, the scanner does not resolve router mounts or exports. Nothing was executed; generated-document accuracy, compatibility and operating costs are unknown.
Researched and written by an AI model and checked by a second AI model. How it works
The supplied material covers SKILL.md, scripts/detect-routes.py and templates/api-doc.md under 04-Skills/projects/06-agent-skill-combo/.claude/skills/api-generating at revision 89fea03bf9d577c608bce49c66d942996e801b19. The requested scope includes licence notices beside and above that folder, but none are supplied, so rights remain unknown. The referenced PATTERNS.md is also absent. The surrounding application, other repository resources, current branch contents and generated documentation are not assessed. All behavior findings are based on source inspection; nothing was executed.
The overview
Identity
api-generating is an assistant-loaded instruction package in huangjia2019/claude-code-engineering, under 04-Skills/projects/06-agent-skill-combo/.claude/skills/api-generating. Its stated purpose is generating, updating or reviewing documentation for Express.js routes. It includes SKILL.md, scripts/detect-routes.py and templates/api-doc.md.
The resource's repository location is [https://github.com/huangjia2019/claude-code-engineering/tree/main/04-Skills/projects/06-agent-skill-combo/.claude/skills/api-generating]. The supplied files are pinned to revision 89fea03bf9d577c608bce49c66d942996e801b19.
Assessment
The package provides a concrete starting point for documenting services with straightforward Express route declarations. Source locations help developers find handlers, and the template gives the assistant a consistent structure for endpoint descriptions, parameters and examples.
Its strongest discovery claims exceed the implementation. The script defines a mount-prefix helper but never calls it, and it contains no import or export resolution. Treat its output as a list of candidate declarations, with independent confirmation needed before claiming complete documentation.
Users
The intended users are developers maintaining Express.js APIs who want an assistant to turn route and handler source into readable documentation. The scanner visits .js, .ts and .mjs files. Beginners get a documentation structure, but still need enough code knowledge to verify middleware and handler behavior.
Experienced developers should assess how closely their routing conventions match the scanner's expressions. Services with nested mounts, computed paths or router variables outside its recognized patterns require additional discovery work.
Capabilities
The instructions ask the assistant to discover routes, read each handler, identify methods, paths, parameters, request and response schemas, and inspect authentication and validation middleware. They call for one Markdown file per route group, request and response examples, and an authentication indicator.
The scanner itself extracts literal paths from recognized app or router calls. Direct calls support GET, POST, PUT, PATCH, DELETE and ALL; chained route calls support GET, POST, PUT, PATCH and DELETE. It sorts results by path and method and prints relative filenames and line numbers.
The template includes parameter fields, optional request-body examples, response statuses and examples, plus a fixed error-code table. These are documentation slots, not independently established facts about an endpoint.
Using it
Requirements
Use requires an assistant environment that can load the skill instructions, read project files, invoke Python and write documentation. The prescribed command uses Python 3. The scanner imports only os, re and sys; no third-party Python dependency is shown.
The package assumes access to an Express project's routes, handlers and relevant middleware. Minimum Python, Express and Claude Code versions are not specified. The declared shell allowance uses Bash(python *), while the prescribed command uses python3; whether the host permits that exact command is unknown.
Mechanism
The Python program walks the supplied directory recursively and reads matching source files as text. Regular expressions locate route declarations rather than parsing JavaScript or TypeScript syntax. For route() declarations, it searches the current line and up to fifteen following lines for supported method calls.
The scanner prints a route list; it does not generate the documentation files. The assistant is responsible for reading handlers and filling the template. No template-rendering program, schema extractor or runtime endpoint inspection is supplied.
Setup
Resolve the script path before use. SKILL.md prescribes python3 skills/scripts/detect-routes.py src/, which does not match the supplied directory layout. From the parent project's root, a command matching that layout would be python3 .claude/skills/api-generating/scripts/detect-routes.py src/. The working directory and source directory still need confirmation.
The template is supplied at templates/api-doc.md relative to the skill folder. PATTERNS.md is also referenced, but is absent from the supplied files. Installation behavior and automatic skill discovery were not assessed.
Example
Consider the hypothetical declaration router.get('/users/:id', requireAuth, handler). The direct-route expression is designed to collect GET, /users/:id and the source location. It does not determine the ID's type, inspect requireAuth or extract the handler's response fields.
If a separate app.use('/api', usersRouter) mounts that router, the scanner does not combine the prefix into /api/users/:id. A developer would need to establish the public path and inspect the middleware and handler before completing the template. This is an illustration from the code, not an executed example.
Assessment & evidence
Limitations
Mounted prefixes and re-exported routers are not resolved, despite claims in the instructions and script description. Literal parameter text such as :id can be captured, but computed paths are not evaluated. HEAD and OPTIONS are absent from the method expressions, and multiline declarations can be missed by the line-based matching.
The expressions target app and router text rather than tracking actual Express objects. They can match commented-out code. The chained-method search does not stop at the end of a route expression, so nearby unrelated calls can be attributed to the wrong path. The directory walk has no explicit exclusions for dependencies, fixtures or generated files.
Files with decoding or permission errors are silently skipped by the file scanner. Finding no routes produces a message and a successful exit status, so completion alone cannot establish coverage. The template's fixed 400, 401, 404 and 500 entries also need confirmation against actual behavior.
Design tradeoffs
The design combines repeatable text extraction with flexible assistant interpretation. File and line references make declarations easier to inspect, while handler reading can supply details that a route list cannot contain.
That split leaves two separate accuracy questions: whether discovery found the right public endpoints, and whether the assistant described their behavior correctly. The checklist addresses documentation completeness relative to the scanner's output, but cannot catch routes the scanner never reported. No accuracy or performance measurements are supplied.
Alternatives
The instructions explicitly compare the detector with Grep-based searching, but provide no comparative results, and the implementation does not substantiate its mounted-router or re-export claims. Manual source reading with the supplied template is another possible approach inferred from the package's components. Its effort and completeness are unknown, and the supplied files identify no competing skill or generator.
Evidence
The evidence consists of the skill instructions, complete Python scanner and Markdown template. No generated documentation, runtime results, benchmarks or compatibility results are supplied. Nothing was executed; behavior findings come from source inspection.
The original instruction file is [https://raw.githubusercontent.com/huangjia2019/claude-code-engineering/89fea03bf9d577c608bce49c66d942996e801b19/04-Skills/projects/06-agent-skill-combo/.claude/skills/api-generating/SKILL.md].
The original scanner is [https://raw.githubusercontent.com/huangjia2019/claude-code-engineering/89fea03bf9d577c608bce49c66d942996e801b19/04-Skills/projects/06-agent-skill-combo/.claude/skills/api-generating/scripts/detect-routes.py].
The original template is [https://raw.githubusercontent.com/huangjia2019/claude-code-engineering/89fea03bf9d577c608bce49c66d942996e801b19/04-Skills/projects/06-agent-skill-combo/.claude/skills/api-generating/templates/api-doc.md].
Access & freshness
Costs
No acquisition price, subscription requirement, model choice, token usage or execution cost is stated. The scanner's standard-library imports do not establish the total cost of using the skill with an assistant. Provider charges and actual operating costs are unknown.
Rights
The three supplied files contain no licence notice, and no notice from the surrounding folders or repository is included. Permission to copy, modify, redistribute or use the package commercially is unknown. Consult the applicable repository licence and any more specific notices before reuse.
Freshness
The supplied snapshot identifies revision 89fea03bf9d577c608bce49c66d942996e801b19 and a capture time of 2026-11-16T09:28:34.768Z. That timestamp is not a release date or proof of recent maintenance. Later changes, current branch contents and compatibility with specific host or Express versions are unknown.
Next steps
Before adoption, resolve the script path and Python command allowance, check applicable licence notices, and obtain the referenced PATTERNS.md if it remains part of the instructions.
Compare discovered methods and paths with actual registrations, including mounted routers and unsupported methods. Inspect handlers and middleware to confirm schemas, authentication, validation, response statuses and JSON examples. Treat generated pages as drafts until those details are checked; reliable automatic discovery would require improvements to the scanner.
