agentleFS
everywan-deveverywan-dev/claude-code-engineering/skills/document-with-evidence/SKILL.md

document-with-evidence

Skill2 starsChanged 3 months agoApache-2.0View on GitHub

Use when recording a new piece of curated knowledge -- a finding, a decision, a measured fact worth keeping and later re-checking for freshness. Triggers on requests like "record this as knowledge", "write a knowledge unit for X", "capture this finding with evidence", or "add this to curated knowledge". Do not use for a quick personal or project preference; that belongs to the keep-agent-memory-accurate skill instead.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never promote a unit's evidence state by editing it in place because you have grown more confident.

    line 40
  2. Very specific:

    Run it over the whole knowledge/ directory, not a single file: supersedes resolves against the validated set, so validating one file in …

    line 60
  3. Very specific:

    If the project declares an extension (knowledge-extension.md), your unit may also carry the fields it declares, on top of the base contract.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Document with evidence

A curated-knowledge unit is one Markdown file under knowledge/, with frontmatter carrying the base contract. Write the file directly (or via your usual editing tools) -- there is no validated_memory subcommand that creates one; validate only checks what you wrote.

The base contract, field by field

---
id: kb-0001                    # required; stable, unique; matches the adopter's id_prefix
evidence: measured              # required; measured | verifiable | hypothesis
supersedes: []                  # optional; ids this unit supersedes (see supersede-outdated-docs)
anchors:                        # optional; without anchors a unit cannot expire
  - system: <system-name>
    kind: <probe-kind>          # must match a kind registered in validated-memory.md
    captured_at: 2026-08-12T00:00:00Z
    payload: {}                 # interpreted by the probe, not by validate
provenance: []                  # optional; where the native artifact lives
---
  • id -- check id_prefix in validated-memory.md for the scheme this project follows. Never reuse an id once written; a correction is a new unit (see supersede-outdated-docs).
  • evidence -- pick the state the knowledge actually has right now, not the state you hope to reach (canonical definitions: the README's "Base contract" section):

    • measured -- directly observed or computed, with a way to re-check it.
    • verifiable -- not directly measured, but checkable by someone who follows the provenance.
    • hypothesis -- a claim not yet checked.

    Never promote a unit's evidence state by editing it in place because you have grown more confident. Promotion is not a state change on the same file; it is a new unit with better evidence that supersedes this one (supersede-outdated-docs). Evidence state moves forward only by writing new knowledge, never by conviction.

  • anchors vs provenance -- do not mix the two planes:
    • An anchor is a probeable claim: "system X, of kind K, was true as of captured_at, described by this payload" -- exactly what detect-stale-documentation re-checks later. A unit with no anchors can never be checked for freshness (a WARNING, not an ERROR).
    • Provenance is not probed: it records where the native artifact (a query, a document, a conversation) lives, for a human to go look. Put a link or a citation there, not something you expect a probe to check.

Verify

python3 -m validated_memory validate

Run it over the whole knowledge/ directory, not a single file: supersedes resolves against the validated set, so validating one file in isolation reports a real supersedes target as missing. See the README's "Base contract" section for the exact rules validate enforces (required fields, id form, anchor envelope shape, and so on) -- this skill only covers the data discipline, not the validator's error conditions.

If the project declares an extension (knowledge-extension.md), your unit may also carry the fields it declares, on top of the base contract; an undeclared field is an ERROR. See the README's "Declared extension" section.

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.