utils/skills/bilingual-jsdoc/SKILL.md
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.
npx skillsauth add michealwayne/fe-tools bilingual-jsdocInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/**
* 深拷贝对象或数组
* Deep clone an object or array.
* @param source - 要拷贝的源对象 / source object to clone
* @returns 深拷贝后的新对象 / a new deep-cloned object
* @example
* deepClone({ a: 1, b: { c: 2 } }); // { a: 1, b: { c: 2 } }
* @example
* deepClone([]); // []
*/
Rules:
@param lines with Chinese and English descriptions separated by /@returns line with return description@example blocks (common case + edge case)npx tsc --noEmit --project packages/<pkg>/tsconfig.json.tools
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.
tools
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.
tools
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.
tools
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.