agentleFS
HyperVonHyperVon/agent-guidance-kit/skills/harness-adaptation/SKILL.md

harness-adaptation

Skill1 starsChanged 16 days agoApache-2.0View on GitHub

Make a repository's canonical agent guidance discoverable by the active coding harness without creating a parallel source of truth. Use when adopting skills into a project, adding or reviewing a harness entrypoint, or diagnosing why guidance is not being loaded. Prefer native discovery and thin pointers; propose by default and change only after approval.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the capability contract for the full harness profile, projection matrix, and the unknown-harness fallback before designing an adapter.

    line 17
  2. Distinctive:

    Stop before mutation: when the canonical owner, instruction precedence, supported skill format, or compatibility level is materially …

    line 26
  3. Distinctive:

    Use in-session evidence first: harness-provided context, project conventions, version output when safe, and existing repository markers.

    line 32
  4. Very specific:

    If the harness already discovers repository guidance (e.g.

    line 41
  5. Distinctive:

    When native discovery is missing or unreliable, choose the first applicable strategy:

    line 49
  6. Distinctive:

    Every adapter must delegate to the same canonical guidance.

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Adapt Guidance to an Agent Harness

Integrate by capability, not by a permanent product allowlist. The active harness and its model decide what they can discover; the repository's guidance files stay the durable source of truth.

Read the capability contract for the full harness profile, projection matrix, and the unknown-harness fallback before designing an adapter.

Contract

  • Inputs: repository root, active harness, current guidance, intended support level.
  • Default output: a capability profile, discovery gaps, the smallest adapter plan, verification steps, approval gate.
  • Side effects: none by default (read-only). Apply only approved thin entrypoints, pointers, or projections.
  • Stop before mutation when the canonical owner, instruction precedence, supported skill format, or compatibility level is materially unclear.

Workflow

1. Identify the active harness

Use in-session evidence first: harness-provided context, project conventions, version output when safe, and existing repository markers. The user or harness may state which harness is running — do not add a classifier or separate model to infer it. Treat environment variables and filenames as clues, not proof, and do not inspect credentials, caches, or personal directories. If the harness cannot be identified, use the unknown-harness fallback in the reference.

2. Prefer native discovery

If the harness already discovers repository guidance (e.g. AGENTS.md and a skills/ directory), adopt skills directly and add at most a thin pointer. No duplication or adapter file is needed. Collect discovery evidence at the level defined in step 5 before adding anything; a harmless task alone does not prove which instruction source caused the behavior.

3. Add the smallest projection only if needed

When native discovery is missing or unreliable, choose the first applicable strategy:

  1. Thin pointer — add the harness's instruction entrypoint and point it at the canonical AGENTS.md / skill files (e.g. @AGENTS.md).
  2. Narrow projection — repeat only essential rules when links are not followed.
  3. Native skill registration — expose the existing skills/ directory through a supported project-local path/metadata file without forking content. When the harness supports an extra-locations setting (e.g. a skills array in the harness's project settings file), register the existing skills/ directory there before considering a generated projection. This is native registration with zero file duplication; record the settings path and the verification command that confirms discovery.
  4. Manual entrypoint — for harnesses without persistent instructions, provide a reusable prompt telling the harness exactly what to read.

See the projection matrix and size budget in the reference for per-harness detail and truncation guardrails.

4. Keep one canonical source

Every adapter must delegate to the same canonical guidance; never define harness-specific policy that contradicts it. Point to the canonical body rather than copying it; a pointer must not silently become a second source of truth. Record the projection's expected round-trip behavior.

5. Present and apply

Report a capability table (evidence, existing owner, proposed projection, confidence), list every file to create/edit, and stop for approval before changing the target. Apply only the approved changes, then verify discovery from the harness boundary: validate links and follow the documented reload behavior. Classify each capability as:

  • RUNTIME_VERIFIED — a clean positive/negative control or harness trace proves the canonical guidance affected routing or behavior;
  • DOCUMENTED — authoritative harness documentation promises discovery, but it was not observed;
  • BEST_EFFORT — observed behavior is compatible with the skill, but causality could not be isolated; or
  • UNSUPPORTED — discovery is absent or contradicted.

A harmless task can support BEST_EFFORT, but it cannot by itself establish automatic discovery. Do not report RUNTIME_VERIFIED when the same result could come from model defaults, copied context, or another instruction source.

This skill is opt-in; a target repository may mandate it via its own AGENTS.md policy.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.