搜索

PythonReactSEOPDF
GitHub Skill

md-section

Extract a specific section from a Markdown file by heading name. Use this to efficiently read targeted documentation sections instead of loading entire files.

gioe☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Markdown Section Extractor

Extracts a section from a Markdown file by heading name. Returns only the content between the specified heading and the next heading of equal or higher level.

Usage

python3 /Users/mattgioe/aiq/scripts/md_section.py "<file_path>" "<heading_name>"

Arguments

Parse the skill arguments as: <file_path> <heading_name>

Examples:

  • /md-section backend/README.md Installation → extracts the "Installation" section
  • /md-section CLAUDE.md "Quick Reference" → extracts the "Quick Reference" section
  • /md-section docs/architecture/OVERVIEW.md "Data Flow" → extracts nested section

If the file path is relative, resolve it from /Users/mattgioe/aiq.

Behavior

  • Case-insensitive heading match
  • Returns content from heading to next same/higher level heading
  • Returns empty string if heading not found
  • No metadata, just the section content

When to Use

Use this skill when you need to:

  • Read a specific section of documentation without loading the entire file
  • Look up a particular topic in a large Markdown file
  • Reduce token usage by fetching only relevant content

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!