Skip to content
Skillpedia
General coding8.6k · #12388

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.md

Copy 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

Use this skill to help me: https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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 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.
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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills