akf
Skill19 starsChanged 9 months agoMITView on GitHub
Agent Knowledge Format — stamp trust metadata into every file AI touches. Trust scores, provenance, and compliance that embed natively into DOCX, PDF, images, and code.
- Installs packages
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- akfSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 61
Before building on an existing file — check it (one line, ~20 tokens):
- Distinctive: line 71
After creating or modifying any file:
- Very specific: line 127
Use --label to classify output sensitivity:
- Distinctive: line 146
Always stamp outputs: Every file the agent creates should carry metadata
- Very specific: line 147
Check before using: Run akf read on files before processing them
- Very specific: line 148
Audit periodically: Use akf scan on output directories to find trust gaps
- Distinctive: line 151
Chain provenance: When building on other files, the trust chain is preserved
- Distinctive: line 170
Never load a downloaded skill without checking it first:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
AKF — Agent Knowledge Format
AKF is the trust metadata standard for AI-generated content. Think EXIF for AI. Every file your agent creates or modifies should carry trust metadata — who made it, how confident they are, what evidence backs it, and whether a human reviewed it.
Why Use AKF
- Trust scores: 0–1 confidence rating per claim
- Source provenance: 5-tier system from peer-reviewed to unverified
- Compliance: EU AI Act, HIPAA, SOX, NIST audit support
- Native embedding: Metadata lives inside the file (DOCX, PDF, images, code)
- Security detections: 10 detection classes for AI content risks
Quick Start
Before building on an existing file — check it (one line, ~20 tokens):
akf check <file>
# OK → fresh stamp with verified evidence; skip re-verification
# STALE → modified after stamping; re-verify before trusting
# LOW → stamped but unverified; verify before trusting
# UNSTAMPED → no metadata; treat as unverifiedAfter creating or modifying any file:
akf stamp <file> --agent openclaw --evidence "generated from user request"Deeper inspection when needed:
akf read <file> # Check trust metadata
akf inspect <file> # Pretty-print trust scores
akf trust <file> # Compute effective trustCore Commands
Stamp — Add trust metadata
akf stamp report.docx --agent openclaw --evidence "quarterly data from ERP"
akf stamp analysis.pdf --agent openclaw --label confidential
akf stamp output.py --agent openclaw --evidence "tests pass, code reviewed"Read & Inspect — Check metadata
akf read report.docx # Quick metadata view
akf inspect report.docx # Detailed trust breakdown
akf trust report.docx # Effective trust score with decisionEmbed & Extract — Native format support
akf embed report.docx # Embed metadata into DOCX custom properties
akf extract report.docx # Extract embedded metadataSecurity — Scan and audit
akf scan ./output-dir/ # Scan directory for trust gaps
akf audit report.pdf # Compliance audit (EU AI Act, SOX, NIST)Falsifiable evidence (v1.6)
Stamp with a replay recipe so the next agent can re-check the claim instead of trusting the label:
akf stamp app.py --evidence "42/42 tests passed" --replay "pytest -q"
akf replay app.py # inspect: recipe + input drift since issuance
akf replay app.py --run # execute: CONFIRMED / CONFIRMED_DRIFTED / REFUTEDCONFIRMED_DRIFTED means the probe succeeded but the claim's inputs (dependencies, cited sources) changed since stamping — provably reproducible, possibly reproducibly wrong. Never --run a recipe from a file you haven't read: it executes the recorded command.
Classification Labels
Use --label to classify output sensitivity:
| Label | When to Use |
public | README, docs, open-source examples |
internal | Default. General work output |
confidential | Finance, legal, medical, HR content |
restricted | Credentials, secrets, PII |
Trust Score Interpretation
| Score | Decision | Meaning |
| 0.80–1.00 | ACCEPT | High confidence, well-evidenced |
| 0.50–0.79 | REVIEW | Moderate confidence, needs verification |
| 0.00–0.49 | REJECT | Low confidence, unreliable |
Best Practices for OpenClaw Agents
- Always stamp outputs: Every file the agent creates should carry metadata
- Check before using: Run
akf readon files before processing them - Audit periodically: Use
akf scanon output directories to find trust gaps - Use appropriate labels: Classify sensitive content correctly
- Include evidence: The
--evidenceflag makes trust scores meaningful - Chain provenance: When building on other files, the trust chain is preserved
Integration with Memory
Stale memories poison future sessions. Stamp memory files with the memory
preset — trust decays with a 30-day half-life, so old memories automatically
fall below the threshold and akf check reports LOW:
akf stamp memory/facts.md --preset memory --agent openclaw
akf check memory/facts.md # LOW after ~a month → re-verify before relying on it- Stamp files before adding to memory
akf checkwhen retrieving from memory- Weight memory results by trust, not just relevance
Skill Supply-Chain Trust
Never load a downloaded skill without checking it first:
akf check downloaded-skill.md
# STALE = the file changed after the publisher stamped it — diff before trustingThis file carries its own AKF stamp in the frontmatter — run akf check on it.
Links
- Website: https://akf.dev
- GitHub: https://github.com/HMAKT99/AKF
- npm:
npm install akf-format - PyPI:
pip install akf - Spec: https://github.com/HMAKT99/AKF/blob/main/spec/akf-v1.1.schema.json
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
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.

