Skip to main content
ClaudeWave
Skill119 repo starsupdated today

oia-manifest

The oia-manifest Claude Code skill generates and validates `.harness/oia-manifest.json`, a static self-assessment document that declares how a harness aligns with the Open Intelligence Architecture v0.1 nine-layer reference model across layers, horizontal security and observability spans, and adjacent standards like MCP. Use it to emit a new manifest, validate an existing one with `--check`, preview output with `--dry-run`, or output JSON to stdout, establishing vendor-neutral vocabulary for system architecture assessment before OIA's runtime and wire protocol emerge.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/ruvnet/agent-harness-generator /tmp/oia-manifest && cp -r /tmp/oia-manifest/.claude-plugin/skills/oia-manifest ~/.claude/skills/oia-manifest
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# oia-manifest

> Codex skill: emit/validate the OIA cross-cutting manifest layer
> (ADR-034, iter 121 → iter 122).

## What it does

Emits `.harness/oia-manifest.json` — the harness's self-assessment against
the **Open Intelligence Architecture (OIA) v0.1** 9-layer reference model
published by the Agentics Foundation at <https://oia.agentics.org>.

The manifest declares:

- **9 layer alignments** — L1 physicalCompute → L9 humanAndBrowserInterface,
  each `full` / `partial` / `none` / `not-applicable`
- **6 horizontal spans** — security · observability · identity · governance ·
  policyEnforcement · interoperability, each `full` / `partial` / `none`
  with an `implementation` reference (file path or ADR number)
- **4 adjacent standards** — `mcp`, `a2a`, `acp`, `agentProtocol` with
  current mode + wiring notes
- **`discoveryEndpoint` + `registryUrl`** (both `null` at v0.1; OIA has no
  registry yet)

## Why a manifest, not a host adapter?

OIA at v0.1 has no runtime and no wire protocol — it's a vendor-neutral
vocabulary for assessing system alignment. The right plug-in shape is a
**static cross-cutting manifest** (ADR-034 Decision: Option B). It plugs in
ABOVE the host adapter contract and BELOW the MCP policy gate.

## Usage from Codex

```
/oia-manifest path=./my-harness
/oia-manifest path=./my-harness check=true
/oia-manifest path=./my-harness dry-run=true
```

## Equivalent CLI

```bash
harness oia-manifest ./my-harness                # write .harness/oia-manifest.json
harness oia-manifest ./my-harness --check        # validate existing manifest
harness oia-manifest ./my-harness --dry-run      # stdout, no file write
harness oia-manifest ./my-harness --json         # stdout JSON
```

## Verdict + exit codes (--check)

| Verdict | Exit | Meaning |
|---|---|---|
| `PASS` | 0 | manifest shape ok, oiaVersion echoed |
| `DRIFT` | 1 | shape mismatch — per-field reasons surfaced |
| `FAIL no manifest` | 2 | `.harness/oia-manifest.json` missing |

## Sample manifest (excerpt)

```json
{
  "schema": 1,
  "oiaVersion": "0.1",
  "harnessId": "my-bot@0.1.0",
  "layerAlignment": {
    "L4_toolsAndIntegrations": "full",
    "L7_governanceAndPolicy": "full"
  },
  "horizontalSpans": {
    "identity": { "status": "none", "implementation": null },
    "security": { "status": "full", "implementation": "mcp-policy.json + ADR-022" }
  },
  "adjacentStandards": {
    "mcp": { "mode": "local", "policyPath": ".harness/mcp-policy.json" }
  },
  "discoveryEndpoint": null,
  "registryUrl": null
}
```

## Pre-emptive composition rule (ADR-034 §120)

If a future OIA identity primitive ever wants to widen an MCP permission,
the composition is **denied at the policy gate**. The `mcp-policy.json`
default-deny posture is not negotiable for external identity claims.

## Related skills

- `validate-harness` (iter 22) — release-readiness umbrella
- `threat-model` (iter 114) — MCP threat-model for PR/compliance review
- `diag-harness` (iter 70) — kernel-version skew check

## See also

- [ADR-034 — OIA Integration](../../../docs/adrs/ADR-034-oia-integration.md)
- [ADR-022 — MCP primitive](../../../docs/adrs/ADR-022-mcp-primitive.md)
- [ADR-030 — Discovery Loop](../../../docs/adrs/ADR-030-discovery-loop.md)
- [oia.agentics.org](https://oia.agentics.org)
compare-harnessesSkill

Diff two scaffolded harnesses (ADR-031). Reports manifest meta drift + host list + per-file fingerprint changes (added/removed/changed). Exits 0 IDENTICAL, 1 DRIFT, 2 missing manifest. Use --bundle for the ADR-031 schema-1 JSON envelope.

create-harnessSkill

Scaffold your own focused AI agent harness — pick host (Claude Code, Codex, pi.dev, Hermes), template, agents, skills, and ship a npm-publishable harness with its own npx CLI. Use when a user asks to "create my own agent harness", "scaffold a harness", "make a custom Claude Code plugin like ruflo", or "build a vertical AI assistant for X".

diag-harnessSkill

Kernel-version skew check (ADR-027). Reports manifest surface + manifest kernel + installed kernel + verdict (match/patch-diff/minor-diff/major-diff). Exits 1 on minor/major skew with a copy-pasteable `npm install @metaharness/kernel@X.Y.Z` next step. Exits 2 if no .harness/manifest.json at path.

example-harnessSkill

Scaffold a ready-made AI agent harness in one command from the 19 published @metaharness/* example packages — 9 host integrations (Claude Code, Codex, Hermes, pi.dev, OpenClaw, RVM, Copilot, OpenCode, GitHub Actions) + 10 vertical pods (devops, research, trading, support, legal, coding, education, sales, gaming, repo-maintainer).

harness-secretsSkill

GCP Secret Manager integration: validate setup, fetch values, or confirm an NPM_TOKEN is non-revoked via `npm whoami`. Used for publish-time token rotation without long-lived keys in CI.

list-templatesSkill

List the available harness templates and what each one ships with. Use when the user asks "what templates are available", "what verticals does the harness generator support", or "show me what I can scaffold".

publish-harnessSkill

Publish a generated harness to npm — runs the smoke test, signs the witness manifest, and dispatches `npm publish --provenance` from your tagged release.

repo-genomeSkill

7-section readiness scorecard for a LOCAL repo. Reports repo type + agent topology + MCP risk + test confidence + release readiness + recommended harness plan + scorecard. Exit 0 ready, 1 needs-work, 2 blocked. --json for the 6-field scorecard, --bundle for the ADR-031 schema-1 envelope.