AI Agent Hub
Back to skills
Frontend Repo Business Skill Generator icon

Frontend Repo Business Skill Generator

Development Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_c36d82a7/code-skill.

About this skill

Problem

Frontend repository logic, API calls, and business rules are often scattered across routes, components, handler functions, and third-party component props. Manually turning that into an operation manual can easily produce an API dump instead of a business guide, while missing key preconditions, parameter sources, confirmation steps, and error handling. code-skill aims to extract executable business Skills from real repository workflows, so an AI can ask, check, and perform actions in a way that matches actual product behavior.

How It Works

  • CLI-first grounding: It expects an existing business CLI and reads the real command and parameter surface via --help; if no CLI exists, it first requires a usable CLI before proceeding.
  • Repository scanning: It starts with route files to identify pages, modules, and hierarchy, then searches event handlers such as handle* and on* to map operation entry points.
  • Selective reading: It focuses on parameter sources, guard conditions, call order, user confirmation points, and error handling, while skipping JSX, CSS, and purely visual state.
  • Capability alignment: Only steps that can be mapped to real CLI commands are included; unmapped actions are marked as unsupported.
  • Skill output: It generates Markdown Skills by type—query, operation, analysis, or workflow—with trigger conditions, parameter collection, execution steps, and error handling.

Boundaries

It is best for frontend repositories that already expose business actions through a CLI. It does not replace API documentation or invent capabilities the CLI cannot support; field semantics must be validated against code and page data before being written into a Skill.

Use Cases

  • Turn order-page workflows for creating, reviewing, and shipping into a CLI-backed business Skill
  • Map product-center routes and event handlers to identify actions supported by an existing CLI
  • Build a user-center query and operation manual with parameter sources, confirmations, and error handling
  • Break a cross-API product listing flow into a workflow Skill using only supported CLI commands

Best For

  • Frontend engineers maintaining a business CLI who want to extract executable actions from handlers and routes
  • Product engineers building AI workflows who need business operations as triggerable, confirmable Skill documents
  • Delivery engineers owning operations systems who need operation manuals for order and product modules
  • Platform engineers building agent capabilities who want reusable business Skills grounded in existing CLI commands