Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add yfge/agent-harness-skills --skill repo-contracts-and-boundariesgit clone --depth 1 https://github.com/yfge/agent-harness-skillsWrote 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.
[](https://agentmods.dev/skills/yfge/agent-harness-skills/repo-contracts-and-boundaries)<a href="https://agentmods.dev/skills/yfge/agent-harness-skills/repo-contracts-and-boundaries"><img src="https://agentmods.dev/badge/skills/yfge/agent-harness-skills/repo-contracts-and-boundaries/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.
<a href="https://agentmods.dev/skills/yfge/agent-harness-skills/repo-contracts-and-boundaries"><img src="https://agentmods.dev/badge/skills/yfge/agent-harness-skills/repo-contracts-and-boundaries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00041 | $0.00933 |
| Opus 5.5 | $0.00016 | $0.00373 |
| Sonnet 5.5 | $0.00008 | $0.00187 |
| Haiku 4.5 | $0.00004 | $0.00093 |
Grade A, and why
repo-contracts-and-boundaries 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 1mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repo Contracts And Boundaries
Overview
Convert architectural and structural-quality intent into checks that prevent new drift instead of relying on repeated prose warnings.
This skill owns both repository contracts and quality gardening because both use the same mechanism: collectible rules, diff gates, audit reports, baselines, and gradual debt reduction. For shared harness terms, see ../../references/harness-patterns.md; when contract files are absent, use references/build-when-missing.md; for schema, fixture, and golden-payload contracts, see references/schema-fixture-contracts.md; for metrics and generated snapshots, see references/quality-policy.md.
When To Use
- The user asks to define, protect, audit, or encode architecture boundaries, directory ownership, choke points, allowlists, baselines, or contracts.
- The repository has layering rules, but agents still add bypass calls or wrong dependencies.
- The user asks for structural metrics, quality reports, debt thresholds, regression budgets, or a gradual cleanup loop.
- You need to distinguish diff checks from full audit checks.
Inputs Needed
- Architecture docs or expected layering.
- Current directory structure and known historical debt.
- Rules to protect: dependency direction, file size, public entrypoints, data access, interface boundaries, or similar constraints.
- Existing quality reports, generated snapshots, and CI or scheduled-run policy.
Execution Order
- First: Read architecture docs, current code, existing checks, reports, and baselines to identify real boundaries and debt.
- Then: Design mechanical rules, collectible metrics, diff checks, audit reports, baselines, and allowlists.
- Finally: Output executable contracts, generated evidence, and a gradual convergence strategy.
Step-by-Step Process
- Search for
ARCHITECTURE.md, contract docs, lint scripts, baseline files, and allowlists. - List protected rules; each rule must be checkable by script or review.
- If architecture or contract surfaces are missing, bootstrap the minimum files and checker shape from
references/build-when-missing.md. - Separate new drift from historical debt: new drift should fail, historical debt should enter a baseline.
- Add only metrics tied to a concrete structural risk; keep them automatically collectible and avoid aggregate quality scores.
- Design
--mode difffor changed files and--mode auditfor full-repository reports. - For each violation, output path, rule or metric, current value, threshold, reason, and suggested direction.
- Define when baselines or allowlists may change, who owns generated snapshots, and what repayment note is required.
What ships with it
3 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.
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.
- 1mo ago First seen · 107 lines · 41 tokens per session scan A 8bd3fbe51533
repo-contracts-and-boundaries is a skill published in the GitHub repository yfge/agent-harness-skills (11 stars, last pushed 3mo ago), licensed MIT. It adds 41 tokens to every session and 933 once invoked, about $0.0002 per session on Opus 5.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-31.
Other skills, from other repositories
codegraph
Use the local CodeGraph CLI or an already configured MCP server to find symbols, callers, dependencies, and change impact in a repository. Use when the user names CodeGraph or repeated structural code exploration would benefit from a reusable index. Not for a simple text lookup, prose-only repositories, or automatic…
readonly-review
Run a no-network read-only review practice with two explorer steps and one synthesis step.
xp-code-review
Review pending changes for tests, maintainability, and project rules. Use when the user asks for code review, review pending changes, or alignment with maintainability and project rules.
fic-validate-plan
Validate that an implementation plan was executed correctly. Use when the user asks to verify completion, compare code changes to a plan, or produce a validation report.
improve-codebase-architecture
Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.
review-bugbot
Review code changes with Bugbot subagent.