asi-identity
Skill2 starsChanged 39 days agoApache-2.0View on GitHub
Use when asked who OpenAmer is, to show/verify/refresh its identity, or to stop stale self-descriptions. Renders identity from measured facts.
In this repository303 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a2a-brain-meshlearn-verifySkill
- apple-notesSkill
- apple-remindersSkill
- findmySkill
- imessageSkill
- asi-core-integrationSkill
- asi-integration-architectureSkill
- asi-narrativeSkill
- asi-research-labSkill
- asi-capability-summarySkill
- asi-coreSkill
- auto-env-checkerSkill
- auto-best-practice-from-officialSkill
- auto-competitor-intelligence-ai-codingSkill
- auto-competitor-intelligence-an-aiSkill
- auto-competitor-intelligence-autogpt-improvemSkill
- auto-competitor-intelligence-claudepowered-aiSkill
- auto-competitor-intelligence-contractmd-theSkill
- auto-competitor-intelligence-crush-glamourousSkill
- auto-competitor-intelligence-devin-aiSkill
- auto-competitor-intelligence-electricity-useSkill
- auto-competitor-intelligence-intent-weavingSkill
- auto-competitor-intelligence-jetbrains-idesSkill
- auto-competitor-intelligence-jetbrains-zedSkill
- auto-competitor-intelligence-layerfs-aSkill
- auto-competitor-intelligence-mouse-precisionSkill
- auto-competitor-intelligence-okf-agentSkill
- auto-competitor-intelligence-opencode-aiSkill
- auto-competitor-intelligence-opencode-openSkill
- auto-competitor-intelligence-openhands-agentSkill
- auto-competitor-intelligence-pythonopenaichatSkill
- auto-competitor-intelligence-some-uncomfortabSkill
- auto-competitor-intelligence-stack-overflowSkill
- auto-competitor-intelligence-the-secretSkill
- auto-competitor-intelligence-things-iSkill
- auto-competitor-intelligence-undisclosed-addiSkill
- auto-competitor-intelligence-we-askedSkill
- auto-competitor-intelligence-what-iSkill
- auto-efficiency-learning-advanced-quantizatioSkill
- auto-efficiency-learning-a-visualSkill
- auto-efficiency-learning-edge-aiSkill
- auto-efficiency-learning-efficientqat-llmSkill
- auto-efficiency-learning-finetuning-llmsSkill
- auto-efficiency-learning-ondevice-llmSkill
- auto-efficiency-learning-pushing-theSkill
- auto-efficiency-learning-quantization-techniqSkill
- auto-efficiency-learning-quip-2bitSkill
- auto-efficiency-learning-ragkit-withSkill
- auto-efficiency-learning-show-hnSkill
- auto-efficiency-learning-small-languageSkill
- auto-efficiency-learning-splitquantv2-enhanciSkill
- auto-efficiency-learning-towards-optimalSkill
- auto-efficiency-learning-vptq-extremeSkill
- auto-explain-how-sleep-consolidationSkill
- auto-how-does-energy-efficiencySkill
- auto-internet-learning-40-ofSkill
- auto-internet-learning-ai-agentSkill
- auto-internet-learning-ai-agentsSkill
- auto-internet-learning-amazon-ceoSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
If you catch yourself typing a count into an identity document, stop and make it a measurement instead.
- Very specific: line 51
Do not conflate the two. OpenAmer Agent is the system — the CLI, the tools, the learning fleet.
- Very specific: line 121
Run openamer identity refresh after anything that moves a measured count — new skills, cron changes, a big learning run.
- Very specific: line 133
Counts are
unmeasured, not zero: If a source file is missing, the entry is reported as unmeasured with the path — a missing file is not a … - Very specific: line 135
Repo has
core.autocrlf=true: Never stage with git -c core.autocrlf=false add — that writes a CRLF blob and shows a whole-file phantom …
≈ “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.
Files
OpenAmer's own identity
OpenAmer has its own identity. It lives in code, not in prose, and it is answerable to measurement.
The rule that makes this work
Never write a self-description by hand. Hand-written identity text drifts: it keeps claiming numbers reality no longer supports, and no one notices. The identity is rendered from artifacts read off disk at render time, and every number carries its source path.
If you catch yourself typing a count into an identity document, stop and make it a measurement instead.
Where it lives
| Artifact | Meaning |
OPENAMER_HOME/memory/identity/genesis.json | Immutable origin: name, born, belongs_to, mark, values, boundaries. Written once. |
OPENAMER_HOME/memory/identity/identity.md | The living narrative. Regenerated, never hand-edited. |
OPENAMER_HOME/memory/identity/history.jsonl | One record per refresh — the measured self over time. |
openamer_cli/identity.py | The core: genesis, measurement, rendering, verification. |
openamer_cli/subcommands/identity.py | Parser shim, wired in main.py. |
Commands
openamer identity # print the identity
openamer identity refresh # re-measure and rewrite identity.md
openamer identity verify # check claims against a fresh measurement
openamer identity facts # measured facts as JSON
openamer identity genesis # the immutable origin recordTwo halves, deliberately apart
- Genesis is immutable. Who OpenAmer is does not change with age, so it is written once and never silently overwritten.
- The self-model is measured. Age, episodes, edges, skills, cron fleet — all read at render time. Anything unreadable lands in an explicit "Not measured" section rather than being guessed.
Separation from Mini-OpenAmer
Do not conflate the two. OpenAmer Agent is the system — the CLI, the tools,
the learning fleet. Mini-OpenAmer is its 2B cognition core, which keeps its
own self-model at memory/self_model/current_state.json. The identity core
reads and cites that file; it does not impersonate it.
This distinction matters when reporting capabilities: the agent's tool surface and the core's 9 tools are different things with different counts.
Verification is the point
openamer identity verify re-measures and reports DRIFT when the written
identity claims a number reality no longer supports. That is the whole
mechanism — a stale or self-flattering narrative cannot survive it.
The exit code is the contract (0 / 1)
verify is not a print-only nicety — it is a falsifier you can put in cron or
CI:
- exit 0 — the written identity matches a fresh measurement
- exit 1 — at least one claim is stale
Proven by tampering, 2026-09-21: with identity.md claiming 9999 skills
against a measured 846, verify printed
skills: measured 846 but identity.md does not state it (stale ...) and exited
1; after refresh (14 facts measured) it exited 0 again.
Recipe: prove the gate still fails (run this after touching identity code)
cp identity.md identity.md.bakopenamer identity verify; echo $?→ expect 0- Replace one measured number in
identity.mdwith an absurd value (e.g. the skills count →9999) openamer identity verify; echo $?→ expect 1, with the offending fact namedopenamer identity refresh→ re-measures and rewrites- Restore the backup (or keep the refreshed file), re-run
verify→ expect 0
A gate you have never seen fail is not a gate. Steps 3–4 are the only proof that step 2 means anything.
Order matters: verify BEFORE refresh
In any automated job, verify the document as it stands first, then refresh. Reverse those two and the drift path becomes dead code: refresh repairs the file before verify can object, and the job silently launders a wrong claim every night instead of flagging it.
This was a real bug. The watchdog called refresh_identity() then
verify_identity(), so it could never report anything — a drift injected into
identity.md was rewritten away before the check ran, and the job exited
silent. Verified by injecting drift (skills -> 424242) and watching the
watchdog print nothing.
So the contract is:
verify_identity()— judge the identity as written- report drift if
okis False refresh_identity()— then bring the document back in line
Always test the alarm path of a watchdog. A watchdog that only ever exits silent is indistinguishable from a broken one. Inject the failure it is meant to catch and confirm it fires, then confirm a second run returns to silence.
The lineage check guards the mark: the identity may name borrowed glyphs in order to disclaim them ("my mark is my own, not the caduceus"), so only a non-negated occurrence is flagged as drift. When adding a claim check, always ask whether the honest disclaimer must also pass.
Maintenance
Run openamer identity refresh after anything that moves a measured count —
new skills, cron changes, a big learning run. Then openamer identity verify.
A daily cron does this automatically and stays silent unless it finds drift.
Pitfalls
- Do not hand-edit
identity.md. The next refresh overwrites it. EditGENESISinopenamer_cli/identity.pyfor origin facts, or add a measurement for anything that should track reality. - A corrupt
genesis.jsonis rewritten, not trusted.ensure_genesis()falls through to the in-codeGENESISon a parse error by design. - Counts are
unmeasured, not zero. If a source file is missing, the entry is reported as unmeasured with the path — a missing file is not a zero. - Repo has
core.autocrlf=true. Never stage withgit -c core.autocrlf=false add— that writes a CRLF blob and shows a whole-file phantom diff (350/305 measured). Stage with the default autocrlf and confirm the diff is honest by comparinggit diff --cached --numstatagainstgit diff -w --numstat; they must match.git addalone is correct here.
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.

