knap

Featured

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.

Data & Documents 53,151 stars 3778 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Knap Use Knap CLI to render Markdown templates with variables, filters, and logic. Check availability with `knap --help`. If it is missing, explain that Knap requires Node.js 20 or later and offer installation with `npm install -g knap` or execution with `npx knap`. Do not claim a template was rendered if the tool is unavailable or returns an error. Run `knap --help` for available commands and options. Discover the language through the CLI's offline reference: ```bash knap help syntax knap help filters knap help filter date knap help tags knap help tag for ``` Use the lists to find names, then request individual help for syntax, parameters, and examples with expected output. ## Usage Render a template with JSON variables: ```bash knap render template.md --data article.json -o note.md ``` Supply a template and data inline: ```bash knap render -t '# {{ title | trim }}' --data-json '{"title":"Hello"}' ``` Override a variable or pipe JSON data: ```bash knap render template.md --data article.json --set 'title=Custom title' cat article.json | knap render template.md --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 de...

Details

Author
obsidianmd
Repository
obsidianmd/obsidian-skills
Created
10 months ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category