Skip to main content

loading-addressable-markdown

Use when a mission, slice, dashboard, or task references Markdown as path#h2-slug or path#h2-slug/h3-slug outside the OpenRig context-pack library.

来源信息

仓库
mvschwarz/openrig
最近来源活动
2026年10月2日 01:22
检测到的 SKILL.md 语言
英语
星标
8,552
Forks
706

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
loading-addressable-markdown
description
Use when a mission, slice, dashboard, or task references Markdown as path#h2-slug or path#h2-slug/h3-slug outside the OpenRig context-pack library.
# Loading Addressable Markdown ## Overview Load exactly one addressed Markdown section from any filesystem tree. The resolver mirrors OpenRig's shipped H2/H3 grammar without requiring the file to live in the context library. ## Use Run the bundled script. Relative file references resolve from `--root`; without it they resolve from the current directory. ```bash node ~/.agents/skills/loading-addressable-markdown/scripts/resolve-markdown.mjs \ --root /path/to/mission \ 'slices/09-source-cleanup/SPEC.md#proposal' ``` The accepted forms are: - `file.md` — whole file - `file.md#h2-slug` — full H2 span, including child sections - `file.md#h2-slug/h3-slug` — full H3 span Slugs are lowercase; Markdown emphasis/code markers are removed; each other non-alphanumeric run becomes `-`. Duplicate or missing paths fail loudly. Headings inside fenced code blocks are ignored. ## Common mistakes - Do not use `rig context get` for an arbitrary filesystem path; that command resolves context-library refs. - Do not hand-slice headings with `sed` or line numbers; the bundled resolver owns span and fence behavior. - Quote addresses in shell commands.
在 GitHub 查看