repo-harness-assessment
Use when evaluating repository agent-readiness, mapping harness roles, choosing the next smallest improvement, or designing and reconciling agent entrypoints such as AGENTS.md, CLAUDE.md, GEMINI.md, Cursor rules, or GitHub instructions.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- repo-harness-assessment
- license
- MIT
- description
- Use when evaluating repository agent-readiness, mapping harness roles, choosing the next smallest improvement, or designing and reconciling agent entrypoints such as AGENTS.md, CLAUDE.md, GEMINI.md, Cursor rules, or GitHub instructions.
02 资源文件 2
- 参考文档references/build-when-missing.md2.4 KB
- 参考文档references/entrypoint-policy.md1.4 KB
03 SKILL.md 正文
Repo Harness Assessment
Overview
Assess how well a repository lets an agent find its rules, make safe changes, verify them, and produce reviewable evidence.
This is the default router for existing repositories. It also owns agent-entrypoint design because entrypoints are the navigation layer of the assessment, not a separate harness system. For shared vocabulary and neutral artifact names, see ../../references/harness-patterns.md; when expected harness files are missing, use references/build-when-missing.md; for canonical entrypoints, mirrors, and drift prevention, use references/entrypoint-policy.md.
When To Use
- The user asks what harness pieces a repository is missing.
- The user wants to create, shrink, reconcile, or diagnose
AGENTS.md,CLAUDE.md,GEMINI.md, Cursor rules, or GitHub instructions. - You need to compare entrypoints, validation commands, runtime evidence, delivery records, or quality gates across repositories.
- You need to decide whether the next smallest improvement is an entrypoint, validation script, artifact bundle, ledger, contract check, or quality gate.
Inputs Needed
- Repository root path.
- User scope: whole repository, one surface, docs-only work, runtime behavior, CI, or delivery flow.
- Any expected harness shape or maturity target the user names.
- Existing agent instruction files and whether mirrors, generation, or subtree overrides are required.
Execution Order
- First: Read repository entrypoints and source-of-truth files, including agent instructions, README, architecture or reliability docs, indexes, CI, and scripts.
- Then: Map existing surfaces to harness roles and check entrypoint precedence, mirrors, validation, evidence, work state, delivery, contracts, and quality.
- Finally: Report maturity, entrypoint actions, the smallest useful improvement slice, and what not to build yet.
Step-by-Step Process
- Use
rg --filesorfindto list agent instruction files, docs, scripts, CI, work-state surfaces, ledgers, reports, and runtime artifacts. - Identify one canonical entrypoint and classify every other agent instruction file as a subtree override, symlink, generated mirror, or short pointer.
- Keep the root entrypoint to scope, source-of-truth navigation, hard boundaries, and minimum commands; move detailed procedures to linked docs.
- Map current artifacts to entrypoint, work-state, ledger, contracts, validation, runtime-evidence, and quality roles before proposing new files.
- Check for a stable validation matrix and whether failures connect to run IDs, request IDs, logs, screenshots, JSON/JUnit output, reviews, or commits.
- If a required role is absent, define the minimum bootstrap artifact from
references/build-when-missing.md; do not scaffold optional roles by default. - Add a mirror or pointer drift check when multiple agent instruction surfaces must stay aligned.
- Compress gaps into no more than three next steps, ordered by value and risk.
Checks
- Entrypoint: an agent can find first-read docs, edit boundaries, and the minimum validation command within one minute.
- Consistency: mirrors cannot silently drift, and instruction precedence is explicit.
- Structure: there is a clear source of truth, directory boundary model, and no-new-drift rule.
- Validation: there is one local minimum command and one CI gate command.
- Evidence: a failure can be connected to logs, traces, screenshots, or runtime artifacts.
- Overbuild: do not recommend a full platform, broad scaffold, or cross-environment deployment system before the minimum slice is justified.
Output Format
# Repo Harness Assessment
## Detected Mapping
- entrypoint:
- mirrors / subtree overrides:
- work-state:
- ledger:
- contracts:
- validation:
- runtime-evidence:
- quality:
## Entrypoint Decision
- canonical file:
- navigation changes:
- drift prevention:
## Current State
- Agent entrypoint:
- Source-of-truth docs:
- Validation surface:
- Runtime evidence:
- Delivery/ledger:
## Gaps
1.
2.
3.
## Recommended Minimum Slice
- First:
- Then:
- Finally:
## Do Not Build Yet
-
## Validation Needed
-
Common Mistakes
- Reducing harness maturity to "there are tests."
- Reading only README while ignoring scripts, CI, and real artifacts.
- Copying rules into every agent-specific file instead of choosing one canonical source.
- Turning the root entrypoint into a project encyclopedia.
- Copying environment variables, ports, accounts, or private workflow details from one implementation into another.
- Producing a long wish list instead of a small, implementable improvement slice.
Example Prompts
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.