/typefox-agent-skills:agent-experiencefrom typefox-agent-skills
Audits and sets up AGENTS.md, CLAUDE.md, agent docs, verification sensors, and docs-as-memory (ADRs, architecture docs, exec plans) to make a repo agent-ready. Use when onboarding coding agents, improving agent instruction files, or debugging why an agent repeats mistakes.
Ships in typefox-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
AX is the experience AI agents have when working in a repository — how easily they can access, understand, verify, and safely change it. Two reframings drive everything in this skill. First, onboarding happens at the start of every task: a human onboards once, an agent re-onboards every session, so everything a new hire needs in week one, the agent needs in minute one, on every run. Second, hallucination is what inference looks like when context is missing: when an agent invents a build command or misuses an internal API, that is not a model defect to tolerate — it is an AX defect to fix.
The honest test — the single success criterion behind every artifact this skill produces: an agent given a real ticket, with no human help, reliably reaches a green verification suite and produces a diff a reviewer accepts. Optimize for that. Readiness checklists and scores are diagnostics for spotting neglect, never targets to maximize.
Vocabulary: write "AX" and "agent-ready" in everything you produce. When reading sources or searching the web, also recognize the synonyms: context engineering (the superset term — this skill is its repo-side slice), harness engineering (in its repo-side sense), agent readiness, agent legibility, ambient affordances. Generated artifacts never say "harness" — that word collides with the agent-runtime meaning.
Treat the repo-side AX setup as a control system that regulates the codebase toward its desired state. Two control directions × two execution modes give a 2×2 that classifies everything you find or create:
| Guides (feedforward — steer before the agent acts) | Sensors (feedback — verify after it acts) | |
|---|---|---|
| Computational (deterministic, fast, cheap — run on every change) | one-command bootstrap, task-runner command surface, scaffolding, codemods, generated reference docs, deterministic dev env | type checks, linters, tests + coverage, structural/dependency rules, mutation testing, secret scanners, the build |
| Inferential (LLM-run, semantic, costly — run at gates or on a schedule) | AGENTS.md, skills, docs/, ADRs (architecture decision records — short, versioned docs capturing one decision, its context, and its consequences), specs, code-level discoverability | review skills, modularity reviews, security/data reviews, doc-gardening, janitor/GC agents |
Both directions are mandatory. Feedback-only, the agent repeats the same mistakes every session — nothing steers it up front. Feedforward-only, rules accumulate but nothing ever verifies they held. Guides raise first-attempt quality; sensors give the agent a self-correction loop that fixes issues before they reach human eyes. Sensors also set the ceiling — the sensor ceiling: the system regulates only what some sensor observes, so a defect class nothing senses (a page that renders wrong under green tests, errors swallowed by a catch block) ships and recurs without ever triggering the loop below. Before letting more agent work land with less human review, widen sensor coverage first — every blind spot a reviewer used to cover becomes a shipped defect class.
The steering loop is the practice that builds and maintains the system: whenever an agent makes a mistake, engineer the repository so that mistake cannot recur — never settle for "prompt harder". Escalate any recurring failure up this ladder until it stops recurring:
Operate the loop as a coupling with a restraint. The coupling: the rule or sensor that prevents a mistake ships in the same change as the fix for that mistake, with the triggering incident cited inline (issue number, error, failing run) — fix and lesson never travel separately. The restraint: rules are added one per observed mistake, never speculatively — a mistake that hasn't happened yet can't pass the litmus test. The citation is also what keeps rules prunable: a rule that names its incident can later be re-judged against whether that failure class still occurs; a rule that names nothing is the first pruning candidate.
Keep quality left: fast computational sensors run alongside the coding session; expensive and inferential ones run post-integration or on a schedule.
Affordances are the structural properties that make a repo governable — what the codebase makes cheap to sense and to constrain: a strongly typed language (type checking is a free sensor), a constraining framework (its conventions abstract away whole error classes), fast build/test tooling (feedback-loop speed), clearly definable module boundaries (expressible as import rules). Start with what the codebase affords; acquiring a missing affordance (adding types, cleaning boundaries) is an investment that precedes the sensor work it enables. Variety reduction is the affordance you choose: committing to a topology narrows what an agent can produce, which is what makes a comprehensive control set achievable.
Hold every artifact you audit or generate to these. In improve mode they are the audit checklist; in every mode they are the generation rules. Cite them by tagline when explaining findings (e.g. "this violates map, not manual"), as this document does itself.
gh for GitHub issues); otherwise mirror a one-line summary with the link as provenance.references/agents-md.md). Deviations from ecosystem defaults earn lines; defaults never do.cmd | tail reports the pipe's exit status, not the command's, so a failing check piped through a pager or filter records a misleading 0.references/techniques.md).scripts/check_docs.py — its module docstring lists every check), and every artifact has an explicit lifecycle: active/completed for plans, accepted/superseded for decision records.(to be confirmed) or omitted. Product color counts: an invented name, count, or backstory is as much a fabrication as an invented database choice, and the user is never quoted or paraphrased saying something they did not say.Find the user's situation and jump in — state your chosen mode and scope before starting (that statement is Phase 0; consult alone skips it):
| Mode | Entry signals | Phases |
|---|---|---|
| Retrofit | Existing codebase; no or thin agent setup ("make this repo agent-ready", "onboard Claude/Codex here") | All phases 0–6, the full playbook |
| Improve | Agent instruction files already exist ("review our AGENTS.md", "make our agent docs follow AX standards", "why does the agent keep getting X wrong?") | All phases 0–6, scoped to the existing docs: audit against the standards, shrink, verify, restructure. Touch sensors only where docs state rules nothing enforces or where a sensor exists but is ineffective (ignored, drowning in noise, green while checking nothing) — repairing a broken sensor is always in scope; adding coverage beyond that is not |
| Greenfield | No code yet ("set up a new project for agent-first development") | 0, then 4–6 — phases 1–3 are skipped (no code to audit); interview-first (see Greenfield specifics) |
| Consult | A question about AX, general or project-specific ("what belongs in AGENTS.md?", "is our CLAUDE.md too long?"), or one small, specific change ("add the release commands to AGENTS.md") | None — no phase spine; answer or apply directly (see Consulting specifics) |
One shared phase spine; the mode selects which phases run and at what depth.
State the mode you picked, why, what you will deliver, and the agent tools in play — every tool the request names or the repo shows traces of — before doing anything else: Phase 5 projects AGENTS.md to each of them, and a tool mentioned only in the opening request is easily lost by then. If the request is narrower than the mode's full output ("just write an AGENTS.md"), keep the audit phases — generation without audit produces exactly the bloated files this skill exists to prevent — but scale the deliverable to what was asked.
Done when the user knows the mode, the planned deliverables, and the agent tools in play.
Inventory what exists — native Glob/Grep work over the playbook's checklist — and place every finding in the control-model grid. Empty cells are the gap list; the two cross-checks (claims vs. enforcement and its reverse) find the real work.
Load references/audit-playbook.md (Phases 1a–1b: inventory checklist, classification procedure, cross-checks).
Done when you have the classified inventory (matrix or equivalent — empty cells explicit), the gap list, and both cross-check lists.
Never trust documented commands — run them, in fresh-checkout order, and record each working invocation with its timing, labeled warm or fresh. Run scripts/check_docs.py over the existing agent docs. Discrepancies between docs and reality are first-class findings; probe the affordances and note sandbox friction while you are there.
Load references/audit-playbook.md (Phase 2: verification protocol).
Done when a verified command block exists (exact invocations and timings), backed by captured output, with discrepancies and friction listed.
Distill the non-inferable deltas — the playbook's six extraction passes, from deviation detection to docs triage — and draft the target artifacts: AGENTS.md from assets/AGENTS.template.md, plus the minimal docs/ subset this project actually warrants, with explicit (to be confirmed) markers wherever the repo couldn't answer. Never silently assume: a marker is a question for Phase 4; an unmarked guess is a fabrication (every fact traces to a source).
Load references/audit-playbook.md (Phase 3: distillation heuristics), references/agents-md.md (content model, exclusion list, drafting procedure) and references/docs-structure.md (which docs artifacts this project warrants).
Done when drafts exist and every unknown is a marker, not a guess.
Interview the user to resolve exactly the markers, following the grill protocol: codebase-first (never ask what Phases 1–3 answered), the markers worked as a design tree in frontier rounds with a recommended answer for every question, each answer written into its durable artifact immediately (write-as-you-go), and questions about project facts only (convention over configuration). In retrofit, the first round also carries the history-scan offer — mining the git history, and the issue and change tracker where a fetch path exists, for the decisions the docs should make explicit; it runs only on the user's confirmation (references/interview.md, history-scan offer). An unattended session compresses the interview into one final round, or ships the open questions as a questionnaire artifact.
Load references/interview.md (protocol, session mechanics, unattended sessions, theme→destination map, spec and design-doc triage).
Done when no markers remain — each is resolved or recorded as an explicit open question.
Produce the final artifacts:
references/agents-md.md, projections section). Every command in it comes from Phase 2's verified block.assets/ (named in its references/docs-structure.md section). Product-specs and design-docs only where their evidence triggers fired in the triage — never as a per-module dump.scripts/check_docs.py in-session — never copy the script into the repo or wire a copy into CI: a copy stops evolving with the skill and becomes debt, so recurring doc-freshness lands on the Phase 6 roadmap as a re-audit routine, not as an install. Every sensor and command added this session gets cited in AGENTS.md — in the commands section or the definition of done — because an unlisted sensor is one no future session will run.Load references/techniques.md (sensor/guide catalog, self-correction message patterns) and references/agents-md.md (projections, drafting rules).
Done when artifacts are written and sensors are wired into the dev loop or CI.
Run every new or changed sensor and scripts/check_docs.py against the final state; fix what fails — evidence-backed, output captured (run it, don't read it). Judge each sensor by its output, not its exit code: prove it can fire, at every scope the docs claim for it, and leave neither the deliberate breakage nor verification litter in the delivered copy — the proof protocol is in the playbook. Then run the claim check over every doc this session wrote or changed — and every comment or message written into code or config along the way: re-read each as a skeptical reviewer and trace every factual claim to this session's evidence — captured output, a file actually read, or the user's words; anything untraceable is fixed, marked (to be confirmed), or cut (every fact traces to a source). Then deliver:
references/audit-playbook.md), each step small and individually shippable.Load references/audit-playbook.md (Phase 6: proof protocol, claim check, remediation ordering).
Done when everything green is proven with captured output, a search of the whole delivered tree for caches and build artifacts your runs created comes back empty, the claim check comes back clean, and the roadmap is delivered.
With no code to audit, Phases 1–3 are skipped — after Phase 0 you go straight to the interview (Phase 4), which leads: use the greenfield question bank in references/interview.md, loaded first. The interview gathers product and technical facts; the AX layer follows from them by convention (convention over configuration).
Guide stack and topology decisions by affordances and push for a topology commitment (variety reduction — both defined under the control system above) — but guide only. The architectural foundations — intent, stack, topology, module boundaries (question-bank themes 1–4) — are settled by the user's words alone: the request, an interview answer, or an explicit "you decide". A labeled default never stands in for one, because a scaffold built on a default is not a placeholder but the decision itself, so nothing is scaffolded before they are settled; until then the deliverables are the product brief from the user's own words and the open questions — asked and waited for, or, unattended, shipped as the questionnaire. Rigid layered architecture — usually postponed until hundreds of engineers — becomes an early prerequisite with agents, because constraints are what allow speed without decay.
Day-one build order, once the foundations are settled: root map (AGENTS.md + CLAUDE.md projection) → one-command bootstrap and task-runner command surface → in-session sensors (typecheck, lint with agent-failure-mode rules, fast tests, secrets pre-commit) → docs nucleus (docs/ARCHITECTURE.md, docs/adr/ seeded with the stack/topology decisions from the interview, docs/exec-plans/, and docs/product-specs/product-brief.md holding the interview's intent answers — the one spec greenfield warrants; per-capability specs come later, spec-first per feature).
Boundary: this skill sets up the AX layer around the user's chosen project scaffolding — it does not generate the application itself. The pull to cross this line is strongest at the end, when a working feature feels like the honest proof that the loop works. It is not: the sensors firing on deliberate failures prove the loop, and a feature silently answers product questions the interview left open. The ceiling is scaffold-level — a smoke-tested placeholder route and an empty, clearly labeled schema stub; no domain logic, no seeded domain data, no working screens.
Consult is for the light requests: the user wants to understand something about AX, or wants one specific change, and the phase spine would be ceremony. Skip the phases and the Phase 0 announcement — a question deserves an answer, not a preamble.
references/agents-md.md for a question about AGENTS.md content) — not the whole set. When the answer is a document, route it before you write it: ARCHITECTURE.md is the structure, product-specs are the promises, design docs are the strategy, ADRs are the reasons, exec plans are the work — so bug-vs-intended, a disputed behaviour, or a promise that keeps being broken is a product-spec, and a deliberate mechanism agents keep breaking is a design doc, neither an ADR; references/docs-structure.md owns the routing. For questions about this project, check the actual repo state with targeted searches before answering; never speculate about files you could read.@AGENTS.md import. What consult never does: inventory, interview, roadmap, readiness score.Each phase above names the files it loads — don't read them all upfront. The index by content:
references/audit-playbook.md — inventory checklist with globs, classification procedure, verification protocol, distillation heuristics, Phase 6 proof protocol and claim check, readiness checks, remediation ordering.references/techniques.md — the full guide/sensor catalog with selection criteria, self-correction message patterns, and operating the control system over time.references/agents-md.md — AGENTS.md content model in leverage order, evidence and limits, drafting procedure, CLAUDE.md and multi-tool projections; the primary reference for improve mode.references/docs-structure.md — the docs/ system of record: layout, fact routing, per-artifact when-and-how, plans, decision records, product specs and design docs (evidence-triggered), the library/framework case, hygiene invariants.references/interview.md — grill protocol, session mechanics, unattended sessions, theme→destination map, spec and design-doc triage, greenfield question bank.Check the mode's definition of done: retrofit — verified commands, AGENTS.md + CLAUDE.md projection, docs nucleus, wired sensors, roadmap, all proven by execution; improve — the docs are shorter, every line passes the litmus test, every command verified, claims-vs-enforcement resolved or on the roadmap; greenfield — the foundations settled by the user, interview answers captured in durable artifacts, day-one AX layer in place around the user's scaffolding, nothing past the scaffold ceiling; consult — the question answered (or the change applied and verified) grounded in the standards, with any deeper gap you spotted offered, not silently pursued or dropped.
In every mode, the standards' closing checks: single source of truth (a CLAUDE.md projection beside every AGENTS.md written, no vendored copies), write-as-you-go (no silent assumptions — open questions are recorded as open questions), every fact traces to a source (the claim check passed on every doc and every code or config comment you wrote or changed), and readiness scores labeled as diagnostics.
assets/AGENTS.template.md (opens in a new tab)assets/adr-template.md (opens in a new tab)assets/design-doc-template.md (opens in a new tab)assets/exec-plan-template.md (opens in a new tab)assets/product-spec-template.md (opens in a new tab)evals/evals.json (opens in a new tab)evals/files/bloated-agents/AGENTS.md (opens in a new tab)evals/files/bloated-agents/Makefile (opens in a new tab)evals/files/bloated-agents/README.md (opens in a new tab)evals/files/bloated-agents/pyproject.toml (opens in a new tab)evals/files/bloated-agents/scripts/gen_fixtures.py (opens in a new tab)evals/files/bloated-agents/shiftplan/__init__.py (opens in a new tab)evals/files/bloated-agents/shiftplan/data/holidays.json (opens in a new tab)evals/files/bloated-agents/shiftplan/payroll.py (opens in a new tab)evals/files/bloated-agents/shiftplan/scheduler.py (opens in a new tab)evals/files/bloated-agents/tests/__init__.py (opens in a new tab)evals/files/bloated-agents/tests/test_payroll.py (opens in a new tab)evals/files/bloated-agents/tests/test_scheduler.py (opens in a new tab)evals/files/disputed-behavior/AGENTS.md (opens in a new tab)evals/files/disputed-behavior/CLAUDE.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub typefox/agent-skills --plugin typefox-agent-skills7 skills in this plugin
/eclipse-license-checkVet third-party dependencies for an Eclipse Foundation project with the Eclipse Dash License Tool — license checks, "do I need to vet X?" questions, IPLab review filing, and release IP due diligence. Use whenever the user mentions Eclipse license checking, dash-licenses, the Dash License Tool, IPLab, third-party content for an Eclipse release, or dependency approval under the Eclipse IP Policy, even if they don't name the tool. Do not use for non-Eclipse projects or general license advice unrelated to the Eclipse IP Policy./go-documentationWrite idiomatic Go doc comments that render correctly on pkg.go.dev — package comments, `doc.go`, exported-symbol comments, testable `Example` functions, deprecation notices — and publish or debug modules on pkg.go.dev (`pkgsite`, the module proxy). Use when writing or reviewing Go documentation, or when a developer used to writing JSDoc/TSDoc/Markdown is unsure how Go doc comments differ. Not for general Go programming or non-Go languages./idiomatic-goApply Go community idioms for API and package design, error and concurrency patterns, naming (initialisms, stutter, receivers), generics vs interfaces, and Go code review — including PR or diff review, questions about "the Go way", pointer vs value receivers, channels vs mutexes, and building Go language tooling (parsers, language servers/LSP, type checkers, validators, DSLs, or toolkits built on a Go language framework) — even when the user doesn't say "idiomatic." Skip trivial one-line Go edits with no design choices. Do not use for godoc or doc comments — use the `go-documentation` skill./publish-vscode-extensionPublish a VS Code extension to the VS Code Marketplace and/or Open VSX Registry. Use when the user wants to publish, ship, or release a VS Code extension; audit or improve manifest, listing, or release setup; build or upload a `.vsix`; set up `vsce` or `ovsx`; create a marketplace publisher or Open VSX namespace; configure CI for extension releases; bump versions; or troubleshoot publishing errors. Covers both registries — invoke even if the user names only one./skill-evalsRun the eval loop that measures whether a skill actually improves an agent's output — design test cases, run them with the skill and against a baseline, grade against assertions, aggregate a benchmark, analyze patterns, and iterate. Use when the user wants to evaluate or test a skill, check whether a skill helps, run skill evals, benchmark a skill against a baseline, grade skill outputs, or iterate on a skill from eval results. Builds on the skill-creator skill for the mechanics; stop if skill-creator is unavailable./write-like-meRewrite AI-generated text so it reads in the user's own writing voice, driven by a style profile extracted from the user's hand-written documents — or, on explicit request with named documents, build that profile. Use whenever the user asks to make a draft sound like them, match their style, voice, or tone, "de-AI" or humanize agent-written text (with their profile, or on explicit request without one), post-process a draft before publishing it under their name, polish text they wrote themselves for consistency with their own style, or wants their writing style extracted or profiled from their own posts, emails, or docs — even when they don't say "style". Not for editing content, fixing grammar, writing new text from scratch, or imitating other people's or public authors' voices.