Knap is an agent skill for the Knap command line tool, which renders Markdown templates with variables, filters and logic. The assistant renders one note from a JSON object or batch-generates a folder of notes from a CSV, a JSON array or a folder of JSON files.
It also chains with Defuddle, so a web page extracted as JSON can be formatted into a note with a template.
What You Get
- Commands for render, validate and batch
- Template syntax with the yaml_property filter for frontmatter
- A Defuddle to Knap pipeline example
Common Use Cases
- Generating notes from CSV exports
- Formatting extracted web pages into notes
- Checking a template before using it
What Makes It Unique
The skill sends the assistant to the CLI’s own offline help for syntax and filters, so it follows the installed version. It states how output is overwritten and when a batch fails on duplicate names.
Under The Hood
The skill is one SKILL.md with no scripts. The assistant runs the knap command in a shell, or npx knap, which needs Node.js 20 or later. It writes output files with -o or into an output folder, and overwrites only when told to.