Skip to content
Back to skills

Harness Audit

ASecurity

Inspect, debug, optimize or harden the ospec-workflow harness from this repository. Trigger: auditing the plugin manifests, generated targets, agent boundaries, hooks, skills or context cost.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentsgonode

Works with

  • cli

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add Snakeblack/ospec-workflow --skill harness-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Harness Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Harness Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/snakeblack-harness-audit/badge)](https://www.skillsdirectory.com/skills/snakeblack-harness-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: harness-audit
description: "Inspect, debug, optimize or harden the ospec-workflow harness from this repository. Trigger: auditing the plugin manifests, generated targets, agent boundaries, hooks, skills or context cost."
license: Apache-2.0
metadata:
  author: manuel-retamozo-garcia
  version: "2.0"
---

# Harness Audit

Local skill for developing ospec-workflow itself; it is not shipped to consumers. Use it when asked to inspect, debug, optimize or harden the harness.

## Audit Checklist

1. **Manifests**: `package.json`, `.plugin.json`, `.claude-plugin/plugin.json` and `openspec/config.yaml` share one version (`scripts/manifest-sync.test.js`), and their agent, command, skill, rule and hook paths resolve.
2. **Generated targets**: build each of the 7 targets with `node scripts/configure/cli.js --target <target> --out <tmp>` and run its `validate-<target>` script. Assert generated output in a temp dir, never in `dist/`.
3. **Agent boundaries**: the orchestrator coordinates and delegates; phase agents execute, never delegate recursively and never ask the user directly; each work agent carries its skill under `## Embedded references`.
4. **Skill registry**: `.ospec/cache/skill-registry.cache.json` is fresh, `compact_rules` come only from rules sections, and every knowledge skill declares `Trigger:` (`scripts/lib/skill-registry.test.js`).
5. **Context cost**: `node scripts/measure-context-baseline.js` matches the ceilings in `scripts/fixtures/context-baseline.json` and stays within the budget in `scripts/fixtures/context-budget.json`; a reduction lowers the ceilings with `--update`, and a rise needs `--allow-growth <metric> --reason "<why>"`.
6. **Rule scope**: always-on rules are only the `**` ones; `agents/**` rules are embedded in the orchestrator and path rules use each host's native scope.
7. **Hooks**: `hooks/hooks.json` wires `SessionStart` (registry refresh), `PreToolUse` (dangerous commands, token advisor), `PreCompact` (session summary), `SubagentStop` (skill resolution) and `Stop`, with JS and Go parity (`scripts/hooks/parity-contract.test.js`).
8. **Gates**: blocking decisions go through the host's question tool and are persisted in `state.yaml`.

## Output Contract

Return findings ordered by severity with file paths and the command that proves each one; separate confirmed defects from suspicions.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.