
Update barrel exports in fe-tools package index files. Adds, removes, or reorders export statements in src/index.ts to expose the public API. Use when a new function or module is added, exports need cleanup, the user mentions barrel file, re-export, expose module, or public API for any fe-tools package.
Create a new module file for fe-tools utilities. Scaffolds a single-purpose TypeScript module with bilingual JSDoc, exports, and tests. Use when a new focused file under packages/utils/src/, packages/web-utils/src/, packages/node-utils/src/, packages/canvas-utils/src/, or packages/ai-utils/src/ is needed (e.g., new validators module, new string helpers).
Recommend 3-5 targeted frontend resources from the fe-tools curated directory for a user's question. Use when the user asks where to learn, what to use, how to choose frontend tools/resources/docs/platforms, or wants curated recommendations for CSS, JS/TS, React, Vue, Node/build, compatibility, AI tools, agent skills, testing, cross-platform, WebAssembly, or related modern frontend and AI coding workflows.
Add or modify utility functions in fe-tools. Use when the user asks to add a new utility/helper/validator (e.g., "新增utils函数", "add utility function", "新增SQL语句校验功能") or to extend existing utils in packages/utils, packages/web-utils, packages/node-utils, packages/canvas-utils, packages/env, or packages/ai-utils.
Extract a reusable project template from an existing codebase by removing business-specific code, preserving only the reusable engineering skeleton, and creating template usage docs such as README. Use when the user wants to turn a frontend or backend project into a reusable starter template, scaffold, or baseline engineering setup.
Build the fe-tools monorepo packages. Runs TypeScript compilation across all packages and resolves build errors. Use when the user asks to build, compile, verify TypeScript compilation, or check for type errors.
Write or update bilingual (Chinese + English) JSDoc for exported functions in fe-tools. Use when the user asks for documentation updates, JSDoc fixes, or when adding/modifying utilities in utils, web-utils, node-utils, canvas-utils, or ai-utils.
Recommend the most suitable project template or initialization path from fe-tools project-templates based on product, framework, runtime, and delivery constraints. Use when the user asks which frontend or backend template to start from, how to bootstrap a React/Vue/Node/TypeScript project, or wants comparisons such as React admin template choices, Vite vs Webpack, or Koa2 vs Fastify vs NestJS.
Choose the correct fe-tools package for new functionality. Analyzes function requirements, reviews package responsibilities, and recommends the appropriate target package. Use when the user asks to add a function, create a new feature, or is unsure which package to use, where to add code, or which fe-tools module to target.
Add or update Jest unit tests for fe-tools utilities. Writes test cases, verifies coverage for common behavior, edge cases, and error inputs. Use when new functions are added, existing behavior changes, or the user asks to add tests across utils, web-utils, node-utils, canvas-utils, or ai-utils.
Sync repository skills to local AI tool skill directories. Copies skill files from the source of truth to Claude, Cursor, Codex, Trae, and CodeBuddy directories. Use when new skills are added or updated, tool directories need refresh, or the user asks to copy skills, update agent skills, or install skills locally.
Regenerate or verify documentation for fe-tools. Generates API reference from TypeDoc comments, checks for missing documentation, and validates code-doc alignment. Use when the user asks to update docs, generate TypeDoc output, or verify documentation alignment.
Verify documentation and tests in fe-tools. Checks that exported functions have corresponding documentation and test coverage, validates JSDoc presence, and identifies missing tests. Use when the user asks to verify docs/tests, or ensure exports and docs are aligned across utils, web-utils, node-utils, canvas-utils, or ai-utils.