Install
openclaw skills install lean-claude-code-harnessUse 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.
openclaw skills install lean-claude-code-harnessDistill 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.
Use this skill when a coding-agent runtime shows any of these symptoms:
Only add them back when the user explicitly asks for them and can explain the operational need.
If you need a fast harness review, answer these six questions first:
If two or more answers are "no", the harness is already too opaque.
Keep the entrypoint thin. It should only:
Do not hide business logic in the CLI layer.
Use a predictable merge order:
If a runtime value cannot be traced back to one of these sources, the harness is already drifting into opacity.
Define permission policy before the query loop runs tools.
Minimum pattern:
default and plan expose read-only toolsbypassPermissions should be explicit and rarePermission checks belong before tool execution, not after damage is already possible.
Default tool set should be boring and legible:
list_filesread_filegrepbashDo not add tools because the upstream product has them. Add tools only when they expand capability without making the harness harder to reason about.
Discover skills from SKILL.md files with frontmatter metadata. Avoid hidden registration layers, magic imports, or remote skill switches.
The discovery rule should be explainable in one sentence: scan configured directories, parse frontmatter, expose name, description, and path.
Save transcripts to disk. Each transcript should include:
If an agent run cannot be inspected afterward, debugging and trust both degrade.
The harness should make this loop easy to trace:
If you cannot sketch the loop from memory, the runtime is already too opaque.
Before calling the harness usable, verify:
SKILL.md filesThe verification standard is simple: no claims about the harness until the config, permission, skills, session, and loop seams are each exercised once.
When applying this skill, produce: