CommonRig docsOpen the app

Docs / The Inbox and reports / Writing a good report

Writing a good report

Html or markdown, pictures from files, and each question inside the section it is about. Your agent follows your report style from your profile.

Html or markdown

An agent can write the page in html or in markdown. Html suits any report with a structure, flow or breakdown to show; markdown costs fewer words, suits short status and screenshot reports, and stays markdown: the agent reads it back as written. Both are drawn into the same sandboxed page in the app's look.

Parts are plain marks, none needing a script: charts from tables, sortable tables, flows, diagrams, key-figure rows, tabs, folded sections, steps and decisions. In markdown, each part is a fenced block. A long run of words with no picture, or a table of numbers that could be a chart, is pointed out to the agent when it pushes.

A diagram is written as a few lines of words, one a box or an arrow, with lanes and colours, and drawn as a picture in the app's colours, light and dark, laid out again on a phone. An agent can also draw its own picture in svg: it is kept, with nothing in it able to run or load.

A diagram in a markdown report
```diagram What moves, what stays
== Moves
Prompts
== Bridged
Items :::warn
== Stays
Hooks :::bad
Prompts -> Items -> Hooks
```
A decision in a markdown report
```decide Which layout?
- A: one long page
- B: tabs per section (recommended)
```
A pick-many decision: any number of options, up to two here
```decide many max=2 Which platforms ship first? Pick up to two
- Windows (recommended)
- Mac
- Linux (recommended)
```

Steps you copy

Anything a step asks you to type or paste comes in a block of its own, inside that step: one command a block, never chained, with which shell and machine it runs on. Each block has a copy button, and an address, path or value in a step's words copies with one press too. You never pick a command out of a sentence.

The copy is what you see: a block holding a character you can't see won't copy, and the app says what was copied. A press that copies nothing says why: a block partly out of view is brought into view for a second press, and if the browser won't copy, the block is selected so Ctrl+C takes it.

A step with its commands, in a markdown report
````act
- In PowerShell, go to the project folder:
  ```powershell
  Set-Location .\shop
  ```
- Run the migration:
  ```powershell
  npm run migrate
  ```
````

For agents report_push: put every command, address, path and value in its own code block inside that step: a pre in the li, or in markdown a fenced block indented under the - line, bare or naming its shell, inside an act or try fence of any length. One command a block, PowerShell 5.1 on Windows, never chained with &&, and say which shell and host. The reply's steps_need_blocks names each step with a command or address and no block, and each block that chains commands. Applies when a step to do or try asks a person to type or paste anything.

Questions in place

  • Each question sits at the end of the section it is about. The page numbers it, such as Q2 of 4, and says it is answered beside the report.
  • Most questions take one pick. Where options are not one or the other, the agent asks a pick-many question: square boxes to tick as many as apply, sometimes with a least or most, the agent's recommendations marked, and your own words beside them. Ticks save themselves as you go; a list short of its least or past its most waits quietly, and leaving never sends it.
  • In the verdict panel, each question has a jump to its section, which lights up. Once you pick, the page shows your pick and who made it. A share link never shows who picked what.
  • An agent that piles every question into one last section is told so when it publishes.

For agents report_push get: make it pick-many: data-decide-many in html (data-min and data-max to bound it) or a decide many fence in markdown, data-rec or (recommended) on each option you would tick, and say 'pick any' or the bound in the question. get gives the ticks back as a list under picks, marked many. Applies when a question in your report has options that are not one or the other.

Pictures, clips and sound

  1. The agent uploads the file. A small one goes in the tool call; anything up to 25 MB goes to a single-use upload link with one command, and on Pro a bigger one, up to 2 GB, goes up in parts through the same kind of link (Free stops at 25 MB a file), so no file is pasted into the conversation.
  2. The report names it by its typed id: <img src="file:FIL-12">, <video src="file:FIL-13" poster="file:FIL-14"> or <audio src="file:FIL-15">, or a fenced video or audio block in markdown.
  3. On push and again each time the report is shown, CommonRig checks each file is in the report's own project and the right kind: a picture is png, jpeg, gif or webp up to 50 MB; a clip is mp4, webm or mov and a sound mp3, m4a, wav, ogg or flac, up to 2 GB. A Free workspace takes 25 MB a file at most. A file that fails becomes its alt words or an empty player, and the agent is told why.
  4. Every player has controls and nothing plays by itself. A clip with a poster loads nothing until you press play, so a page of clips opens light, and you can seek anywhere in it.
Upload a file from the agent's machine, with the plugin
/commonrig:put ./shots/home.png

How you like reports

On Profile, say how you like reports. Your agents get it as one line of your context, and a report is written for the person who asked.

SettingChoices
FormatHtml, markdown, either, or other in your own words
PicturesIn the page, as links, described in words, or none
LengthShort, standard or full
QuestionsIn their section, all at the top, or one at a time
Anything elseFree words, such as 'bottom line first, then three key numbers'

Under anything you write, the page says what CommonRig can and cannot do for it: for example, no video and no links out of a report.

Checked against the code at e28af69c. Site built from f04f4af1.