Skip to content
SkillModel-led875 tokens in use

Knap

Render Markdown notes from JSON or CSV data with Knap templates, one file or hundreds.

53,311 stars on the repository MIT Licenseobsidianmd/obsidian-skills · plugins/obsidian/skills/knap
npx skills add https://github.com/obsidianmd/obsidian-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing Knap costs

50tokens idle
875tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

shelldetectednetworkdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter12/15
  • Structure12/25
  • Examples12/15
  • Output15/15
  • Size15/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 15

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity100
  • Maintenance84
  • Community60
  • Maturity32
  • Momentum40

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.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers