fak: Skill for Claude Code

.agents/skills/memory-compact/SKILL.md

memory-compact is a skill for Claude Code, Codex from anthony-chaudhary/fak. It costs 49 tokens per session (250 once invoked), scanned A, original, Apache-2.0.

A cleanup skill for Claude Code's saved project memory. It keeps the main memory file within the amount loaded at the start of each session, so older content is not silently skipped.

In plain words
What is it for?
Keeping Claude Code's automatic memory compact and structured. It is used when a project's memory file approaches the session loading limit.
Why use it?
It prevents useful memories from disappearing simply because the file is too long. It also organizes the stored information so it remains usable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions Codex.

This is anthony-chaudhary/fak's own configuration. It tells Claude Code and Codex how to work on fak 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 fak configures →

Reuse

Borrowing it

Nothing to install: this file belongs to anthony-chaudhary/fak. 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/anthony-chaudhary/fak/main/.agents/skills/memory-compact/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/anthony-chaudhary/fak

Made for: Claude Code, Codex.

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-compact

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthony-chaudhary/fak/memory-compact/github.svg)](https://agentmods.dev/skills/anthony-chaudhary/fak/memory-compact)
Your own site
<a href="https://agentmods.dev/skills/anthony-chaudhary/fak/memory-compact"><img src="https://agentmods.dev/badge/skills/anthony-chaudhary/fak/memory-compact/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 memory-compact

Your own site · 80×15
<a href="https://agentmods.dev/skills/anthony-chaudhary/fak/memory-compact"><img src="https://agentmods.dev/badge/skills/anthony-chaudhary/fak/memory-compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 250 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, 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 Agent Snooping · line 6
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 11
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00049 $0.00250
Opus 5.5 $0.00020 $0.00100
Sonnet 5.5 $0.00010 $0.00050
Haiku 4.5 $0.00005 $0.00025

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

Security

Grade A, and why

memory-compact 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.

.agents/skills/memory-compact/SKILL.md · 19 lines

What it actually says

Canonical project skill adapter

Load and follow ../../../.claude/skills/memory-compact/SKILL.md. This generated discovery adapter contains no maintained workflow body.

Portability contract

  • The linked canonical SKILL.md is the single semantic workflow body for Claude, Codex, and fak-native loaders.
  • This adapter changes discovery only; it must not fork, summarize, or translate the workflow.
  • Harness-native invocation, permissions, hooks, model routing, and worker launch remain typed adapters outside the semantic body.
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. 1mo ago Changed · +1 lines e8ebc56441b9
  2. 1mo ago First seen · 18 lines · 49 tokens per session scan A b79abbfae8b0

Subscribe to this mod's changes

memory-compact is a skill published in the GitHub repository anthony-chaudhary/fak (42 stars, last pushed today), licensed Apache-2.0. It adds 49 tokens to every session and 250 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

brain-ai-memory

Save, correct and recall project facts, exact state and session handoffs through Brain-AI Memory MCP when it is connected, or set up a project-local connection when requested.

Hahyun-Lee/brain-ai-memory · 39 tokens

federated-context-governance

Govern agent-configuration drift once tool orchestration scales from one developer to a team. Detects where independently-authored context configs (CLAUDE.md-style settings + installed skills) diverge, classifies the fragmentation stage, enforces a FEDERATED org base whose nonnegotiable settings (security…

AnthonyAlcaraz/agentic-graph-rag-skills · 184 tokens

bi-temporal-edge

Bi-temporal edge primitive for agentic graph memory. Tracks two independent time dimensions per relationship: when the relationship was VALID in the domain (validfrom / validuntil) and when the system LEARNED about it (ingestedat). Enables point-in-time queries like "What was the EC2 instance type for…

AnthonyAlcaraz/agentic-graph-rag-skills · 193 tokens

graphiti-incremental-update

Graphiti (Zep) incremental-update pattern (Ch4). When new content arrives, process only the new content — never re-process the entire graph. Pipeline: (1) extract entities from new episode, (2) entity-resolve against existing graph (dedupe by canonical name + alias + fuzzy match), (3) incremental- update — touch only…

AnthonyAlcaraz/agentic-graph-rag-skills · 166 tokens

hierarchical-memory

Three-tier hierarchical memory (Letta / MemGPT pattern) — core / recall / archival. Core holds a small, fast, frequently-accessed working set (e.g. corelimit=2000 tokens). Recall holds raw interaction history for "what did we talk about yesterday" questions. Archival holds effectively unlimited overflow, still…

AnthonyAlcaraz/agentic-graph-rag-skills · 151 tokens

memory-consistency-model-selector

Choose a memory consistency model PER agent-coordination operation — STRONG (linearizable), CAUSAL, READ-YOUR-WRITES, or EVENTUAL — by scoring the operation's requirements (shared authoritative state, conflict intolerance, staleness budget, collaboration, self-session continuity), per Ch4 "Memory consistency models…

AnthonyAlcaraz/agentic-graph-rag-skills · 194 tokens