Skip to content

Task files

Task files

A task is a Markdown file in the task folder. MK reads the top-level .md files in that folder. MK skips subfolders, symlinks, and names without a lowercase .md extension.

A task starts with a YAML frontmatter block, followed by a Markdown body:

---
status: TODO
project: MK
epic: SETUP
tags: [backend, go]
depends_on: [design-task, api-task]
---
# Task title
Task description goes here...

Fields

FieldRequiredTypeMeaning
statusFor a card in a columnTextMust match a column in .kanban.yml exactly, with the same case. Otherwise the card goes to OTHER.
projectNoTextShown on the card. Used as a filter.
epicNoTextShown on the card. Used as a filter. A task with no epic is filtered as NO EPIC.
tagsNoListShown on the card. Used as filters.
depends_onNoList of slugsOther tasks this one depends on. A slug is a file name without .md. See Dependencies.
orderNoNumberPosition within the column. MK writes it when you drag a card. Don’t write it by hand.

MK opens and closes frontmatter with standalone --- lines. Files can use LF or CRLF line endings and an optional UTF-8 byte order mark. A --- inside a YAML value or comment stays part of that value or comment.

When MK changes status, order, or tags, it retains the other YAML keys, their order, comments, and scalar styles. The YAML encoder can adjust whitespace and indentation. A metadata-only edit keeps the Markdown body byte-for-byte.

Card titles

MK uses the file name, without .md, as the card title. A title: key in the frontmatter does not change the title. Name the file to match the title you want.

The terminal board also shows the first # Heading in the body below the file name, and the table’s TITLE column uses it. Only ATX headings outside fenced code blocks count. The heading is for display and search only; it does not change the task’s file name or ID.

Special cards

A card may appear outside your configured columns. There are three cases:

  • CONFLICT: the file contains Git conflict markers. Resolve the conflict in the file before saving edits from MK.
  • OTHER: the status is missing or matches no column. Set a valid status.
  • Parse error: the frontmatter is not valid YAML, or a field has the wrong type, such as order: soon. Fix the YAML by hand.

The web board and the terminal board both show these cards. For how to recognize each one and fix it, see Special cards.

Rules for people and agents

If you write task files, follow these rules:

  • Create a task with a status, and leave out order:.
  • Don’t write or renumber order:. MK manages it.
  • To change a task’s state, change its status:.
  • Make status exactly match a column name in .kanban.yml.
  • Keep the frontmatter block at the top of the file, delimited by --- lines.
  • Keep tags short and lowercase.
  • Don’t add CONFLICT or OTHER as a status. Those are MK’s own labels.
  • Don’t write Git conflict markers into a file on purpose. Resolve them first.