ai-shifu/ai-shifu/hook-contract-refactor-safety
Claude Code and agent skill by ai-shifu/ai-shifu
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when refactoring hook return fields or parameter contracts. Update caller destructuring and argument objects together to prevent TypeScript property errors.
Install
npx vskill@latest install ai-shifu/ai-shifu/hook-contract-refactor-safetySKILL.md
Hook 契约重构安全
核心规则
- 公共 hook 字段改名后,消费方必须同批次同步改名。
- hook 删除参数后,调用对象中的旧字段必须同步移除。
工作流
- 先在 hook 导出类型上完成改名或删参。
- 全局检索调用点并同步更新解构、索引、依赖数组。
- 清理对象字面量中的未知属性。
- 运行定向
tsc或相关测试,确保契约收敛。
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/web/skills/hook-contract-refactor-safety/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ai-shifu/ai-shifu/hook-contract-refactor-safety)