Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
alibaba avatar

Ihs Repo Harness

  • 1 installs
  • 87 repo stars
  • Updated July 22, 2026
  • alibaba/opc-starter

ihs-repo-harness is a Claude Code skill that scores repository health (code rot, tests, docs) and outputs an IHS.md technical-debt report.

About

This skill evaluates repository health to make AI-driven technical debt visible and trackable. It runs a script that scores code entropy, test signals, and documentation alignment, then writes an IHS.md report with a good/bad status and a getting-better or getting-worse trend versus the previous commit. Developers run it before large merges or on a weekly cadence.

  • Scores repository health (IHS) for code rot, tests, and docs
  • Outputs an IHS.md report with a better/worse trend verdict
  • Compares the current commit against HEAD~1

Ihs Repo Harness by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #982 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

ihs-repo-harness capabilities & compatibility

Capabilities
repo health score · tech debt audit · test coverage check · doc alignment check
Use cases
code review · testing · documentation
From the docs

What ihs-repo-harness says it does

IHS 总分 = `代码腐化度(40%) + 测试信号(35%) + 文档对齐(25%)`
SKILL.md
总分 `>= 70`:状态判定为 **好**
SKILL.md
npx skills add https://github.com/alibaba/opc-starter --skill ihs-repo-harness

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars87
Last updatedJuly 22, 2026
Repositoryalibaba/opc-starter

What it does

Score a repository's technical-debt health and output an IHS.md report with a trend verdict.

Who is it for?

Quantifying and tracking a repo's technical-debt trend before big merges

When should I use this skill?

You want to know if the repository is getting healthier or accumulating hidden technical debt

What you get

A docs/IHS.md report with a good/bad status, a better/worse/flat trend, and prioritized improvement suggestions.

  • docs/IHS.md report
  • good/bad status verdict
  • prioritized improvement suggestions

By the numbers

  • Weighted score: code entropy 40%, test signal 35%, doc alignment 25%
  • Score >= 70 = good, < 70 = bad
  • Default 40-commit doc-alignment window

Files

SKILL.mdMarkdownGitHub ↗

IHS Repo Harness

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

---

1) 何时触发

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

  • 当前仓库健康度是在变好还是变坏?
  • 最近迭代是否引入了隐性技术债?
  • 测试与文档是否跟上了代码变更速度?

推荐触发词:

  • 运行 IHS 评估
  • 检查仓库是否变好还是变坏
  • 生成 IHS 报告

---

2) 触发命令(标准)

在仓库根目录执行:

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

可选参数:

  • --skip-runtime-checks:跳过 type-check / test / coverage(仅静态分析)
  • --history-window <N>:自定义文档对齐分析窗口(默认 40 commits)

---

3) 评估维度(IHS)

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

A. 代码腐化度(Code Entropy)

关注点:

  • TODO/FIXME/HACK/XXX
  • any@ts-ignore/@ts-nocheck
  • eslint-disable
  • 超大文件(>400 行)

B. 测试信号(Harness Checks)

关注点:

  • 测试文件/源码文件比
  • npm run type-check 结果
  • npm run test 结果
  • npm run coverage -- --reporter=json-summary 结果与覆盖率摘要

C. 文档对齐(Docs Alignment)

关注点:

  • 关键文档是否存在(AGENTS.mddocs/READMESUPABASE_COOKBOOK
  • 最近窗口内"代码提交 vs 文档提交"对齐率
  • 文档新鲜度(<=120 天)

---

4) 输出契约

执行完成后必须产出:

1. 根目录报告:docs/IHS.md 2. 明确结论:

  • 仓库状态:好 / 坏
  • 趋势判断:变好 / 变坏 / 持平(对比 HEAD~1

3. 可执行改进建议(按优先级排序)

---

5) 判定标准(默认)

  • 总分 >= 70:状态判定为
  • 总分 < 70:状态判定为
  • HEAD~1 的静态趋势分对比:
  • Δ > 1 => 变好
  • Δ < -1 => 变坏
  • 其他 => 持平

---

6) 推荐执行节奏

  • 每次较大功能合并前执行 1 次
  • 每周固定执行 1 次,持续追踪技术债趋势
  • 在 CI 中可先使用 --skip-runtime-checks 快速出静态趋势,再按需执行全量检查

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.