Skip to content

Create notes, check the vault, and plan work

Three commands cover day-to-day writing: sklad new puts a note in the right place from its template, sklad check tells you what breaks the rules, and sklad next lists what to work on. All three follow the kinds, fields, and task syntax in the framework definition.

  • A knowledge base with kinds and templates in .kb/; see Getting started.
  • Run the commands inside the knowledge base, or pass --root <dir>.
  1. Pass the kind and a title. sklad fills the kind’s path pattern, renders its template, and prints the path it wrote:

    Terminal window
    sklad new reference "Nftables basics" --in linux
    reference/linux/nftables-basics.md

    The slug comes from the title; override it with --slug. --in sets the directory prefix for a {path} pattern, and --date YYYY-MM-DD replaces today in date placeholders and {{date}}.

  2. Bind placeholders the title does not cover with --bind KEY=VALUE, and set frontmatter with --set KEY=VALUE (the value is YAML). Preview with --dry-run, which prints the content instead of writing it:

    Terminal window
    sklad new ticket "Replace router" --bind handle=know-14 --set project=alpha --dry-run

    A --set value is checked against the field’s type before anything is written; an invalid one fails with exit status 2:

    sklad: `status`: `status` must be one of active, paused, done
  3. For a standalone template, which belongs to no kind, give the target with --path:

    Terminal window
    sklad new session "Planning" --path projects/beta/planning.md

A kind marked new = { unique = true }, such as a daily journal, prints the existing file instead of failing when it already exists.

sklad new writes the file but does not commit it. Commit with git as usual.

  1. Check everything:

    Terminal window
    sklad check

    Each problem is one line with path, line, severity, and rule. The command exits with status 1 when any problem has severity error, and 0 otherwise:

    projects/beta/notes.md:3: warn fm.unknown `owner` is not in the schema
    projects/delta: error dir.entry_missing project directory has no index.md
    projects/gamma.md: error place.both_forms both projects/gamma.md and projects/gamma/ exist
  2. Before a commit, check only what changed against HEAD, untracked files included:

    Terminal window
    sklad check --changed

    Or name files and directories: sklad check projects. The rules still see the whole vault, so a broken link into a named file is still found.

  3. When the definition changes, regenerate the conventions block in the agents file:

    Terminal window
    sklad check --fix

    --fix rewrites the block first, then checks as usual. It applies only when the definition has a [conventions] table.

The rule names, and how to change their severity, are listed in the framework definition.

sklad next prints work items first, then open tasks grouped by date:

Terminal window
sklad next
Tickets
in-progress Example ticket tickets/2026-11-20_example/
next: Run the migration dry run and compare counts.
ready Another ticket tickets/know-12_another/
Tasks · 2026-11-25
overdue 2026-11-20 high File the upstream issue projects/alpha.md:13
in-progress Draft the outline projects/alpha.md:15
upcoming 2026-11-26 Renew the certificate areas/household.md:7
priority highest Plan the next step projects/alpha.md:14
+ 1 stale, 3 later (sklad next --all)

Work items are the units of kinds with a next summary, in an active state, ranked by the order of the state’s active list. Each shows the first line of its summary section.

Open tasks fall into buckets:

Bucket Tasks
overdue Due before today
today Due today, or scheduled on a day within the last 14 days
in-progress In a started open state, with no due date today or earlier
upcoming Due within the horizon, 7 days by default
priority No due or scheduled date, with a priority listed in [tasks] high
stale Scheduled more than 14 days ago
later Everything else, including tasks whose start date is in the future

stale and later show only as counts. --all lists them, along with inactive work items. Adjust the view with --horizon <days>, --limit <n>, --today YYYY-MM-DD, and --in <path> to look at one project or ticket.

The new, check, and next references list every flag.