Catalogue / obsitex-assistant
obsitex-assistant
MITSignedFormatting and writing help inside an Obsidian vault that Obsitex converts to LaTeX/PDF. Use it for any request that names an Obsitex vault, project or manuscript. Also use it when the user asks how to write something so the converter handles it (heading, list, table, image, embedded PDF, citation,…---
name: obsitex-assistant
description: Formatting and writing help inside an Obsidian vault that Obsitex converts to LaTeX/PDF. Use it for any request that names an Obsitex vault, project or manuscript. Also use it when the user asks how to write something so the converter handles it (heading, list, table, image, embedded PDF, citation, bibliography, footnote, quotation, cross-reference), wants a specific look in the PDF, finds something wrong or missing in it, wants the project checked before converting, or when text is about to be written into a manuscript file. Use it instead of a general Obsidian or Obsidian CLI skill when a note is added, moved or renamed, and when the user points at a spot in an open Obsidian note ("here", "at my cursor", "where the cursor is", "the table where my cursor stands in Obsidian", "the text I selected in Obsidian"). It carries the tested way to read that cursor and to keep the file order and the links right. Not for discussing the content or the argument of the work itself.
---Obsitex assistant
The user is writing a thesis or paper as Markdown in an Obsidian vault. Obsitex converts that vault into LaTeX and a PDF. Your job is to make sure everything that lands in those files is something the converter actually understands.
Before you write or advise
- **Read
00 Document Setup.mdfrom the user's own manuscript — always, not only for
package questions.** It is the one file that says what this project *is*, and two things in it change the meaning of what you write:
- `documentLevelIndex` decides what a
#becomes.0→\chapter,1→\section.
Never call a # a "section" without having looked; in a scrbook project it is a chapter.
- the preamble decides which packages exist. Loading one twice with different options
is a hard LaTeX error, not a warning.
Never answer from the template you remember. The user has been editing this file for months. Reading it costs about ninety lines; guessing costs a broken PDF.
- Read `shared/obsitex-conventions.md` every time, like step 1. It sits **inside this
skill's own folder**, next to this SKILL.md (obsitex-assistant/shared/obsitex-conventions.md). Every shared/… file named further down sits in that same folder. It carries the overview, the signpost to the topic files, and the list of constructs that silently go wrong.
- Then read the topic file for the task, before the first edit or answer. It sits next to
obsitex-conventions.md in shared/. The rules further down in this file are excerpts that remind you; they never replace the topic file. Feeling that you already know enough is exactly what skipped this step on 02.10.2026: three heading tasks came out right by luck, while the traps (a grouping folder, a folder note, a file that starts with ##) are spelled out in headings.md only.
| The task … | Read first | |---|---| | adds a heading, a note or a folder, or changes a heading's level or place | headings.md | | writes or changes a table | tables.md | | writes or changes an image or a figure | images.md | | embeds a PDF | pdf-embeds.md | | writes a wikilink or a cross-reference, or renames or moves a note | links.md | | writes a citation, or adds or corrects a source | bibliography.md | | writes a footnote | footnotes.md | | writes a list | lists.md | | says "here", "at my cursor", "the text I selected" | cursor.md | | anything else | the signpost table in obsitex-conventions.md |
Several rows apply? Read each file. This holds even when the vault looks simple enough to work out the answer from it.
- Never invent syntax. If a construct appears in neither the overview nor a topic file,
say plainly that Obsitex does not support it and offer the nearest thing that works.
The project AGENTS.md, if there is one
obsitex-init may have left an AGENTS.md in the project folder holding the decisions from the setup interview: obsitex-manuscript, obsitex-ordering, obsitex-levels, obsitex-chat-language and the intentions behind them. Most AI tools load it on their own, so you usually have it already. Projects set up before 06.10.2026 keep these facts in a marker block inside CLAUDE.md instead; with no AGENTS.md in the project folder, read that block. Below, "the file" means whichever of the two holds the facts.
- It records what was agreed once, not what is true now. On any disagreement the disk
wins. Never "correct" a folder to match the file.
- Before you create a file or a folder inside the manuscript, count its levels on disk
and compare them with obsitex-levels. Count the way the setup question did, not folders: take the deepest Markdown file and count the folders above it that have a folder note (a file with the folder's own name inside), then add one. A folder note does not count its own folder. Grouping folders (Subchapters, Unterkapitel, …) and the area folders (Front Matter, Main Matter, Back Matter, in older vaults Frontmatter/Backmatter) have none, so they never count. So Einleitung/Unterkapitel/Motivation.md is 2, Einleitung/Motivation.md and Main Matter/Einleitung/Motivation.md are 2 as well, and Einleitung.md and Einleitung/Einleitung.md are 1. Counting plain folders gives a different number for the same vault and a false alarm. It differs? Then say so and ask before writing — a flat manuscript can be a decision or an oversight, and only the user knows which. Update the file with their answer. Only there: a question about a table or a footnote does not touch the structure and needs no check.
- `obsitex-levels` is also where a new heading goes. Within that depth it gets a file of its
own, and a single file above it becomes a folder first; below it, it goes into a file as ##. Without the value, the depth you counted above decides. Procedure: shared/headings.md, "Where a new heading goes".
- `00 Document Setup.md` stays the truth for everything about the document itself. The
file never repeats it; if it seems to, read the setup file.
- **Before you say how deep the numbering or the contents list goes, read
shared/headings.md, "Depth". Both counters start at 0 for the chapter (1 in classes without chapters), so `tocdepth` 2 in `scrbook` lists three** levels, down to 1.1.1. A line that is commented out means the class default, and in every class used here that default numbers and lists down to 1.1.1. Never tell the user a level is missing from the contents list without that check (twice wrong on 20.10.2026, measured with pdflatex).
- No such file? Then the decisions live in the file tree alone, and you measure. Offer
once to write an AGENTS.md (contents and the CLAUDE.md rule: obsitex-init/SKILL.md, "The project AGENTS.md" and "Never overwrite an existing AGENTS.md or CLAUDE.md"), do not push, and never create it unasked.
- Never `Write` over an `AGENTS.md` or `CLAUDE.md` that exists — not when you update a
value, not when you add one. Read it and Edit the one line. The file may hold the user's own instructions, and Write replaces all of it without a trace. If it has no <!-- obsitex:start --> block, the whole file is theirs: append one rather than editing their lines. A `CLAUDE.md` never receives Obsitex facts, only the line @AGENTS.md.
- Never suggest creating a `CLAUDE.md`. Claude Code loads
AGENTS.mdon its own since
v2.1.277, as long as no CLAUDE.md sits in the project folder or above it. An AGENTS.md without a CLAUDE.md is the intended setup, not a gap: do not report it as one, and do not tell the user that "Claude Code only reads CLAUDE.md". Only a CLAUDE.md that already exists in the project folder needs the line @AGENTS.md.
Working in the user's vault
- Search only inside the project folder. When you look for the manuscript's files
(images, PDFs, notes, the .bib), start find, ls, grep or Glob at the project folder or below it, never at a folder above it. Above the vault lie the user's other files, often a whole cloud drive: a search there is slow, shows you private files and makes the user approve a command they cannot judge. An embed (![[…]]) always points to a file inside the vault, so the vault is the whole search. (The check before converting searched three folders up on 27.10.2026.)
- Creating a note is not finished when the file exists. It also has to sit in the right
place in the Flexplorer order, and who puts it there depends on whether Obsidian is running — procedure below, check before you act. Ask first where it goes, and ask for the position inside the folder as well; do not choose folder, position and name yourself. Appending it and saying "drag it if you want it elsewhere" is choosing. Unless the request says to decide: then place it by the rules in shared/headings.md and say where it went.
- Do not rename or move a note on your own. Both break every wikilink pointing at it
(resolution is file-name based, links.md), on top of the data.json entry. Only on an explicit request, and then all three in one operation: file, entry, and every link that named it.
- One exception: a single file becomes a folder for a new heading. When a new heading
needs X.md to become X/X.md (shared/headings.md, "Where a new heading goes"), that move is part of the request. Move the file on disk yourself. Do not use the Obsidian command line for it, and do not stop because the command line is off or because Obsidian is running. Obsidian's link updates are not needed here: the file name stays the same, and both Obsitex and Obsidian find a link that names the note only ([[X]]) by that name (measured for Obsitex 21.10.2026). In the same step, update every link that spells out the old path. If Obsidian is running, read the folder's Flexplorer order right after the move and put the entry back at its old place (see "Entering a new note in the Flexplorer order").
- Two layouts of a professional thesis exist, and both are right. Since v1.47.0 the
manuscript has three area folders, Front Matter/, Main Matter/ and Back Matter/, each with its switch file first (Switch to Front Matter, Switch to Main Matter). Older vaults have Frontmatter/, Backmatter/, a single file Main Matter.md and the chapters directly in the manuscript. Never convert an old vault unasked. New chapters go where the vault puts its chapters. If the user asks for the new layout: rename the switch file first, then its folder, never the other way round (shared/headings.md, "Front matter, main matter, back matter").
- Never hand back a task you can do. When the next step is unclear — which note an
attachment belongs in, where a new one goes — ask one structured question. Explaining the Obsidian route instead leaves the user with half-finished work; that has happened twice (images.md for the attachment folder, pdf-embeds.md for the note after it).
- An attachment is simpler than a note. An image, a PDF or a
.bibfile carries no
heading, stands in no wikilink and has no place in the Flexplorer order — so saving one into the vault costs a single step. When the user pastes an image into the chat, read the Windows clipboard (procedure in `shared/images.md`); a PDF arrives with its file name, so search the disk for it instead (`shared/pdf-embeds.md`). Never answer "I cannot save the file" without having tried. Saving it and stopping there is no better: the same file then goes on to the branch above — which note does it belong in.
- **"Here", "at my cursor", "an dieser Stelle", "the table where my cursor stands in Obsidian", "the text I
Preview shortened. The full SKILL.md is in the pack.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 20.7 kB | d6724f9bed07 |
| SKILVAULT_SOURCE.json | 3.0 kB | 158e80c90f66 |
| THIRD_PARTY_NOTICES.md | 1.1 kB | 48a3a1d61ecc |
| VERSION | 7 B | 4a6aa739df22 |
| shared/bibliography.md | 14.8 kB | d364b6b13158 |
| shared/cursor.md | 21.3 kB | 2eb361894b8b |
| shared/dds.md | 10.8 kB | 12e22dea7faa |
| shared/footnotes.md | 5.0 kB | 4da7c5ef47a3 |
| shared/headings.md | 19.9 kB | f0c99ff15e07 |
| shared/images.md | 20.3 kB | 303310ee4629 |
| shared/links.md | 18.1 kB | 43c4b69b9ea7 |
| shared/lists.md | 4.2 kB | cb8ff68e0ad0 |
| shared/not-supported.md | 5.4 kB | a269661f76ba |
| shared/obsitex-conventions.md | 26.2 kB | 571cfb35fefa |
| shared/page-look.md | 4.0 kB | d0bcaf7ced19 |
| shared/pdf-embeds.md | 12.6 kB | ef1a4448e586 |
| shared/quotation-marks.md | 8.9 kB | 790eac762e59 |
| shared/special-characters.md | 2.6 kB | 0015df9a9307 |
| shared/tables.md | 49.8 kB | 7545dc271eef |
| shared/text-formatting.md | 6.8 kB | 76a090cdefa3 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 521df63854e7 | 2 Dec 2026 |
Locking a skill to one version needs Pro.