Research Harness Skills¶
This directory documents the skill subsystem — how Research Harness ships reusable Skill packages and how any agent platform can consume them without RH having to know about the agent in advance.
What is a skill?¶
A skill is a folder under skills/ that contains a
SKILL.md file with a YAML front-matter header (the format used by Claude
Code and Codex). The body is free-form Markdown — instructions, reference
material, templates — that an agent reads when the user's intent matches the
skill's natural-language triggers.
Skills are vendor-neutral. The same SKILL.md is consumed by Claude Code,
Codex, Gemini CLI, OpenCode, and any future agent that understands the
format.
Architecture¶
RH repo
├── skills/ single source of truth
│ ├── manifest.json machine-readable index (regenerated by `rh skill index`)
│ ├── paper-writing/ ← one folder per skill
│ │ ├── SKILL.md
│ │ └── tracks/...
│ ├── final-bundle-quality/ ← promoted v2 package example
│ │ ├── SKILL.md
│ │ ├── skill.yaml
│ │ └── contracts/
│ │ ├── input.yaml
│ │ ├── output.yaml
│ │ └── guardrails.yaml
│ └── agent-profiles/ templates for `.rh-agent.toml`
│ ├── claude-code.toml
│ ├── codex.toml
│ ├── gemini.toml
│ ├── opencode.toml
│ └── ... additional templates as needed
└── packages/research_harness/.../skill/ CLI + library
Three layers, each independent:
- Source — the
skills/directory plus its generatedmanifest.json. No agent-specific assumptions. This surface is reserved for user-facing research workflows.SKILL.mdis the minimum portable surface; promoted RH skills may also includeskill.yamlpluscontracts/for runtime validation, replay tests, and promotion policy. Every publicSKILL.mdalso carries a lightweight product contract in front matter:public_suite,task_type,data_access_level,inputs,outputs,gates,artifact_schemas, andestimated_runtime. These fields are copied into manifestextrasand validated byscripts/codex_skill_manifest_check.py. - Agent self-declaration — every consuming agent ships its own
.rh-agent.tomldeclaringinstall_path,format, andstrategy. RH reads this file and obeys it. RH does not maintain a list of supported agents. - Delivery — three strategies are supported:
symlink(default): each skill folder is symlinked into the agent's install path. Updates flow automatically.copy: a recursive copy. Used when the agent's loader doesn't follow symlinks, or in CI / sandboxes.mcp-runtime: nothing is written to disk; the agent calls the MCP toolsskill_listandskill_getat runtime instead.
Promoted v2 packages add a fourth runtime-facing layer without replacing the portable skill surface:
- Runtime contract —
skill.yamlis converted into aCapabilityManifestandRunSpec. Auto-runner checkpoints may reference a skill by name, and callable evaluators such asfinal-bundle-qualityexecute throughresearch_harness.evaluator.runtimeafter capability/tool/artifact guardrails pass. Evaluator runners live underresearch_harness.evaluator.runtime. The declared output, sidecarrun_trace, andruntime_trace_gradeare typed artifacts recorded through the orchestrator, not ad hoc files.
Quick start¶
# 1. Build the manifest (setup.sh does this automatically).
rh skill index
# Optional: inspect promoted v2 packages as runtime capabilities.
rh skill capabilities
# 2. Install for whichever agent you're using.
rh skill install --agent claude-code # uses skills/agent-profiles/claude-code.toml
rh skill install --agent opencode
rh skill install --agent gemini
rh skill install --target ~/.claude/skills # ad-hoc, no profile
rh skill install # auto: looks for ./.rh-agent.toml
# 3. Verify what's installed.
rh skill verify --agent claude-code
# Optional: inspect task-first public suites.
rh skill list --group-by-suite
rh skill list --suite paper
LG10 Productization Boundary Preview¶
The skills/docs boundary preview documents the LG10 public-productization gate without changing any skill runtime, manifest generation, MCP runtime delivery, or default agent routing behavior.
- Boundary id:
lg10-public-productization-boundary. - Payload schema:
lg10_productization_boundary.v1. - Allowed future pattern:
one_public_surface_per_gate_slice. - Every future public-surface implementation must be opt-in, backwards-compatible by default, shape-locked, documented, and separately verified.
- LG8/LG9 evidence is a prerequisite, not approval to productize.
Current opt-in boundary previews cover CLI, MCP, HTTP, and Python facade. This skills/docs boundary preview records the same policy for agents and skill authors; it does not add a new public skill, does not auto-route user requests to LG10 productization, does not publish a Zotero integration, and does not change doctor or showcase behavior.
Where to read next¶
consuming.md— for agent authors: how to write a.rh-agent.tomlso your agent picks up RH skills.authoring.md— for skill authors: the SKILL.md format, triggers, tracks, and conventions.