loading-addressable-markdown
What it does
This skill lets an AI agent open just one heading-based section of a Markdown file rather than the whole document. It is for agents working with long project documents that refer to sections by address.
When to use it
- ✓When a task names a document section by an address such as file.md#heading.
- ✓When you need one part of a long Markdown file without reading the rest.
- ✓When a dashboard or mission file links to specific Markdown sections.
Skill link
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Load only the proposal section of the source cleanup spec in my mission folder.”
5 new skills a week. 1 minute to read.
How it works
It runs a bundled script that finds the heading you asked for, including its child sections, and skips headings that sit inside code blocks.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
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 filefile.md#h2-slug— full H2 span, including child sectionsfile.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 getfor an arbitrary filesystem path; that command resolves context-library refs. - Do not hand-slice headings with
sedor line numbers; the bundled resolver owns span and fence behavior. - Quote addresses in shell commands.
FAQ
Can it load sections from any folder?
Yes, it works on any file path, using the root folder you give it.
What address formats are accepted?
It accepts a whole file, a second-level heading, or a third-level heading under a second-level heading.
Why not cut the file with sed?
The skill says the bundled script handles section and code-block edge cases correctly, so manual slicing is risky.
Details
Original description by the author
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.
repo: mvschwarz/openrig
Popularity
- GitHub stars
- 8.6k
- Ranking position
- #12388
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-operated-software
8.6kHelps your agent design, build or debug an ongoing app whose live backend includes AI agents, such as a Markdown or JSON agent control plane.
agent-operated-workflows
8.6kHelps your agent decide whether a bounded procedure should be run by an AI agent or by ordinary code, and how to resume it from verified evidence.
applying-a-permission-policy
8.6kHelps your agent set up the command permissions an AI coding agent uses during team setup, so routine commands run with fewer approval prompts.
claude-compaction-restore
8.6kHelps a Claude Code agent rebuild its working picture after its context is compacted, using a saved restore map, its transcript and the files it touched.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.