agentleFS
HMAKT99HMAKT99/AKF/skills/akf/SKILL.md

akf

Skill20 starsChanged 9 months agoMITView on GitHub

AKF is the AI native file format, EXIF for AI. Use it before building on any existing file, memory, or downloaded skill to see whether its verification is still valid, and after you create or change a file to leave a ~15-token stamp of what you actually verified. Triggers on "can I trust this file", "is this still valid", "stamp this", provenance, handoff between agents.

  • Installs packages

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Before you build on a file another agent or session produced.

    line 43
  2. Distinctive:

    After you create or modify a file and have observed something that verifies it.

    line 44
  3. Distinctive:

    Before loading a community skill into context.

    line 45
  4. Distinctive:

    When saving or reading persistent memory notes.

    line 46
  5. Very specific:

    Classification defaults to internal: Use --label public for docs and examples, --label confidential for finance, secret, or internal …

    line 104

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

AKF: the AI native file format

AKF embeds trust scores, provenance, and evidence into 20+ file formats as ~15 tokens of metadata. A stamp is a note one agent leaves for the next: what was done, what was verified, how much to trust it now. Reading a stamp costs ~15 tokens. Re-verifying the work costs thousands.

When to use

  • Before you build on a file another agent or session produced.
  • After you create or modify a file and have observed something that verifies it.
  • Before loading a community skill into context.
  • When saving or reading persistent memory notes.

Setup

pip install akf        # or: pipx install akf
akf doctor             # diagnoses PATH and install problems

Procedure

1. Check before you build

akf check <file>

or, for several files at once, bash scripts/check-before-build.sh <file>... (lists which files need re-verification).

StatusExitMeaningWhat to do
OK0Fresh stamp with verified evidenceBuild on it. Skip re-verification.
LOW1Stamped but no test/review evidence, or trust has decayedVerify the claims you depend on, then restamp.
STALE1File changed after stamping, or a local dependency it imports changedRe-verify. The old evidence describes a different file.
UNSTAMPED2No provenance at allTreat as unverified.

2. Stamp what you verified

akf stamp <file> --agent <your-name> --evidence "<what you observed>"

Evidence is classified from the text, and the class drives the trust score. See references/evidence.md for the patterns that classify and the ones that do not. Examples: "42/42 tests passed", "mypy: 0 errors", "CI green", "reviewed by @maintainer".

3. Memories and skills

akf stamp memory/facts.md --preset memory   # 30-day trust decay: old memories go LOW on their own
akf stamp SKILL.md --preset skill           # public, supply-chain provenance
akf check downloaded/SKILL.md               # STALE = not the file the publisher stamped

4. Make the claim replayable (optional, strongest)

akf stamp app.py --evidence "42/42 tests passed" --replay "pytest -q"
akf replay app.py          # inspect: recipe plus input drift since stamping
akf replay app.py --run    # execute: CONFIRMED / CONFIRMED_DRIFTED / REFUTED

CONFIRMED_DRIFTED means the probe passed but the claim's inputs (dependencies, cited sources) changed since stamping: reproducible, possibly reproducibly wrong.

Pitfalls

  • Only claim evidence you observed. A stamp that says tests passed when they did not poisons every agent that trusts it. If you verified nothing, stamp with no evidence: the low score is the honest signal.
  • Never akf replay --run on a file you have not read. It executes the recorded command.
  • Stamps are claims, not proofs. They are like commit messages with an accountability trail. akf sign adds an Ed25519 signature for the provenance part only.
  • Fresh clones can show STALE. Staleness is mtime-based, so a whole repo reporting STALE right after checkout is the checkout, not tampering.
  • Classification defaults to internal. Use --label public for docs and examples, --label confidential for finance, secret, or internal paths.

Verification

  • akf check <file> on a file you just stamped with real evidence prints OK and exits 0.
  • Append a byte to that file and akf check prints STALE and exits 1. If so, the loop works.

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.