Skip to content

Checking documents against a checklist ​

Staff often check a draft against a checklist before they hand it in. A Ratschlag goes through the «Leitfaden § 8-Prüfung», a project charter through a HERMES checklist, a tender through a list of form requirements. Bebbi Bot can do the first pass. The user uploads the draft with its annexes and picks a checklist. Bebbi Bot works through the list item by item and looks for evidence in the files. It asks the user about whatever it can't find, and returns the filled checklist plus a list of what is still missing in the draft.

No new tool was built for this. The workflow consists of skills and a prompt on top of tools the chat models already have.

What the user does ​

  1. Upload the draft and its annexes (Word, PowerPoint, Excel, PDF) to a chat.
  2. Type /checkliste-pruefen and choose where the checklist comes from:
    • Hochgeladene Checkliste: the checklist is one of the uploaded files, for example the official form as .docx.
    • Checkliste aus den Skills: a checklist the team has prepared as a skill. See Adding a checklist.
  3. Optionally, describe the draft in one line, for example «Ratschlag Neubau Schulhaus X, Ausgabenbewilligung CHF 12 Mio.».
  4. Answer the follow-up questions, then pick the output.

Asking in plain words works too («Prüf meinen Ratschlag nach der § 8-Checkliste»), because the model sees the list of skills. For thorough checks, use Bebbi Bot - Tiefere Analyse: the thinking mode finds more gaps (see How well it works).

The pieces ​

PieceSource in kdkp-open-web-uiRole
Method skill «Unterlagen anhand einer Checkliste prüfen»seeder/content/skills/checkliste-pruefen.mdHow to check. The steps, the status values, the rules for each check and for the review, and the output formats. The same for every checklist
Checklist skill «Checkliste: …»seeder/content/skills/checkliste-<name>.mdWhat to check. The items, which sections apply when, when an item counts as met, and the search terms. One file per checklist
Prompt /checkliste-pruefenseeder/content/prompts/checkliste-pruefen.mdLets the user pick the checklist source and loads the method skill

The tools are the ones every chat model already has:

StepTool
Load the method and the checklistview_skill
Read the uploadslist_files, read_file, grep_files, read_xlsx (files tool). Word and PowerPoint are read as the Markdown that Docling extracted, with real tables
Look up requirements (spending limits, form rules)query_knowledge_files, when the user attaches a knowledge base
Check the arithmeticexecute_code: sums, table totals, the same amount compared across files
Split the workdelegate_task (sub-agents)
Track progresscreate_tasks, update_task: one task per item, ticked when its status is settled
Ask the userask_user
Outputcreate_docx for a report, edit_docx to fill an uploaded checklist or comment the draft

How a check runs ​

The main agent coordinates and doesn't read the files in full. It hands the actual checking to sub-agents, each with its own context. Its own context then holds the status table instead of every document, which matters for dossiers of several files and for a model with a limited context window.

  1. Applicability. Many checklists have sections that apply only to some drafts. In the § 8 checklist, section B applies only to the Finanzvermögen and section C only to legislation. The main agent decides this with a few searches, or asks the user once.

  2. Packages. Items are grouped into packages of two to four related items, and one sub-agent per package runs in parallel. Each sub-agent gets the questions word for word, the «Erfüllt, wenn» criterion of each item, the search terms and the method's «Prüfregeln». It reads every file in full, including annexes and slides, because gaps and contradictions often sit there.

  3. Zahlenabgleich. A separate sub-agent recomputes every cost table with execute_code and compares the amounts across all files. A total that doesn't add up, or a slide that says CHF 210,000 where the Word files say 180,000, goes into the plausibility item.

  4. Review. A further sub-agent tries to disprove every item rated erfüllt or zu beurteilen. It looks for four kinds of mistake:

    • contradictions between files
    • required facts that appear only in an annex
    • lists with an incomplete entry
    • reasons that are only assertions

    Its rules also say what not to flag: requirements that aren't in the criterion, and the same defect under several items. Without those rules the review produced false alarms.

  5. Re-check. Each disputed item goes to a fresh sub-agent. There is no second review. If an item stays disputed, the stricter status wins and the finding names the contradiction.

Without sub-agents, the main agent checks every item itself by the same rules.

The rules that make results consistent ​

  • The checklist checks the documents, not the user's knowledge. When the user answers a question in the chat, the answer goes into the checklist. The item stays a gap, marked «in der Vorlage nachtragen», until the draft itself says it.

  • Five statuses, nothing else.

    StatusMeaning
    erfülltMet. Every part of the criterion has evidence, with its location (file and section, line or slide)
    teilweiseSomething is there, but a part of the criterion, a sub-item or the evidence is missing, or the files contradict each other
    fehltMissing
    nicht anwendbarNot applicable, with the reason
    zu beurteilenFor the responsible office to judge. Every required fact is there, and only an expert judgement is open, such as «gebunden» or «marktkonform». Bebbi Bot quotes the draft's reasoning and doesn't decide
  • Tick the criterion part by part. A sub-agent breaks «Erfüllt, wenn» into its parts and marks each one ✓ or ✗ with its location. A single ✗ means teilweise. That the topic comes up in the draft isn't enough.

  • Main document first. A required fact that appears only in an annex or on a slide doesn't count as met in the draft.

  • When in doubt, teilweise. An item wrongly marked as met reaches the responsible office unchecked.

Outputs ​

OutputWhenHow
Prüfbericht (default)AlwaysWord file: a table «Nr. | Prüfpunkt | Status | Befund und Fundstelle», then «Vor der Abgabe zu erledigen» with every gap, where it belongs in the draft and a suggested wording
Filled checklistThe checklist was uploaded as Wordedit_docx inserts status and finding after each question, as tracked changes
Comments in the draftThe draft is a Word fileedit_docx adds a Word comment at each place to fix

Adding a checklist ​

A checklist has five possible homes. They differ in who can create it, who can see it and how much is checked.

RouteWho can set it upWho sees itGood for
Upload the checklistAny userThe user, per chatOccasional checks and trying out a checklist
Own promptAny userThe user, or a group it is shared withA team that runs the same checklist often
Workspace modelKnowledge adminsThe groups it is shared withA department with its own guidelines in a knowledge base
Checklist skill in the workspaceKnowledge adminsThe users and groups it is shared withA checklist several teams use, kept up to date without git
Checklist skill in gitDCC, on requestEveryone, or admins only during reviewCanton-wide checklists, reviewed by the office that owns them

Route 1: upload the checklist ​

Upload the checklist, for example the official .docx form, together with the draft. Then run /checkliste-pruefen with «Hochgeladene Checkliste». No setup is needed.

This route has a limit: the model has to read the criteria from the form's questions by itself. Results then vary more between runs than with a prepared checklist, because a form rarely says when an item counts as met. Writing the criteria into the uploaded file helps (see Writing good items).

Route 2: a prompt for the team ​

Every user can create prompts in Workspace → Prompts and share them with a group. A prompt can carry a whole checklist:

markdown
Prüfe meine hochgeladenen Unterlagen anhand der Checkliste unten. Lade dafür zuerst den Skill
«Unterlagen anhand einer Checkliste prüfen» mit view_skill und arbeite nach seinem Ablauf.

Checkliste «Projektantrag Informatik» (Stand 2026)

## Anwendbarkeit
| Abschnitt | Punkte | Gilt für |
|---|---|---|
| A. Allgemein | 1–4 | jeden Antrag |
| B. Beschaffung | 5–6 | Anträge mit einer Beschaffung über CHF 150'000 |

## A. Allgemein
**1. Ist der Nutzen beschrieben?**
- Erfüllt, wenn: Ziel und erwarteter Nutzen ausdrücklich genannt sind, nicht nur die Massnahme.
- Suchen: «Ziel», «Nutzen», «Wirkung».
…

Give it a command such as /checkliste-projektantrag. The team then types that command and uploads its files. Only knowledge admins can create skills (see Route 4), so for everyone else the prompt is the self-service way to share a prepared checklist.

Route 3: a model for a department ​

Knowledge admins can create models in Workspace → Models. A model for one checklist saves the setup in every chat:

  • Base model: the same base model as Bebbi Bot.
  • System prompt: Bebbi Bot's, plus one line, for example «Prüfe Unterlagen nach dem Skill «Unterlagen anhand einer Checkliste prüfen» mit der Checkliste unten», and the checklist in the same format as in route 2.
  • Knowledge: the knowledge base with the guidelines (spending limits, form rules, the law). The model then also checks whether the draft meets the rules, not only whether it mentions them, and cites them.
  • Skills: the method skill. An attached skill goes with its full text into every message, about 4,000 tokens for the method skill. That is acceptable for a dedicated model but not for the general bots.
  • Built-in tools: keep sub-agents, tasks, user input, knowledge, code interpreter and skills switched on. The model policy allows all of them.

Share the model with the department's group.

Route 4: a checklist skill for a group ​

Knowledge admins can create skills in Workspace → Skills and share them with users and groups. A checklist skill made there works like one from git: /checkliste-pruefen with «Checkliste aus den Skills» lists it for everyone who can see it. Use the same format as in route 5, with a name that starts with «Checkliste:».

  • The skill is private until its creator shares it. Sharing it with every user isn't possible; a checklist for the whole canton goes through git (route 5).
  • Unlike a prompt, a skill isn't sent with the message. Every chat gets only its name and description; the model loads the full text when it needs it.
  • The checklist's owner remains responsible for its criteria. Agree with the office that owns the form before sharing it beyond your own team.

Route 5: a checklist skill for everyone ​

Canton-wide checklists live as skills in git. They are versioned, reviewed and the same on every stage. Ask DCC, or open a pull request in kdkp-open-web-ui with a new file seeder/content/skills/checkliste-<name>.md. Copy the § 8 checklist and keep its shape:

markdown
---
name: Checkliste: <Titel>
shared: false
description: <wofür, für welche Vorhaben>. Wird mit dem Skill «Unterlagen anhand einer Checkliste prüfen» abgearbeitet.
---
## Anwendbarkeit
| Abschnitt | Punkte | Gilt für |
|---|---|---|

## A. <Abschnitt>
**1. <Frage wörtlich aus der Checkliste>**
- Erfüllt, wenn: <prüfbares Kriterium>
- Massstab: <was in der Wissenssammlung nachzuschlagen ist>       (optional)
- Rückfrage: <was die Person weiss, die Vorlage aber nicht sagt>   (optional)
- Suchen: <Begriffe, Synonyme, Abschnittstitel>
  • The name must start with «Checkliste:». That is how the method skill and «Checkliste aus den Skills» find it.
  • shared: false keeps the skill visible to admins only. The seeder creates it without the public read grant. Leave the line in until the office that owns the checklist has reviewed the criteria, then remove it. The next sync shares the skill with everyone. The § 8 checklist is still admin-only while the Finanzverwaltung reviews it.
  • After merging, the seeder brings the skill into every stage with the next seeder image (see Rolling out a change).

Writing good items ​

These rules apply to every route:

  • Keep each question word for word. The filled checklist then matches the original form.
  • Write an «Erfüllt, wenn» for each item. This line makes results consistent between runs. Without it the model judges by feel. Make it checkable: «Erlass und Bestimmung (Paragraf, Absatz) sind genannt», not «Rechtsgrundlage ist klar».
  • Name every part of the criterion. Words like «begründet», «mit Datum» or «für jeden Eintrag» each become a part that the model ticks. If something must be in the main document rather than an annex, say so.
  • Mark judgements. Where the item asks for an expert view, for example «Ist der Preis marktkonform?», write when the status is zu beurteilen, so the model doesn't decide in the office's place.
  • One line per sub-question. An item with sub-questions gets lines 7a, 7b, … The item counts as met only when all of them are.
  • Give search terms. Add synonyms and the usual section titles («Ausgangslage», «Finanzielle Auswirkungen»).
  • Keep the rules themselves in a knowledge base. Spending limits and form rules change, and the bot should cite them. The checklist says what to look up («Massstab»), the knowledge base holds the current values.
  • Test with real drafts. Check two or three drafts whose gaps you know before you share the checklist.

How well it works ​

benchmarks/checklists in kdkp-open-web-ui measures the workflow on five fictional dossiers, each with two Word files and a presentation. They were modelled on real Grosser Rat business items, with every name and amount invented. Four dossiers have planted gaps: a paragraph missing from the legal basis, a cost table whose lines don't add up to the total, a slide whose operating costs contradict the Word files, a valuation that appears only on a slide. The fifth dossier has no gaps and checks for false alarms. A scorer compares the bot's status table with an answer key.

Results with Gemma 4 31B and the current skills:

ModelItems rated rightPlanted gaps foundFalse alarmsTime per check
Bebbi Bot - Tiefere Analyse (thinking on)97 %12 of 1309–12 min
Bebbi Bot (thinking off)78 %10 of 1323–5 min

What made the difference:

  • Sub-agents. In the first runs, sub-agents were off in the test stack, and the model checked everything in one context. With them on, as in production, the model ran packages, review and re-checks in every chat.

  • Docling Markdown. Reading Word and PowerPoint files as Markdown with real tables let the «Zahlenabgleich» sub-agent recompute sums with execute_code. A purpose-built figure checker scored no better and was dropped.

  • Sharper criteria. Several criteria in the § 8 checklist were tightened:

    • every entry of the history needs a date or a business number
    • a «kantonale Aufgabe» needs a reason
    • a valuation must be in the main document, not only on a slide

    The review got rules against flagging what the criterion doesn't ask for.

  • Thinking mode. It takes about twice as long, finds two more gaps and raised no false alarm. Without thinking, the model still found all three planted figure gaps.

For comparison, two strong external models ran the same benchmark with an earlier version of the skills:

  • Claude Haiku 5.5 found 24 of 26 planted gaps.
  • Claude Sonnet 5.5 found all 23 planted gaps in the chats that completed; one chat failed.

Both also flagged most of the real flaws nobody had planted. They raised 9 and 7 false alarms, mostly by reading the criteria more strictly than written.

The numbers show that the workflow is a useful first pass. They don't make it a replacement for the review by the responsible office: one gap in ten can still be missed. Statuses like zu beurteilen deliberately leave the judgement to the office.

Limits ​

  • No knowledge base, no standard. Without one, the bot checks only whether something is in the draft, not whether it meets the rules, and says so.
  • The chat holds the state. The task list and the messages are the only memory. In a long session, early findings can drop out of the context window, so the report is the result to keep.
  • Old .doc files are converted to .docx for editing, so a filled checklist comes back as .docx.
  • Pictures. Pictures in documents aren't understood (see Images in documents). A figure that appears only in a chart isn't found.

Developed with ❤️ by the DCC. Documentation released under the MIT License.