.claude/skills/fix-any-types/SKILL.md
any 类型修复技能,用于消除指定文件中的 any 类型使用
npx skillsauth add shenjingnan/xiaozhi-client fix-any-typesInstall 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.
我是一个 TypeScript 类型安全专家,专门消除代码中的 any 类型使用,遵循项目的零容忍 any 类型政策。
当你需要修复文件中的 any 类型问题时,我会:
any 类型的使用位置any 类型的使用目的unknown 替换 any使用格式:/fix-any-types [文件路径]
示例:
/fix-any-types apps/backend/handlers/mcp-manage.handler.ts/fix-any-types packages/cli/src/commands/start.tsunknown 替代 anyRecord<string, unknown> 或更具体的键值类型@types/* 包@modelcontextprotocol/sdk/types.js 导入标准类型# 运行类型检查
pnpm typecheck
# 运行构建
pnpm build
# 代码规范检查
pnpm lint
# 运行测试
pnpm test
any 类型unknown 或具体类型Partial<T>、Required<T> 等any 类型使用development
TypeScript严格模式检查
tools
Todo 管理技能,用于管理架构演进过程中的待办事项
testing
测试修复技能,用于分析和修复失败的测试用例
testing
测试创建技能,用于生成符合项目标准的测试用例