memory-factcheck

memory-factcheck is a skill for Claude Code from LeeYudok/agents-scaffold. It costs 137 tokens per session (2,855 once invoked), scanned A, original, MIT.

A check that compares the project’s saved agent notes with the current code, database, issue tracker, and files. It identifies notes whose claims are outdated or no longer match reality.

In plain words
What is it for?
Use it to review project memory after major technology or infrastructure changes, when there are many notes, or when notes appear to contradict each other. It reports corrections and possible archives for approval.
Why use it?
Project notes can become wrong after code, infrastructure, or database changes, causing the agent to follow bad instructions. This check helps correct them while avoiding automatic deletion.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to review project memory after major technology or infrastructure changes, when there are many notes, or when notes appear to contradict each other. It reports corrections and possible archives for approval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leeyudok/agents-scaffold/memory-factcheck
Install

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.

Any agent
npx skills add LeeYudok/agents-scaffold --skill memory-factcheck
Clone the repo
git clone --depth 1 https://github.com/LeeYudok/agents-scaffold

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 memory-factcheck

README.md
[![agentmods](https://agentmods.dev/badge/skills/leeyudok/agents-scaffold/memory-factcheck.svg)](https://agentmods.dev/skills/leeyudok/agents-scaffold/memory-factcheck)
Your own site
<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>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,855 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
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.
How audits are shown
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.00137 $0.02855
Opus 5 $0.00068 $0.01427
Sonnet 5 $0.00027 $0.00571
Haiku 4.5 $0.00014 $0.00285

Measured 8d ago against content hash b33ded76794c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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}'` |
.claude/skills/memory-factcheck/SKILL.md · 136 lines

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/ReadSoT 는 코드지 메모리가 아니다
4 데이터/스키마 (테이블·컬럼·건수) 프로젝트의 DB 수단으로 읽기 전용 조회. 카탈로그 추정치(pg_class.reltuples, information_schema.columns)를 먼저 쓰고, 정확한 count(*) 는 그 수치 자체가 쟁점일 때만
5 런타임/호스트 (크론, 서비스, 로그) ssh <host> 'ls …; crontab -l; tail <log>' — 잡의 마지막 로그 줄이 단언의 시점을 정확히 찍어준다

Read the full file on GitHub · 136 lines

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. 8d ago First seen · 136 lines · 137 tokens per session scan A b33ded76794c

Subscribe to this mod's changes

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.