Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add choiyounggi/groundwork/plugin install memory-loopWrote 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/choiyounggi/groundwork/setup)<a href="https://agentmods.dev/skills/choiyounggi/groundwork/setup"><img src="https://agentmods.dev/badge/skills/choiyounggi/groundwork/setup/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/choiyounggi/groundwork/setup"><img src="https://agentmods.dev/badge/skills/choiyounggi/groundwork/setup.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.00047 | $0.01555 |
| Opus 5.5 | $0.00019 | $0.00622 |
| Sonnet 5.5 | $0.00009 | $0.00311 |
| Haiku 4.5 | $0.00005 | $0.00155 |
Grade A, and why
setup 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.
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.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
memory-loop: setup
Walk the user through first-time setup, in this order. Every step is optional — respect a "skip".
1. Identity
Run the identity skill flow: offer the one-time name setup (set or decline).
See that skill for the schema and the confirmation rule.
2. HABITS.md
The habit-distillation frame is two files — rules that load every session, and the case records they point to, which do not:
~/.claude/groundwork/HABITS.md (imported into every session — budgeted)
~/.claude/groundwork/HABITS-CASES.md (on demand, via [Cnn] pointers)
~/.claude/groundwork/HABITS-ARCHIVE.md (retired rules; created when first needed)
The habit file carries a budget — 8000 bytes / 24 rules by default — that
habits-budget-guard.sh enforces at the write. Mention it when you show the
file: the cap is what keeps an always-loaded file affordable, and the habit
skill explains how to make room.
- If they do not exist, copy the templates:
mkdir -p ~/.claude/groundwork cp "${CLAUDE_PLUGIN_ROOT}/templates/HABITS.md" ~/.claude/groundwork/HABITS.md cp "${CLAUDE_PLUGIN_ROOT}/templates/HABITS-CASES.md" ~/.claude/groundwork/HABITS-CASES.md - If either already exists, never overwrite it — it holds the user's
accumulated habits. Because of that, re-running this step is also the
migration path for a HABITS.md that predates the two-file layout: the cases
file gets created, the habit file is left exactly as it is. (The
habitskill describes how to move the prose across.)
2b. OUTPUT.md
A short output-style rule file — ELI5 plainness, next action first, core only, easy to scan, and a list of what must never be trimmed (evidence, repro commands, error text). Its goal is less reading time, less generation time, fewer tokens.
Unlike the habit files, this one has two parts: the user's own rules at the top, and one managed block that mirrors the plugin template. The sync script creates the file if it is missing, and otherwise replaces only the managed block (a file from before 2.3.0 has no block: the user's text is kept and the block is appended). It writes a backup next to the file before any change and prints one line saying what it did:
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.
- 2mo ago Changed · +12 lines 747645bb1e6c
- 2mo ago Changed · +26 lines · +16 tokens per session 31994792d876
- 2mo ago Changed · +3 lines f5ddc4ca9975
- 2mo ago Changed · +19 lines 24c4a6b35712
- 3mo ago First seen · 80 lines · 31 tokens per session scan A 8c4e4b98ee9d
setup is a skill published in the GitHub repository choiyounggi/groundwork (3 stars, last pushed 18d ago), licensed MIT. It adds 47 tokens to every session and 1,555 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-31.
setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setupchoiyounggi/groundwork | Skill | 3 | 18d ago | MIT | A | 47 | Claude Code |
| reflectsneg55/agent-starter | Skill | 77 | 4d ago | MIT | A | 37 | Claude Code |
| remembersneg55/agent-starter | Skill | 77 | 4d ago | MIT | A | 38 | Claude Code |
| dreamsneg55/agent-starter | Skill | 77 | 4d ago | MIT | B | 27 | Claude Code |
| siftxobotyi/cc-foundry | Skill | 23 | 3d ago | MIT | A | 52 | Claude Code |
| audit-contextMalo-T/claude-toolbelt | Skill | 2 | 4d ago | MIT | A | 249 | Claude Code |
| handoffMalo-T/claude-toolbelt | Skill | 2 | 4d ago | MIT | A | 151 | Claude Code |