Frontend Repository CLI Generator
Paste the following prompt into your AI chat to install this skill:
Install @user_c36d82a7/fe-api2cli into your AI assistant using https://skillhub.cn/install/skillhub.md.
About this skill
Problem
In frontend repositories, API calls, request types, enum constants, and auth settings are often spread across directories and custom HTTP wrappers. Manually building a CLI can miss optional fields, nested types, status-code meanings, or environment-specific base URLs.
How It Works
- Builds a repository profile first: detects monorepo structure and locates API, type, enum, and HTTP wrapper files.
- Samples before scanning: reads a few API files to infer
baseURL, path prefixes, and calling patterns, then scans candidate endpoints. - Parses types and enums: extracts fields, optional markers, enum values, and comments from TypeScript
interface,type, and constant files. - Detects auth strategy: supports
Bearer Token,Cookie,API Key, and no-auth flows, with matchingauthcommands or configuration. - Confirms before generation: outputs a technical plan first, then generates a Python
Clickor Node.jsoclifproject for local installation and debugging.
Boundaries
This is best suited for frontend repos with clear API layers, type definitions, and business enums. Dynamic URL construction, runtime configs, or unconventional auth may require manual review. Cookie capture also depends on a local browser debugging setup.
Use Cases
- Take over a Vue/React repo and wrap common query endpoints into a local CLI.
- Maintain a monorepo frontend project and generate list/get subcommands from team CLI naming rules.
- Debug an internal system where Cookies and parameters are copied often, and build a CLI with Bearer Token or Cookie auth.
- Read API type files and enum constants to generate a Python or Node.js CLI with confirmable parameters.
Best For
- Frontend engineers taking over an unfamiliar repo and needing quick local commands for common endpoints
- Engineers maintaining monorepos who want CLI commands that match team naming conventions
- Frontend or test engineers debugging internal systems and repeatedly handling Bearer Token or Cookie auth
- Engineers who want to turn TypeScript API types and enum constants into executable tools
Related Skills
Automatically indexes Gradle-cached AAR/JAR dependency classes and returns library coordinates, versions, and public APIs by fully qualified name, using only the Python standard library.
Codifies AMT and YourMT3 training conventions, script patterns, hyperparameters, precision, checkpoints, and NaN safeguards.
Retrieve relevant chunks from a customer-managed PKM dataset by dataset_id and return concise, source-annotated answers.
Convert PRDs, user stories, or functional specs into prioritized test-point checklists covering functional, business-rule, boundary, exception, and non-functional dimensions.