repository-harness: Skill for Codex

.agents/skills/onboard-repository/SKILL.md

onboard-repository is a skill for Codex from hoangnb24/repository-harness. It costs 87 tokens per session (5,364 once invoked), scanned A, original, MIT.

A method for learning an unfamiliar existing code repository by inspecting its rules, structure, and one real working path.

In plain words
What is it for?
Use it to map a repository, understand how an operation works from start to finish, assess its documentation, and propose instructions that help future coding agents work independently.
Why use it?
It reduces guesswork in older or poorly documented projects and separates confirmed facts from missing guidance or proposed improvements.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is hoangnb24/repository-harness's own configuration. It tells Codex how to work on repository-harness itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything repository-harness configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .agents/skills/audit-onboarding-proposal/scripts/validate_evidence_capsule.py --transcript <raw-session.jsonl> --expected-transcript-sha256 <sha256> --r.

About the project

repository-harness is a repository protocol that makes a software codebase easier for coding agents to understand and work on safely. It is for teams using Claude Code, Codex, Cursor, and similar agents who need authoritative documents, durable plans, explicit decision boundaries, and evidence for completed work. Its catalogue entries install the protocol's skills and instructions.

hoangnb24/repository-harness · 1,215 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to hoangnb24/repository-harness. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hoangnb24/repository-harness/main/.agents/skills/onboard-repository/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hoangnb24/repository-harness

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for onboard-repository

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangnb24/repository-harness/onboard-repository/github.svg)](https://agentmods.dev/skills/hoangnb24/repository-harness/onboard-repository)
Your own site
<a href="https://agentmods.dev/skills/hoangnb24/repository-harness/onboard-repository"><img src="https://agentmods.dev/badge/skills/hoangnb24/repository-harness/onboard-repository/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for onboard-repository

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangnb24/repository-harness/onboard-repository"><img src="https://agentmods.dev/badge/skills/hoangnb24/repository-harness/onboard-repository.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,364 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.05364
Opus 5 $0.00044 $0.02682
Sonnet 5 $0.00017 $0.01073
Haiku 4.5 $0.00009 $0.00536

Measured 12d ago against content hash 220302bec89e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

onboard-repository scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/emit_evidence_bundle.py, scripts/render_patch.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/onboard-repository/SKILL.md · 507 lines

How it starts

The opening of the file, as written. The whole thing — 507 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Onboard Repository

Turn an unfamiliar repository into a verified map for future work. Treat the repository as the system of record. Separate facts from gaps and suggestions.

Safety Contract

The first pass is always inspection and proposal only, even when the worktree is writable.

  • Read every applicable AGENTS.md before inspecting deeper files.
  • Capture the initial Git root, revision, branch, status, and worktree list.
  • Preserve all pre-existing tracked and untracked changes.
  • In the initial boundary capture, before deeper repository inspection, record pre-state existence or safe hashes for relevant ignored state such as .env.local, dependency directories, and managed repository state. Never print secret contents. If an initial baseline was missed, report pre/post equivalence as Unknown; a later sample cannot reconstruct it.
  • Treat ignore rules and managed-state manifests as part of the boundary, not deeper inspection. Read them before fixing the baseline, enumerate every relevant ignored database, sidecar, dependency, environment, build, and managed-state path they reveal, and record each one explicitly. For ignored directories, use a content-sensitive per-file hash inventory; a filenames- only hash does not prove that contents stayed unchanged.
  • Use only read-only discovery commands. Do not install dependencies, start services, invoke migrations, create caches or state, or edit files.
  • Use task-prefixed shell variable names. In zsh, never assign to special names such as path, status, pipestatus, commands, or their uppercase system counterparts; corrupting the inspection shell invalidates later baselines.
  • Do not create temporary files inside or outside the repository. Compare via stdout and non-materializing pipelines; if a comparison requires a file, report that limitation instead of creating one.
  • Do not use shell heredocs or here-strings; shells may materialize them as temporary files. Use quoted python3 -c/node -e programs, stdin pipes, or ordinary read-only commands instead.
  • When a runtime manager is relevant, capture its observable project, service, volume, and process state in the initial boundary batch. If the manager is unavailable, state that runtime pre/post equivalence is Unknown. Proving that no runtime command was issued does not prove runtime state was unchanged.
  • Before invoking a repository-local binary, verify that its path exists and is executable. If absent, record the command as unavailable; do not invoke, install, rebuild, or substitute it.
  • Do not turn code, tests, configuration, conventions, or guesses into product intent. They can prove present behavior, not missing normative policy.
  • Stop when authority is absent or materially different interpretations remain.
  • End by comparing Git status and diff with the captured initial state.

Read the full file on GitHub · 507 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 507 lines · 87 tokens per session scan A 220302bec89e

Subscribe to this mod's changes

onboard-repository is a skill published in the GitHub repository hoangnb24/repository-harness (1,215 stars, last pushed 29d ago), licensed MIT. It adds 87 tokens to every session and 5,364 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

implementation-loop

Disciplined plan-build-verify loop for implementing a feature or change. Use when building something new or modifying existing behavior, especially across multiple files.

KingEmma7/cursor-os · 33 tokens

debugging-loop

Systematic reproduce-isolate-fix-verify loop for bugs, test failures, and unexpected behavior. Use when something is broken and the cause is not yet known.

KingEmma7/cursor-os · 37 tokens

lite-tools

Use compact wrappers when running routine Maven builds and tests, supported npm/Node test workflows, or Go tests. Select mvn-lite for supported Maven build and test workflows, npm-lite for npm run verify, npm run test:unit, or node --test, and go-lite for go test.

ejboy/agent-scripts · 62 tokens

repo-map

Use when locating a registered or related local repository, or when discovering commands registered through repo-map. Do not use for source-tree, symbol, or architecture mapping.

ejboy/agent-scripts · 35 tokens

steadyagent-workflow

Local-first Codex workflow for planning, debugging, reviewing, refactoring, improving AGENTS.md, building skills, publishing agent harness repositories, or running complex multi-step coding tasks that need staged diagnosis, context control, verification loops, review strategy, release evidence, and…

Khalilzhang0825/boring-is-all-you-need · 64 tokens

ackit-workflow

Enforce the ACKit docs-first, task-first workflow with one active checklist item and evidence-based completion.

Cynrath/agent-context-kit · 26 tokens