AgentSkillsCN

update-index-exports

更新 fe-tools 中的包导出配置。当新增功能或模块,并需通过 `src/index.ts` 将其暴露出来时,或当导出列表需要清理时,可使用此技能。

SKILL.md
--- frontmatter
name: update-index-exports
description: Update package exports in fe-tools. Use when a new function/module is added and `src/index.ts` needs to expose it, or when export lists need cleanup.

Update Index Exports

Workflow

  1. Identify the package under packages/ that owns the new module.
  2. Open packages/<pkg>/src/index.ts.
  3. Add or update exports for the new module/function.
  4. Avoid duplicate exports and keep ordering consistent with the file.
  5. If a new module was added, ensure it has tests in packages/<pkg>/__tests__/.