Ihs repo harness

From alibaba/opc-starter · View interactive version

Ihs repo harness is an AI agent skill from the GitHub repository alibaba/opc-starter. IHS(IDE Harness Score)仓库健康评估技能。用于衡量 AI Coding IDE 驾驭能力下的代码仓技术债变化趋势,输出 IHS.md 评测报告(代码腐化、测试信号、文档对齐、变好/变坏结论)。

How to use this skill

Skill file

IHS Repo Harness

目标:借鉴 OpenAI Harness Engineering 的思路(约束 + 评测 + 回归),把 AI 快速开发带来的技术债"可视化、可量化、可追踪"。


1) 何时触发

当你需要回答以下问题时触发本技能:

推荐触发词:


2) 触发命令(标准)

在仓库根目录执行:

python3 .claude/skills/ihs-repo-harness/scripts/generate_ihs_report.py --output docs/IHS.md

可选参数:


3) 评估维度(IHS)

IHS 总分 = 代码腐化度(40%) + 测试信号(35%) + 文档对齐(25%)

A. 代码腐化度(Code Entropy)

关注点:

B. 测试信号(Harness Checks)

关注点:

C. 文档对齐(Docs Alignment)

关注点:


4) 输出契约

执行完成后必须产出:

  1. 根目录报告:docs/IHS.md
  2. 明确结论:
  1. 可执行改进建议(按优先级排序)

5) 判定标准(默认)


6) 推荐执行节奏

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.