setup

setup is a skill for Claude Code from HAX-Studio/mnemonica. It costs 65 tokens per session (1,856 once invoked), scanned A, original, MIT.

An installer for Mnemonica, a system that keeps project knowledge in modular documentation files maintained by the coding agent. It adds the setup instructions, knowledge folder, and initial module documents to a project.

In plain words
What is it for?
Use it to initialize Mnemonica in a repository, create its documentation structure, and populate starting module files for an existing codebase.
Why use it?
It gives a project a consistent place and structure for documenting how its code works, reducing the need to rediscover that information later.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the mnemonica plugin — 8 skills shipped together

Good fit Use it to initialize Mnemonica in a repository, create its documentation structure, and populate starting module files for an existing codebase.

Compare 6 skills from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add HAX-Studio/mnemonica
Claude Code
/plugin install mnemonica

Made for: Claude Code.

Or install mnemonica, the plugin that ships this one along with the rest of its 8 skills.

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 setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/hax-studio/mnemonica/setup/github.svg)](https://agentmods.dev/skills/hax-studio/mnemonica/setup)
Your own site
<a href="https://agentmods.dev/skills/hax-studio/mnemonica/setup"><img src="https://agentmods.dev/badge/skills/hax-studio/mnemonica/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.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/hax-studio/mnemonica/setup"><img src="https://agentmods.dev/badge/skills/hax-studio/mnemonica/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,856 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.
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.00065 $0.01856
Opus 5.5 $0.00026 $0.00742
Sonnet 5.5 $0.00013 $0.00371
Haiku 4.5 $0.00006 $0.00186

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

Security

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 3mo 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.

skills/setup/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mnemonica: setup

Install Mnemonica's documentation system into a project: the algorithm block in .claude/CLAUDE.md, the knowledge/ folder, and — for a project that already has code — an initial population of module files. Read ${CLAUDE_PLUGIN_ROOT}/references/knowledge-conventions.md before starting; it is the authority for every convention referenced below.

If the user's invocation includes extra wording beyond the trigger phrase (for example, "set up mnemonica and also use graphify for navigation"), treat it as scoping or preference for this run — it can add a companion tool to consult, narrow attention to part of the project, or similar. It cannot skip a step below or turn a step that never asks permission into one that silently does something riskier than described here.

Step 1: Locate the project root

Use the root of the current git repository (or the current working directory if there is no git repository yet) as the project root. All paths below are relative to it.

Step 2: Check git availability

Run git -C <project-root> rev-parse --is-inside-work-tree (or equivalent). If it fails, this project has no git repository yet. This doesn't block installation, but it does limit what will work afterward:

  • audit-full still works — it falls back to a plain directory scan when there's no git.
  • audit-light cannot work at all — its entire mechanism is diffing between two commits. Without git there is no "since the last checkpoint" to compute.

Mention this to the user in the Step 8 report rather than silently proceeding as if nothing were different, and suggest that even a local-only git init (no remote required) is enough to unlock audit-light later — Mnemonica never requires a remote, only local history.

Step 3: Install the CLAUDE.md block, non-destructively

Read .claude/CLAUDE.md if it exists.

  • If it contains <!-- MNEMONICA:BEGIN --> ... <!-- MNEMONICA:END --> markers, replace only the content between them with the current contents of ${CLAUDE_PLUGIN_ROOT}/skills/setup/assets/claude-md-block.template.md. This is what makes re-running setup safe (it upgrades Mnemonica's own block without touching anything else).
  • If the file exists but has no markers, append the template block to the end of the file, after a blank line. Do not alter, reorder, or remove any existing content — that content belongs to the project and may encode rules Mnemonica knows nothing about (for example, a project-specific instruction to use some other code-navigation tool). Preserving it is not optional.
  • If the file does not exist, create .claude/ and .claude/CLAUDE.md containing only the template block.

Read the full file on GitHub · 128 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 128 lines · 65 tokens per session scan A d587fa021f0c

Subscribe to this mod's changes

setup is a skill published in the GitHub repository HAX-Studio/mnemonica (3 stars, last pushed 3mo ago), licensed MIT. It adds 65 tokens to every session and 1,856 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.

Related

setup compared with skills from other repositories

setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setupHAX-Studio/mnemonicaSkill33mo agoMITA65Claude Code
fresh-startegorfedorov/claude-context-optimizerSkill1377d agoMITA60Claude Code
doc-digestegorfedorov/claude-context-optimizerSkill1377d agoMITA75Claude Code
project-contextegorfedorov/claude-context-optimizerSkill1377d agoMITA81Claude Code
token-checkegorfedorov/claude-context-optimizerSkill1377d agoMITA66Claude Code
session-historyalivecontext/aliveSkill13213d agoMITA74Claude Code
mine-for-contextalivecontext/aliveSkill13213d agoMITA61Claude Code