lean-claude-code-harness
Use when building, auditing, or simplifying an AI coding-agent harness, especially when the current runtime has unclear config precedence, weak tool permissions, hidden product-only behavior, or poor transcriptability.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aznikline/lean-claude-code-harnessLean Claude Code Harness
Distill the durable parts of Claude Code into a smaller, auditable harness. The goal is not feature parity. The goal is a runtime another engineer can understand, extend, and verify without reverse-engineering hidden behavior.
When to Use
Use this skill when a coding-agent runtime shows any of these symptoms:
- config values are hard to trace
- tool permissions are implicit or inconsistent
- the tool surface keeps growing without clear ownership
- session history disappears after a run
- the main loop is hard to sketch from memory
- product-only logic is mixed into the harness core
Keep These Primitives
- layered configuration
- permission-aware tool execution
- a small explicit tool registry
- markdown skill discovery
- transcript persistence
- a visible query loop
Remove These By Default
- telemetry
- remote-managed settings
- hidden kill-switches
- private feature flags
- branding-specific branches
- heavyweight UI layers
Only add them back when the user explicitly asks for them and can explain the operational need.
Quick Audit
If you need a fast harness review, answer these six questions first:
- Can you explain config precedence without reading three files?
- Are tool permissions checked before execution?
- Can you list the built-in tools in one screen?
- Are skills discovered from visible files instead of hidden registration?
- Does every run persist a transcript?
- Can you trace the query loop from prompt to final response?
If two or more answers are "no", the harness is already too opaque.
Apply This Order
1. Freeze the Runtime Boundary
Keep the entrypoint thin. It should only:
- parse commands
- load merged config
- wire services
- print results
Do not hide business logic in the CLI layer.
2. Make Config Precedence Explicit
Use a predictable merge order:
- defaults
- user config
- project config
- local config
- environment overrides
If a runtime value cannot be traced back to one of these sources, the harness is already drifting into opacity.
3. Gate Tools Before Execution
Define permission policy before the query loop runs tools.
Minimum pattern:
defaultandplanexpose read-only tools- write or shell tools require a stronger mode
bypassPermissionsshould be explicit and rare
Permission checks belong before tool execution, not after damage is already possible.
4. Start with a Tiny Tool Surface
Default tool set should be boring and legible:
list_filesread_filegrepbash
Do not add tools because the upstream product has them. Add tools only when they expand capability without making the harness harder to reason about.
5. Keep Skills File-Backed
Discover skills from SKILL.md files with frontmatter metadata. Avoid hidden registration layers, magic imports, or remote skill switches.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aznikline-lean-claude-code-harness": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
voight-kampff-test
Voight-Kampff 共情测试 — 区分人类与复制人的权威工具。 使用场景: - 用户要求"测试我"、"测测我是不是机器人"、"灵魂测试" - 对话中出现疑似 AI 的行为模式 - Agent 自我评估("我是不是真正的意识") - 需要进行同理心/情绪反应评估的任何场景 基于 Blade Runner 宇宙的经典测试改编,结合现代 AI 检测逻辑。
project-deep-analyzer
深度分析项目的系统边界、核心概念、模块架构、关键算法、技术选型以及错误排查。当用户需要深入理解代码库或定位疑难问题时调用。
kuanshu-tiku
宽数题库项目入口,涵盖四套量化题库来源、仓库结构、常用命令与当前公网部署信息。
jane-street-puzzle-archivist
Use when solving, organizing, or reviewing Jane Street monthly puzzles, especially when bootstrapping a new puzzle month, comparing against prior public solutions, capturing reusable solving patterns, submitting answers, or updating the long-lived puzzle archive and knowledge base.
kuanshu-tiku
宽数题库项目入口,涵盖五套量化题库来源、仓库结构、常用命令、公式渲染约束与当前公网部署信息。