SkillsReviewed · huangjia2019

api-generating API Documentation Skill

api-generating is a skill for developers using an AI coding assistant to draft API documentation, but its route scanner has limited coverage and a Spring mapping bug. It combines documentation guidance, Markdown and OpenAPI 3.0 templates, a Python route detector and a validation wrapper.

Researched 16 Nov 2026

In short.

api-generating is a Claude Code skill for developers drafting API documentation, but its scanner and validator leave important accuracy gaps. Its instructions cover endpoint discovery, parameter and schema interpretation, endpoint pages and an API overview. Static inspection identifies a broken Spring @RequestMapping extraction branch, incomplete route detection and a fallback validator that cannot establish OpenAPI conformance. Metadata also advertises endpoint-code generation, which the supplied workflow does not demonstrate. No code or commands were executed; runtime reliability and generated-documentation quality are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

The supplied evidence covers nine files in 04-Skills/projects/05-api-generator/.claude/skills/api-generating at commit 89fea03bf9d577c608bce49c66d942996e801b19: SKILL.md, PATTERNS.md, STANDARDS.md, EXAMPLES.md, scripts/detect_routes.py, scripts/validate_openapi.sh, templates/endpoint.md, templates/index.md and templates/openapi.yaml. Adjacent and parent licence notices are absent, so licensing coverage is incomplete and reuse rights remain unknown. Other repository projects are outside this report. No code or commands were executed; installation, assistant integration, runtime behavior, generated-output accuracy and live API agreement were not assessed.

The overview

What it is

api-generating is an assistant instruction package in huangjia2019/claude-code-engineering, under 04-Skills/projects/05-api-generator/.claude/skills/api-generating. Its main document calls it an API Documentation Generator and directs an assistant to inspect source code and produce documentation.

The original resource is the skill folder at [https://github.com/huangjia2019/claude-code-engineering/tree/main/04-Skills/projects/05-api-generator/.claude/skills/api-generating]. The supplied files represent commit 89fea03bf9d577c608bce49c66d942996e801b19. This report concerns that folder, rather than the repository's other projects.

Practical assessment

The clearest use is producing a reviewable first draft for an API whose routes and data models are accessible in source. The templates provide a concrete structure for parameters, authentication, responses and examples. They do not establish that the assistant can discover every endpoint or infer every contract correctly.

The scripts need particular scrutiny. The route detector has a definite capture-group error in its Spring @RequestMapping branch, and the validator can fall back to basic YAML checks. Neither a route inventory nor a successful basic validation message would establish that the documentation accurately describes the application.

Who it suits

Backend developers and technical writers working with developers could use the instructions to organize API reference material. Beginners receive examples showing how route definitions become documentation; experienced developers receive framework patterns, templates and scripts they can inspect or adapt.

The guidance discusses Express.js, FastAPI, Spring Boot and Go Gin/Echo. The detector exposes express, fastapi, spring and gin options, with no separate Echo option. People expecting comprehensive framework integration or automatic implementation of new endpoints should examine the narrower capabilities actually supplied.

What it provides

The documented workflow asks an assistant to identify endpoints, extract HTTP methods, paths, parameters, request and response schemas, and authentication requirements. Output is Markdown by default, with OpenAPI 3.0 available on request. OpenAPI is a machine-readable description of an API's interface.

The folder supplies endpoint and overview templates, an OpenAPI template, writing standards, framework recognition notes and worked examples. The Python helper returns route method, path, file, line and framework; it does not extract schemas, authentication or complete endpoint behavior.

The skill's metadata advertises generating endpoint code and route handlers from specifications. The body and supporting files focus on documentation, and no dedicated endpoint-code generator is supplied.

Using it

What you need

The assistant workflow needs access to the application source and permission to write documentation. SKILL.md declares Read, Grep, Glob and Write tools, plus restricted Bash patterns for Python and scripts. The supplied files do not establish a minimum Claude Code version, a required model or compatibility with other assistant clients.

The route detector uses Python 3 and standard-library modules. The validation script needs Bash and uses the first available tool in this order: spectral, openapi-generator-cli, swagger-cli, then python3. The Python fallback additionally imports PyYAML; having Python installed alone is insufficient. Dependency versions and installation procedures are not specified.

How it works

The assistant supplies the interpretation: the instructions tell it what to look for and how to present the result. The helper script supplies a narrower inventory by recursively reading selected file extensions and applying regular expressions. It skips node_modules, __pycache__, .git and vendor directories.

The detector recognizes literal route strings for GET, POST, PUT, DELETE and PATCH. It calculates source line numbers from text positions and emits JSON. It does not parse the programming language or resolve application structure.

The validator delegates to an installed validation tool when possible. Its Python fallback parses YAML, checks for openapi, info and paths, and prints basic metadata. A non-3.x version produces a warning rather than an explicit rejection.

Getting started

The supplied layout places SKILL.md and its companion files together under a project's .claude/skills/api-generating directory. Keeping that structure preserves references to PATTERNS.md, STANDARDS.md, EXAMPLES.md, templates and scripts. Installation and automatic loading behavior are not documented in the supplied files.

The documented detector invocation is python scripts/detect_routes.py <source_directory>, with optional --framework and --output arguments available in the implementation. The documented validation invocation is ./scripts/validate_openapi.sh <spec_file>. These paths assume an appropriate working directory; script executable permissions are not established by the supplied text.

Replace template placeholders with application facts before using the output. In particular, the OpenAPI template declares global bearer authentication with JWT formatting, which must be checked against the actual API.

A concrete example

The Express example defines GET /users/:id, reads the id parameter, calls User.findById and returns a 404 response containing User not found when no user exists. Its accompanying documentation describes the path parameter and the 200 and 404 responses.

The sample success response includes id, name, email and createdAt, but the shown handler does not define that object's schema. Those fields are illustrative; they do not demonstrate successful schema inference.

The FastAPI example provides stronger schema evidence: UserCreate declares name, email and password strings, while UserResponse declares id, name and email. The route specifies a 201 response. Its implementation is abbreviated, so the example does not establish a working user-creation endpoint.

Assessment & evidence

Limits and implementation concerns

Regular-expression matching can include route-like text in comments or strings and miss routes built through variables, aliases or unsupported APIs. The detector does not combine mounted router prefixes, class-level mappings or Go route groups into full paths. HEAD and OPTIONS are absent from its method patterns.

Static inspection shows that the Spring @RequestMapping pattern has one capture group, but the processing loop reads two. A matching declaration would therefore raise an exception, omit that mapping and print a misleading file-read warning. In default stdout mode, that warning would also contaminate the JSON output.

The Python validation fallback does not establish OpenAPI schema correctness, reference resolution or agreement with the implementation. It also embeds the supplied filename directly in Python source: apostrophes can break the command, and a crafted existing filename can alter the interpreted code. This concern follows from reading the script; no exploit was executed.

The OpenAPI template contains placeholders and a global JWT bearer-security declaration. The documentation standards also list common error codes, but those lists are prompts to investigate actual behavior, not evidence that every API returns those errors.

Why it may fit your work

The package's useful contribution is its combination of a documentation checklist, examples and reusable output structures. Source file and line metadata can help developers trace detected routes during review. These are practical affordances visible in the files; no measured time saving or accuracy improvement is established.

It is most plausible as an assistant-guided drafting aid for APIs with straightforward literal routes and accessible models. Teams needing exhaustive endpoint inventories, automatic endpoint implementation or proof that documentation matches runtime behavior would need capabilities not established here.

Other approaches

For an existing OpenAPI document, the wrapper's own alternatives are direct use of spectral, openapi-generator-cli or swagger-cli. These address validation; the supplied evidence does not establish them as substitutes for the skill's documentation-writing workflow.

For a small API, developers could manually fill the endpoint and index templates while inspecting source definitions, without relying on automated route discovery. No comparative evidence establishes which approach is faster, cheaper or more accurate.

What the evidence establishes

The supplied material contains the main skill instructions, framework patterns, documentation standards, examples, two scripts and three templates. These support analysis of the intended workflow and visible implementation. The examples are illustrations, with no accompanying execution results.

The version-specific main document is available at [https://raw.githubusercontent.com/huangjia2019/claude-code-engineering/89fea03bf9d577c608bce49c66d942996e801b19/04-Skills/projects/05-api-generator/.claude/skills/api-generating/SKILL.md]. The supplied manifest associates the files with that commit and individual content hashes.

No code or commands were executed. Assistant loading, dependency installation, route-discovery accuracy, generated output quality and live API behavior remain unassessed.

Access & freshness

Costs

The supplied files give no resource price, required subscription, model choice, token usage or measured processing time. Total cost is unknown. Any charges associated with an assistant service or chosen validation tools would need to be established separately.

The detector uses Python's standard library, while fallback YAML validation imports PyYAML. These implementation details do not establish the cost of the complete assistant workflow.

Licensing and reuse

No licence text or explicit reuse grant appears in the nine supplied files. Adjacent and parent-directory licence notices were not supplied, so permission to modify, redistribute or use this folder commercially is unknown from this evidence.

Public availability on GitHub does not itself establish those permissions. Applicable repository and directory notices are needed before deciding how the files may be reused.

Version and currency

The supplied snapshot identifies commit 89fea03bf9d577c608bce49c66d942996e801b19 and capture time 2026-11-16T12:16:21.368Z. That fixes the source version discussed here; the capture date does not establish when the code last changed.

No resource release number, minimum supported dependency versions or compatibility results are supplied. The examples' API version 1.0.0 and 2024 timestamp are sample content, not release metadata. Whether newer revisions change the identified behavior is unknown.

Before using it

Establish the applicable licence and client compatibility, then choose a small API with a known endpoint list for an initial trial. Compare discovered methods and full paths with the application's route definitions, including prefixes and authentication middleware.

Correct the Spring capture-group error before relying on @RequestMapping detection. Correct filename interpolation before using the Python validation fallback with untrusted filenames. Distinguish full specification validation from the fallback's basic checks.

Review every generated schema, status code, example and security declaration against application evidence. Replace placeholders and the template's authentication assumptions. If endpoint implementation is your main objective, first establish a workflow beyond the documentation-focused material supplied here.

Evidence for this report