用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gbencke/dotfiles --skill lsp命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Generates a detailed C4-model architecture document for the current repository: System Context, Container, Component, and Code (function/method) levels, plus a full call graph. Outputs Markdown, self-contained interactive HTML (force-directed SVG call graph, anchor links), and PDF. Use when user says "C4", "generate C4 docs", "document this repo", "architecture document", "call graph of this repo", or invokes /c4.
Query a pre-indexed CodeGraph knowledge graph of the current repo — symbol search, callers/callees, change impact, affected tests, and one-shot area exploration — so you read only the files that matter instead of grepping the tree. Use when asked to "explore this codebase", "who calls X", "what does X call", "what breaks if I change X", "which tests cover these changes", "index this repo with codegraph", or "codegraph <anything>". Pi has no MCP client, so ignore the project's MCP-tool docs and use the CLI below.
Adversarial review of a change: a PR, a branch diff, or a patch file. Runs inline in a single process — blast radius, then per-lens propose → kill → judge — and writes a PR-comment-ready report plus findings.json under .gbencke/adversarial-review/reports/. Spawns no subagents. Trigger: /review-change <pr-url|pr-number|branch|patch-file> [base], "adversarial review of this PR/branch/patch".
基于 SOC 职业分类
正在显示 SKILL.md
| name | lsp |
| description | Structural code analysis, navigation, and diagnostics using ast-grep. |
This skill provides structural code analysis and navigation across many programming languages without requiring a full Language Server (LSP) setup for each language. It uses ast-grep under the hood (and typescript-language-server specifically for TS/TSX).
Requires ast-grep (sg) to be installed in your system PATH. (TS/TSX also requires typescript-language-server).
Python, TypeScript, TSX, JavaScript, JSX, Rust, Go, C, C++, Lua, JSON, HTML, CSS.
lsp_hover(file, line, character)lsp_definition(file, line, character)lsp_symbols(file)lsp_diagnostics(file, rule?, wait_ms?)sgconfig.yml file in the project, or you can pass a specific --rule YAML file. For TS/TSX, it will use typescript-language-server to return standard TypeScript compilation errors.lsp_format(file)ast-grep does not format code itself. This tool just tells you what CLI command to run (e.g., prettier --write <file>)./lsp-statusShows the current ast-grep version installed and lists all file extensions supported by the current detection mapping.