code-structure
БесплатноБез исполняемых скриптовНе проверенOutline a file or package (functions, classes, methods, types, imports, exports) instead of reading it whole. Use before opening an unfamiliar or large file…
Об этом скилле
code-structure
When the question is "list the X in Y", do not Read the whole file. Get an outline first; Read selectively after.
Trigger discrimination
- "list / show / all the methods/classes/exports in ..." -- outline (this skill)
- "where is X defined" / "find calls to X" -- search (rg or ast-grep)
- "how does X work" / "what does X do" -- Read
Tiered approach
ast-grep outline-- the default. One interface across languages, no build or import step, and every text view carries line numbers so you can Read just the range you need afterward. Pass-lto be safe (required for stdin; inferred from extension for paths).- File outline:
ast-grep outline -l go file.go(digest: signatures + member names) - Cheapest survey:
ast-grep outline -l go file.go --view names - Drill one symbol's members:
ast-grep outline -l go file.go --match Visitor --view expanded - Directory's exported surface:
ast-grep outline -l go ./pkg - Filter by kind:
--type struct,function; by name:--match REGEX; public members only:--pub-members - Dependency check:
ast-grep outline -l go file.go --items imports - Machine-readable:
--json=compact(alsopretty,stream)
- File outline:
Compiler/parser-aware tool when you need true export semantics or docstrings, which outline does not carry:
- Go:
go doc -all ./path/to/pkg - Python:
python -m pydoc some.module.path(requires the module to be importable -- deps installed, onPYTHONPATH) - TS/JS third-party:
cat node_modules/<pkg>/dist/index.d.ts-- the declaration file is a pre-made API outline - Java:
javap -p <Class>(requires compiled.classfiles)
- Go:
ctags fallback -- for languages outline's bundled rules don't cover; canonical for C/C++:
ctags -f - file | grep -v '^!' | cut -f1,4 # symbol + kind
Use the outline to decide what to Read, then Read just that section.
Установить code-structure в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-structure?
Outline a file or package (functions, classes, methods, types, imports, exports) instead of reading it whole. Use before opening an unfamiliar or large file to orient, when surveying a package's API surface, or to find where a symbol is defined so you can Read just that range -- any "what's in / list / show me the structure of" need. Not for "where is X used" (search) or "how does X work" (read the body).
Как установить скилл code-structure?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-structure запускает скрипты?
Нет, скилл состоит только из инструкций (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