用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/javimosch/supercli --skill treemd命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use this skill when the user wants to search, create, read, or manage Notion pages and databases — search workspace, query databases, create pages, read/write page content as Markdown, manage blocks, users, and files.
Use this skill when the user wants to chat with LLMs from the terminal — OpenAI, Claude, Gemini, local models, RAG, and multi-turn conversations without leaving the shell.
Use this skill when the user wants static analysis for Kotlin code — detect code smells, complexity, style violations, and generate reports for CI pipelines.
基于 SOC 职业分类
正在显示 SKILL.md
| name | treemd |
| description | Use this skill when the user wants to navigate, query, or extract content from markdown files from the command line. |
Markdown navigator with tree-based structural navigation. Supports both interactive TUI and non-interactive CLI modes for listing headings, extracting sections, querying markdown elements with a jq-like language, and outputting JSON.
treemd headings list — List all headings in a markdown filetreemd headings tree — Show heading tree structuretreemd section extract — Extract a section by heading nametreemd doc count — Count headings by leveltreemd doc query — Query markdown elements using jq-like syntaxtreemd self version — Print treemd versiontreemd self query-help — Show query language documentationtreemd _ _ — Passthrough to treemd CLIcargo install treemd
# List all headings
treemd headings list README.md
treemd headings list README.md -o json
# List only level-2 headings
treemd headings list README.md -L 2
# Filter headings by text
treemd headings list README.md --filter "usage"
# Show heading tree
treemd headings tree README.md
# Extract a section
treemd section extract "Installation" README.md
# Count headings by level
treemd doc count README.md
# Query all h2 headings
treemd doc query '.h2' README.md
# Query code blocks
treemd doc query '.code' README.md
# Query links and extract URLs
treemd doc query '.link | url' README.md
# Query with JSON output
treemd doc query '.h2' README.md --query-output json
# Fuzzy match heading
treemd doc query '.h2[Features]' README.md
# Direct children
treemd doc query '.h1 > .h2' README.md
# All descendants
treemd doc query '.h1 >> .code' README.md
# Document statistics
treemd doc query '. | stats' README.md
# Pipe from stdin
cat README.md | treemd headings list
curl -s https://raw.githubusercontent.com/user/repo/main/README.md | treemd doc query '.h'
.h — All headings.h2 — Level 2 headings.code — Code blocks.code[rust] — Code blocks in Rust.link — Links.img — Images.table — Tables.h2[Features] — Fuzzy match.h2["Installation"] — Exact match.h2[0] — First h2.h2[1:3] — Slice.h2 | text — Strip markdown.h2 | text | slugify — URL slug[.h] | count — Count elements[.h] | limit(5) — First 5.h | select(contains("API")) — Filter.h1 > .h2 — Direct children.h1 >> .code — All descendants. | stats — Document statistics. | levels — Heading counts by level. | langs — Code blocks by language