agentleFS
chenklein26-makerchenklein26-maker/Harness-Starter/.claude/skills/harness-gc/SKILL.md

harness-gc

Skill119 starsChanged 54 days agoMITView on GitHub

Garbage Collection Agent — 定期扫描项目健康状态,检测文档/代码一致性漂移,自动发起修复提案。

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 1

    1. k1ein-chen/Harness-Starter★ 119100% same

    Edited · 0

    None found.

    Wrote their own version · 1

    1. loganware05/captains-compass-cursor★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

Files
SKILL.md

Harness GC (Garbage Collection) Agent

核心原则

  1. 外部验证门 — 扫描结果来自 gc-scan.mjs,非 Agent 自我报告(Sniff 模式)
  2. 执行与验证分离 — 写代码的 Agent 不给自己打分(Spotify 模式)
  3. Circuit Breaker — 连续 3 次无改善则停止,等你介入
  4. 认知不投降 — 所有修复最终由你 review → 确认

触发方式

方式命令说明
手动node scripts/gc-scan.mjs立即执行一次健康检查
Loop/loop 24h "node scripts/gc-scan.mjs"每 24 小时自动扫描
Routine/schedule daily GC scan at 2am持久化定时(需 Max)

扫描维度

#维度检查项严重性
1CLAUDE.md 完整性必要章节 + 占位符critical / warning
2Git 状态未提交变更数 + 调试残留 (console.log/debugger)info / warning
3TODO/FIXME 密度单文件 >5 处info
4.gitignore 健康node_modules/reviews/loops 遗漏info
5Hook 注册文件存在但未注册/被注释critical / warning
6Harness 状态.harness-state 有效性info / warning
7TypeScript 类型tsc --noEmit 错误(如存在 tsconfig.json)warning
8LSP 配置.lsp.json 有效性info / warning

维度清单以此表为准。代码中 gc-scan.mjs 的 JSDoc 为权威来源。

工作流

TRIGGER → SCAN (gc-scan.mjs) → ANALYZE → PROPOSE (可选) → WAIT (你 review)

状态管理

  • .claude/loops/STATE.md — 当前活跃状态 (hot, 每次会话自动加载)
  • .claude/loops/LOG.md — 历史执行记录 (warm, 按需读取)
  • .claude/.harness-state — Phase/Mode 配置

Circuit Breaker

连续 3 次扫描无改善 → STOP 自动提案 → 标记 Phase: blocked → 等你人工介入。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.