remy-index
Scan source files (Python, C/C++, TypeScript, Rust) and generate semantic logic index via LLM. Index is injected into CLAUDE.md and used by hooks/skills for…
от MyPeacefulValentine★ 28 звёзд на GitHub
Установить remy-index в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Update Logic Index
Updates the semantic understanding of the codebase by scanning source files (Python, C, C++, TypeScript, Rust), extracting symbol signatures, and generating incremental summaries using an OpenAI-compatible LLM API.
Supports multi-language projects. Language is detected automatically by file extension:
- Python:
.py - C:
.c,.h - C++:
.cpp,.hpp,.cc,.cxx,.hh,.hxx - TypeScript:
.ts,.tsx - Rust:
.rs
C/C++ and TypeScript/TSX parsing use regex-based extraction by default (zero external dependencies). Rust parsing requires the tree-sitter grammar (no regex fallback; without it .rs files fail scanning and keep previously indexed rows). Rust impl Trait for Type blocks are recorded as per-file rust_trait_impl facts; the global postprocess derives struct/enum bases from them (cross-file impls included, ambiguous short-name targets merge nothing) and synthesizes trait-impl edges at the impl site. Install tree-sitter for higher C/C++/TS precision and for Rust support:
pip install tree-sitter tree-sitter-c tree-sitter-cpp tree-sitter-typescript tree-sitter-rust
Process
You MUST execute the following steps strictly in order.
Phase 1: Check Configuration
- Check if
.claude/logic_index_configexists. - If missing:
- Create it from
~/.claude/skills/remy-index/default_logic_config.template. - Use
AskUserQuestionto prompt: "Configuration generated. Please review.claude/logic_index_configto exclude unnecessary directories (to save Tokens). Continue?" - Wait for "Yes".
- Create it from
- If exists:
- Read the file content.
- Use
AskUserQuestionto prompt: "Existing configuration found. The scan will run based on these rules (consuming Tokens). Proceed?" - Wait for "Yes".
Phase 2: Execute Scanning
- Check if
.claude/logic_index.dbexists.- If MISSING: Output a first-run notice in the language specified by the loaded
language.mddirective.
- If MISSING: Output a first-run notice in the language specified by the loaded
- Execute the Python indexer:
python "~/.claude/skills/remy-index/run.py" - Wait for completion and inspect the exit code:
0(success): continue normally.2(partial): report the incomplete stages, then continue to Phase 3 so any bootstrap confirmation marker is still handled.1(failed): stop. Do not run injection; dirty paths remain queued for retry.
Phase 2.5: Symbol Summary Confirmation (Trigger: run.py stdout contains SYMBOL_PENDING_CONFIRMATION)
After Phase 2, inspect the stdout produced by run.py:
- Search the captured stdout for the line
SYMBOL_PENDING_CONFIRMATION. This line is emitted only when the effective symbol mode isask(REMY_SYMBOL_SUMMARY_MODE=ask, or downgraded fromautobecause the pending-symbol count exceedsREMY_SYMBOL_AUTO_SIZE_GUARD). When this line is present, run.py has skipped the symbol layer, the file/cluster bootstrap, and the propagation pass; the call graph is already up to date. - If the line is absent: Skip Phase 2.5 entirely.
- If the line is present: Parse the
pending_symbols=Xfield, then useAskUserQuestionin the language specified by the loadedlanguage.mddirective:- Question (zh-CN): "检测到 {X} 个符号尚未生成 LLM 摘要。立即生成?(消耗 LLM tokens,随后自动继续 file/cluster 摘要与传播判定)"
- Question (en): "{X} symbol(s) lack LLM summaries. Generate now? (consumes LLM tokens; file/cluster summaries and propagation follow automatically)"
- Options:
- "Yes — generate now (推荐)" — proceed to step 4.
- "Skip this session" — proceed to step 5.
- "Disable symbol summaries permanently" — proceed to step 6.
- If user chose "Yes": Rerun the full pipeline, overriding the symbol mode to
auto:
Wait for completion (the incremental structural scan is cheap; pending symbols resume automatically), then re-enter Phase 3 with the new stdout.python "~/.claude/skills/remy-index/run.py" --symbol-mode auto - If user chose "Skip": Output a single notice: "Skipped. Summaries stay pending; run
/remy-indexagain later to resume." Then continue to Phase 4 (the graph is usable without summaries). - If user chose "Disable permanently": Output the command for the user to apply manually: "Set
REMY_SYMBOL_SUMMARY_MODE=neverthroughremy-cc config --path <project>." Then continue to Phase 4.
Phase 3: Hierarchical Bootstrap Confirmation (Trigger: run.py stdout contains BOOTSTRAP_PENDING_CONFIRMATION)
After Phase 2, inspect the stdout produced by run.py and decide whether to ask the user about generating file/cluster summaries:
- Search the captured stdout for the line
BOOTSTRAP_PENDING_CONFIRMATION. This line is emitted only whenREMY_SUMMARY_BOOTSTRAP_MODE=ask(explicit or downgraded fromautodue to a missing API key or file count exceedingREMY_BOOTSTRAP_AUTO_SIZE_GUARD). - If the line is absent: Skip Phase 3 entirely.
automode already generated file/cluste
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob - 04
Bash - 05
Edit - 06
Write
Вложенные файлы
- README.md
- README_zh.md
- bootstrap.py
- constants.py
- default_logic_config.template
- impact.py
- index_state.py
- llm_client.py
- llm_judge.py
- migrations.py
- parsers/__init__.py
- parsers/base.py
- parsers/c_cpp_parser.py
- parsers/python_parser.py
- parsers/registry.py
- parsers/rust_parser.py
- parsers/ts_parser.py
- prompts/judge_propagation.md
- prompts/summarize_cluster.md
- prompts/summarize_file.md
- prompts/summarize_symbol_c.md
- prompts/summarize_symbol_python.md
- prompts/summarize_symbol_rust.md
- prompts/summarize_symbol_ts.md
- propagation.py
- retrieval_projection.py
- run.py
- scanner.py
- schema.py
- schema.sql
- struct_scan.py
- summarizer.py
- symbol_names.py
- symbol_selection.py
- synthesizers/__init__.py
- synthesizers/c_fnptr_dispatch.py
- synthesizers/c_fnptr_profiles/EXTENSION_PLAN.md
- synthesizers/c_fnptr_profiles/SCHEMA.md
- synthesizers/c_fnptr_profiles/__init__.py
- synthesizers/c_fnptr_profiles/tee.py
FAQ
Что делает скилл remy-index?
Scan source files (Python, C/C++, TypeScript, Rust) and generate semantic logic index via LLM. Index is injected into CLAUDE.md and used by hooks/skills for dependency analysis. Run after repo init or major changes.
Как установить скилл remy-index?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл remy-index запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…