auto-harness-learn
分析 session 观察数据,提取行为模式生成 instinct,给出改进建议和 Token 优化提议。Use when user says "分析学习数据"、"看看有什么模式"、"harness learn"。
Skill by duoglas
Chalk Labs
Need help deploying auto-harness-learn?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/duoglas-auto-harness-learn
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/auto-harness-learn
What's inside
- Skill name
auto-harness-learn- Description
- 分析 session 观察数据,提取行为模式生成 instinct,给出改进建议和 Token 优化提议。Use when user says "分析学习数据"、"看看有什么模式"、"harness learn"。
- License
- MIT
- Instructions
- 58 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Harness Learn
从 `.harness/observations.jsonl` 分析行为模式,生成 instinct(原子化行为片段),给出改进和 Token 优化建议。
## 何时使用
- **自动触发**:每轮 Loop 的 REVIEW 阶段,harness-review 自动调用
- 手动触发:用户说"看看学到了什么"、"分析一下"
- 想知道哪些文件是高风险的(高频修改但可能没测试)
## 前置条件
- session-logger Hook 已启用(`HARNESS_LOG` 和 `HARNESS_LEARN` 都不是 `off`)
- `.harness/observations.jsonl` 存在且有数据(建议 20+ 条)
## 执行
```bash
node scripts/hooks/harness-learn.js --report
```
## 分析维度
1. **工具序列模式** — 相同 3 步序列出现 3+ 次(如 Grep→Read→Edit)
2. **高频工具对** — A 之后总是跟 B(如 Edit→Bash)
3. **高频修改文件** — 经常被编辑的文件 = 高风险,可能需要测试覆盖
4. **Token 优化** — 稳定 instinct(置信度 ≥0.9)建议提炼为 Rule
## 输出
- `.harness/instincts/*.json` — 生成的 instinct 文件
- `.harness/learn-report.md` — 分析报告(展示给用户)
## Instinct 生命周期
```
observation 积累
↓ harness-learn 分析
instinct (置信度 0.3)
↓ 多次观察确认
instinct (置信度 0.9)
↓ --promote 建议
Rule (.claude/rules/) ← 零 token 消耗
↓ 如果可强制
Hook (脚本) ← 100% 可靠
```
## 与 ECC continuous-learning-v2 的区别
| 维度 | ECC | 我们 |
|------|-----|------|
| Hook 开销 | 重(Bash 414行 + Python ×3-4 fork) | 轻(Node.js 单进程,<50ms) |
| 分析方式 | 后台 Agent 调 Haiku(消耗 API) | 纯本地规则匹配(零 API 调用) |
| 触发方式 | 自动后台轮询 | 按需手动(`/harness-learn`) |
| 后台进程 | nohup + PID + flock | 无 |
| Instinct 粒度 | 用户全局 ↔ 项目级 | 用户级(团队多人相同才提议晋升项目级) |From duoglas/simple-harness-kit, MIT.
More from duoglas/simple-harness-kit
- 0.655score
auto-harness-loop-fix
duoglas
在 AI 工具内执行受控自动修复 loop。Use when tests, E2E, quality gate, or verification fails and the user expects the agent to fix and rerun instead of only reporting…
SkillAFreshness: A★ 39Claude Code +9 - 0.655score
auto-harness-review
duoglas
执行交付前 5 项复盘检查,确保流程合规和质量达标。Use when about to deliver work to users, before final handoff, or when completing a development cycle.
SkillAFreshness: A★ 39Claude Code +9 - 0.655score
git-commit
duoglas
AI 智能生成 commit message 并分批提交。读取 active preset 的 subject 格式、type 枚举、分支规则、业务词归一表,自动适配 generic / example-company / 公司自定义 preset。**不自动 push** —— push 时机交回 shk 的…
SkillAFreshness: A★ 39Claude Code +9 - 0.655score
harness-start
duoglas
启动 Harness 任务(交互式收集需求,自动带上全部流程约束)。Use when starting a new feature, task, or any development work in a Harness-enabled project.
SkillAFreshness: A★ 39Claude Code +9 - 0.654score
harness-on
duoglas
重新启用 Harness 模式。Use when you want to resume Harness 6-stage loop after /harness-off.
SkillAFreshness: A★ 39Claude Code +9 - 0.654score
harness-off
duoglas
临时关闭 Harness 模式(本会话)。Use when you need to use other skills or do non-development tasks without Harness 6-stage loop.
SkillAFreshness: A★ 39Claude Code +9 - 0.654score
auto-harness-santa
duoglas
执行 Santa Method 双独立对抗验证。Use when reviewing high-risk changes, production deployments, or complex logic before shipping.
SkillAFreshness: A★ 39Claude Code +9 - 0.654score
harness-feedback
duoglas
执行 F1-F5 结构化反馈处理流程,从问题中提炼规则并写入约束系统。Use when receiving bug reports, user feedback, review findings, or test failures.
SkillAFreshness: A★ 39Claude Code +9 - 0.654score
auto-harness-test-bootstrap
duoglas
为缺少测试的已有项目渐进式补充多层自动化测试覆盖。Use when project has low or no test coverage and needs automated test generation.
SkillAFreshness: A★ 39Claude Code +9 - 0.651score
harness-init
duoglas
为当前项目初始化完整的 Harness Engineering 配置(Rules、Hooks、Constraints、QA 标准)。Use when bootstrapping a new project or adding harness to an existing project.
SkillAFreshness: A★ 39Claude Code +9 - 0.650score
auto-harness-qa
duoglas
执行 5 层 QA 金字塔检查,生成量化验证报告。Use when completing a feature, before committing, or before creating a PR.
SkillAFreshness: A★ 39Claude Code +9
Signals
- Stars
- 39
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Apr 3, 2026 (7 months ago)
- Last release
- Oct 9, 2026 (26 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/duoglas/simple-harness-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from duoglas
- 0.655score
auto-harness-loop-fix
duoglas
在 AI 工具内执行受控自动修复 loop。Use when tests, E2E, quality gate, or verification fails and the user expects the agent to fix and rerun instead of only reporting…
SkillAFreshness: A★ 39Claude Code +9 - 0.655score
auto-harness-review
duoglas
执行交付前 5 项复盘检查,确保流程合规和质量达标。Use when about to deliver work to users, before final handoff, or when completing a development cycle.
SkillAFreshness: A★ 39Claude Code +9 - 0.655score
harness-start
duoglas
启动 Harness 任务(交互式收集需求,自动带上全部流程约束)。Use when starting a new feature, task, or any development work in a Harness-enabled project.
SkillAFreshness: A★ 39Claude Code +9 - 0.655score
git-commit
duoglas
AI 智能生成 commit message 并分批提交。读取 active preset 的 subject 格式、type 枚举、分支规则、业务词归一表,自动适配 generic / example-company / 公司自定义 preset。**不自动 push** —— push 时机交回 shk 的…
SkillAFreshness: A★ 39Claude Code +9 - 0.654score
auto-harness-santa
duoglas
执行 Santa Method 双独立对抗验证。Use when reviewing high-risk changes, production deployments, or complex logic before shipping.
SkillAFreshness: A★ 39Claude Code +9 - 0.654score
harness-feedback
duoglas
执行 F1-F5 结构化反馈处理流程,从问题中提炼规则并写入约束系统。Use when receiving bug reports, user feedback, review findings, or test failures.
SkillAFreshness: A★ 39Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get auto-harness-learn running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
auto-harness-learn skill. Agent Mart. https://agentmart.dev/skills/duoglas-auto-harness-learn (last updated 2026-10-24)