km-export-formats

km-export-formats is a skill for Claude Code, Codex from treylom/knowledge-manager. It costs 19 tokens per session (447 once invoked), scanned A, original, MIT.

A set of output templates for exporting notes to Obsidian, Notion, or local Markdown files. Obsidian is a note-taking app that links notes together, while Notion is a workspace for structured pages and databases.

In plain words
What is it for?
Use it to format knowledge-base notes for Obsidian, create structured Notion pages, or save Markdown notes in a local folder.
Why use it?
It keeps exported notes consistent across different tools and preserves useful details such as tags, sources, dates, summaries, and links between notes.

Skill for Claude CodeCodex

Part of the km plugin — 10 skills, 10 commands, 2 agents shipped together

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.

agentmods
npx agentmods add skills/treylom/knowledge-manager/km-export-formats
Any agent
npx skills add treylom/knowledge-manager --skill km-export-formats
Clone the repo
git clone --depth 1 https://github.com/treylom/knowledge-manager

Made for: Claude Code, Codex.

Or install km, the plugin that ships this one along with the rest of its 10 skills, 10 commands, 2 agents.

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 km-export-formats

README.md
[![agentmods](https://agentmods.dev/badge/skills/treylom/knowledge-manager/km-export-formats.svg)](https://agentmods.dev/skills/treylom/knowledge-manager/km-export-formats)
Your own site
<a href="https://agentmods.dev/skills/treylom/knowledge-manager/km-export-formats"><img src="https://agentmods.dev/badge/skills/treylom/knowledge-manager/km-export-formats.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 447 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00019 $0.00447
Opus 5 $0.00010 $0.00224
Sonnet 5 $0.00004 $0.00089
Haiku 4.5 $0.00002 $0.00045

Measured 3d ago against content hash 2f55a7b61643, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

km-export-formats 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 3d 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.

.agent/skills/km-export-formats/SKILL.md · 94 lines

What it actually says

Export Formats

Format specifications for different output targets


Obsidian / Zettelkasten Format

Note Template

---
tags: [{category}, {topic}]
created: {YYYY-MM-DD}
source: {original_url}
type: {zettelkasten/reference/literature}
---

# {Title}

> {One-sentence summary}

## Core Concept

{Main content - one atomic idea}

## Key Points

- Point 1
- Point 2

## Connections

- [[Related Note 1]] - {relationship}
- [[Related Note 2]] - {relationship}

## Source

- Original: {url}
- Author: {if available}
- Date: {if available}

Notion Format

Page Structure

{
  parent: { page_id: "..." },
  properties: {
    title: { title: [{ text: { content: "Note Title" } }] },
    Tags: { multi_select: [{ name: "tag1" }] },
    Source: { url: "https://..." },
    Created: { date: { start: "2026-01-17" } }
  },
  children: [
    {
      type: "heading_2",
      heading_2: { rich_text: [{ text: { content: "Summary" } }] }
    },
    {
      type: "paragraph",
      paragraph: { rich_text: [{ text: { content: "..." } }] }
    }
  ]
}

Local Markdown Format

Same as Obsidian format, saved to local file system with Write tool.

Default output path: ./km-notes/


Detail Level Mapping

Level Notes Detail
1 (Brief) 1-2 Core summary only
2 (Normal) 3-5 Main concepts separated
3 (Detailed) 5-10+ All ideas as atomic notes
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. 3d ago First seen · 94 lines · 19 tokens per session scan A 2f55a7b61643

Subscribe to this mod's changes

km-export-formats is a skill published in the GitHub repository treylom/knowledge-manager (230 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 447 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-09-01.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

baoyu-youtube-transcript

Downloads YouTube video transcripts/subtitles and cover images by URL or video ID. Supports multiple languages, translation, chapters, and speaker identification. Caches raw data for fast re-formatting. Use when user asks to "get YouTube transcript", "download subtitles", "get captions", "YouTube字幕", "YouTube封面"…

JimLiu/baoyu-skills · 107 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens

overleaf-sync

Two-way sync between a local paper directory and an Overleaf project, so ARIS audit/edit workflows stay on the local copy while collaborators edit in the Overleaf web UI. Use when user says "同步 overleaf", "overleaf sync", "推送到 overleaf", "connect overleaf", "Overleaf 桥接", "pull overleaf", "push overleaf", or wants to…

wanshuiyin/Auto-claude-code-research-in-sleep · 97 tokens

pdf-verification-cli

Verify PDF page count and content using command-line tools when Python libraries unavailable.

HKUDS/OpenSpace · 19 tokens