# TongueToQuill — Public Documentation Snapshot Concatenated text version of https://docs.tonguetoquill.com, every page in nav order, for pasting into an LLM's context window. --- # === index.md === # TongueToQuill Docs TongueToQuill is a military document editor for Air Force and Space Force documents, in the browser: official memorandums, personal letters, medal citations, award nominations, DAF and AF forms, resumes, and the templates your unit publishes. Pick a template, fill in the fields, write the body, and download a PDF. The layout, paragraph numbering, letterhead, and markings follow AFH 33-337 on their own. [Open the app](https://tonguetoquill.app){ .md-button .md-button--primary } ## Your first memo [Quick Start](getting-started/quick-start.md) takes you from opening the app to a downloaded PDF in a few minutes. Then: - [The Editor](getting-started/editor.md): fields, the body, the preview, the sidebar, and where your documents are saved. - [Choosing a Template](writing/document-types.md): which template fits a memo, an MFR, an LOC, a 1206, a pass request, and the rest. - [Anatomy of a Memorandum](writing/anatomy.md): what each memo field prints and where. ## Going further | If you want to... | Go to | | --- | --- | | Add an indorsement for a commander's decision or a routing chain | [Indorsements](writing/indorsements.md) | | Mark a document CUI or classified | [Classification & Markings](writing/classification.md) | | Send a draft to someone for review | [Sharing a Document](getting-started/sharing.md) | | Dictate a document to Claude or ChatGPT | [Drafting with AI](mcp-server/index.md) | | Publish a document as a template for your unit | [Publishing a Template](getting-started/publishing.md) | | Edit the document as raw text, or write one by hand | [Quillmark Format](reference/quillmark-format.md) | | Fix something that isn't working | [Troubleshooting](reference/troubleshooting.md) | # === getting-started/quick-start.md === # Quick Start Produce a formatted memo in a few minutes. ## 1. Open the app Go to [tonguetoquill.app](https://tonguetoquill.app). You can start without signing in; your documents are then saved in this browser. **Sign in to sync**, at the bottom of the sidebar, signs you in with GitHub or Google so your documents follow your account across devices. Some deployments, such as the beta, require sign-in from the start. ## 2. Pick a template **New Document**, at the top of the sidebar, opens the template library. Click **USAF Memo** under **Featured**, then **Use template**. The library also holds the USSF Memo, personal letters, the Rebuttal and Appointment Letter, the Medal Citation, DAF Forms 1206 and 4392, AF Form 4141, a resume, and templates other people on your instance have published. [Choosing a Template](../writing/document-types.md) says which to use for what. On deployments that offer it, the template's pane has a **First draft notes** box: describe the memo there, or attach a file, and an AI fills the template in for you ([Templates § First Draft](templates.md#first-draft)). ## 3. Fill the fields The memo opens with its fields above the body, grouped under **Addressing**, **Letterhead**, **Classification**, and **Additional**. Fill **Memo for**, **Memo from**, **Subject**, and **Signature block**, and add your unit's full name as the second line of **Letterhead title**. No field is required: one you leave alone prints its default or nothing. Changes save as you type. **Date** starts on **Today**, which prints the current date. Clear it and the PDF gets a fillable date field for the signer instead. The glyph beside any field's label explains it. [Anatomy of a Memorandum](../writing/anatomy.md) covers every field. ## 4. Write the body Type in the body under the fields. The preview beside it shows the rendered page and follows your caret; click text in the preview to jump to it in the editor. Write plain paragraphs and let the memo number them: each paragraph becomes `1.`, `2.`, `3.`, and a bulleted list becomes lettered subparagraphs. Don't type the numbers yourself. Type `/` for lists, subparagraphs, and tables, and select text for bold, italic, underline, and links. [Anatomy § Body conventions](../writing/anatomy.md#body-conventions) has the rest. ## 5. Download **Download** in the top bar saves the PDF. It stays disabled until the preview renders; if it won't enable, read the error over the preview and fix the field it names. Check the PDF before you sign or send it. The layout is the template's; the content is yours. --- Next: - [The Editor](editor.md): the sidebar, the preview, autosave, and where documents live. - [Indorsements](../writing/indorsements.md): add a commander's decision or a routing chain to the memo. - [Sharing a Document](sharing.md): send a draft for review with a link. # === getting-started/editor.md === # The Editor The app is three panes: the sidebar lists your documents, the editor holds the open one, and the preview beside it renders it page by page. Everything saves automatically. ## Rich Text Mode (default) The editor shows the document as a stack of cards. The first card is the document itself; any others follow it in print order, such as a memo's indorsements or a form's table rows. Each card has its fields above its body. ### Fields A card's fields are its format's: every field the template's format declares is in the form, and none is required. A field you leave alone prints its default or nothing. Formats group fields under collapsible headings; a USAF memo's are **Addressing**, **Letterhead**, **Classification**, and **Additional**. - **Help.** The glyph beside a field's label opens its description; `Cmd/Ctrl + /` in the field does the same. - **Errors.** A value the format can't read is flagged under its field, and the preview shows the same error. - **Lists.** Enter adds an item after the one you're in; **+ Add** adds one at the end. - **Dates.** **Today** prints the current date. On a memo, a blank date leaves a fillable date field in the PDF for the signer. - **Choices.** A dropdown lists only the values the deployment allows. The classification list is the common case: see [Classification](../writing/classification.md). ### Body The body is rich text that renders close to how it prints. - **Markdown shorthand** converts as you type: `**bold**`, `*italic*`, `- ` for a bullet, `1. ` for a numbered list, `> ` for a quote. - **`/`** opens an insert menu of headings, lists, subparagraphs, quotes, code blocks, and tables, offering only what fits where the caret is. Type after the `/` to narrow it: `/table`. - **Select text** for a toolbar: bold, italic, underline, strikethrough, code, and link. - **Tab** nests a bullet under the one above it, and **Shift + Tab** brings it back out. Keys for all of these are on [Keyboard Shortcuts](../reference/shortcuts.md). ### Cards - **Add card**, under the last card, adds one at the end; the + in the gap between two cards adds one there. When the format has more than one kind of card, pick the kind; a USAF memo has one, **Routing indorsement**. - **Move up**, **Move down**, and **Delete card** sit on each added card. - A card's title is the editor's label for it and never prints; click it to rename. Some templates open with an **Editor tips** card under the first card. **Next** steps through the tips; **Dismiss** removes them from the document. ## Advanced Mode **Advanced Mode**, in **Settings** at the bottom of the sidebar, swaps the card editor for the document's raw markdown, with line numbers and syntax highlighting. The document is the same in both modes; only the editing surface changes, and the setting is remembered in this browser. See [Quillmark Format](../reference/quillmark-format.md) for the syntax. Use it to: - Paste a document built elsewhere or by an AI assistant. - Change the document's format line (`$quill`). - Add keys the format doesn't declare. They stay in the document and the layout ignores them. - Track down an error the preview can't place. A document whose format the deployment doesn't serve opens on "This document can't open in the editor" instead of the cards, listing the versions it does serve. **Open in Advanced Mode** takes you to the `$quill` line to change. ## The preview The preview renders as you edit and follows your caret. Click text or a field in it to jump to that spot in the editor. - An error over the preview names what the format can't read, with a hint and a line and column where it has them. Fix it and the preview updates. - "The preview stopped working" means the renderer crashed; **Reload page** brings it back. - In dark mode the page is dimmed a little; hover it, or touch and hold on a phone, for full brightness. - Drag the divider between the editor and the preview to resize them. ## The top bar - **Title.** Click to rename. Beside it, a spinner while saving, then **Synced** when signed in or **Saved** for a guest. **Error** means the last save failed; hover it for the reason. - **Ruler Tool.** Drag across the preview to measure a distance in inches. Not offered on touch screens. - **Document Stats.** Character, word, and line counts, and when the document was created and last modified. - **Share** opens the share dialog; **Download** saves the PDF. See [Sharing a Document](sharing.md). - **⋮** holds **Keyboard Shortcuts**, **Publish** (or **Manage Template** on a template copy; see [Publishing a Template](publishing.md)), and the about, terms, and privacy links. Signed in, it adds **Beta Program**, **Give Feedback** on deployments that take feedback, and **What's New**, which shows a dot when there are release notes you haven't read. ## Autosave A document saves about 2 seconds after you stop typing, and at once on `Cmd/Ctrl + S`. Signed in, it saves to your account; as a guest, to this browser. ## The sidebar **New Document** at the top opens the [template library](templates.md#the-template-library). The ☰ above it collapses the sidebar to a strip of icons. **Search documents** filters the list by name. When it has looked only through your most recent documents, **Load Older Documents** searches further back. Documents sit in up to three collapsible sections, each row's actions appearing on hover: | Section | What's in it | Row actions | | --- | --- | --- | | **Templates** | Template copies backing templates you've [published](publishing.md) | Rename, manage sharing (once shared), manage template | | **Your documents** | Documents saved to your account | Rename, manage sharing (once shared), duplicate, delete | | **On device** | Documents saved in this browser: a guest's, or ones made before signing in | Rename, **Save to account**, duplicate, delete | Double-click a name to rename it. Delete asks first, and a deleted document can't be recovered. **Save to account** moves a document off the device and into your account; a guest who presses it is asked to sign in. At the bottom, **Sign in to sync** signs a guest in; signed in, your name opens your user ID and **Sign out**. **Settings** holds **Dark Mode** and **Advanced Mode**. ## On a phone Below 768 px wide, ☰ in the top bar opens the sidebar as a drawer, and **Editor** and **Preview** tabs under the top bar switch between the two panes. Clicking text in the preview switches to the editor at that spot. The template library becomes two screens: the grid, then the selected template. # === getting-started/templates.md === # Templates A **template** is a published starting point: using one creates a new document of your own from its content. The official templates ship with the app; anyone on your instance can publish more ([Publishing a Template](publishing.md)). ## The template library **New Document** at the top of the sidebar replaces the editor with the template library; the sidebar stays. Escape or Back closes it, and so does opening a document from the sidebar. With nothing typed in the search bar, the library shows three sections: | Section | What's in it | | --- | --- | | **Recents** | Templates you used most recently. A guest's are kept on the current device. | | **Featured** | Every official template, plus community templates a moderator has featured. A featured template carries a check badge after its title. | | **Popular** | Every other community template, ranked by use and stars. | **See all (n)** on Featured or Popular opens that whole section as one list. Click a template to open it in the pane beside the grid: its title, author, description, format and tags, the **Use template** button, and a line with its star count, use count, and last update. On a phone the pane is a second screen, and **Templates** at the top goes back. Space on a focused card opens a larger preview. Selecting a template puts its link in the address bar. Send that link and it opens the library on the same template. ## Searching Type in the search bar to rank every template, featured or not, by how well its title, description, content, and tags match. Two prefixes turn what you type into a chip: - `#` picks a **tag**. A tag chip raises the templates carrying it without hiding the rest. - `@` picks a **format**, such as `@usaf_memo`. A format chip shows only templates in that format; two format chips show either. The star at the right end of the bar shows only templates you've starred. Starring needs an account; your stars follow it across devices, and each one adds to the template's public count. The back arrow at the left end clears the search. ## Using a template **Use template** creates a new document from the template's content and opens it in the editor. The document takes the template's name, with a `(2)` or `(3)` added when you already have one by that name; rename it from the title bar or the sidebar. Every use is an independent copy. Later changes to the template, or its removal, never touch documents already made from it. ## First Draft On deployments that turn on drafting, the template pane has a box above the button that reads **First draft notes**. Write what the document is about there, or attach a file with the paperclip (or drop one on the box), and the button becomes **First draft**. Pressing it has an AI model fill the template from your notes and file before the document is created. `Cmd/Ctrl + Enter` in the box does the same. - The draft starts from the template and takes names, dates, office symbols, and other particulars only from your notes and file; anything they don't give stays as the template has it. Paste or attach a finished memo and its wording is kept. - Attachments: one file per draft. PDF (up to 4 MB, on deployments whose model reads PDFs), JPEG, PNG, GIF, or WebP images, Word (`.docx`, read as plain text, so headers, footers, and layout are dropped), or text (`.txt`, `.md`). - Notes are capped at 20,000 characters, and each account at 60 drafts an hour. - If drafting fails, the document is still created from the template unchanged, and a message says so. - Guests are asked to sign in first. The note and file wait through sign-in for up to 30 minutes. Your notes and file go to the AI provider the deployment uses. A deployment that drafts with a commercial provider caps classification at `UNCLASSIFIED`: don't put CUI, PII, or classified material in the box. Review every drafted document before you sign it, as you would any AI output ([Effective Prompting](../mcp-server/prompting.md) says what to check). ## When no template fits In increasing order of effort: 1. **Edit the body.** The fields are fixed; the body is yours. Most missing content can live there. 2. **Publish your own template.** Build the document once, then publish it so you and others start from it: [Publishing a Template](publishing.md). 3. **Ask for a new format.** A new layout or a new field belongs to whoever maintains your deployment's formats. Tell them through **Give Feedback** in the ⋮ menu. # === getting-started/sharing.md === # Sharing a Document A document is private to you until you share it. Sharing gives it a read-only link for a review or a forwarded draft. To offer a document as a starting point for other people's documents, publish it as a template instead ([Publishing a Template](publishing.md)). ## Turning on the link **Share** in the top bar opens the Share Document dialog: choose **Shared**, then copy the **Shared Link**. Choosing **Private** turns the link off. Sharing needs an account. A guest is asked to sign in, and a document still held on this device is first offered **Save to Account**. A shared document gets a sharing icon on its sidebar row that reopens the dialog. ## What the reader sees Anyone with the link can read the document. On deployments that turn off guest access, the dialog reads "Only authenticated users can view the link", and the reader has to sign in. The link opens a read-only page with the document's name and author, and three actions: - **Copy Link** copies the page's address. - **Download** saves the PDF. - **Save Copy** creates an independent, editable copy owned by the reader and opens it in their editor. A guest's copy lands in their browser. Your original is untouched, and their later edits never reach it. ## Who can see what - A private document is visible only to you. - A shared document is visible to anyone with the link, or to any signed-in user where guest access is off. Links are random and can't be guessed. - A published template is visible in the library to everyone allowed to use the instance. A document body is limited to 512 KB; a larger save or share is refused. For the exact data flow, see your host organization's privacy notice. # === reference/shortcuts.md === # Keyboard Shortcuts `Cmd` is the macOS modifier; on Linux and Windows, use `Ctrl`. The app lists the essentials under **Keyboard Shortcuts** in the top bar's ⋮ menu. Save and Escape work everywhere. Everything else here belongs to Rich Text Mode; [Advanced Mode](../getting-started/editor.md#advanced-mode) is a code editor with its own standard keymap, undo and redo included. ## App | Shortcut | Action | | --- | --- | | `Cmd/Ctrl + S` | Save now (autosave runs about 2 s after typing stops) | | `Escape` | Close the top-most dialog, menu, or the template library | ## Editing | Shortcut | Action | | --- | --- | | `Cmd/Ctrl + Z` | Undo | | `Cmd/Ctrl + Shift + Z`, `Cmd/Ctrl + Y` | Redo | | `Shift + Enter` | Line break within a paragraph | | `Tab` | Nest a bullet under the one above it | | `Shift + Tab` | Move a bullet back out a level | | `Cmd/Ctrl + /` | Open the focused field's description | ## Formatting | Shortcut | Action | | --- | --- | | `Cmd/Ctrl + B` | Bold | | `Cmd/Ctrl + I` | Italic | | `Cmd/Ctrl + U` | Underline | | `Cmd/Ctrl + K` | Link | Strikethrough and code have no key: select the text and use the toolbar, or type the shorthand below. ## Markdown shorthand These convert as you type. Backspace straight after one turns it back into the characters you typed. | Type | You get | | --- | --- | | `**text**` | **Bold** | | `*text*` | *Italic* | | `~~text~~` | ~~Strikethrough~~ | | `` `code` `` | Inline `code` | | `- ` at the start of a line | Bulleted list | | `1. ` at the start of a line | Numbered list | | `> ` at the start of a line | Quote | | `# ` through `###### ` at the start of a line | Heading, levels 1 to 6 | | `---` on its own line | Divider | | ```` ``` ```` then `Enter` | Code block | | `/` | Insert menu | Underline has no shorthand: use `Cmd/Ctrl + U`. A format decides how each of these prints; a memo, for one, letters its bullets as subparagraphs. ## Tables | Shortcut | Action | | --- | --- | | `Tab` / `Shift + Tab` | Next / previous cell; `Tab` in the last cell adds a row | | `Enter` | Cell below; on the last row, adds a row | | Arrow keys | Move between cells at a cell's edge | | `Escape` | Select the caret's row; again, the whole table | | `Cmd/Ctrl + A` | Select the cell's text, then its row, then every cell, then the whole body | | `Alt + Arrow` | Move the selected row or column | | `Shift + ←` / `Shift + →` | Change the selected column's alignment | ## Template library | Shortcut | Action | | --- | --- | | `Space` | Enlarge the focused template's preview | | `Cmd/Ctrl + Enter` | In the First Draft notes box: create the document (**Use template** or **First draft**) | | `Escape` | Close the view | # === reference/troubleshooting.md === # Troubleshooting The most common problems and what to do about them. If your issue isn't here, see [Something else](#something-else). ## The preview shows an error The preview stops on a value it can't read and says what's wrong, with a hint and a line and column where it has them; in Rich Text Mode the field itself shows the error too. Fix the value and the preview updates. An empty field or an unknown key never causes this. What does is a value the format can't read, most often a choice in the wrong case (`USAF` for `usaf`) or a date that isn't `YYYY-MM-DD` or `today`, or card syntax the parser can't read, such as a `~~~` with no blank line above it. If the cause isn't obvious, switch to Advanced Mode and read the raw text; [Quillmark Format § Validation](quillmark-format.md#validation) has the full list. ## Office symbols are in the wrong case The `MEMORANDUM FOR` line is uppercased for you. Mixed case elsewhere is a field that isn't: **Memo from**, **References**, or the signature block. Uppercase those by hand where the format calls for all caps. ## The wrong seal is in the letterhead **Letterhead seal**, under **Letterhead**, picks it: Department of War (`dow`, the default) or Department of Defense (`dod`). ## Indorsements won't fit on one page For LOCs in particular, the default 12pt font often spills onto a second page. Drop the memo's **Font size** to `11` (or a decimal like `11.5`). See [Indorsements § Fitting indorsements on one page](../writing/indorsements.md#fitting-indorsements-on-one-page). ## My document disappeared from the sidebar The most common causes: - **Its section is collapsed.** **Templates**, **Your documents**, and **On device** each fold away; click the section's name. - **Search hasn't reached it.** **Search documents** looks through your most recent documents first; **Load Older Documents** under the results searches further back. - **It was on the device, and the browser's data was cleared.** Documents under **On device** live only in this browser; **Save to account** moves one into your account. - **You're signed in to a different account.** GitHub and Google sign-ins are separate accounts; a document saved under one isn't visible under the other. - **You published it.** Publishing opens a template copy under **Templates**; the original stays under **Your documents**. Unpublishing moves the copy back to **Your documents**. - **You deleted it.** A deleted document can't be recovered. ## The Download button is disabled Download needs a preview that rendered. Either the render failed (read the error over the preview and fix what it names) or it hasn't finished yet, so give it a moment. If the preview says "The preview stopped working", or a download fails with "The renderer crashed", reload the page. ## A document says it can't open in the editor "This document can't open in the editor" means the document names a format this deployment doesn't serve, usually a version an older template or another deployment used. The message lists the versions served here. **Open in Advanced Mode**, change the `$quill` line to one of them, and switch Advanced Mode off again. A document made from a template never depends on that template afterward: unpublishing or changing the template leaves it as it was. ## Sign-in keeps redirecting in a loop Usually a third-party cookie issue. Allow cookies for the TongueToQuill domain (and its OAuth provider — `github.com` or `accounts.google.com`) and retry. Private/incognito windows often block these. ## AI assistants ### The connector won't connect - The URL ends in `/mcp` and names the deployment you sign in to; [Setup](../mcp-server/setup.md) lists them. Production and beta are separate deployments with separate accounts. - The client speaks Streamable HTTP. The older HTTP+SSE transport isn't served. - The deployment has the AI endpoint turned on. A self-hosted instance may not. ### The assistant can't produce a document A connector that lists its tools but never returns a claim link is usually failing validation, not connection. `create_document` returns the offending value as plain text, and a capable assistant fixes it and retries; ask it to show you the error if it stalls. A classification above the deployment's ceiling is refused at this step too. ### The claim page shows an error - **"This document has expired."** An unclaimed draft lasts five minutes. Ask the assistant for a new one. - **"This link has already been claimed."** Someone else opened the link and signed in first. Ask for a new document, and don't forward claim links. - **"Claimed by a different account."** Under device-code claiming, the code goes only to the account that opened the link first. If that was you, sign in with that account; otherwise ask for a new document. [Drafting with AI § Claiming the draft](../mcp-server/index.md#claiming-the-draft) explains why each happens. ### Sign-in says "This account doesn't have access" The beta admits invited addresses only. Ask whoever invited you to add the address you signed in with. ### Changes from the chat don't show in my document The assistant revises its draft, not a copy you saved with **Save Copy**. Save Copy again after the last revision, or make further edits in the app. ## A font looks wrong in the PDF Letterhead and signature fonts are part of the template's format. They are not user-configurable. If a font in the PDF looks off: - Open the rendered PDF in a different viewer. Some browsers' built-in PDF viewers substitute fonts at preview time but embed the right ones at print time. - If the issue persists after downloading the file, it's a bug in the format. Send feedback with the document ID and a screenshot. ## "Content size exceeds maximum" The limit is 524,288 bytes (512 KB) per document. Most memos are under 10 KB; if you're hitting the cap: - Split the content into multiple documents. - Move large reference material out of the document body and link to it. ## My published template is showing the wrong content A template holds the content it was last published with. Edit its template copy, under **Templates** in the sidebar, then press **Update Template** on the banner over the preview. Edits to the original you published from never reach the template. See [Publishing a Template § Maintain](../getting-started/publishing.md#maintain). ## Something else Sign in and open **Give Feedback** from the ⋮ menu in the top bar. Deployments that don't take feedback in the app, such as the beta, leave it out; tell whoever runs or invited you to yours instead. Include: - What you did. - What happened. - What you expected. - A document ID if applicable. # === writing/document-types.md === # Choosing a Template Every official template, what it is for, and how to use it for the documents that have no template of their own. | Situation | Start from | | --- | --- | | Routine correspondence up, down, or across the chain | [USAF Memo or USSF Memo](#official-memorandum) | | Documenting something for the file | USAF Memo as a [Memorandum for Record](#memorandum-for-record-mfr) | | Adverse administrative action | USAF Memo with indorsement cards as an [LOC](#letter-of-counseling-loc) | | Responding to an LOC, LOR, or LOA | [Rebuttal](#rebuttal) | | Appointing program managers or additional duties | [Appointment Letter](#appointment-letter) | | A 3- or 4-day special pass | USAF Memo as a [Pass Request](#pass-request) | | A letter to a person rather than an office | [USAF Personal Letter](#personal-letter) | | AAM, AFCM, or MSM citation | [Medal Citation](#medal-citation) | | Award package | [DAF Form 1206](#daf-form-1206-nomination-for-award) | | Pre-travel safety briefing (travelers under 26) | [DAF Form 4392](#daf-form-4392-pre-departure-safety-briefing) | | Ground environment duty record | [AF Form 4141](#af-form-4141-individuals-record-of-duties-and-experience) | | Job application | [Classic Resume](#classic-resume) | | Anything else | The closest of the above. If others need it too, [publish your version](../getting-started/publishing.md). | Your instance may also carry templates other people have published; the library's **Popular** section and search find them ([Templates](../getting-started/templates.md)). ## Official Memorandum The USAF Memo and USSF Memo templates. The two print the same way; the USSF Memo fills in `UNITED STATES SPACE FORCE` and the delta on the letterhead lines, `USSF` in the signature block, and the Space Force tag line. [Anatomy of a Memorandum](anatomy.md) shows what every field prints and where. The Rebuttal and Appointment Letter below are the same memo with different starting content, as are the MFR, LOC, and pass request you build yourself. ### Memorandum for Record (MFR) An MFR is a USAF Memo with: - **Memo for** set to `RECORD`, one entry. - **Memo from** left blank. The memo then reads `MEMORANDUM FOR RECORD` with no `FROM:` line. Use it to document something for the file, such as a phone call, a meeting, a decision made in person, or an inspection, when there is no recipient. ### Letter of Counseling (LOC) There is no official LOC template. Build one from the USAF Memo: the counseling goes in the body, and four [indorsement](indorsements.md) cards follow it, one each for the member's receipt acknowledgement, the member's response, the issuer's final decision, and the member's acknowledgement of that decision. The member's response is typically "I am submitting attached documents in response" or "I hereby waive my right to respond". Per AFI 36-2907, fill in: - The dated description of the incident, citing UCMJ articles where they apply. - The counseling itself and the improvement expected. - The signer on the memo and on each indorsement. To keep the memo and its indorsements on one or two pages, lower **Font size** ([Indorsements § Fitting on one page](indorsements.md#fitting-indorsements-on-one-page)). ### Rebuttal The member's response to an LOC, LOA, or LOR, with supporting documents listed under **Attachments**. The template's body carries guidance between ``, which never prints; delete it as you go. ### Appointment Letter Appoints primary and alternate program managers. Each appointee is a row of the table in the body. Names, duty phones, and e-mail addresses are PII: if you add DEROS, clearances, or personal contact details, set **Classification** to `CUI` and fill the CUI block ([Classification § CUI](classification.md#cui)). ### Pass Request There is no official template. Write one as a USAF Memo: the purpose, the dates, and the DAFI 36-3003 language in the body, with one [indorsement](indorsements.md) card for the commander's decision, its **Action** set to `undecided` so the Approve/Disapprove line prints for marking by hand. A subject in the form `DD MMM YYYY – DD MMM YYYY, Special Pass Request` reads well. ## Personal Letter A personal letter per AFH 33-337: the same letterhead, seal, tag line, and classification fields as the memo, but addressed to a person and closed like a letter. - **Letter from** and **Letter for**: rank and full name, then duty title and mailing address, one per line. - **Salutation**: for example `Dear Major Smith`, with no punctuation after the name. - **Complimentary close**: defaults to `Sincerely`. - **Signature block**: name, grade, and service only; a personal letter leaves out the duty title. Paragraphs are not numbered. A quote block (type `> ` at the start of a line) keeps lines exactly as written, which suits an address. ## Medal Citation The citation certificate for the Air and Space Achievement Medal, the Air and Space Commendation Medal, or the Meritorious Service Medal, chosen under **Medal**. Everything is a field; the certificate has no body. - **Accomplishments** is the citation paragraph, 1350 characters including spaces. - **Oak leaf cluster** counts later awards of the same medal: `0` prints none, `3` prints THIRD OAK LEAF CLUSTER. - **Period from**, **Period to**, and **Signed on** are dates and print in capitals (`11 OCTOBER 2024`). - **Special order**, **Condition**, **Pas**, and **Rdp** print at the foot of the certificate; blank prints nothing. ## DAF Form 1206: Nomination for Award The award nomination form. The fields carry the nominee's identity, unit, and award period, and their labels mirror the printed form's boxes. The body holds the accomplishment bullets, one per accomplishment. The form does not enforce bullet style; that belongs to the nominator and the endorsing chain. When the bullets don't fit on page 1, add a **Specific Accomplishments (Continued)** card for page 2; the nominee's rank and name carry over on their own. ## DAF Form 4392: Pre-Departure Safety Briefing Page 2 of the pre-departure safety briefing, required for travelers under 26. The form has no body: everything is a field or an itinerary card. - **Transportation mode**: `pmv` (the default), `airplane`, `bus`, `train`, `motorcycle`, or `other`. - The traveler, briefer, destination, dates, emergency contact, and flight numbers are fields. - Each leg of the trip is a **Proposed Travel Itinerary** card with its date, departure and arrival points, rest length, and mileage. The form holds up to 10. ## AF Form 4141: Individual's Record of Duties and Experience The ground-environment personnel duty record. **Name**, **Unit**, **Grade**, and **Commanders auth** are fields; each row is a **Record of Experience** card. Up to 16 rows fill page 1 and 21 more fill page 2, for 37 in all. ## Classic Resume A single-page resume. Your name and contact lines are fields; every section is a card, printed in the order the cards appear: summary, experience, education, skills, projects, certifications, and other for anything else. **Paper**, **Font size**, and **Margin** tune the page; to fit one page, try a half point smaller font before cutting content. ## Templates and formats Each template is written in a **format** (a *Quill*), which decides the fields the editor shows, how each one prints, and which kinds of card the document can hold. Several templates share one format: the USAF Memo, USSF Memo, Rebuttal, and Appointment Letter are all the official memorandum format with different starting content. In the library, a template's format chip names its format, and typing `@usaf_memo` in the search bar lists every template built on it. The format's name matters in [Advanced Mode](../getting-started/editor.md#advanced-mode) and to an [AI assistant](../mcp-server/index.md), which both see it on the document's `$quill` line. | Format | `$quill` | Official templates | | --- | --- | --- | | Official Memorandum | `usaf_memo@0.3` | USAF Memo, USSF Memo, Rebuttal, Appointment Letter | | Personal Letter | `usaf_letter@0.1` | USAF Personal Letter | | Medal Citation | `medal_citation@0.1` | Medal Citation | | DAF Form 1206 | `daf1206@0.1` | DAF Form 1206 | | DAF Form 4392 | `daf4392@0.1` | DAF Form 4392 | | AF Form 4141 | `af4141@0.1` | AF Form 4141 | | Classic Resume | `classic_resume@0.1` | Classic Resume | The default deployment serves these; yours may serve others. The version after `@` is what a new document pins ([Quillmark Format § Version selectors](../reference/quillmark-format.md#version-selectors)). A document from an older version of a format, such as `usaf_memo@0.2`, still opens and renders with that version's fields. # === writing/anatomy.md === # Anatomy of a Memorandum What each field of the USAF Memo and USSF Memo prints, and where. Formatting follows AFH 33-337 (*The Tongue and Quill*). The Rebuttal and Appointment Letter templates, and an MFR, LOC, or pass request you build yourself, use the same fields with different starting content ([Choosing a Template](document-types.md)). ## Visual map ``` ┌────────────────────────────────────────────────────────────────┐ │ [classification banner, only when Classification is set] │ ├────────────────────────────────────────────────────────────────┤ │ │ │ [seal] DEPARTMENT OF THE AIR FORCE │ ← Letterhead title, first line │ HEADQUARTERS 20TH FIGHTER WING │ ← Letterhead title, later lines │ │ │ 14 May 2026 │ ← Date (blank: fillable field) │ │ │ MEMORANDUM FOR 20 FW/CC │ ← Memo for │ 56 OG/CC │ │ │ │ FROM: 20 OSS/CC │ ← Memo from (blank: no FROM line) │ │ │ SUBJECT: Weekly Status Update │ ← Subject │ │ │ References: │ ← References (one reference prints │ (a) AFMAN 33-326, 25 Nov 2011, Preparing ... │ after the subject instead) │ (b) 20 FW/CC Memo, 1 May 2026, Range Closures │ │ │ │ 1. First paragraph, numbered for you. │ ← body │ │ │ 2. Second paragraph. │ │ │ │ a. A bullet becomes a lettered subparagraph. │ │ │ │ 3. POC: Capt Smith, 555-1234. │ │ │ │ FOR THE COMMANDER │ ← Authority line (optional) │ [signature field] │ │ JOHN A. SMITH, Lt Col, USAF │ ← Signature block │ Commander │ │ │ │ 2 Attachments: │ ← Attachments (one prints │ 1. AF Form 1, 12 Mar 26 │ under "Attachment:") │ 2. Memo, 123 FW/CC, 5 Mar 26 │ │ │ │ cc: │ ← Cc │ Lt Col Doe, 56 OSS/DO │ │ │ │ Aim High │ ← Tag line ├────────────────────────────────────────────────────────────────┤ │ [classification banner, bottom] │ └────────────────────────────────────────────────────────────────┘ ``` ## Fields The editor groups the fields under the four headings below. No field is required: one you leave unanswered prints its default, or nothing. A memo reads as finished once **Memo for**, **Subject**, **Signature block**, and your unit's letterhead line are filled. ### Addressing | Field | What it is | | --- | --- | | **Memo for** | Each recipient's office symbol, one per line; printed in uppercase. To address a person, add rank and name in parentheses: `ORG/SYMBOL (LT COL JANE DOE)`. For a long list, enter `SEE DISTRIBUTION` and fill **Distribution**. | | **Memo from** | Your office symbol. If any recipient is off your installation, add your full mailing address on the lines below it. Leave it blank for a [Memorandum for Record](document-types.md#memorandum-for-record-mfr), which has no `FROM:` line. | | **Subject** | A brief subject in title case (capitalize each word except articles, prepositions, and conjunctions). Put any suspense date in parentheses at the end. | | **Date** | The date you sign. **Today** prints the day the PDF is made, which is what the official templates start on. Left blank, the PDF gets a fillable date field for the signer instead. | | **Authority line** | Usually blank. `FOR THE COMMANDER` when you sign on the commander's behalf or state the headquarters' position; it prints above the signature block. | | **Signature block** | Line 1: the signer's name in uppercase as signed, grade, and service (`JOHN A. SMITH, Lt Col, USAF`). Line 2: duty title. Spell out "Colonel" and general officer ranks. The PDF carries a fillable signature field above it. | ### Letterhead | Field | What it is | | --- | --- | | **Letterhead title** | The letterhead lines, printed in uppercase. The first line defaults to `DEPARTMENT OF THE AIR FORCE`; change it only for a joint command or a DoW agency. Add your unit's full name on the lines below, typically `HEADQUARTERS `. | | **Letterhead seal** | The seal at the top left: Department of War (`dow`, the default) or Department of Defense (`dod`). | | **Letterhead seal subtitle** | An optional line in bold capitals under the seal. | | **Tag line** | Your unit's motto, centered at the bottom of every page (`Aim High`). Takes `*italic*` and `**bold**`. | ### Classification **Classification** sets the banner at the top and bottom of every page, and choosing `CUI` adds the CUI designation fields. **Dissemination** adds a control to the end of the banner. Both are covered in [Classification & Markings](classification.md). ### Additional | Field | What it is | | --- | --- | | **References** | Each cited publication or prior correspondence by organization, type, date, and title. Italicize publication titles with `*asterisks*`. One reference prints in parentheses after the subject; two or more print as a lettered list, `(a)`, `(b)`. | | **Cc** | Offices or people receiving a courtesy copy, one per line. | | **Distribution** | Everyone the memo goes to, when **Memo for** says `SEE DISTRIBUTION`. | | **Attachments** | Attachments in the order the body mentions them. Describe each briefly and include its date; don't write "as stated". One prints under `Attachment:`; two or more print numbered under `2 Attachments:`. | | **Memo style** | `usaf` (the default) for most memos, `daf` for a DAF headquarters memo, which dates as `September 15, 2026` and indents paragraphs instead of numbering them. | | **Font size** | Body text size in points, default `12`. Decimals are allowed (`11.5`). | ## Body conventions You write prose; the memo numbers and indents it per AFH 33-337. - **Top-level paragraphs are numbered** `1.`, `2.`, `3.`. Don't type the numbers: write plain paragraphs, each on its own. - **A single paragraph is not numbered.** - **A bulleted list becomes lettered subparagraphs** (`a.`, `b.`). Tab nests a bullet a level deeper, which continues `(1)`, `(a)`, then underlined numbers. - **A quote block is never numbered.** Type `> ` at the start of a line, or pick it from the `/` menu, for a roster of names, an address, or a quoted passage. `Shift + Enter` breaks a line inside it. - **A heading runs into the next paragraph** as its bold title: a heading `Background` over a paragraph prints as `1. **Background.** The paragraph…`. - **Tables** print where they stand, unnumbered. - **Inline emphasis**: bold, italic, and underline from the toolbar or their keys. Use it sparingly. In `daf` style, paragraphs are indented rather than numbered. The same body in Advanced Mode, where the structure is plain Markdown: ```markdown The first paragraph. Just write it. # Background The second paragraph, titled Background. - A subparagraph, lettered `a.`. - Another, lettered `b.`. - A deeper level, numbered `(1)`. > Capt Jane Doe\ > 1st Lt John Roe A third top-level paragraph. ``` ## What the memo does for you Beyond the numbering above and the placements on the map: - Prints the letterhead, recipients, and seal subtitle in uppercase. - Starts the signature block on the fifth line below the text, shifting it left when a long name would cross the right margin. - Leaves a fillable date field when **Date** is blank, and a fillable signature field above every signature block. - Numbers pages from page 2 on. - Continues a long attachment, cc, or distribution list on the next page, with a note saying so. ## What you still own - The substance of the memo. - The right regulation citations. - Correct routing and approval before signature. - Checking the rendered PDF before signing or distributing it. - Portion markings, derivative-classification statements, and any handling caveats inside the body. The memo prints only the banner and the CUI block; see [Classification](classification.md). # === writing/indorsements.md === # Indorsements An **indorsement** answers or forwards a memorandum: the endorser's own comment, decision, and signature, printed after the memo per AFH 33-337 Chapter 14. In the editor each indorsement is a card under the memo, and they print in order. Indorsements are common on: - Letters of Counseling ([Choosing a Template § LOC](document-types.md#letter-of-counseling-loc)) - Requests that need a commander's decision, such as a pass request - Memos routed through several offices - Award packages with endorsing officials ## Adding one **Add card**, under the memo's body, adds a **Routing indorsement** at the end; the + in the gap between two cards adds one there. **Move up**, **Move down**, and **Delete card** sit on each card. A new indorsement starts with placeholder values (`ORG/SYMBOL`, `FIRST M. LAST, Rank, USAF`), which print until you replace them. ## Fields | Field | What it is | | --- | --- | | **From** | The endorser's office symbol. | | **For** | The office the indorsement goes to. | | **Date** | The date the endorser signs. An indorsement is dated when it is signed, not with the memo's date. Left blank, the PDF gets a fillable date field. | | **Authority line** | Usually blank. `FOR THE COMMANDER` when the endorser signs on the commander's behalf. | | **Signature block** | Line 1: name in uppercase, grade, and service (`ROBERT T. CHANCE, Col, USAF`). Line 2: duty title. The PDF carries a fillable signature field above it. | | **Format** | `standard` (the default) continues on the same page and moves to a new one if it doesn't fit. `separate_page` always starts a new page. `informal` leaves out the header: no `FROM`/`TO` and no number, so **From** and **For** don't print. | | **Action** | The endorser's decision. Blank (the default) prints no decision line. `undecided` prints the pair for marking by hand. `approve` or `disapprove` underlines that choice and strikes the other. The last indorsement reads **Approve / Disapprove**; every one before it reads **Concur / Nonconcur**. | The body of an indorsement follows the memo's [body conventions](anatomy.md#body-conventions): its top-level paragraphs are numbered. ## Numbering Indorsements are numbered in order with AFH 33-337's military ordinals: `1st Ind`, `2d Ind`, `3d Ind`, `4th Ind`. An `informal` indorsement has no header, so it takes no number. ## Fitting indorsements on one page To keep a memo and its indorsements on one or two pages, lower the memo's **Font size** from the default `12` to `11`; decimals like `11.5` work. The preview shows page breaks as you go. ## Common patterns ### Commander's decision One indorsement from the commander, with **Action** set. As the last indorsement it reads Approve / Disapprove; `undecided` leaves the choice to be marked by hand. ### Routing through several offices Add one `standard` indorsement per echelon, in order. Each office adds its card when the memo reaches it. Every endorser before the last concurs or nonconcurs; the last approves or disapproves. ## In Advanced Mode An indorsement is a `~~~` block with `$kind: indorsement` after the memo's body, followed by the indorsement's own body ([Quillmark Format § Cards](../reference/quillmark-format.md#cards)): ```markdown ~~~ $quill: usaf_memo@0.3 memo_for: - 20 OG/CC memo_from: - 20 OSS/CC subject: Request for Range 7 Extension signature_block: - JANE Q. PUBLIC, Capt, USAF - Chief, Weapons and Tactics ~~~ Main body of the memo. ~~~ $kind: indorsement from: 20 OG/CC for: 20 OSS/CC signature_block: - ROBERT T. CHANCE, Col, USAF - Commander action: approve ~~~ Approved for the period requested. ``` # === writing/classification.md === # Classification & Markings Documents that contain classified or controlled information must be marked. The memo and personal letter templates print a classification banner at the top and bottom of every page, and a CUI designation indicator block for CUI. !!! warning "Authority" The classification of a document is owned by the originator, an Original Classification Authority, or derivative-classification guidance, not by the app. TongueToQuill applies the markings you choose; it does not classify content. Follow DAFI 16-1404 (DoDM 5200.48 for CUI) and applicable DoD guidance. ## The fields | Field | Values | | --- | --- | | **Classification** | Blank (no banner), `UNCLASSIFIED`, `CUI`, `CONFIDENTIAL`, `SECRET`, `TOP SECRET`. Custom markings are not supported. | | **Dissemination** | A control added to the end of the banner after a double slash: `NF` with `CUI` prints `CUI//NF`. Blank prints the classification alone. | !!! warning "Your deployment may allow fewer" A deployment declares the markings it is accredited for, and the **Classification** dropdown lists only those. A public low-side instance typically stops at `CUI`. The list above is the full range the template can print, not a statement that your instance carries classified material. An AI assistant drafting over the [AI endpoint](../mcp-server/index.md) is held to the same list. ## Banner colors | Classification | Banner | | --- | --- | | Blank | No banner | | `UNCLASSIFIED` | Green | | `CUI` | Black | | `CONFIDENTIAL` | Black | | `SECRET` | Red | | `TOP SECRET` | Orange | ## CUI Choosing `CUI` adds four fields under **Classification**, which fill the CUI designation indicator block (DoDM 5200.48) at the bottom right of page 1: | Field | What it is | | --- | --- | | **Controlled by** | The office that designated the information as CUI, for example `SAF/AA`. | | **Poc** | Who to contact with questions, with phone and e-mail. | | **Category** | The category from the DoD CUI Registry, for example `PRVCY` or `CTI`. Blank leaves it out. | | **Limited dissemination** | A limited-dissemination control for the block, for example `FEDONLY` or `NOFORN`. It does not reach the banner; use **Dissemination** for that. | The block prints only when at least one of its fields is filled. Switching a CUI document to another marking keeps the CUI fields in the document without printing them, so switching back restores them. DoDM 5200.48 requires the designating office and point of contact, but the template requires nothing: a CUI document renders with them blank. Meeting the manual is yours, and the banner and block alone are **not** a complete CUI marking. ## What the template does not do - Apply portion markings to individual paragraphs. - Derive the document's classification from its content. - Check that a **Dissemination** value is a real CAPCO marking. - Enforce handling caveats. Portion markings, derivative-classification statements, declassification instructions, and other content-level markings remain the author's responsibility. Write them in the body. ## In Advanced Mode A marking with no CUI fields is a single line. With them, the marking moves under `value`: ```yaml classification: SECRET dissemination: NOFORN ``` ```yaml classification: value: CUI controlled_by: SAF/AA poc: Capt J. Smith, DSN 555-1234, john.smith@us.af.mil category: PRVCY dissemination: NF ``` Documents on the older `usaf_memo@0.2` carry the CUI fields as separate top-level fields named `cui_controlled_by`, `cui_poc`, `cui_category`, and `cui_limited_dissemination`. # === mcp-server/index.md === # Drafting with AI An AI assistant such as Claude or ChatGPT can draft a TongueToQuill document from your conversation and hand you a link to it. It is a connector you add to the assistant once ([Setup](setup.md)); after that you describe the document in chat. This is separate from [First Draft](../getting-started/templates.md#first-draft), which fills a template from notes inside the app and needs no setup. Use First Draft when you know the template; use an assistant when you want to work the document out in conversation. ## How a session goes 1. **You describe the document.** > Draft a memo to 20 FW/CC about the upcoming safety inspection on 14 May. From 20 OG/CC. Mention mandatory attendance for all flight commanders. Sign it Lt Col Smith, Commander. 2. **The assistant drafts it** against the format's field list and replies with a claim link. 3. **You open the link and sign in.** The draft is now yours, and it opens read-only with **Download** and **Save Copy**, which copies it into your documents to edit. 4. **Ask for changes in the same conversation.** The assistant revises the draft in place, without a new link, and the open draft shows each revision within seconds. A revision changes the draft, not a copy you already saved, so save after the last one. Whatever the assistant writes, you review before it goes anywhere. [Effective Prompting](prompting.md) says what to put in the request and what to check in the result. ## Claiming the draft The link is `https:///claim/`. Open it promptly: an unclaimed draft expires five minutes after the assistant creates it, and the first person to open the link and sign in owns it, so don't forward it. A claimed draft lasts 24 hours from its last change, so **Save Copy** anything you want to keep. Some deployments add a second step. After you sign in, the claim page shows a six-digit code in place of the draft. Paste the code into the chat where you asked for the document; the assistant sends it back, and the page opens the draft once it lands. The code lasts ten minutes, works once, and locks after five wrong tries; reloading the page shows a fresh code and retires the old one. If the claim page shows an error, [Troubleshooting § AI assistants](../reference/troubleshooting.md#ai-assistants) says what each one means. ## What it can and can't do It can draft any document type the deployment serves and revise the draft it made in that conversation. It can't read or edit documents already in your library, or reach the template library. To have AI fill a template, use [First Draft](../getting-started/templates.md#first-draft) where your deployment offers it. ## When to use it | Use the editor when | Use an assistant when | | --- | --- | | You know exactly what you want to write | You want to dictate a document conversationally | | You're starting from a template you know | You don't know which format you need | | The content shouldn't reach a third-party AI | The content is routine and unclassified | | You're tuning layout: page fit, indorsement formats, field-by-field review | The document has a clear purpose you can state in a few sentences | ## Sensitive content Your prompt and the draft pass through whichever AI service you connected. Treat that as a third-party data flow: routine unclassified business is usually fine; CUI, PII, and classified content are not, unless your organization has approved that service for them. When in doubt, draft by hand. The deployment's classification ceiling applies on this path too, and a draft marked above it is refused. That guards the marking, not the content: nothing can tell that an unmarked paragraph is CUI. # === mcp-server/setup.md === # Setup Add your deployment's MCP endpoint to your AI assistant as a custom connector. The connector takes no API key or sign-in; you sign in once the assistant hands you a draft ([Claiming the draft](index.md#claiming-the-draft)). | Deployment | Connector URL | | --- | --- | | TongueToQuill | `https://tonguetoquill.app/mcp` | | TongueToQuill Beta (invited testers) | `https://beta.tonguetoquill.app/mcp` | | Your organization's own instance | `https:///mcp` | Each deployment has its own accounts, so connect the one you sign in to. The screenshots below show the beta connector. ## Claude 1. Go to [Settings → Connectors](https://claude.ai/new#settings/customize-connectors). 2. Click **Add** → **Add custom connector**. 3. Fill the first two fields, ignore **Advanced settings**, and click **Add**. | Field | Value | | --- | --- | | Name | Any label for your connectors list, such as `TTQ Beta` | | URL | The connector URL from the table above | ![Claude Add custom connector dialog filled in for TTQ Beta](../assets/beta-setup-claude.png){ width="480" }
## ChatGPT 1. Turn on [Developer Mode](https://chatgpt.com/#settings/Security?section=developer-mode) — Settings → Security → Developer mode. 2. Go to [chatgpt.com/plugins](https://chatgpt.com/plugins). 3. Fill Name, Connection, and Authentication, tick the custom-server acknowledgement, and click **Create**. Description is optional. | Field | Value | | --- | --- | | Name | Any label, such as `TTQ Beta` | | Connection | **Server URL** (not Tunnel), then the connector URL | | Authentication | **No Auth** | ![ChatGPT connector form filled in for TTQ Beta](../assets/beta-setup-chatgpt.png){ width="480" } ## A coding agent or other client Most coding harnesses configure themselves. Tell yours: > Connect https://beta.tonguetoquill.app/mcp MCP server and write a test memo Any other MCP client connects over Streamable HTTP at the connector URL; the older HTTP+SSE transport isn't served. ## Check it works Ask the assistant for a test memo. It should hand back a claim link; open it and sign in, and the memo opens in the app. If it doesn't, see [Troubleshooting § AI assistants](../reference/troubleshooting.md#ai-assistants). # === mcp-server/prompting.md === # Effective Prompting How to ask an AI assistant for a TongueToQuill document and get a usable first draft. The advice holds whether the assistant is connected to TongueToQuill or you paste its output into the editor. ## What to include 1. **The document type** — "USAF memo," "MFR," "DAF 1206 nomination," "medal citation." 2. **The recipients** — office symbols, such as `20 FW/CC` or `AFROTC DET 730/CC`. 3. **The sender** — your office symbol, or rank and name if you sign. 4. **The substance** — what the document is *for*, in your words. The assistant supplies structure; you supply content. ``` Draft a {document type} from {sender ORG/SYM} to {recipient ORG/SYM}. Subject: {your subject, title case} Body: - {point 1} - {point 2} - {point 3} POC: {name, rank, phone or email} Signed by: {name, rank, USAF/USSF}, {duty title if any} ``` Filled in: > Draft a USAF memo from 20 OSS/CC to 20 OG/CC. Subject: Range 7 closure 22 Apr. Body should note that the closure is for scheduled depot maintenance, the alternate range assignment for affected sorties is Range 12, and that the POC is Capt Smith at 555-1234. Sign it as Lt Col Jane A. Public, Director of Operations. ## What to leave out - **Formatting.** The format owns the letterhead, fonts, spacing, paragraph numbering, and signature-block layout. List your points; don't number them. - **The date,** unless you want one printed. Left out, the memo gets a fillable date field to sign into; "date it today" prints today's date. - **Citations you don't need.** Asked for references, an assistant invents plausible ones. ## Give exact facts, then check them Give exact names, ranks, dates, and office symbols (`ORG/SYM`, all caps), and paste any regulation language that must stay verbatim; assistants paraphrase by default. Then check each one in the draft, because an assistant fills gaps confidently: - Names, ranks, and dates. - Office symbols: routing only works if these are right. - Regulation citations, against the actual regulation. A wrong DAFI number sails through every spell-check. - Numbers: costs, counts, percentages. - Tone. Assistants run florid; AFH 33-337 is plain. The format guarantees the layout; you guarantee the content. ## Fields your prompt didn't cover The assistant drafts against the format's actual field list. For a field your prompt left open, it either infers a value, such as your unit's letterhead line from your office symbol, or asks you. Read every inferred value: plausible and wrong is what survives to signature. ## Prompts that fail - **"Make it sound more authoritative."** Adds adjectives and weakens the writing. - **"Add some boilerplate."** Boilerplate belongs to the template. If you want it, start from a template that has it. - **"Write it like a colonel would."** Produces parody. Specify the substance instead. - **"Include all relevant AFIs."** Without your unit's regulations, the assistant fabricates. # === getting-started/publishing.md === # Publishing a Template Publishing puts a document in the template library as a starting point for everyone on your instance: a unit's memo with the letterhead and tag line filled in, an LOC with its indorsements in place, a recurring report. You maintain it afterward from a copy the app keeps for you. ## Publish **Publish** in the top bar's ⋮ menu opens the Publish Template dialog for the open document. It needs an account; a document still held on this device is first offered **Save to Account**. | Field | Rules | | --- | --- | | **Template Title** | Required, up to 200 characters. | | **Description** | Optional, up to 2000 characters. What the template is for and who should use it. | | **Tags** | Optional keywords people search by (`award`, `training`, `55th wing`). The document's format is attached as a fixed chip. | The dialog then asks whether the document contains sensitive data or offensive content. **Publish** appears only after you answer **No**. Publishing puts the document in front of everyone on the instance: scrub names, contact details, and real case facts out of anything you publish as a starting point. Publishing makes a **template copy** of your document and opens it. The copy sits under **Templates** in the sidebar and backs the published template. Your original stays under **Your documents**, unchanged and unlinked: edits to it never reach the template. ## Maintain The template copy is where you maintain the template. Edits to it don't reach the published template until you press **Update Template**. While the two differ, a banner over the preview reads "Your document has unpublished changes" with two actions: - **Update Template** replaces the published content with the copy's current content. Anyone who uses the template afterward gets the new version; documents already made from it are untouched. - **Reset to Published** replaces the copy's content with the published version, discarding the unpublished changes. **Manage Template**, in the ⋮ menu while the template copy is open (or the globe icon on its sidebar row), edits the title, description, and tags; **Save Changes** applies them. **Unpublish** there removes the template from the library and search. The copy stays yours and moves back to **Your documents**, where it can be deleted. A template whose format the deployment no longer serves drops out of the library. Its copy's banner then reads "Hidden from the library" and names the format; change the copy's `$quill` line to a served version in [Advanced Mode](editor.md#advanced-mode), then **Update Template** to list it again. ## Make a good template - **Fill in what every user shares** and leave the rest blank or on its default: the letterhead and tag line, the signature block's duty title, the standard references. A blank field prints nothing and asks nothing. - **Put guidance in comments.** Text between `` in the body never prints, so a template can carry instructions where the user will read them. The Rebuttal template does this. - **Add Editor tips.** A template can open with an **Editor tips** card under the first card, which steps the user through your advice and then dismisses. The tips are lines under `$ext` in the first card, written in [Advanced Mode](editor.md#advanced-mode): ```yaml $ext: editor: tips: - Click "Add Card" below to add an indorsement. - Type `/` for bullets, tables, and more. ``` - **Set the starting values of added cards.** A memo template can decide what a new indorsement starts with, such as the commander's office symbol and signature block, so the user adds one and changes nothing. This is the `$seed` key in [Quillmark Format](../reference/quillmark-format.md#reserved-keys). ## Featuring, popularity, and reports **Featured** holds every official template and the community templates a moderator has featured. Everything else is ranked under **Popular** by uses and stars, and a template that goes a long time without an update counts for less. On deployments that take reports, a community template's pane has a flag icon. **Report** sends the template to the moderators as **Data spillage**, **Offensive content**, or **Other**, with optional context. A moderator can unpublish a community template from the same line, and feature or unfeature it from the badge after its title. # === reference/quillmark-format.md === # Quillmark Format Quillmark is the format TongueToQuill documents are written in: [CommonMark](https://spec.commonmark.org/0.31.2/) Markdown, with each card's fields in a YAML block fenced by `~~~`. It reads as plain text and parses as structured data. You meet it in [Advanced Mode](../getting-started/editor.md#advanced-mode), when pasting a document built elsewhere, and when an AI assistant writes one. This page is the reference for the format. For writing a document in the editor, start at [Choosing a Template](../writing/document-types.md) or [Anatomy of a Memorandum](../writing/anatomy.md); nothing there needs this page. ## Document structure A document is a sequence of **cards**. Each card is a `~~~` block of fields followed by the Markdown body under it, up to the next block or the end of the file. - The first card is the **main card**. Its `$quill` line names the Quill that renders the document. - Every card after it names its kind with `$kind`, such as `indorsement`. Minimal document: ```markdown ~~~ $quill: usaf_memo@0.3 memo_for: - 20 FW/CC subject: Example signature_block: - JOHN A. SMITH, Lt Col, USAF ~~~ The body goes here. ``` ## Card blocks A card block opens and closes with `~~~`, three tildes at column zero. The canonical opener is a bare `~~~`. An info string after it is ignored, so `~~~card-yaml` and `~~~yaml` open a card too, and both are saved back as a bare `~~~`. Between the fences is YAML. ```markdown ~~~ key: value list: - one - two ~~~ ``` !!! warning "Blank line above the opener" A blank line is required immediately above every `~~~` opener, unless the opener is line 1. Without it the line is not an opener: the parser reads an ordinary code block, and the document loses its structure. This is the most common authoring mistake. Two more rules catch people coming from other Markdown tools: - **Not `---` front matter.** A document that opens with `---` has no main card and fails to parse; the error names the `~~~` fence to write instead. - **Code in a body takes backticks.** Any `~~~` at column zero after a blank line opens a card, whatever follows it, so a literal code block in a body opens with ```` ``` ````. ### Reserved `$` keys Keys starting with `$` belong to the format, and only these four exist. Any other `$` key is a parse error. | Key | Where | Purpose | | --- | --- | --- | | `$quill` | Main card only, required | Names the Quill and its version: `usaf_memo@0.3`. | | `$kind` | Every card after the main card, required | Names the card's kind, one the Quill declares (`indorsement`). The main card's kind is `main`; writing `$kind: main` there is optional, and no other card may use it. | | `$ext` | Any card | Editor and tool data that never prints: a template's editor tips, or a name given to a card in the editor. | | `$seed` | Main card only | What a new card of each kind starts with, so a template can set its own placeholders for the cards added to it. | ```yaml $seed: indorsement: from: 20 OG/CC signature_block: - FIRST M. LAST, Col, USAF - Commander ``` Every other key is a field, in lowercase `snake_case`. The Quill decides what each field means. ### YAML values The fields are YAML, and a few of its rules bite often enough to name: - **Blank means unanswered.** `field:`, `field: null` and `field: ~` are the same as leaving the line out: the field prints its default, or nothing. Write `field: ""` to force a field empty when its default would print. - **One value is a one-item list.** `memo_for: 20 FW/CC` is the same as the two-line list form. - **Quote values YAML would misread.** A value that starts with `*`, `&` or `!`, or contains `: ` or ` #`, needs quotes: `subject: "Range 7: Closure"`, `tag_line: '**Aim High**'`. So does text that looks like a number, such as a ZIP code with a leading zero (`"02134"`) or a phone number with a `+`. - **Only `true` and `false` are booleans.** `yes`, `no`, `on` and `off` are text. - **Dates are `YYYY-MM-DD`,** or `today` for the day the document is rendered. - **Multi-line values use a `|-` block**, not a quoted string spanning lines. Some fields hold others. `classification` in the memo is one: choosing `CUI` adds the CUI fields under it, with the marking under `value` ([Classification § CUI](../writing/classification.md#cui)). ## Version selectors The `$quill` value is a Quill name with an optional version: | Form | Meaning | | --- | --- | | `usaf_memo@0.3` | The newest `0.3.x` the deployment holds | | `usaf_memo@0.3.0` | Exactly `0.3.0` | | `usaf_memo` | The newest version the deployment holds | `@0`, `@latest` and a trailing `@` are parse errors. Names match `[a-z][a-z0-9_]*`. Pin `MAJOR.MINOR`, which is what new documents, templates and blueprints write. A Quill's patch releases never ask anything of a document, but a minor release can rename or reshape fields, so a bare name can leave a document behind when the deployment moves to the next minor version. An exact pin stops resolving when the deployment replaces that patch. A name may carry the collection it comes from: `airmark.usaf_memo@0.3` resolves on a deployment serving the `airmark` collection, as the bare name does. ## Cards The main card's `$quill` applies to the whole document; each later card declares only its `$kind`. The kinds a document can hold are the Quill's: `indorsement` in the memo, `itinerary` in DAF Form 4392, `experience` in AF Form 4141, a section per kind in the resume. Cards print in the order they appear. ```markdown ~~~ $quill: usaf_memo@0.3 subject: Request for Range 7 Extension ~~~ Main body. ~~~ $kind: indorsement from: 20 OG/CC for: 20 OSS/CC signature_block: - ROBERT T. CHANCE, Col, USAF - Commander ~~~ Indorsement body. ``` A card of a kind the Quill doesn't declare stays in the document but does not print; the MCP tools reject one. ## Supported Markdown CommonMark 0.31.2, plus: - GFM strikethrough (`~~text~~`) - GFM pipe tables, with column alignment (`:---`, `:---:`, `---:`) - GFM task lists (`- [ ]`, `- [x]`) - `text` for underline, and `
` for a line break, including inside a table cell | Feature | Syntax | | --- | --- | | Bold | `**text**` | | Italic | `*text*` | | Underline | `text` | | Strikethrough | `~~text~~` | | Heading | `# Heading` | | Ordered list | `1. item` | | Unordered list | `- item` | | Task list | `- [ ] item` | | Block quote | `> text` | | Line break | `\` at the end of a line, or `
` | | Pipe table | `\| col \|`, with `\| :--- \|`, `\| :---: \|`, `\| ---: \|` alignment | | Link | `[text](url)` | | Inline code | `` `code` `` | | Code block | ```` ``` ```` | | Comment | `` | What a construct looks like on the page is the Quill's call: the memo, for example, numbers paragraphs, letters bullets, and prints block quotes unnumbered ([Anatomy § Body conventions](../writing/anatomy.md#body-conventions)). Constructs that don't print: - **Images** stay in the document, but no Quill draws them. - **Comments** (``) never print, which makes them a place for notes in a template. - **Other HTML** is dropped. - **Math** (`$…$`) and **definition lists** print as the literal text. - **Footnotes**: the definition is dropped, and a reference prints as written (`[^1]`). ### Layout tags Resizing or aligning a table in Rich Text Mode writes a `qm-table` tag around it, and the same tags work in Advanced Mode. Each tag stands on its own line with a blank line around what it wraps. ```markdown | Item | Description | Qty | | --- | --- | --- | | A | First | 1 | ``` - `qm-table` takes `widths` (relative column weights, or `auto`), `align` (`left`, `center`, `right`) and `headless` (no header row). - `…` around a whole table cell aligns that cell. - `qm-keep` keeps what it wraps on one page. ## Validation The Quill checks every card's fields before rendering. Most problems still render: - **Unanswered fields** print their default, or nothing. No field is required. - **Unknown fields** stay in the document, and the layout ignores them. The editor doesn't flag them, so a misspelled field name simply doesn't print. - **Unknown card kinds** stay in the document and don't print. A render fails only where the Quill would have to guess what you meant, and the diagnostic names the field by its path (`main.memo_style`, `cards.indorsement[0].action`): - A value outside a field's choices, which are case-sensitive: `memo_style: USAF` instead of `usaf`. - A value that isn't the field's type: text in a number field, or a date that isn't `YYYY-MM-DD` or `today`. - A second paragraph in a one-line field. - A card block the parser can't read: a `---` opener, a card after the main card with no `$kind`, an unknown `$` key, or YAML that doesn't parse. For the full format specification and engine reference, see [quillmark.dev](https://quillmark.dev/). # === mcp-server/tools.md === # AI Tool Reference For integrators and anyone pointing their own MCP client at TongueToQuill. The MCP endpoint exposes five tools, plus `claim_document` on deployments that turn on device-code claiming. Each request stands alone: the server keeps no session, and the **claim token** the model carries is what ties a revision to its draft. Input and output schemas come back from `list_tools`; this page covers the behavior that isn't on the wire. Every result that has a next step ends with a `→ Next:` line naming the tool to call, with the values the server already holds filled in. ## Call sequence 1. `list_quills`, when the format isn't already known. 2. `get_specs` for the chosen Quill. 3. Edit the blueprint into the document. 4. `create_document` returns a claim link and a claim token. 5. Show the user the link and ask them to open it and sign in. Under device-code claiming, also ask for the six-digit code it shows, then call `claim_document` with the token and code. 6. To revise, call `get_specs` again, then `update_document` with the same token. When the user supplies a template short code, start with `get_template` and build from its content instead of a blank blueprint. [Drafting with AI § Claiming the draft](index.md#claiming-the-draft) covers the claim from the user's side. ## `list_quills` Returns the Quills this deployment serves, as `name@version` with a description. Write the chosen one into the document's `$quill`. A bare name takes the newest version the deployment holds; `name@MAJOR.MINOR`, such as `usaf_memo@0.3`, holds the document to that format line. See [Quillmark Format § Version selectors](../reference/quillmark-format.md#version-selectors). ## `get_template` Fetches a published template by its **short code** (such as `HeLiBeKrXeFeCoNiZnAr`), returning its markdown and the Quill it targets (`quill_ref`). The app shows no template's short code, so a user has one only from outside it. Call it only when the user supplies a code. Then call `get_specs` for that `quill_ref`; a template with no `quill_ref` is used as it stands. ## `get_specs` Returns the spec for one Quill: an `instruction` carrying the authoring rules and the deployment's field policy, and a `blueprint`, which is the Quill's fields as a document ready to fill. Call it before `create_document` and again before every `update_document`, and build the document by editing the blueprint rather than writing from memory. In the blueprint, an empty value awaits an answer and a value shown is the default: keep it, change it, or delete the line. Comments carry each field's label and type; an `# e.g.` line shows a value's shape, not data to copy. Optional cards appear as one sample card to copy or delete. An unknown Quill comes back as an error listing the ones available. ## `create_document` Validates `content` and stores it as an unclaimed draft, taking the document `name` and an optional `author` display name. Returns the claim link and the claim token. The draft expires five minutes later unless claimed. Show the user the link, never the token, and keep the token: every later call for this draft needs it. ## `claim_document` Registered only under device-code claiming. Takes the claim token and the six-digit code the user pasted, and binds the draft to the account that opened the link; the user's open claim page then shows the draft. The code works once and locks after five wrong tries, so if the user mistypes, ask them to re-enter it rather than retrying the same value. If the claim window lapsed, start over with a fresh `create_document`. Keep the claim token afterward. ## `update_document` Replaces a claimed draft's content in place: no new link or code. Takes the claim token and the full new `content`, built from the draft's *current* content rather than a blank blueprint. `name` and `author` are optional; an omitted `name` keeps the current title. Each update extends the draft to 24 hours from that change. The token edits the draft only: a copy the user already saved with **Save Copy** doesn't change. The call can't read the draft back or change its owner. ## Errors A failed call returns `isError: true` with plain text. Each engine diagnostic in it carries a severity, a message, a stable code (`validation::type_mismatch`, `validation::enum_violation`, `parse::missing_kind`), a rooted path to the offending value (`main.memo_for`, `cards.indorsement[0].action`), and, where available, a hint and a line and column. - **Parse failure** — the content isn't readable card-yaml: `---` front matter, a missing blank line above a `~~~`, a card with no `$kind`, a `$` key outside `$quill`, `$kind`, `$ext`, and `$seed`. The text starts "Document parse failed:". - **Validation errors** — a value that won't read as its field's type, such as an enum value not in its list or a malformed date. Three warnings are refused like errors on this path, because the render would silently drop what was written: a card kind the Quill doesn't declare (`validation::unknown_card`), a body on a card that takes none (`validation::body_disabled`), and a line break in a one-line field (`validation::line_break_folded`). - **Policy rejection** — a value the deployment disallows, such as a classification above its ceiling. The `get_specs` instruction states the policy up front. - **Storage failure** — the server couldn't save the draft. Fix the named value and call again; nothing needs cleaning up between attempts. ## Claim security model Three values tie a draft to its owner: - **Claim token** — the assistant's secret, returned by `create_document` and never shown to the user. It authorizes the assistant's revisions (and, with a device code, the claim itself) for the draft's lifetime. It can overwrite the draft but cannot read it or change its owner. - **Claim link** — the `/claim/` URL, which travels in clear chat text. Its page holds sign-in and the claim, and shows no document content before the claim. - **Device code** — six digits, minted only under device-code claiming, and shown only to the account that opened the link. All three are stored only as hashes. Once claimed, the draft opens only for its owner's session; knowing its address is not enough. ### What each mode protects against By default the claim link is the whole key: the first person to open it and sign in owns the draft. Device-code claiming makes the link alone worthless, because claiming also takes the token the assistant holds. Neither mode stops a **prompt injection**, where content the assistant reads instructs it to leak its context. The link appears in chat text, so an injection that reads the conversation has it, and under device-code claiming it has the token too. Keeping the link out of the model's view would close that path; the MCP endpoint has no surface outside the chat to show it on, so every draft it creates is delivered in chat. | Who has what | Default claim | Device-code claim | | --- | --- | --- | | Someone with only the link (forwarded, overheard) | Claims and reads the draft | Gains nothing | | An injection that reads the conversation | Claims and reads the draft | Claims and reads the draft | ### First visitor wins Both modes let the first visitor take the link, at different costs. By default the first signed-in visitor owns the draft, and the user lands on "already claimed". That is a disclosure, accepted because the draft is content the user just asked for and the link lives five minutes. Under device-code claiming the first visitor only stages a claim. Without the token they gain nothing, but the user lands on "claimed by a different account" and the draft expires unclaimed. That costs the draft, not its contents. ### Which mode a deployment runs `claim_document` is registered only under device-code claiming, so a deployment whose tool list omits it claims on sign-in alone. ## Giving an assistant this site To hand an assistant the whole documentation as context, give it [llms.txt](https://docs.tonguetoquill.com/llms.txt). # === reference/glossary.md === # Glossary Terms the app and these docs use. **Advanced Mode.** The raw-text editing surface, switched on in the sidebar's **Settings**. The document is the same in both modes; see [The Editor § Advanced Mode](../getting-started/editor.md#advanced-mode). **Card.** One block of a document: its fields, then its body. The first is the main card; the rest are cards of a kind the format declares, such as a memo's indorsements. In Rich Text Mode each card shows its fields above its body. **Claim link.** The link an AI assistant hands you after drafting a document; opening it and signing in makes the draft yours. See [Drafting with AI § Claiming the draft](../mcp-server/index.md#claiming-the-draft). **Classification banner.** The marking at the top and bottom of every page, set by the **Classification** field. See [Classification & Markings](../writing/classification.md). **Community template.** A template a user published, as opposed to an official one. It appears under **Popular** unless a moderator features it. **CUI.** Controlled Unclassified Information, per DoDM 5200.48. One of the **Classification** values; choosing it adds the CUI designation fields. See [Classification § CUI](../writing/classification.md#cui). **Default.** What a field prints when you leave it unanswered, such as `12` for **Font size**. A field with no default prints nothing. **Device code.** A six-digit code some deployments add to claiming an AI draft: the claim page shows it, and you paste it back to the assistant. **Featured.** The template library's section of official templates and the community templates a moderator has featured. **Field.** One named value in a card, such as **Subject** or **Memo for**. The format declares which fields exist and their defaults; none is required. **First Draft.** On deployments with drafting turned on, a note or attached file in a template's pane that an AI fills the template from when it creates your document. See [Templates § First Draft](../getting-started/templates.md#first-draft). **Format.** What a template is written in: the fields a document can hold, the layout that prints them, and the fonts and seals it needs. Also called a *Quill*. Many templates share one format. See [Choosing a Template § Templates and formats](../writing/document-types.md#templates-and-formats). **Indorsement.** A card that answers or forwards a memo, with its own signature. See [Indorsements](../writing/indorsements.md). **MCP.** Model Context Protocol, the protocol an AI assistant uses to reach TongueToQuill. See [Drafting with AI](../mcp-server/index.md). **Memorandum for Record (MFR).** A memo documenting something for the file, with no recipient. See [Choosing a Template § MFR](../writing/document-types.md#memorandum-for-record-mfr). **Office symbol.** The short form of a unit and function, such as `20 FW/CC` for the 20th Fighter Wing commander. **Official template.** A template that ships with the deployment's formats. Official templates are always featured. **On device.** The sidebar section for documents saved in this browser only: a guest's, or ones made before signing in. **Save to account** moves one into your account. **Publish.** Put a snapshot of a document in the template library. Publishing makes a template copy of the document; later edits to that copy reach the template only when you update it. See [Publishing a Template](../getting-started/publishing.md). **Quill.** A format; see **Format**. The name appears on the format chip in the library and on the `$quill` line in Advanced Mode. **Quillmark.** The document format and rendering engine TongueToQuill is built on. See [Quillmark Format](quillmark-format.md) and [quillmark.dev](https://quillmark.dev/). **Recents.** The template library's row of templates you used most recently, kept per device for guests. **Reset to Published.** Roll a template copy back to the template's last published content, discarding unpublished changes. **Rich Text Mode.** The default editing surface: cards with their fields above a body you edit as formatted text. **Save Copy.** On a shared document or an AI draft, make an independent, editable copy of your own. The original is untouched. **Share.** Give one of your documents a read-only link. See [Sharing a Document](../getting-started/sharing.md). **Star.** Bookmark a template. Your stars follow your account, and each adds to the template's public count. **Template.** A published document that starts new documents: using one copies its content into a document of your own. Distinct from a **format**, which is what the template is written in. **Template copy.** The document that backs a template you published, listed under **Templates** in the sidebar. **Update Template** and **Reset to Published** sync it with the template; see [Publishing a Template § Maintain](../getting-started/publishing.md#maintain). **Template library.** The view **New Document** opens: Recents, Featured, Popular, and search. See [Templates](../getting-started/templates.md).