npx agentspec-cli install 96116260-53ad-4d1e-9d74-96e7186d8be1 --framework ClaudeCode→ .claude/skills/lx/SKILL.md
# lx for exploration
```bash
lx -u -Y pkg/ # skeleton: type defs + function signatures, no bodies
lx -i '*.go' -e '*_test.go' src/ # glob include/exclude filters
lx -n 30 src/ # peek at every file (15 head + 15 tail each)
lx -n 0 src/ # filenames + sizes only, no content
lx --tail 200 app.log # last 200 lines of a log
lx -l src/foo.go # line numbers, for citing locations
lx -u -Y -i '*.{ts,tsx}' -e 'node_modules/' web/ # combining filters
```
Skeletons (`-u` functions, `-Y` types) cover 19 languages (Go, Python,
TypeScript, Java, Rust, C/C++, …); other file types pass through unchanged.
Find the declaration you care about, then Read its body.
`-i`/`-e` are repeatable and additive; excludes win on conflict. Patterns
match basenames and full paths; a trailing slash matches directories, so
`-e 'vendor/' -e 'node_modules/'` drops whole subtrees.
Each path becomes its own output section, and interleaved flags (`-n`,
`--head`, `--tail`, `-l`, `-i`, `-e`, `-u`, `-Y`, …) reset between sections —
put shared flags before the first path.
## Other capabilities
```bash
lx github.com/owner/repo # remote repo without cloning (also gitlab/bitbucket/codeberg)
git ls-files '*.go' | lx -u -Y - # paths from stdin (-0 for NUL-separated)
lx -D docs/ # extract text from PDF/DOCX/XLSX/PPTX
lx -Z -i '*.go' archive.zip # expand a local archive (not needed for repo URLs)
lx --stats -u -Y src/ > /dev/null # token estimate on stderr; redirect drops the bundle
```
For anything not covered here, `lx --help` is the source of truth.
Built on the Agent Skills standard
gabb-code-navigation
Teaches when to use gabb_structure for efficient file exploration. Use gabb_structure before reading large files in supported languages.
by AgentHub Crawler
ask
Route a codebase question to the right tool — structural graph, semantic search, or risk analysis. Use when you need to find or understand code without knowing exact file names.
by AgentHub Crawler
caveman-explore
Read-only repository explorer for cold-start orientation, broad cross-file localization, or when a direct search failed. Skip it when the exact file or symbol is already named. Returns path:line citations only; its reads stay out of main context.
by AgentHub Crawler
Sign in to leave a comment.
CodeSage
Code intelligence engine with structural graph and semantic search. Rust workspace, tree-sitter parsing, ONNX embedding inference, cross-encoder reranking, SQLite storage, MCP interface.
by AgentHub Crawler