🛠️ 智能体工程生产力工件
Skills & Rules 工件在线生成器
根据 Antigravity 2.0 定制系统官方规范,快速生成具备 YAML Frontmatter、权限边界、工作流步骤及安全防护的专业工程文件。
工件参数配置
.agents/skills/smart-refactor/SKILL.md
--- name: smart-refactor description: "在重构复杂业务模块时执行自动化依赖分析与端到端回归自测" --- # SMART-REFACTOR Specification When the user triggers this skill or tasks match this intent, execute the following protocol: ## 1. Authorized Tools - `run_command` - `replace_file_content` - `grep_search` ## 2. Standard Workflow 1. **Phase 1: Exploration & Impact Analysis** 通过 grep_search 扫描所有引用该函数的文件并提取签名 2. **Phase 2: Atomic Implementation** 采用原子差分方式分块更新代码,禁止整文件盲目覆盖 3. **Phase 3: Verification & Closure** 执行本地 npm test 并验证构建产物,如有报错自主修复 ## 3. Guardrails & Restrictions > [!CAUTION] > 严禁直接修改生产环境配置,任何破坏性变更必须提前向开发者声明
💡 提示: 生成的 SKILL.md 可放置在项目的 .agents/skills/smart-refactor/ 目录中,Antigravity 平台会自动索引并按需加载。