config-setup
БесплатноБез исполняемых скриптовНе проверенSet up or tune .codemap/config.json so Codemap focuses on code-relevant parts of the repo. Use when config is missing, boilerplate, noisy, or mismatched to…
от JordanCoin★ 722 звезды на GitHubОб этом скилле
Codemap Config Setup
When this skill is matched at score 100, do this BEFORE the user's task, then continue the task
A score of 100 means a hook found the config missing, empty, malformed, or boilerplate. Fix it first; it takes under a minute and every later Codemap answer depends on it.
- Run
codemap config showto see the current state. If it says missing, codemap is running on auto-detected filters kept outside the repo; runcodemap config initto write a committable.codemap/config.json. - Write or tune
.codemap/config.jsonusing the workflow below: keep source extensions inonly, addexcludefor real noise, setdepthif the tree is wide. - Rerun
codemap .and confirm the tree is dominated by source, not assets. - Verify one known cross-file dependency still resolves with
codemap --importers <file>.
Then return to the user's task. Do not skip this because the task looks small.
Goal
Write or improve .codemap/config.json so future Codemap calls stay focused on the code that matters for this repo.
Use this when
.codemap/config.jsonis missing in a repo the user has set up (.codemap/exists), or the user asked to set codemap up. Never create.codemap/in a repo the user has not asked to set up.- The existing config looks like a bare bootstrap instead of a real project policy
- Codemap output is dominated by assets, fixtures, generated files, vendor trees, PDFs, screenshots, models, or training data
- The project stack is obvious, but Codemap is not prioritizing the right parts of the repo
Workflow
Inspect the repo quickly before writing config
- Read the root and applicable nested
AGENTS.mdfiles before deciding ownership or scope - Read language workspace manifests such as
Cargo.toml; preserve every declared workspace member - 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
- Read the root and applicable nested
Decide whether config is missing, boilerplate, or tuned
- Missing: no
.codemap/config.json - Boilerplate: only generic
onlyvalues, no real shaping, no excludes despite obvious noise - Tuned: contains intentional project-specific includes/excludes, depth, or routing hints
- Missing: no
Write a conservative code-first config
- Keep primary source-language
onlyvalues when they help - Add
excludeentries for obvious non-code noise - Set a moderate
depthwhen the repo is broad - Avoid overfitting or excluding real source directories
- Keep primary source-language
Prefer stack-aware defaults
- Rust: focus
src,tests,benches,examples; de-prioritize corpora, sample PDFs, training data, large generated artifacts - For Cargo workspaces, keep all workspace members'
src,tests,benches, andexamplestrees unless repository evidence explicitly excludes one - 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-prioritizedist,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
- Rust: focus
Preserve user intent
- If config already looks curated, do not replace it wholesale
- Make minimal edits and explain why
Verify immediately
- Rerun
codemap . - If the repo still looks noisy, refine
excludeand possiblydepth - Only rerun
codemap --deps .after tree output looks reasonable - Verify at least one known cross-layer dependency remains discoverable after tuning
- Rerun
Heuristics
- Exclude giant non-code directories before narrowing source extensions further
- Prefer directory exclusions over extension-only exclusions when the directory is clearly not core to the codebase
- Do not exclude tests just because they are large
- Do not exclude docs that are part of routing or subsystem understanding
- Keep the first config conservative; optimize further only if the output remains noisy
Example outcomes
Rust library with large fixture data
{
"only": ["rs", "toml", "md"],
"exclude": ["training-data", "test-pdfs", "*.pdf"],
"depth": 4
}
iOS app with asset bloat
{
"only": ["swift", "m", "mm", "h", "plist", "md"],
"exclude": [".xcassets", "Snapshots", "Screenshots", "DerivedData"],
"depth": 4
}
Output expectations
After tuning config, briefly report:
- Why the old config was missing or too noisy
- What exclusions or depth choices you added
- Whether future Codemap runs should now be materially cleaner
Установить config-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл config-setup?
Set up or tune .codemap/config.json so Codemap focuses on code-relevant parts of the repo. Use when config is missing, boilerplate, noisy, or mismatched to the stack.
Как установить скилл config-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл config-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic