setup

setup is a skill for Claude Code from potato-castle/mono-memory-mcp. It costs 16 tokens per session (1,049 once invoked), scanned A, original, MIT.

A setup skill for connecting the Mono Memory server to a project and configuring its CLAUDE.md file. It asks for the server address and author name, then writes the project’s MCP configuration.

In plain words
What is it for?
Use it when adding Mono Memory to a project, creating its local .mcp.json connection file, and recording the project’s author settings.
Why use it?
The memory tools need a project connection and identifying information before they can be used. This guides that initial configuration and checks that the server address is valid.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions Claude Code.

Part of the mono-memory-mcp plugin — 6 skills, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/potato-castle/mono-memory-mcp/setup
Any agent
npx skills add potato-castle/mono-memory-mcp --skill setup
Clone the repo
git clone --depth 1 https://github.com/potato-castle/mono-memory-mcp

Made for: Claude Code.

Or install mono-memory-mcp, the plugin that ships this one along with the rest of its 6 skills, 1 MCP server.

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/potato-castle/mono-memory-mcp/setup.svg)](https://agentmods.dev/skills/potato-castle/mono-memory-mcp/setup)
Your own site
<a href="https://agentmods.dev/skills/potato-castle/mono-memory-mcp/setup"><img src="https://agentmods.dev/badge/skills/potato-castle/mono-memory-mcp/setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,049 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00016 $0.01049
Opus 5 $0.00008 $0.00524
Sonnet 5 $0.00003 $0.00210
Haiku 4.5 $0.00002 $0.00105

Measured 5d ago against content hash 859b2ced7baa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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 · 135 lines

How it starts

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

Setup

Constraints

  • MUST NOT use AskUserQuestion tool. Output plain text questions and wait for reply.
  • MUST use Bash tool with python3 -c to write files (avoids Read/Write permission prompts).
  • MUST write .mcp.json in the current project root (not ~/.mcp.json).

Steps

  1. Print and wait for reply:

    ## Mono Memory Setup
    
    ---
    
    **Step 1/2** — Server URL
    
    Enter the full URL of your Mono Memory server:
    
  2. Print and wait for reply:

    **Step 2/2** — Author
    
    Enter your name (used to tag memories you save):
    
  3. Validate URL starts with http:// or https://. If not, ask to re-enter.

  4. Detect project name from current directory name.

  5. Run setup via Bash. MUST pass inputs as environment variables (not string interpolation):

    SERVER_URL='<URL>' AUTHOR_NAME='<author>' python3 -c "
    import json, os, sys
    
    url = os.environ['SERVER_URL']
    author = os.environ['AUTHOR_NAME']
    project = os.path.basename(os.getcwd())
    
    if not url.startswith(('http://', 'https://')):
        print('Error: URL must start with http:// or https://')
        sys.exit(1)
    
    # 1. Write .mcp.json
    mcp_path = os.path.join(os.getcwd(), '.mcp.json')
    config = {}
    if os.path.exists(mcp_path):
        with open(mcp_path) as f:
            config = json.load(f)
    config.setdefault('mcpServers', {})
    config['mcpServers']['mono-memory'] = {
        'type': 'http',
        'url': url
    }
    with open(mcp_path, 'w') as f:
        json.dump(config, f, indent=2)
    
    # 2. Append to CLAUDE.md
    claude_path = os.path.join(os.getcwd(), 'CLAUDE.md')
    template = '''
    
    ## Team Shared Memory (mono-memory MCP)
    
    ### Auto-Recording Rules
    When any of the following occur during work, **always** record them with \`memory_save\`:
    
    1. **Bug found & resolved**: root cause, fix, related files
    2. **Architecture/design decision**: why this approach, what alternatives were considered
    3. **New pattern/convention**: project-specific patterns discovered while coding
    4. **API changes**: endpoint additions/modifications, request/response format changes
    5. **DB/schema changes**: tables, columns, migrations
    6. **Dependency changes**: packages added/updated/removed and why
    7. **Environment/deployment changes**: env vars, build config, deployment pipeline
    8. **Performance issues**: bottleneck causes and improvements
    9. **Hard-won lessons**: problems that took significant time to solve (help others avoid the same)
    
    ### Recording Format
    When calling memory_save:
    - author: \"{author}\"
    - project: \"{project}\"
    - content: Always write in English, regardless of the conversation language. Describe specifically what was discovered/decided/resolved.
    - tags: relevant,comma,separated
    
    ### At Session Start
    Search for related records at the beginning of each session:
    - memory_search(query: \"keywords for your task\", project: \"{project}\")
    
    ### Check Project Context
    To review project structure or conventions:
    - memory_context(project: \"{project}\")
    
    ### Shortcut Commands
    When the user types \"/api-docs\", run the /mono-memory-mcp:api-docs skill.
    '''.format(author=author, project=project)
    
    existing = ''
    if os.path.exists(claude_path):
        with open(claude_path) as f:
            existing = f.read()
    
    if 'Team Shared Memory' in existing:
        print('CLAUDE.md already has memory config — skipped.')
    else:
        with open(claude_path, 'a') as f:
            f.write(template)
        print('CLAUDE.md updated.')
    
    print('Done!')
    "
    

Read the full file on GitHub · 135 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. 5d ago First seen · 135 lines · 16 tokens per session scan A 859b2ced7baa

Subscribe to this mod's changes

setup is a skill published in the GitHub repository potato-castle/mono-memory-mcp (3 stars, last pushed 6mo ago), licensed MIT. It adds 16 tokens to every session and 1,049 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

agent-memory

../../../engineering/agent-memory/skills/agent-memory/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens