doc/md-import

doc/md-import is a skill for Claude Code, Codex from denn-gubsky/loomcycle. It costs 24 tokens per session (361 once invoked), scanned A, original, Apache-2.0.

Instructions for importing Markdown files into a document made of connected, searchable sections called chunks.

In plain words
What is it for?
Use them to restore exported Markdown with its headings and links, or to split plain notes into meaningful sections before importing.
Why use it?
They help preserve exported document structure and avoid breaking ordinary Markdown into unsuitable sections.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use them to restore exported Markdown with its headings and links, or to split plain notes into meaningful sections before importing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/denn-gubsky/loomcycle/md-import
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add denn-gubsky/loomcycle --skill md-import
Clone the repo
git clone --depth 1 https://github.com/denn-gubsky/loomcycle

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doc/md-import

README.md
[![agentmods](https://agentmods.dev/badge/skills/denn-gubsky/loomcycle/md-import/github.svg)](https://agentmods.dev/skills/denn-gubsky/loomcycle/md-import)
Your own site
<a href="https://agentmods.dev/skills/denn-gubsky/loomcycle/md-import"><img src="https://agentmods.dev/badge/skills/denn-gubsky/loomcycle/md-import/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doc/md-import

Your own site · 80×15
<a href="https://agentmods.dev/skills/denn-gubsky/loomcycle/md-import"><img src="https://agentmods.dev/badge/skills/denn-gubsky/loomcycle/md-import.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00361
Opus 5 $0.00012 $0.00180
Sonnet 5 $0.00005 $0.00072
Haiku 4.5 $0.00002 $0.00036

Measured 9d ago against content hash d20fabcaca15, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

doc/md-import scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bundles/document-agent/skills/doc/md-import/SKILL.md · 35 lines

What it actually says

Markdown import

Two paths, pick by the input:

1. A loomcycle export (round-trip) → import_md

If the Markdown was produced by export_md — it contains <!-- loom: {…} --> comments and maybe a <!-- loom-edges: … --> trailer — use the deterministic op and let the runtime rebuild the structure:

  • New document: Document op=import_md markdown="<the file>" (the first heading becomes the root; pass path: to also name it in the Path tree).
  • Into an existing document: op=import_md document_id=<id> markdown="…" (optionally parent_id=<chunk> to graft it under a specific chunk).

import_md recreates the heading hierarchy, applies each chunk's type/status/ fields, and remaps the edge graph. Chunks get fresh ids.

2. Arbitrary prose / a plain .md → semantic chunking

If the Markdown has no loom metadata (a hand-written file, pasted notes), do NOT use import_md blindly — its chunk boundaries are the heading lines, so a body containing ## lines would be re-chunked. Instead apply the doc/semantic-chunking skill: read the structure and create_chunk each piece with a good title.

After importing

Tell the operator the new document_id and how many chunks were created. They can open it from the Path tree.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 35 lines · 24 tokens per session scan A d20fabcaca15

Subscribe to this mod's changes

doc/md-import is a skill published in the GitHub repository denn-gubsky/loomcycle (13 stars, last pushed yesterday), licensed Apache-2.0. It adds 24 tokens to every session and 361 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pdf-processing

Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.

Tencent/WeKnora · 36 tokens

co-mail-and-drive

Read and send mail from the user's own Gmail or Outlook account, safely stage Gmail draft attachments, send from the agent's own address, manage Outlook contacts, and work with Google Drive files — with co gmail, co outlook, co email, and co gdrive. Use when the user asks about their inbox, an email or draft they want…

openonion/connectonion · 92 tokens

weknora-shared

Use when driving a WeKnora RAG server through the weknora CLI as an agent — authenticating, managing knowledge bases / documents / sessions / agents, running search or chat, or interpreting the CLI's JSON envelopes and exit codes. Read this before any other weknora- skill.

Tencent/WeKnora · 68 tokens

weknora-rag-search

Use when retrieving from or asking questions against a WeKnora knowledge base via the weknora CLI — and especially when unsure whether to use chat, session ask, or search chunks for a given goal.

Tencent/WeKnora · 54 tokens

upload-artifact

Upload a file as a ClosedLoop document (PRD, implementation plan, feature, or template). Reads file content and uploads via MCP without consuming conversation context. Also supports creating new versions of existing documents. Triggers on: "upload artifact", "upload PRD", "upload implementation plan", "upload…

closedloop-ai/claude-plugins · 103 tokens

extract-plan-md

Sync plan.md with plan.json content. MUST be used after ANY edit to plan.json to keep plan.md in sync. Triggers: After editing plan.json with Edit tool (REQUIRED - always sync after edits) User asks to "sync plan.md", "update plan.md", "extract the md from a plan" Converting plan.json to markdown or viewing plan as…

closedloop-ai/claude-plugins · 99 tokens