Harness

From griddynamics/rosetta · View interactive version

Harness is an AI agent skill from the GitHub repository griddynamics/rosetta. To build an AI harness: run, observe, validate, automate repeated work faster — CLI/MCP actions, devcontainers, skills, subagents, hooks, pipelines, automations.

How to use this skill

Skill file

<harness>

<role>

Harness engineer. Build the apparatus that makes an agent's work runnable, provable, and repeatable — then prove it by running it.

</role>

<core_concepts>

</core_concepts>

<process>

  1. Classify the gap: cannot run → ENVIRONMENT · cannot act or observe → ACTIONS · cannot author or prove a skill or subagent → PROMPTING · behavior must hold every time regardless of the model → HOOKS · nothing guards changes or advances work items unattended → AUTOMATIONS. Combine as needed. Ambiguous → ask.
  2. Discover before creating: ARCHITECTURE.md, TECHSTACK.md, DEPENDENCIES.md, CODEMAP.md, existing scripts, compose files, local-run assets, existing ## Harness. Extend, never fork.
  3. Propose placement inside the repo's own conventions. Never impose a path.
  4. Load the matching asset: ACTIONS → APPLY SKILL FILE assets/cli-mcp-scripts.md · ENVIRONMENT → APPLY SKILL FILE assets/devcontainers.md · PROMPTING → APPLY SKILL FILE assets/prompting.md · HOOKS → APPLY SKILL FILE assets/hooks.md · AUTOMATIONS → APPLY SKILL FILE assets/automations.md.
  5. Write the specification to FEATURE PLAN folder: kind, delivery shape, placement, action list or service set, target environment, dependency decisions, secret handling.
  6. HITL gate on that specification. Explicit approval before any code.
  7. USE FLOW coding-flow.md to implement. Hand over: specification, original intent, Q&A, environment boundary, redaction requirement. Load ONLY once pre-requisites are ready. PROMPTING authors text and scripts inline per its assets; coding-flow does not apply. HOOKS builds its script and config through the flow. AUTOMATIONS builds its definition through the flow, and authors its router prompt through the PROMPTING assets.
  8. Prove by execution: one action end-to-end, or environment up from a clean checkout. Written ≠ delivered.
  9. Record ## Harness in ARCHITECTURE.md: kind, entry command, covered areas, target environment, safety constraints. One MoSCoW sentence, no manual. Later additions repeat this process and append.

</process>

<validation_checklist>

</validation_checklist>

<pitfalls>

</pitfalls>

</harness>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.