skills/update-logic-index/SKILL.md
Update the semantic logic index (.claude/logic_tree.md) using LLM AST analysis.
npx skillsauth add till-crazy-tears-us-apart/claude-code-engineering-suite update-logic-indexInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Updates the semantic understanding of the codebase by scanning source files (Python, C, C++, TypeScript), extracting symbol signatures, and generating incremental summaries using an OpenAI-compatible LLM API.
Supports multi-language projects. Language is detected automatically by file extension:
.py.c, .h.cpp, .hpp, .cc, .cxx, .hh, .hxx.ts, .tsxC/C++ and TypeScript/TSX parsing use regex-based extraction by default (zero external dependencies). Install tree-sitter for higher precision (optional):
pip install tree-sitter tree-sitter-c tree-sitter-cpp tree-sitter-typescript
You MUST execute the following steps strictly in order.
.claude/logic_index_config exists.~/.claude/skills/update-logic-index/default_logic_config.template.AskUserQuestion to prompt: "Configuration generated. Please review .claude/logic_index_config to exclude unnecessary directories (to save Tokens). Continue?"AskUserQuestion to prompt: "Existing configuration found. The scan will run based on these rules (consuming Tokens). Proceed?".claude/logic_tree.md exists.
REMY_LANG (zh-CN: "检测到首次运行。即将执行全量代码库扫描,请耐心等待..." / en: "First run detected. Full codebase scan starting, please wait...")python "~/.claude/skills/update-logic-index/run.py"
Determine the injection policy from settings.json (env LOGIC_INDEX_AUTO_INJECT).
ALWAYS if not set.Branching Logic:
Case A: Policy == ALWAYS
LOGIC_INDEX_AUTO_INJECT=ALWAYS python "~/.claude/hooks/doc_manager/injector.py"
Case B: Policy == ASK
AskUserQuestion to prompt: "Logic Index generated. Inject into CLAUDE.md context?"LOGIC_INDEX_AUTO_INJECT=ALWAYS python "~/.claude/hooks/doc_manager/injector.py"
Case C: Policy == NEVER
Requires the following environment variables (injected via settings.json > env):
OPENAI_API_KEY: API Key for OpenAI-compatible service (e.g., Aliyun Bailian).OPENAI_MODEL: Model name (default: glm-5).OPENAI_MAX_WORKERS: Concurrency limit (default: 5).OPENAI_BASE_URL: API endpoint (default: https://coding.dashscope.aliyuncs.com/v1/chat/completions).LOGIC_INDEX_AUTO_INJECT: Controls automated injection of logic_tree.md into CLAUDE.md.
ALWAYS: Automatically update CLAUDE.md after indexing.ASK: Prompt user for confirmation before injection.NEVER: Only generate files, do not inject.LOGIC_INDEX_FILTER_SMALL: Skip LLM summarization for small (< 3 lines) functions without docstrings. (Default: false)Generates:
.claude/logic_index.json: Incremental cache of AST hashes and summaries..claude/logic_tree.md: Readable Markdown tree for context injection.
Last Updated timestamp.Git Commit short hash (if git is available) for version tracking.data-ai
Deep repository analysis with multi-agent parallel perspectives. Requires /init + /remy-index as prerequisites. Produces structured research reports.
tools
Analyze CI/CD failure logs to diagnose build, test, and gate failures. Supports GitHub Actions (gh CLI), local log files, and pasted logs. Produces evidence packets for /remy-patch.
development
Generate persistent unit tests for existing or stub code. Supports post-hoc testing (default) and TDD mode (--tdd). Multi-angle agent analysis at medium/high effort levels.
tools
--- name: remy-secure description: Review branch changes for security vulnerabilities. Multi-stage: regex pre-scan, parallel agents, and false-positive filtering. allowed-tools: Read, Grep, Glob, Bash, AskUserQuestion, Agent argument-hint: "[low|medium|high] [diff_range (optional, e.g. HEAD~3...HEAD)]" disable-model-invocation: true --- # Security Audit Protocol Security-focused review of code changes on the current branch. Identifies exploitable vulnerabilities with high confidence (≥ 8/10),