← 返回 Skills 市场
Validation And Fix
作者
Bovin Phang
· GitHub ↗
· v2.4.0
· MIT-0
51
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fec-validation-fix
功能描述
Use when running existing project validation commands and fixing failures after code changes, including lint, type-check, unit/integration test, build, CI, o...
使用说明 (SKILL.md)
验证并修复
Purpose
自动化执行已有验证命令,分析失败原因并安全修复,确保质量门禁达标。
Procedure
- 从 package.json 或仓库文档中识别可用命令。
- 优先按以下顺序执行:
- lint
- type-check
- unit/integration tests
- build
- 仔细阅读失败输出。
- 将错误按文件、错误类型和依赖关系分组,优先处理阻塞后续诊断的根因。
- 一次只修复一类问题,并显示或记录关键错误上下文。
- 每次关键修复后重新执行受影响命令,确认错误是否减少。
- 如果同一错误连续三次修复仍失败,停止扩大改动并报告阻塞。
- 最后按
Expected Output总结执行结果、修复内容和剩余风险。
Failure Triage
- 先修最早出现且会级联的错误,例如缺失类型、导入失败、配置解析失败。
- 区分真实产品 bug、测试环境问题、快照漂移、依赖版本变化和 flaky。
- 对 CI 专属失败记录 Node 版本、包管理器、环境变量、路径大小写和工作目录差异。
- 修复测试时优先修产品代码或测试等待方式,不用删除断言掩盖真实回归。
强约束
- 不要盲目关闭规则来消除报错
- 除非有明确理由,不要为了通过检查而降低类型安全
- 不要因为附近测试失败就顺手重写无关模块
- 不要一次性修改多个无关根因
- 不要删除失败测试来让验证通过
- 不要只运行失败命令的片段就声称整体验证通过
Expected Output
- lint / type-check / test / build 等验证命令全部通过
- 失败项已修复或给出明确原因和后续行动
- 修复报告保存为
reports/validation-fix-YYYY-MM-DD-HHmmss.md - 报告包含命令状态表、问题根因、修复说明、变更文件和剩余风险
安全使用建议
Install is reasonable for users who want an agent to run existing project checks and fix failures. Because it executes repository-defined scripts and may modify code, use it in projects you trust or review the package scripts first.
能力评估
Purpose & Capability
The skill tells an agent to discover existing lint, type-check, test, and build commands, run them, inspect failures, and make scoped fixes. That capability matches the stated validation-and-repair purpose.
Instruction Scope
Runtime instructions include practical boundaries: fix one class of issue at a time, avoid unrelated rewrites, do not delete tests, do not blindly disable rules, and stop after repeated failed attempts.
Install Mechanism
The artifact contains markdown and JSON metadata only, with no dependencies, lifecycle scripts, or executable files in the supplied package contents.
Credentials
The skill may run project-defined validation scripts and edit project files, which is expected for this purpose but should be used only in repositories where the user is comfortable executing local scripts.
Persistence & Privilege
No persistence, background workers, credential access, hidden network behavior, or privilege escalation is described. The only persistent output is an explicit validation report file.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install fec-validation-fix - 安装完成后,直接呼叫该 Skill 的名称或使用
/fec-validation-fix触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.4.0
- Renamed skill from "test-and-fix" to "fec-validation-fix".
- Added LICENSE, README.md, metadata.json, and package.json files; removed skill-card.md.
- Revised skill description to clarify scope, triggers, and excluded scenarios.
- Enhanced and clarified procedures for error triage, validation, and repair, with stricter change boundaries.
- Updated output/reporting requirements and provided an explicit expected output format.
元数据
常见问题
Validation And Fix 是什么?
Use when running existing project validation commands and fixing failures after code changes, including lint, type-check, unit/integration test, build, CI, o... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 51 次。
如何安装 Validation And Fix?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install fec-validation-fix」即可一键安装,无需额外配置。
Validation And Fix 是免费的吗?
是的,Validation And Fix 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Validation And Fix 支持哪些平台?
Validation And Fix 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Validation And Fix?
由 Bovin Phang(@bovinphang)开发并维护,当前版本 v2.4.0。
推荐 Skills