# knap

> Claude/Codex skill by [@kepano](https://omgskills.com/library/kepano/index.md) · 49k stars · Updated 2026-09-15

Render Markdown from templates and structured data using Knap CLI. Use when the user asks to apply a Knap template, turn JSON or CSV data into notes, batch-generate Markdown files, or format Defuddle output into a note.

Tags: agents, agentskills, bases, claude, clawdbot, cli, codex, defuddle, hermes, jsoncanvas, knap, markdown, md, obsidian, openclaw, opencode, skills

## Install

```sh
git clone https://github.com/kepano/obsidian-skills /tmp/obsidian-skills && ln -s /tmp/obsidian-skills/skills/knap ~/.claude/skills/knap
```

## From README

Knap Use Knap CLI to render Markdown templates with variables, filters, and logic. If not installed: npm -g knap (requires Node.js 20 or later). Alternatively, use npx knap. Run knap --help for available commands and options. Discover the language through the CLI's offline reference: Use the lists to find names, then request individual help for syntax, parameters, and examples with expected output. Render a template with JSON variables: Supply a template and data inline: Override a variable or pipe JSON data: Data must be a JSON object; its properties become template variables. --set overrides literal top-level keys with strings. Use JSON for nested objects, arrays, numbers, and booleans. Choose one template source (file, -t, or stdin) and one data source (--data or --data-json). Only one input can read stdin. Without a template file or -t, Knap reads the template from stdin. Output defaults to stdout.

## Links

- HTML page: https://omgskills.com/skills/kepano/obsidian-skills/knap/
- GitHub: https://github.com/kepano/obsidian-skills
- Author: [@kepano](https://omgskills.com/library/kepano/index.md)

## More from this repo

- [obsidian-markdown](https://omgskills.com/skills/kepano/obsidian-skills/obsidian-markdown/index.md) — Used to create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other...
   - [@kepano](https://omgskills.com/library/kepano/index.md) · 49k stars
- [defuddle](https://omgskills.com/skills/kepano/obsidian-skills/defuddle/index.md) — Extract clean Markdown from HTML pages with Defuddle CLI.
   - [@kepano](https://omgskills.com/library/kepano/index.md) · 49k stars
- [json-canvas](https://omgskills.com/skills/kepano/obsidian-skills/json-canvas/index.md) — Used to create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections.
   - [@kepano](https://omgskills.com/library/kepano/index.md) · 49k stars
