Project-AMBER: Skill for Claude Code

.github/skills/engram-hook-trust/SKILL.md

engram-hook-trust is a skill for Claude Code from JJHbrams/Project-AMBER. It costs 33 tokens per session (741 once invoked), scanned A, original, MIT.

A safety tool for checking, backing up, and explicitly restoring eight specific Engram event-hook approvals in Codex. It changes no other hooks or approval records.

In plain words
What is it for?
Use it to inspect hook status, create a backup of trusted and enabled hooks, or restore an eligible missing approval after confirming the backup file.
Why use it?
It provides a controlled way to recover missing trusted approvals without overwriting changed, disabled, or untrusted settings.

Skill for Claude Code

Written for Claude Code: UserPromptSubmit hook event. Also seen: mentions Codex.

This is JJHbrams/Project-AMBER's own configuration. It tells Claude Code how to work on Project-AMBER itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Project-AMBER configures →

Reuse

Borrowing it

Nothing to install: this file belongs to JJHbrams/Project-AMBER. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/JJHbrams/Project-AMBER/master/.github/skills/engram-hook-trust/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/JJHbrams/Project-AMBER

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for engram-hook-trust

README.md
[![agentmods](https://agentmods.dev/badge/skills/jjhbrams/project-amber/engram-hook-trust/github.svg)](https://agentmods.dev/skills/jjhbrams/project-amber/engram-hook-trust)
Your own site
<a href="https://agentmods.dev/skills/jjhbrams/project-amber/engram-hook-trust"><img src="https://agentmods.dev/badge/skills/jjhbrams/project-amber/engram-hook-trust/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for engram-hook-trust

Your own site · 80×15
<a href="https://agentmods.dev/skills/jjhbrams/project-amber/engram-hook-trust"><img src="https://agentmods.dev/badge/skills/jjhbrams/project-amber/engram-hook-trust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00741
Opus 5.5 $0.00013 $0.00296
Sonnet 5.5 $0.00007 $0.00148
Haiku 4.5 $0.00003 $0.00074

Measured 2mo ago against content hash abceafc4eea9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

engram-hook-trust scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/engram-hook-trust.mjs, tests/engram-hook-trust.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/engram-hook-trust/SKILL.md · 58 lines

What it actually says

Engram Hook Trust

Use this skill only for the native Codex engram_report_codex_event MCP hooks. It covers exactly: UserPromptSubmit, PreToolUse, PostToolUse, PermissionRequest, Stop, Interrupt, SubagentStart, and SubagentStop. It never manages SessionStart, titles, command hooks, arbitrary servers, or other approval state.

Run scripts/engram-hook-trust.mjs --help first. The script uses Codex app-server APIs and does not parse or rewrite TOML.

  • check is read-only and reports finite status/reason codes. With --backup, it also reports how many snapshot entries are currently recoverable.
  • backup is read-only against Codex. It creates a new immutable backup of the trusted-and-enabled subset only; it never adds an untrusted event.
  • restore requires --confirm --backup <file>. It restores only a missing state record whose live canonical key and generated native definition hash exactly match the backup. It skips already trusted/enabled state and rejects existing untrusted/disabled state, changed definitions, unknown status, or root-mismatched state. An absent record reported as untrusted is eligible only when its unchanged approval was captured in this root's backup.

Never use a backup to manufacture approval for a changed definition, another Codex root, or any hook outside this eight-event allowlist. Do not run restore unless the user explicitly requests that specific restore operation. Show the check result first: deletion alone cannot distinguish Orca's cleanup from intentional user revocation. Never watch/restore automatically or import approvals from config.toml.bak. If an approval disappeared before a valid backup existed, ask the user to review it in Codex /hooks, then make a new backup. Do not run a provider conversation or event hook to perform these tasks.

Typical invocation requires the native Codex executable, not the codex.cmd npm shim: node scripts/engram-hook-trust.mjs check --root "$env:CODEX_HOME" --codex-executable <path-to-codex.exe>. Backups must live under $env:CODEX_HOME/.engram-hook-trust/.

Resolve the installed native executable and the target root explicitly; do not mix the ordinary Codex home and Orca home. Run from the skill directory, or use the absolute script path. Use a new filename for every backup. For example, after setting task-local $trustScript, $trustRoot, $trustExe, and $trustBackup to those verified paths:

node $trustScript backup --root $trustRoot --backup $trustBackup --codex-executable $trustExe
node $trustScript check --root $trustRoot --backup $trustBackup --codex-executable $trustExe
# Only after the user requests this specific recovery:
node $trustScript restore --root $trustRoot --backup $trustBackup --codex-executable $trustExe --confirm

Report partial backup counts honestly. A backup with two records cannot restore the other six hooks. A failed post-write verification may mean a write occurred; inspect with check and stop instead of retrying or rolling back approvals.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 58 lines · 33 tokens per session scan A abceafc4eea9

Subscribe to this mod's changes

engram-hook-trust is a skill published in the GitHub repository JJHbrams/Project-AMBER (1 stars, last pushed 4d ago), licensed MIT. It adds 33 tokens to every session and 741 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.

Related

engram-hook-trust compared with skills from other repositories

engram-hook-trust next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
engram-hook-trustJJHbrams/Project-AMBERSkill14d agoMITA33Claude Code
memory-audit-discoverabilityDataojitori/nocturne_memorySkill1.4k26d agoMITA35Claude Code
memory-audit-pattern-extractionDataojitori/nocturne_memorySkill1.4k26d agoMITA48Claude Code
memory-auditDataojitori/nocturne_memorySkill1.4k26d agoMITA37Claude Code
mengram-memoryalibaizhanov/mengramSkill20721d agoApache-2.0A53Claude Code, Codex
add-connectorsliamh11/DeusSkill516d agoMITA49Claude Code
quiz-mesliamh11/DeusSkill516d agoMITA81Claude Code