← Back to Skills Marketplace
bovinphang

Validation And Fix

by Bovin Phang · GitHub ↗ · v2.4.0 · MIT-0
cross-platform ✓ Security Clean
51
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fec-validation-fix
Description
Use when running existing project validation commands and fixing failures after code changes, including lint, type-check, unit/integration test, build, CI, o...
README (SKILL.md)

验证并修复

Purpose

自动化执行已有验证命令,分析失败原因并安全修复,确保质量门禁达标。

Procedure

  1. 从 package.json 或仓库文档中识别可用命令。
  2. 优先按以下顺序执行:
    • lint
    • type-check
    • unit/integration tests
    • build
  3. 仔细阅读失败输出。
  4. 将错误按文件、错误类型和依赖关系分组,优先处理阻塞后续诊断的根因。
  5. 一次只修复一类问题,并显示或记录关键错误上下文。
  6. 每次关键修复后重新执行受影响命令,确认错误是否减少。
  7. 如果同一错误连续三次修复仍失败,停止扩大改动并报告阻塞。
  8. 最后按 Expected Output 总结执行结果、修复内容和剩余风险。

Failure Triage

  • 先修最早出现且会级联的错误,例如缺失类型、导入失败、配置解析失败。
  • 区分真实产品 bug、测试环境问题、快照漂移、依赖版本变化和 flaky。
  • 对 CI 专属失败记录 Node 版本、包管理器、环境变量、路径大小写和工作目录差异。
  • 修复测试时优先修产品代码或测试等待方式,不用删除断言掩盖真实回归。

强约束

  • 不要盲目关闭规则来消除报错
  • 除非有明确理由,不要为了通过检查而降低类型安全
  • 不要因为附近测试失败就顺手重写无关模块
  • 不要一次性修改多个无关根因
  • 不要删除失败测试来让验证通过
  • 不要只运行失败命令的片段就声称整体验证通过

Expected Output

  • lint / type-check / test / build 等验证命令全部通过
  • 失败项已修复或给出明确原因和后续行动
  • 修复报告保存为 reports/validation-fix-YYYY-MM-DD-HHmmss.md
  • 报告包含命令状态表、问题根因、修复说明、变更文件和剩余风险
Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fec-validation-fix
  3. After installation, invoke the skill by name or use /fec-validation-fix
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug fec-validation-fix
Version 2.4.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 51 downloads so far.

How do I install Validation And Fix?

Run "/install fec-validation-fix" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Validation And Fix free?

Yes, Validation And Fix is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Validation And Fix support?

Validation And Fix is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Validation And Fix?

It is built and maintained by Bovin Phang (@bovinphang); the current version is v2.4.0.

💬 Comments