一键导入
codemap-updater
Scan the codebase and update the codemap in .claude/rules/codemap.md. Use when files are added, removed, renamed, or significantly restructured.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scan the codebase and update the codemap in .claude/rules/codemap.md. Use when files are added, removed, renamed, or significantly restructured.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Build and release Tauri v2 desktop app (macOS + Linux installers). Use when building desktop installers, checking desktop release status, or troubleshooting Tauri builds.
Deploy web app to HuggingFace Spaces, check deployment status, verify HF Space logs. Use when deploying the web app, checking HF logs, or troubleshooting HuggingFace Spaces.
Upload ML model weights to GitHub Releases. Use when managing model files, re-uploading weights, or setting up model hosting on GitHub Releases.
Create a new version release — triggers deployment to all targets (HuggingFace Spaces, desktop app, model weights). Use when releasing a new version.
Show project status including git, dependencies, and environment
| name | codemap-updater |
| description | Scan the codebase and update the codemap in .claude/rules/codemap.md. Use when files are added, removed, renamed, or significantly restructured. |
| allowed-tools | Read, Grep, Glob, Bash, Edit, Write |
| disable-model-invocation | true |
Regenerate .claude/rules/codemap.md — a fast-lookup index of all source files.
# All source files (excludes __init__.py, node_modules, venv, tests)
find backend/app -name "*.py" -not -name "__init__.py" | sort
find frontend/src -name "*.ts" -o -name "*.tsx" | grep -v node_modules | sort
find frontend/src-tauri/src -name "*.rs" | sort
ls .github/workflows/
ls backend/app/data/hook_styles/
Use grep to extract exports efficiently — do NOT read entire files:
# Python: classes, singletons, top-level constants
grep -n "^class \|^def \|^[A-Z_].*=" backend/app/**/*.py
# TypeScript: exported hooks, components, classes, constants
grep -n "^export " frontend/src/**/*.ts frontend/src/**/*.tsx
# Rust: pub functions, structs, Tauri commands
grep -n "^pub \|#\[tauri::command\]" frontend/src-tauri/src/*.rs
Only read a file if grep output is insufficient to determine its purpose.
Write to .claude/rules/codemap.md following this format:
# Codemap — Last updated: YYYY-MM-DD
## Backend — Python (FastAPI)
### path/to/file.py — One-line purpose
- Key exports, singletons, constants (1-3 bullets max)
## Frontend — TypeScript/React
### path/to/file.ts — One-line purpose
- Key exports (1-3 bullets max)
## Desktop — Rust (Tauri v2)
### path/to/file.rs — One-line purpose
- Key exports (1-3 bullets max)
## CI/CD — GitHub Actions
### .github/workflows/
- One bullet per workflow file
### backend/app/core/logging.py — Loguru config)audio_service, model_loader, api)wc -l .claude/rules/codemap.md
Must be under 100 lines. If over, cut implementation details first, then consolidate related files.