Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add LeeYudok/agents-scaffold --skill memory-factcheckgit clone --depth 1 https://github.com/LeeYudok/agents-scaffoldWrote 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/leeyudok/agents-scaffold/memory-factcheck)<a href="https://agentmods.dev/skills/leeyudok/agents-scaffold/memory-factcheck"><img src="https://agentmods.dev/badge/skills/leeyudok/agents-scaffold/memory-factcheck.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Rogue Agent · line 62 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00137 | $0.02855 |
| Opus 5 | $0.00068 | $0.01427 |
| Sonnet 5 | $0.00027 | $0.00571 |
| Haiku 4.5 | $0.00014 | $0.00285 |
Grade A, and why
memory-factcheck scanned grade A with 1 finding 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 8d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
| 2 | **경로/URL** (스크립트 위치, 배포 경로, 엔드포인트) | `ls`, `test -f`, `curl -s -o /dev/null -w '%{http_code}'` | How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
메모리 사실 검증 (Memory Fact-Check)
원형: leeyudok/doksam-skills 의 동명 스킬. 템플릿 동봉용으로 의도적 분기 — 자동 동기하지 않으며, 좋은 개선은 수동 체리픽.
메모리는 부패한다. 쓸 때는 사실이었어도 코드·스키마·인프라가 움직이면 거짓이 된다. 썩은 메모리는 없느니만 못하다 — 에이전트가 그걸 읽고 자신 있게 틀린 행동을 한다.
이건 구조 위생 점검이 아니다. 고아 파일·중복 항목·인덱스 비대·깨진 내부 링크는 전부 메모리 파일들끼리 비교하는 검사다. 이 스킬은 메모리를 그것이 서술하는 실제 세상과 비교한다 — 코드, 데이터베이스, 이슈 트래커, 파일시스템. 형식이 완벽하고 인덱스도 멀쩡하고 이번 주에 커밋된 메모리가 내용은 완전히 거짓일 수 있다.
자동 폐기는 금지한다. 무엇이 죽었는지는 원천 대조로만 판정 가능하고 사고 교훈의 유실 비용이 크다. 그래서 반자동 — 정정은 자유롭게, 아카이브는 승인 후, 삭제는 절대 금지.
1. 위치 확인·인벤토리
메모리 세트를 찾는다. 우선순위:
- 프로젝트 지시문(
AGENTS.md/CLAUDE.md)이 선언한 경로 — 선언이 모든 기본값을 이긴다 - 레포의
.claude/memory/(팀 공유·커밋됨) - 호스트의 프로젝트별 메모리 디렉터리(예:
~/.claude/projects/<slug>/memory/)
파일마다 frontmatter(name/description/type)와 최종 수정일(git log -1 --format=%cs -- <파일>, 미커밋이면 stat)을 수집한다. 인덱스 파일(MEMORY.md)이 있으면 함께 감사하되
인덱스는 메모리가 아니다.
개인 파일은 범위 밖 — 프로젝트가 개인으로 표시한 것(user_*.md 등)은 소유자 것이므로
손대지 않는다.
대량 읽기: 메모리 50개를 한 번에 컨텍스트로 부으면 툴 출력 상한에 걸리고 예산만 태운다.
########## <파일명> 헤더를 붙여 스크래치 파일 하나로 합친 뒤 페이지 단위로 읽는다. 훑지 말
것 — 썩은 단언은 대개 멀쩡한 문단 안의 한 구절이다.
2. 핵심 단언 추출
파일마다 행동을 바꾸는 단언 1~3개만 고른다. 서술·배경·근거는 무시한다. 메모리의 부패 여부는 실행 가능한 단언에만 달려 있다.
핵심 단언의 모습: "X 는 경로 P 에 있다" · "테이블 T 는 N 행이다" · "#N 은 아직 열려 있다" · "기능 F 는 아직 없다" · "라이브러리 L 은 미설치다" · "이 건은 아직 처리 대기다" · "확인은 명령 C 로 한다".
3. 원천과 대조
싸고 수확 많은 것부터 돈다. 실무상 아래 순서가 유효하다 — 이슈 상태는 API 한 번인데 stale 을 가장 많이 잡는다. 작업 중에 메모리를 쓰고, 작업이 끝난 뒤 아무도 그 메모리를 고치러 돌아가지 않기 때문이다.
| 순서 | 단언 유형 | 검증 방법 |
|---|---|---|
| 1 | 이슈/PR 상태 ("#N 열림", "#N 대기", "결정 대기") | forge CLI/API — gh issue view N --json state / glab api projects/<enc>/issues/N. 한 루프로 일괄 조회 |
| 2 | 경로/URL (스크립트 위치, 배포 경로, 엔드포인트) | ls, test -f, curl -s -o /dev/null -w '%{http_code}' |
| 3 | 코드 (파일/클래스/설정 존재, 동작 방식) | 현재 트리 grep/Read — SoT 는 코드지 메모리가 아니다 |
| 4 | 데이터/스키마 (테이블·컬럼·건수) | 프로젝트의 DB 수단으로 읽기 전용 조회. 카탈로그 추정치(pg_class.reltuples, information_schema.columns)를 먼저 쓰고, 정확한 count(*) 는 그 수치 자체가 쟁점일 때만 |
| 5 | 런타임/호스트 (크론, 서비스, 로그) | ssh <host> 'ls …; crontab -l; tail <log>' — 잡의 마지막 로그 줄이 단언의 시점을 정확히 찍어준다 |
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.
- 8d ago First seen · 136 lines · 137 tokens per session scan A b33ded76794c
memory-factcheck is a skill published in the GitHub repository LeeYudok/agents-scaffold (25 stars, last pushed 9d ago), licensed MIT. It adds 137 tokens to every session and 2,855 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
token-optimization
Use when the user says 'token optimization', 'save tokens', 'context window', 'reduce tokens', 'token stack', or 'TokenStack', or asks about extending context window capacity. Covers TokenStack, the built-in compression proxy that shrinks Claude Code tool output before it reaches the Anthropic API. Do NOT use for…
compress
Use when the user says 'tokenstack', 'compression', 'token savings', 'proxy status', or asks about context window usage.
state
Use when the user says 'update state', 'project state', 'where was I', or at session start to load current context.
grimoire
Use when the user says 'update context', 'update claude', 'save library', or after significant project changes.
report
Writes the session final report to a file, then prints only the path and a one-line summary. Fires when the prompt contains "Report per memstack:report", and also when the prompt begins with a standing trigger configured through MEMSTACKREPORTONTASKPROMPTS or MEMSTACKREPORTTRIGGERS. Dormant otherwise.
catchup
Restore context after /clear by summarizing recent work and project state.