[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GK08BS1FC34B828T5RE1NG":3,"skill-same:01M6GK08BS1FC34B828T5RE1NG":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":23,"linkOnly":24,"markdownContent":25,"markdownBody":26,"frontMatter":27,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":13,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M6GK08BS1FC34B828T5RE1NG","refactoring-guardrails",null,"在 super-agent-v3 中进行重构、函数拆分、抽取公共逻辑、重排文件或需要行为护栏时使用。","lihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit","lihah111222333-cloud","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F254297992?v=4","01M6GJZ7ZK31PVRBS5XQWS56ET","01M6GJZ84Q0ANFYMPVK56PYSNW",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Frefactoring-guardrails\u002FSKILL.md",[],[18,19,20,21,22],"Guardrails","refactoring","refactoring guardrails","v3","文件","2026-11-10 10:12:30",false,"---\nname: refactoring-guardrails\ndescription: 在 super-agent-v3 中进行重构、函数拆分、抽取公共逻辑、重排文件或需要行为护栏时使用。\naliases: [\"@refactoring-guardrails\", \"@重构护栏\"]\n---\n\n# 重构护栏\n\n## 基本原则\n\n- 重构必须保持外部行为不变；任何行为变化都要先变更需求或测试。\n- 先找受影响包、入口和测试，再改代码。\n- 涉及 Go 文件时，每改完一个文件先跑 `.\u002Fscripts\u002Ftest_with_guard.sh \u003Cfile.go>`。\n- 禁止静默兜底：双跑、影子执行或迁移对比发现差异时必须返回错误并保留 diff 证据。\n\n## 推荐流程\n\n1. 记录重构前行为：测试、golden、快照或可执行验收脚本。\n2. 小步移动代码，保持 public contract 不变。\n3. 每个阶段运行最小验证，最后运行受影响包测试。\n4. 如果 guard 或双跑对比发现差异，停止并修复差异，不要返回旧结果继续执行。\n\n## fail-fast 对比示例\n\n```go\nfunc (s *Service) calcWithGuardrail(ctx context.Context, in Input) (Output, error) {\n    oldOut, oldErr := s.calcLegacy(ctx, in)\n    newOut, newErr := s.calcNew(ctx, in)\n\n    if diff := compareOutput(oldOut, newOut, oldErr, newErr); diff != nil {\n        return Output{}, fmt.Errorf(\"guardrail diff for %s: %w\", in.ID, diff)\n    }\n    return newOut, newErr\n}\n```\n\n## 验证\n\n- Go：`.\u002Fscripts\u002Ftest_with_guard.sh \u003Caffected packages> -count=1`\n- guard\u002Farchitecture：`make guard` 或 `.\u002Fscripts\u002Ftest_with_guard.sh .\u002Finternal\u002Farchtest -count=1`\n- docs\u002Fskills-only：`python3 scripts\u002Fvalidate_super_agent_skills.py` + `git diff --check`\n","# 重构护栏\n\n## 基本原则\n\n- 重构必须保持外部行为不变；任何行为变化都要先变更需求或测试。\n- 先找受影响包、入口和测试，再改代码。\n- 涉及 Go 文件时，每改完一个文件先跑 `.\u002Fscripts\u002Ftest_with_guard.sh \u003Cfile.go>`。\n- 禁止静默兜底：双跑、影子执行或迁移对比发现差异时必须返回错误并保留 diff 证据。\n\n## 推荐流程\n\n1. 记录重构前行为：测试、golden、快照或可执行验收脚本。\n2. 小步移动代码，保持 public contract 不变。\n3. 每个阶段运行最小验证，最后运行受影响包测试。\n4. 如果 guard 或双跑对比发现差异，停止并修复差异，不要返回旧结果继续执行。\n\n## fail-fast 对比示例\n\n```go\nfunc (s *Service) calcWithGuardrail(ctx context.Context, in Input) (Output, error) {\n    oldOut, oldErr := s.calcLegacy(ctx, in)\n    newOut, newErr := s.calcNew(ctx, in)\n\n    if diff := compareOutput(oldOut, newOut, oldErr, newErr); diff != nil {\n        return Output{}, fmt.Errorf(\"guardrail diff for %s: %w\", in.ID, diff)\n    }\n    return newOut, newErr\n}\n```\n\n## 验证\n\n- Go：`.\u002Fscripts\u002Ftest_with_guard.sh \u003Caffected packages> -count=1`\n- guard\u002Farchitecture：`make guard` 或 `.\u002Fscripts\u002Ftest_with_guard.sh .\u002Finternal\u002Farchtest -count=1`\n- docs\u002Fskills-only：`python3 scripts\u002Fvalidate_super_agent_skills.py` + `git diff --check`\n",{"name":5,"aliases":28,"description":7},[29,30],"@refactoring-guardrails","@重构护栏","main","287849f4ce06aaaa7e8f517126f73b016043d332",".agent\u002Fskills\u002Frefactoring-guardrails","https:\u002F\u002Fgithub.com\u002Flihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit","https:\u002F\u002Fgithub.com\u002Flihah111222333-cloud","2026-10-11 02:13:17",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add lihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit --skill refactoring-guardrails",{"tool":43,"command":44},"bunx","bunx skills add lihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit --skill refactoring-guardrails",{"tool":46,"command":47},"pnpm","pnpm dlx skills add lihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit --skill refactoring-guardrails","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Frefactoring-guardrails\u002FSKILL.md",true,[],[52,82,97,120,136,150],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":63,"publishedAt":23},"01M6GK59PDCBRZQ6D03BGXM8XM","mcp-lsp-project-config","配置、安装、检查、修复或迁移项目级 mcp-lsp stdio MCP，覆盖 Codex、Claude Code 和 Google Antigravity，以及 Windows 原生、WSL 原生和 Windows 宿主通过 wsl.exe 桥接 Linux sidecar 的自动选型。用户提到项目 MCP、LSP MCP、.codex\u002Fconfig.toml、.mcp.json、.agents\u002Fmcp_config.json、Codex 中 LSP 工具有时直接暴露有时只在延迟工具目录、ALL_TOOLS 过滤为空、工具已显示但调用报 client is closing、EOF、Transport closed，或希望三个客户端共用仓库内 mcp-lsp 时使用。","https:\u002F\u002Fgithub.com\u002Flihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit\u002Fblob\u002Fmain\u002Fbin\u002FLSP\u002Fmcp-lsp-project-config-skill\u002FSKILL.md",[58],{"categoryNo":59,"categoryName":60,"taxonomyType":61,"taxonomyTypeDesc":62},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81],"mcp lsp project config","MCP","config","lsp","project","mcp lsp","google","linux","antigravity","codex","windows","code","Tools","json","toml","client","工具","closing",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":23},"01M6GK57H2A7XK3QZ00HCV9XM0","注释规范","当在 super-agent-v3 中编写或审查 Go 函数级中文注释、React hooks\u002Fservice\u002Fcontroller 注释，或处理注释守卫失败时使用。","https:\u002F\u002Fgithub.com\u002Flihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002F注释规范\u002FSKILL.md",[],[84,89,90,91,92,93,94,21,95,96],"go","react","controller","中文","hooks","service","react hooks","comments",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":106,"publishedAt":23},"01M6GK545MTTE5X1Q4NF92PNRN","字段守卫","当新增、删除、重命名或跨层传递结构化字段，以及修改 DTO、mapper、schema、API\u002FRPC、事件、配置、store、序列化或前后端契约时自动使用；追踪生产源到全部消费端并建立 fail-fast 字段守卫。","https:\u002F\u002Fgithub.com\u002Flihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002F字段守卫\u002FSKILL.md",[103],{"categoryNo":104,"categoryName":105,"taxonomyType":61,"taxonomyTypeDesc":62},"01JBSEEDCAT000000000000010","后端与接口",[99,107,108,109,110,111,66,112,113,114,115,116,117,118,119],"后端","event","payload","store","mapping","rpc","fast","api","guard","消费","schema","drift","contract",{"skillNo":121,"name":107,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":127,"publishedAt":23},"01M6GK50VVC89B3MMSTKBG76ZS","在 super-agent-v3 中编写、审查或重构 Go 后端代码时使用。","https:\u002F\u002Fgithub.com\u002Flihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002F后端\u002FSKILL.md",[125,126],{"categoryNo":104,"categoryName":105,"taxonomyType":61,"taxonomyTypeDesc":62},{"categoryNo":59,"categoryName":60,"taxonomyType":61,"taxonomyTypeDesc":62},[107,128,129,130,131,89,65,132,133,134,21,135,110],"sqlc","backend","cmd","golang","runner","platform","module","fx",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":145,"publishedAt":23},"01M6GK4YP5DTSBD02AF8YSRNME","前端","当在 super-agent-v3 中开发、审查或修复当前 React\u002FVite 前端 UI 时使用；前端源码只在 frontend-app。","https:\u002F\u002Fgithub.com\u002Flihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002F前端\u002FSKILL.md",[142],{"categoryNo":143,"categoryName":144,"taxonomyType":61,"taxonomyTypeDesc":62},"01JBSEEDCAT000000000000009","前端开发",[146,147,148,21,149,90],"frontend","vite","app","ui",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":23},"01M6GK4WWB9A6N51VPCZHC3NB1","全量项目地图生成","当在 super-agent-v3 中生成、更新或校验 docs\u002Fdoc\u002Fcodemap 项目地图、AI index 或能力清单时使用。","https:\u002F\u002Fgithub.com\u002Flihah111222333-cloud\u002FSuper-Dolphin-Agent-Cockpit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002F全量项目地图生成\u002FSKILL.md",[],[152,157,158,21,159,160,161,162,163],"地图","生成","codemap","校验","doc","index","docs"]