@avodado/cli 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ <!-- Repo location: .cursor/rules/avodado.mdc -->
2
+ ---
3
+ description: Authoring Avodado documentation (Markdown + typed blocks)
4
+ globs:
5
+ - "docs/**/*.md"
6
+ alwaysApply: false
7
+ ---
8
+
9
+ # Avodado docs
10
+
11
+ This repo uses **Avodado**: documentation is Markdown with typed, fenced YAML blocks,
12
+ and the `.md` files are the single source of truth. When writing or editing anything
13
+ under `docs/`, follow the full authoring skill at **`.avodado/skill/SKILL.md`**.
14
+
15
+ Essentials:
16
+
17
+ - Prose is plain Markdown. Structure goes in typed blocks — use only these nine:
18
+ `sequence`, `erd`, `table`, `callout`, `userstory`, `timeline`, `kanban`, `tracker`,
19
+ `meta`. Block bodies are YAML.
20
+ - Never paste raw HTML or inline SVG into a doc; express it as a block.
21
+ - Use only documented fields for each block; don't invent block types or fields.
22
+ - Add `id:` to a block that needs referencing; reference it as `doc#id` (or `#id` in
23
+ the same file). Don't reference an id that doesn't exist.
24
+ - Edit the specific block surgically rather than rewriting the whole document.
25
+ - After any change, run `avo check` and fix every diagnostic before finishing.
26
+
27
+ See `.avodado/skill/SKILL.md` for each block's exact fields and worked examples.
@@ -0,0 +1,22 @@
1
+ <!-- Repo location: CLAUDE.md at the repository root. Claude Code reads this automatically. -->
2
+
3
+ # Avodado — agent guide
4
+
5
+ This project uses **Avodado**: documentation-as-code where a doc is Markdown with
6
+ typed, fenced YAML blocks, and the files on disk are the single source of truth.
7
+
8
+ ## Writing or editing documentation
9
+
10
+ When creating or changing any document under `docs/**/*.md`, **follow the authoring
11
+ skill at `.avodado/skill/SKILL.md`**. It defines the block grammar, every block's
12
+ fields, and the `doc#id` reference scheme. In short:
13
+
14
+ - Prose is plain Markdown; structure goes in typed blocks (e.g. `sequence`, `erd`,
15
+ `table`, `callout`, `c4`, `flow`, `timeline`, `userstory`). Never paste raw HTML
16
+ or inline SVG.
17
+ - Use only the documented block types and their documented fields — the schemas are
18
+ strict, so an unknown block or field fails validation. Bodies are YAML.
19
+ - Give a block an `id:` when it needs to be referenced; reference it as `doc#id`.
20
+ - Edit the specific block surgically — don't regenerate whole files.
21
+ - **Run `avo check` and fix all diagnostics before finishing.** A change isn't done
22
+ until it passes.
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "https://avodado.dev/schema/config.json",
3
+ "docsDir": "docs",
4
+ "outDir": "dist"
5
+ }
@@ -0,0 +1,59 @@
1
+ ```meta
2
+ title: Getting started
3
+ subtitle: Your first Avodado document — replace this with whatever you need to capture.
4
+ tag: GUIDE · v0.1
5
+ ```
6
+
7
+ ## What is this?
8
+
9
+ This file is your first Avodado document. It is plain Markdown plus typed,
10
+ fenced YAML blocks. Prose stays as prose; anything structured goes in a block.
11
+
12
+ Open this file in your editor and edit it like normal. Run `avo check` after
13
+ edits to validate the schemas and references.
14
+
15
+ ```callout
16
+ tone: tip
17
+ title: The one rule
18
+ body: The .md file on disk is the source of truth. Edit a block surgically;
19
+ do not regenerate the whole document. Run avo check and fix every diagnostic
20
+ before finishing a change.
21
+ ```
22
+
23
+ ## A few example blocks
24
+
25
+ ```timeline
26
+ items:
27
+ - label: P0 — Stand up the docs
28
+ date: today
29
+ status: current
30
+ desc: Run avo check and fix any diagnostics
31
+ - label: P1 — Add the first feature
32
+ date: this week
33
+ status: next
34
+ desc: One feature with a userstory block
35
+ - label: P2 — Wire CI
36
+ date: later
37
+ status: future
38
+ desc: Run avo check on every PR
39
+ ```
40
+
41
+ ```table
42
+ columns: [Block, What it captures]
43
+ rows:
44
+ - [meta, Document title and subtitle]
45
+ - [callout, Note / tip / warn / danger]
46
+ - [table, Tabular data]
47
+ - [sequence, Interaction over time (SVG diagram)]
48
+ - [erd, Entities and relations (SVG diagram)]
49
+ - [userstory, Agile story + acceptance criteria + links]
50
+ - [timeline, Phases or milestones]
51
+ - [kanban, Now / next / later board]
52
+ - [tracker, Task list with status + priority]
53
+ ```
54
+
55
+ ## What next
56
+
57
+ - Edit this file and run `avo check`.
58
+ - Run `avo render docs/getting-started.md -o out.html` and open the result.
59
+ - Read `.avodado/skill/SKILL.md` for the full grammar.