For AI agents: the complete documentation index is available at https://tackup.dev/llms.txt, the full documentation bundle is available at https://tackup.dev/llms-full.txt, and this page is available as Markdown at https://tackup.dev/docs/guides/write-a-document.md.

Add a document

A new document needs no sync. The docs mount in a project is a link to the source's folder, so a file you write through it lands in the source, and search and the reader see it at once.

This guide adds on-call.md to the handbook docs of ~/agent-setup, attached to the project app as in Link docs into a project.

1. Find where to write

tack docs target returns the verified folder for new documents: the mount in the project and the source folder it points to. It refuses a mount that is missing, redirected or not Tack's.

Terminal
$ tack docs target --project app
tack docs target · project app · ✓ success

Verified writing target
  mount
                  ~/code/app/.tack/docs/e71e644c-e9f8-42ac-b638-3b7504635ced/handbook
  resource        handbook
  source          agent-setup
  docs directory  ~/agent-setup/handbook
  project root    ~/code/app

With one attached docs resource, that is the target. With several, name the default once, or pass --name handbook each time:

Terminal
$ tack docs configure --project app --default handbook
tack docs configure · app · ✓ success

Docs settings saved for project app.

  attached  handbook
  default   handbook

2. Write the file

Write the file into the mount, or straight into ~/agent-setup/handbook: it is the same folder. Start with frontmatter, so search and the reader can filter it:

---
title: On-call
type: guide
status: active
tags: [operations]
---

# On-call

The on-call engineer answers pages within fifteen minutes and writes an incident report for every
outage that users noticed.

## Handover

Hand over on Monday at 10:00 with the open incidents and anything still flaky.

An agent writes docs the same way: it runs tack docs target, then writes into the mount. Tack creates no document itself and never touches their Git history.

3. Check it

tack check reads a document's figures, icons and components without a browser, and reports each problem by line. Pass the file, or the whole source:

Terminal
$ tack check ~/agent-setup/handbook/on-call.md
tack check · ✓ success

Checks 1 · errors 0 · warnings 0

docs ~/agent-setup/handbook/on-call.md
  Figures (0)
  Icons (0)
  Author components (0)

4. Find it

Terminal
$ tack docs search "handover" --project app
tack docs search · app · ✓ success

  Query     handover
  Project   app · ~/code/app
  Results   1 hit, within the limit of 10
  Coverage  complete

Hits
  1. On-call
     on-call.md · handbook
     type guide · status active · tags operations
     ~/agent-setup/handbook/on-call.md:13
       Handover

When tack docs serve is running, the reader shows the new page as soon as you save it.

5. Commit it

The document lives in the source. Commit it there, such as in ~/agent-setup, and push it if the source is shared: every project that attaches handbook gets it with the next git pull.

Next

  • The write-reader-figures skill, linked while docs is on, teaches your agent to add architecture maps, file trees, walkthroughs and charts that tack check validates.
  • An .mdx page can ask its reader for decisions with <Question>, with the context each one needs and its <Option>s: see Components. The reader answers and comments in tack docs serve, and your agent receives the review.
  • Share a fixed set with a profile, docs included.