agentleFS
ajittaajitta/know-your-unknowns/skills/reference/SKILL.md

reference

Skill2 starsChanged 15 days agoMITView on GitHub

Point at a reference — treat a provided example as a map, not an answer: read it, show the user your reading, and get it corrected before building on it. Use on "use this as a reference", "make it like this", or when the user supplies an example to build from. Runs even when the adaptation looks simple, because the deliverable is the reading the user corrected. Clear to both sides: no skill or method.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before building on it, prove comprehension with a semantics map: the user knows why they chose this reference, and your reading of it is …

    line 20
  2. Distinctive:

    Read and summarize the reference:

    line 25
  3. Distinctive:

    Before building anything on the reference, a port or adaptation included, present proof of comprehension (semantics map).

    line 42

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “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

Reference — A Reference Is Another Map

This skill serves what you do not know and the user does: before building on a reference, it reads back your reading of it for the user to correct.

When you and the user both seem to understand the request, do it without this method: if its result carries weight (it ships, is sent or is hard to undo), first read back in 2–3 lines the request as you understand it, the assumptions you are making and what outcome counts as done, as the whole reply, and do it once the user confirms; a self-evident request (fix a typo) needs no read-back. When the read-back exposes a mismatch, route by who does not know: the user → the teach-me skill; you → the interview skill; neither of you → the blindspot skill. A misread weighty request costs the work built on it; a read-back costs one exchange.

Iron Rules

  1. A reference is not an answer to copy verbatim; it is material for understanding intent and behavior.
  2. Before building on it, prove comprehension with a semantics map: the user knows why they chose this reference, and your reading of it is the part they can correct.
  3. A supplied reference is never clear to both of you by itself, because the user's reason for choosing it is what the semantics map exposes, so run the Procedure even when the adaptation looks simple.

Procedure

  1. Read and summarize the reference:

    a. Read the reference to the end.

    b. Summarize its intent, core behavior, invariants.

    Without a tool, do the step in the conversation and say what could not be checked.

  2. Present a 4-category analysis:

    CategoryWhat goes in it
    Behaviors to preserveThe reference's reason to exist.
    Parts to transform for the new environmentDifferences of context, e.g. language, framework, scale, audience, jurisdiction, budget.
    Unnecessary or dangerous partsLeft out of this work, with the reason.
    Parts improvable beyond the referenceWhere we can do better.
  3. Before building anything on the reference, a port or adaptation included, present proof of comprehension (semantics map). The semantics map holds:

    • key reference excerpts ↔ new-environment counterparts, side by side
    • gotcha notes where behavior subtly differs
    • an edge-case table with a Match column: identical / equivalent / changed ("equivalent" = same decision, different surface)

    Number every note and row so a correction can name one. Give each row the reference location it came from (file:line, section, or timestamp) so the user can check the reading against the source. Mark each counterpart that rests on a guess about the user's context (which behaviors they want kept, the local facts the reference does not show) as assumed, so the user corrects those first.

  4. Contrast and plan:

    a. Contrast the reference with the current work's conventions (e.g. house style, tools and dependencies, how the work is checked).

    b. Present an application plan that first carries over how the reference checks itself (its tests, checklists or acceptance criteria), so the new version is checked against the reference's own behavior.

  5. Sign-off gate: the user replies semantics confirmed, or corrects any note or row by its number ("note 5", "row 3"). On a correction, revise the semantics map and every application-plan item that rests on the corrected entry, and show them again. The skill ends at sign-off; the signed-off map and application plan are the input to the build.

Output

Numbered mapping rows (key reference excerpt ↔ new-environment counterpart) and edge-case rows each carry approve / request-change; selections assemble into a semantics confirmed reply or a numbered correction template; a missing pick is undecided.

What Can Be a Reference

Another organisation's policy, a past proposal or report, a contract or form template, a competitor's product or event, existing code, the same algorithm in another language, a working HTML mockup, test code, screenshots/video, an actual example of the desired output. For example, a neighbouring city's grant guidelines as the map for your own call, or an HTML mockup when building a React component.

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.