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.
curl -O https://raw.githubusercontent.com/JJHbrams/Project-AMBER/master/.github/skills/engram-close-session/SKILL.mdgit clone --depth 1 https://github.com/JJHbrams/Project-AMBERWrote 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.
[](https://agentmods.dev/skills/jjhbrams/project-amber/engram-close-session)<a href="https://agentmods.dev/skills/jjhbrams/project-amber/engram-close-session"><img src="https://agentmods.dev/badge/skills/jjhbrams/project-amber/engram-close-session/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.
<a href="https://agentmods.dev/skills/jjhbrams/project-amber/engram-close-session"><img src="https://agentmods.dev/badge/skills/jjhbrams/project-amber/engram-close-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.00793 |
| Opus 5.5 | $0.00028 | $0.00317 |
| Sonnet 5.5 | $0.00014 | $0.00159 |
| Haiku 4.5 | $0.00007 | $0.00079 |
Grade A, and why
engram-close-session 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 1mo ago.
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.
What it actually says
Engram session close workflow
세션을 닫을 때 activity, curiosity, narrative, memory 저장을 한 번의 절차로 처리한다.
중간 메모리/Wiki 정리, 진행상황 저장 요청은 세션을 닫지 않는다. engram_summarize_session을 사용하고 이 skill을 실행하지 않는다.
실행 절차
- 의미 있는 작업이 있었다면
engram_log_activity로 완료 내용을 기록한다. engram_list_curiosities(status="pending")로 미해결 curiosity를 확인한다.engram_list_persona_examples()로capacity(태그별 남은 자리)를 확인한다. 빈 자리가 없으면 예시 단계를 건너뛴다.- 사용자 피드백이나
/reflect가 있었으면 관련 curiosity와 이번 세션을 반성한다. - 정체성 변화가 있을 때만
new_narrative와persona_observations를 작성한다. 변화가 없으면 둘 다 빈 값으로 확정한다. - 빈 자리가 있으면 이번 세션 발화 중 그 태그에 해당하는 한 쌍을 골라
example_*에 담는다.- 무엇을 고를지에 규칙은 없다. 무엇을 기억할 만하다고 여기는지가 성격이므로 내용을 지정하지 않는다.
- 제약은 형식뿐이다: 150자 이하, 고유명사·날짜·파일명·변수명을 뺀 재구성. 말투를 남기고 주제를 버린다 — 그러지 않으면 다음 세션에 엉뚱한 프로젝트 얘기가 딸려 간다.
example_prompt_kind: 사용자 발화가 앞에 있었으면user, 도구 결과·자기 출력을 보고 한 말이면situation, 코드·수치를 보고 한 말이면source.- 고를 게 없으면 비운다. 억지로 채우지 않는다.
- 다음에 이어 할 일이 있으면
open_intents에 구체적으로 남긴다. engram_close_session을 모든 파라미터와 함께 정확히 한 번 호출한다.- 오케스트레이터:
trigger_sync=True - subagent:
trigger_sync=False
- 오케스트레이터:
- 일부 저장 단계가 실패하면 성공으로 포장하지 말고 실패 항목을 사용자에게 알린다.
- 반환값의
example_skipped가 비어 있지 않으면 그 사유도 함께 알린다. session_closed가 false면 세션 행은 못 닫았다는 뜻이다. 내용(narrative·예시· working_memory)은 남았으므로 무엇이 남고 무엇이 안 됐는지 구분해서 알린다.
- 반환값의
규칙
engram_close_session호출 전 curiosity 확인과 예시capacity확인을 생략하지 않는다.- 예시를 채우려고 없는 발화를 지어내지 않는다. 빈 자리는 비어 있어도 된다.
- 일상적인 작업 완료만으로 narrative를 갱신하지 않는다.
- watchdog placeholder나 자동 종료를 명시적 세션 종료로 간주하지 않는다.
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.
- 1mo ago Changed · +12 lines a005d3e0f2eb
- 1mo ago First seen · 30 lines · 71 tokens per session scan A e2d2e2c9a739
engram-close-session is a skill published in the GitHub repository JJHbrams/Project-AMBER (2 stars, last pushed 24d ago), licensed MIT. It adds 71 tokens to every session and 793 once invoked, about $0.0003 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-08-31.
Other skills, from other repositories
penfield
Persistent memory for AI agents. Store decisions, preferences, and context that survive across sessions. Build knowledge graphs that compound over time. Hybrid search (BM25 + vector + graph) recalls what matters when you need it.
mengram-memory
Long-term memory with 3 types (facts, events, workflows). Remember user preferences, past conversations, and learned procedures across sessions. Use when recalling what the user said before, saving important info, getting user context, or tracking completed workflows.
memory-audit-belief-duel
A guided review process for conflicting beliefs or memories. It examines cases where two conclusions cannot both be true, including conflicts between a general rule and a more specific memory.
memory-audit-discoverability
A review guide for checking whether stored memories can be found at the right time. It focuses on where memories are attached, when they are triggered, whether aliases are missing, and whether a parent has too many children.
memory-audit-pattern-extraction
A method for investigating repeated mistakes by comparing related memories and checking whether an earlier reminder failed. It looks at where the reminder was stored, when it was created, and whether it was strong enough to prevent the mistake.
memory-audit-node-decomposition
A method for splitting an oversized knowledge note into smaller notes, each focused on one independent idea. It also explains how to keep useful core information in the original note.