Frontend Development Skill: Enforcing Engineering Standards for ys-agent's frontend/

Preface

When working on frontend/ in the ys-agent repository, the common pain point isn’t “failing to write a feature,” but rather “writing the feature but placing it in the wrong directory, mismatching existing naming conventions, or reinventing the wheel with similar components.” When multiple Agents modify the same frontend section in turns, these problems pile up rapidly: routing, Pinia, API encapsulation, and Element Plus usage may each follow a different pattern, leading to increased review costs and merge conflicts.

The following introduces Frontend Development (@user_fbf2a1f5/ys-agent) on SkillHub. Its positioning is: to ensure the Agent follows a unified set of engineering standards before modifying frontend/, thereby reducing style drift and redundant development.

What is this

Frontend Development is a “Engineering Standard Gatekeeper” Skill for the frontend/ directory of the ys-agent project. It adopts the common community SKILL.md format, is maintained by the publisher user_fbf2a1f5, and is currently at version 1.0.0. It is categorized under dev-programming with a source label of community. The SkillHub page indicates requires_api_key=false, meaning installation and invocation do not depend on an additional API Key.

The core requirement of the official description can be summarized as: for any task related to the ys-agent frontend, this Skill must be invoked first before implementing the solution according to unified standards—rather than modifying files directly based on the Agent’s default habits.

Core Features

According to the descriptions on SkillHub and the API page, the frontend work covered (and constrained at the specification level) by this Skill includes but is not limited to:

  1. Pages & Components: Adding new pages, adding new components, writing common components, migrating demo code, adjusting layouts and styles.
  2. Data & State: Adding new API encapsulation, integrating backend interfaces, adding new Pinia stores, writing mocks.
  3. Routing & Permissions: Modifying routing, adding permissions.
  4. UI & Interaction: Forms, dialogs, tables, search filters, data visualization; Element Plus usage, themes, responsive design.
  5. Engineering Files: Editing .vue, .ts, .scss, .css under frontend/, as well as configurations like vite.config, tsconfig, and package.json.
  6. Quality Direction: Performance optimization and other frontend iteration matters.

The emphasis is on ensuring placement, naming, and import styles are consistent with project conventions. Even for very small tasks (e.g., “add a button” or “change a piece of text”), as long as it occurs within frontend/, the official instructions require reading this Skill before starting, to prevent “small changes” from accumulating into directory chaos.

The specific directory tree, naming rules, and code templates within the Skill body should be based on the installed SKILL.md; this article only restates the publicly available scope of responsibilities and does not expand on internal clauses not present on the official page.

Installation & Activation

The installation method provided officially by SkillHub is to let the AI fetch the specified coordinates based on the installation documentation:

Please install `@user_fbf2a1f5/ys-agent` according to https://skillhub.cn/install/skillhub.md.

If you already have the skillhub CLI locally, you can follow the instructions in Section 3 of the SkillHub installation documentation: during installation, you must use --dir to point to the skills directory actually used by the current Agent; otherwise, if it defaults to ./skills/, it may not be recognized.

  1. Check CLI (The documentation suggests confirming if it is installed first):
command -v skillhub && skillhub --version
  1. Install CLI if not installed (Full installation or CLI only, subject to the official script):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
  1. Install this Skill (Replace <skills directory> with the actual path of your environment):
skillhub install @user_fbf2a1f5/ys-agent --dir <skills directory>

Skills directories for common Agents (Excerpted from SkillHub installation documentation, subject to your actual local configuration):

Environment Typical Skills Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

After installation, in clients that support Skills such as Cursor, Claude Code, and Codex CLI, you need to ensure that the task loads the Skill from this directory; specific activation methods are subject to the current documentation of each client.

Typical Usage

The usage logic of this Skill is written very directly in the official description: Receive ys-agent frontend related task → Invoke this Skill first → Modify code according to standards.

Reproducible collaboration prompt examples (Sent to the Agent):

I want to add a new page with a table and search functionality in ys-agent's frontend/. Please invoke the @user_fbf2a1f5/ys-agent (Frontend Development) Skill first to confirm the placement and naming of the page, routing, API, and components before starting implementation.

Smaller granular changes are also applicable:

Just change a button's text in frontend/. Please read the Frontend Development Skill first to ensure the modified file and import style are correct before editing.

Through the above steps, the Agent should first read the specifications within the Skill and then output modifications that conform to the project structure, rather than arbitrarily creating new paths in the repository or repeatedly encapsulating existing capabilities.

Applicable Scenarios & Notes

Who is it for

  • Developers maintaining frontend/ in the ys-agent repository, or teams commissioning Agents for frontend iterations.
  • Scenarios requiring multiple Agents or multiple sessions to continuously modify the same frontend project while maintaining consistency in directory structure and style.

Usage Notes

  1. Scope bound to project: The specifications target frontend/ of ys-agent and do not automatically apply to other repositories; for other projects, use the corresponding project’s gatekeeper Skill (if available).
  2. Skill before Code: The official explicitly requires “must be invoked first”; skipping the Skill to modify files directly goes against the publisher’s intent and easily leads to directory and style issues again.
  3. Installation Path: The --dir for skillhub install must align with the current Agent’s skills directory, otherwise the Skill may not be loaded.
  4. Data subject to SkillHub: The page displays a rating of 100000 and 6692 downloads (at the time of crawling, install count was 0, this only indicates the statistical caliber and does not imply unavailability); if inconsistent with third-party reprinted data, refer to the SkillHub Skill Page.

Conclusion

Frontend Development (@user_fbf2a1f5/ys-agent) solves the problem of standard consistency for ys-agent frontend under multi-Agent collaboration: converging “where to place it, what to call it, how to import it” into a unified Skill before touching .vue, routing, Pinia, or Element Plus. To install or view instructions, you can open the SkillHub skill page or API entry:

  • SkillHub: https://www.skillhub.cn/skills/user_fbf2a1f5/ys-agent
  • Official Address: https://api.skillhub.cn/user_fbf2a1f5/ys-agent
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye