config-setup

A setup tool for Codemap, which creates a configuration file describing which parts of a code repository matter most. A repository is the folder containing a project's source code and related files.

In plain words
What is it for?
Use it when Codemap lacks a configuration or focuses on the wrong files. It inspects the project, identifies its programming stack and noisy directories, and prepares a code-focused .codemap/config.json file.
Why use it?
It reduces noisy code maps caused by generated files, assets, test data, vendor folders, documents, or other material that is not central to the code.

Skill for Claude CodeCodex

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/jordancoin/codemap/config-setup
Any agent
npx skills add JordanCoin/codemap --skill config-setup
Clone the repo
git clone --depth 1 https://github.com/JordanCoin/codemap

Made for: Claude Code, Codex.

Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 628 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 $0.00044 $0.00628
Opus 5 $0.00022 $0.00314
Sonnet 5 $0.00009 $0.00126
Haiku 4.5 $0.00004 $0.00063

Measured 2d ago against content hash 5c63e115f6ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

config-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 2d 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.

.claude/skills/config-setup/SKILL.md · 53 lines

How it starts

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

Codemap Config Setup

Goal

Write or improve .codemap/config.json so future Codemap calls stay focused on the code that matters for this repo.

Use this when

  1. .codemap/config.json is missing
  2. The existing config looks like a bare bootstrap instead of a real project policy
  3. Codemap output is dominated by assets, fixtures, generated files, vendor trees, PDFs, screenshots, models, or training data
  4. The project stack is obvious, but Codemap is not prioritizing the right parts of the repo

Workflow

  1. Inspect the repo quickly before writing config

    • Run codemap .
    • If needed, run codemap --deps .
    • Note the stack markers (Cargo.toml, Package.swift, *.xcodeproj, go.mod, package.json, pyproject.toml, etc.)
    • Identify large non-code directories and noisy extensions
  2. Decide whether config is missing, boilerplate, or tuned

    • Missing: no .codemap/config.json
    • Boilerplate: only generic only values, no real shaping, no excludes despite obvious noise
    • Tuned: contains intentional project-specific includes/excludes, depth, or routing hints
  3. Write a conservative code-first config

    • Keep primary source-language only values when they help
    • Add exclude entries for obvious non-code noise
    • Set a moderate depth when the repo is broad
    • Avoid overfitting or excluding real source directories
  4. Prefer stack-aware defaults

    • Rust: focus src, tests, benches, examples; de-prioritize corpora, sample PDFs, training data, large generated artifacts
    • iOS/Swift: focus app/framework source, tests, package/project manifests; de-prioritize .xcassets, screenshots, snapshots, vendor/build outputs
    • TS/JS: focus src, apps, packages, tests; de-prioritize dist, coverage, Storybook assets, large fixture payloads
    • Python: focus package roots, tests, tool config; de-prioritize notebooks, data dumps, models, fixtures when they overwhelm code
    • Go: focus packages, cmd, internal, tests; de-prioritize generated assets, sample data, vendor-like noise

Read the full file on GitHub · 53 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. 2d ago First seen · 53 lines · 44 tokens per session scan A 5c63e115f6ee

Subscribe to this mod's changes

config-setup is a skill published in the GitHub repository JordanCoin/codemap (685 stars, last pushed 3d ago), licensed MIT. It adds 44 tokens to every session and 628 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

[object Object]

Skill "[object Object]" from microsoft/apm, covering what this package does, getting started, available primitives and included workflows.

microsoft/apm · 8 tokens

using-ao

Catalog of the AO (Agent Orchestrator) ao CLI: spawning workers, managing sessions and projects, sending messages, controlling the shared browser, previewing pages, and daemon control. Use when using the ao CLI, spawning workers, or managing AO sessions in an AO workspace.

Untrivial-ai/agent-orchestrator · 62 tokens

apm-usage

Activate when the user asks about APM (Agent Package Manager): installing, configuring, authoring, or troubleshooting AI-agent packages, dependencies, compilation, MCP servers, policy, or any apm CLI command.

microsoft/apm · 49 tokens

stop-that-shit

Keep coding agents focused on requested and necessary work. Use for bounded changes, review-only tasks, scope creep, speculative hardening, unnecessary hashing or dependencies, repeated audit loops, or when the user invokes Stop That Shit.

lennney/stop-that-shit · 50 tokens

toolset-design

Design and validate new MCP toolsets, tools, and tool changes. Use when planning a new toolset, adding tools to an existing toolset, reviewing a toolset PR, or deciding whether a new tool is warranted. Covers the full lifecycle: eval-first validation, tool design methodology, consolidation patterns, and review…

containers/kubernetes-mcp-server · 69 tokens

sessions

Search and ask questions about coding agent session history across Claude Code, Codex, and Cursor. Use when asking what was worked on, what was tried before, how a problem was investigated across sessions, what happened recently, or any question about past agent sessions. Also use when the user references prior…

slopus/happy · 78 tokens