readlint 0.3.0__tar.gz

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.
Files changed (69) hide show
  1. readlint-0.3.0/.agents/skills/business-ops/SKILL.md +211 -0
  2. readlint-0.3.0/.agents/skills/design-corpus/SKILL.md +300 -0
  3. readlint-0.3.0/.agents/skills/design-corpus/references/product-animations.md +126 -0
  4. readlint-0.3.0/.agents/skills/infra-inventory/SKILL.md +138 -0
  5. readlint-0.3.0/.agents/skills/product-checklists/SKILL.md +113 -0
  6. readlint-0.3.0/.agents/skills/public-writing/SKILL.md +159 -0
  7. readlint-0.3.0/.agents/skills/why-we-are-best/SKILL.md +135 -0
  8. readlint-0.3.0/.github/workflows/ci.yml +127 -0
  9. readlint-0.3.0/.github/workflows/release.yml +155 -0
  10. readlint-0.3.0/.gitignore +8 -0
  11. readlint-0.3.0/AGENTS.md +22 -0
  12. readlint-0.3.0/LICENSE +201 -0
  13. readlint-0.3.0/PKG-INFO +40 -0
  14. readlint-0.3.0/README.md +23 -0
  15. readlint-0.3.0/contracts/clients.json +50 -0
  16. readlint-0.3.0/contracts/fixtures.json +47 -0
  17. readlint-0.3.0/contracts/openapi.json +1163 -0
  18. readlint-0.3.0/contracts/test_contract.py +409 -0
  19. readlint-0.3.0/docs/cli.md +135 -0
  20. readlint-0.3.0/docs/development.md +166 -0
  21. readlint-0.3.0/docs/mcp.md +91 -0
  22. readlint-0.3.0/docs/python.md +59 -0
  23. readlint-0.3.0/docs/typescript.md +81 -0
  24. readlint-0.3.0/mcp.json +8 -0
  25. readlint-0.3.0/pyproject.toml +56 -0
  26. readlint-0.3.0/scripts/check_contract.py +81 -0
  27. readlint-0.3.0/scripts/ci_changes.sh +22 -0
  28. readlint-0.3.0/scripts/smoke.py +313 -0
  29. readlint-0.3.0/sdk/typescript/LICENSE +201 -0
  30. readlint-0.3.0/sdk/typescript/README.md +35 -0
  31. readlint-0.3.0/sdk/typescript/openapi-ts.config.ts +7 -0
  32. readlint-0.3.0/sdk/typescript/package-lock.json +1860 -0
  33. readlint-0.3.0/sdk/typescript/package.json +52 -0
  34. readlint-0.3.0/sdk/typescript/scripts/openapi.mjs +17 -0
  35. readlint-0.3.0/sdk/typescript/scripts/verify-package.mjs +22 -0
  36. readlint-0.3.0/sdk/typescript/src/auth.ts +76 -0
  37. readlint-0.3.0/sdk/typescript/src/cli.ts +99 -0
  38. readlint-0.3.0/sdk/typescript/src/gen/index.ts +3 -0
  39. readlint-0.3.0/sdk/typescript/src/gen/types.gen.ts +657 -0
  40. readlint-0.3.0/sdk/typescript/src/index.ts +217 -0
  41. readlint-0.3.0/sdk/typescript/src/mcp.ts +55 -0
  42. readlint-0.3.0/sdk/typescript/src/tools.ts +109 -0
  43. readlint-0.3.0/sdk/typescript/src/version.ts +1 -0
  44. readlint-0.3.0/sdk/typescript/test/auth.test.mjs +28 -0
  45. readlint-0.3.0/sdk/typescript/test/client.test.mjs +153 -0
  46. readlint-0.3.0/sdk/typescript/test/contract.mjs +25 -0
  47. readlint-0.3.0/sdk/typescript/test/example.mts +18 -0
  48. readlint-0.3.0/sdk/typescript/test/installed-surfaces.mjs +78 -0
  49. readlint-0.3.0/sdk/typescript/test/installed.mjs +50 -0
  50. readlint-0.3.0/sdk/typescript/test/mcp.test.mjs +22 -0
  51. readlint-0.3.0/sdk/typescript/test/requests.mjs +5 -0
  52. readlint-0.3.0/sdk/typescript/test/surfaces.mjs +51 -0
  53. readlint-0.3.0/sdk/typescript/tsconfig.build.json +1 -0
  54. readlint-0.3.0/sdk/typescript/tsconfig.json +22 -0
  55. readlint-0.3.0/skills/readlint/SKILL.md +87 -0
  56. readlint-0.3.0/skills-lock.json +47 -0
  57. readlint-0.3.0/src/readlint/__init__.py +21 -0
  58. readlint-0.3.0/src/readlint/auth.py +148 -0
  59. readlint-0.3.0/src/readlint/cli.py +180 -0
  60. readlint-0.3.0/src/readlint/client.py +284 -0
  61. readlint-0.3.0/src/readlint/mcp.py +162 -0
  62. readlint-0.3.0/src/readlint/py.typed +0 -0
  63. readlint-0.3.0/src/readlint/types.py +56 -0
  64. readlint-0.3.0/tests/test_auth.py +158 -0
  65. readlint-0.3.0/tests/test_ci_changes.py +118 -0
  66. readlint-0.3.0/tests/test_cli.py +106 -0
  67. readlint-0.3.0/tests/test_client.py +193 -0
  68. readlint-0.3.0/tests/test_mcp.py +88 -0
  69. readlint-0.3.0/uv.lock +1410 -0
@@ -0,0 +1,211 @@
1
+ ---
2
+ name: business-ops
3
+ description: Manage the repository's business_ops/ directory — business_ops/ops/ for internal recurring costs, vendor tiers/limits, accounting, signed DPAs/agreements, and monthly margin checks, and business_ops/growth_channels/ as the strategic and operational brain for growth channels coordinated with the Autoboard board. Use this whenever you record or check internal costs, vendor free-tier budgets, legal/vendor agreements, or monthly margins (pricing/monthly-margins), or whenever you brainstorm, evaluate, plan, execute, update, or reconcile growth channels for a product. Use this also when mapping competitors under business_ops/competition/; verified competitive claims live in business_ops/why_we_are_the_fucking_best_verified.md (see the why-we-are-best skill).
4
+ ---
5
+
6
+ # Business operations (`business_ops/`)
7
+
8
+ `business_ops/` is the repository's Git-reviewed home for ongoing business
9
+ operations (`ops/`) and the strategic and operational brain for customer
10
+ acquisition (`growth_channels/`), with the competition map under
11
+ `competition/` and the verified competitive claims in
12
+ `why_we_are_the_fucking_best_verified.md`. It complements:
13
+ - `design/` (`design-corpus`): software/product architecture, pre-launch unit
14
+ economics, and high-level decisions
15
+ - `infra/` (`infra-inventory`): technical resources, deployment, and live
16
+ functional verifications
17
+ - `autoboard checklists` (`product-checklists`): engineering quality gates in
18
+ the Autoboard database
19
+
20
+ ## Layout
21
+
22
+ ```text
23
+ business_ops/
24
+ ├── README.md # Navigable index (any answer in two hops)
25
+ ├── ops/
26
+ │ ├── README.md # Operations overview and ownership scope
27
+ │ ├── costs.md # Recurring internal costs, vendor tiers/limits, and monthly margin checks
28
+ │ └── agreements.md # Vendor DPAs, contracts, tax/compliance records (when applicable)
29
+ ├── growth_channels/
30
+ │ ├── state.yaml # Current per-channel positioning, focus, and owned accounts (matched by channel name)
31
+ │ ├── publications.yaml # Append-only ledger of published items, utm_content keys, and outcomes
32
+ │ ├── ideas.md # Candidate channel evaluations, prioritization, and rejected/deferred ideas
33
+ │ └── <channel-slug>.md # Optional deeper narrative research or playbook notes for a channel
34
+ ├── competition/
35
+ │ └── README.md # Market map, alternatives, sources, and review date
36
+ └── why_we_are_the_fucking_best_verified.md # Measured/verified claims we publish (why-we-are-best skill)
37
+ ```
38
+
39
+ Add files under `business_ops/ops/`, `business_ops/growth_channels/`, or
40
+ `business_ops/competition/` only when real operational records, channel work,
41
+ or competition research exist (YAGNI). The exception is
42
+ `why_we_are_the_fucking_best_verified.md`, which every product creates empty
43
+ at project start.
44
+
45
+ ## 1. `business_ops/ops/`: costs, accounting, and agreements
46
+
47
+ ### `ops/costs.md`
48
+ - **Recurring internal costs:** List actual recurring infrastructure and vendor
49
+ costs (servers, backups, domains, email, analytics/telemetry, payment
50
+ processing, model usage), their billing cadence, currency, and source
51
+ (invoice, provider API quote, or contract).
52
+ - **Vendor tiers and operational limits:** Record free-tier or plan limits that
53
+ constrain operations (such as Brevo's shared 300 emails/day free limit or
54
+ PostHog's EU pay-as-you-go tiers) and the threshold at which an agent must
55
+ open a `human_help` ticket for an owner-approved upgrade.
56
+ - **Monthly margin checks (`pricing/monthly-margins`):** After a product
57
+ launches, record the monthly comparison of actual revenue against actual
58
+ infrastructure, payment, and provider bills required by
59
+ `checklists/pricing.md`. When a resource's margin shrinks or turns negative,
60
+ flag it and propose a price or cost adjustment to the owner.
61
+
62
+ ### `ops/agreements.md`
63
+ - Record non-secret metadata for signed vendor agreements, Data Processing
64
+ Agreements (DPAs), and business verification statuses: contracting entity
65
+ (WriteIt.ai s.r.o.), counterparty, status, date confirmed, and any scope
66
+ notes or follow-up checks.
67
+
68
+ ### Company-wide vs. product-specific split
69
+ - **Autoboard (`writeitai/autoboard`)** owns company-wide shared costs and
70
+ vendor agreements in its `business_ops/ops/` (shared Hetzner database,
71
+ runtime, CI, and observability hosts; shared GCP base; shared Brevo account;
72
+ shared PostHog EU organization and DPA).
73
+ - **Each product repository** owns its product-specific costs, Stripe revenue,
74
+ and monthly margin checks in its own `business_ops/ops/`, linking to
75
+ Autoboard's `business_ops/ops/` for shared infrastructure rather than
76
+ duplicating shared host bills.
77
+
78
+ ## 2. `business_ops/growth_channels/`: the growth-channel brain
79
+
80
+ Growth channels are split across three layers with distinct responsibilities:
81
+
82
+ 1. **Autoboard root `growth_channels/` (Shared Template Catalog):**
83
+ Generalized, cross-product channel playbooks synced on deploy to
84
+ `GET /v1/growth-channel-templates`. Contains no product-specific state.
85
+ 2. **Autoboard Board `growth_channels` table and console tab (Technical Work Tracker):**
86
+ Project-scoped channel records (`id`, `name`, `description`, `strategy`,
87
+ `gate`, `version`, `archived_at`) so tickets can link to `growth_channel_id`
88
+ and be filtered in the UI and API. Every active template from
89
+ `growth_channels/*.md` is enabled by default on every project, either **Live**
90
+ (`archived_at = null, gate = null`) or **Gated** (`archived_at = null,
91
+ gate != null`); non-applicable or retired channels are **Archived/Disabled**
92
+ (`archived_at != null`).
93
+ 3. **Product `business_ops/growth_channels/` (Strategic & Operational Brain + Ledger):**
94
+ - **`state.yaml` (Current channel state ledger, modeled on `infra/prod.yaml`):**
95
+ Holds the current operational state for each active or evaluated channel under
96
+ top-level `channels:`:
97
+ - `channel`: Exact Board channel `name` (matched case-insensitively to the
98
+ project's Board channels; no `board_channel_id` or `board_version` is
99
+ stored in Git).
100
+ - `positioning`: Optional product pitch/angle for this channel.
101
+ - `current_focus`: Optional current tactical priority or next milestone.
102
+ - `accounts`: Optional list of `{label, url}` (`https://` URLs of owned
103
+ profiles, directories, or target repositories; never personal contact
104
+ lists or PII).
105
+ - **`publications.yaml` (Append-only ledger of everything published):**
106
+ Every blog post, social post, launch thread, directory listing, notebook,
107
+ showcase PR, approved cold-email batch, or video is recorded here under
108
+ top-level `publications:` once it is actually live/published:
109
+ - `id`: Unique slug (`[a-z0-9][a-z0-9-]{0,119}`, e.g. `2026-10-20-x-launch`).
110
+ - `channel`: Exact Board channel `name` (case-insensitive match).
111
+ - `kind`: One of `blog_post`, `social_post`, `launch_thread`,
112
+ `directory_listing`, `notebook`, `showcase_pr`, `cold_email_batch`,
113
+ `video`, `other`.
114
+ - `published_at`: ISO date `YYYY-MM-DD`.
115
+ - `title`: Headline or hook (`1..300` chars).
116
+ - `url`: Optional public `https://` URL once live.
117
+ - `source_ref`: Optional repository file path or PR reference.
118
+ - `ticket_id`: Optional Autoboard ticket UUID (`null` or omitted when done
119
+ outside the board).
120
+ - `utm_content`: Attribution key (defaults to `id`). Outbound links to the
121
+ product site should carry
122
+ `?utm_source=<channel-slug>&utm_medium=<kind>&utm_content=<utm_content>`,
123
+ where `<channel-slug>` is `re.sub(r"[^a-z0-9]+", "-", channel.lower()).strip("-")`.
124
+ Links in social posts and launch threads stay plain (`D43`).
125
+ - `body`: Optional exact post text/copy for short posts so future agents see
126
+ what was already said.
127
+ - `outcome`: Optional `{checked_at: YYYY-MM-DD, summary, metrics?: {views?, clicks?, likes?, replies?, signups?}}`.
128
+ - **Human-published (`D14`) channels:** While a draft is prepared and
129
+ awaiting human action in a `human_help` ticket, note the pending draft in
130
+ `state.yaml` `current_focus` rather than adding a premature entry to
131
+ `publications.yaml`. Append the entry to `publications.yaml` (with its
132
+ actual `published_at` date and live `url`) once the human publishes it.
133
+ - **YAML quoting rule:** Because the Board API validates string fields with
134
+ strict types (`StrictStr`) after `StrictSafeLoader`, always quote strings
135
+ that YAML 1.1 would otherwise coerce into booleans, numbers, or dates
136
+ (for example `title: "2026"`, `channel: "yes"`, or a date used in a title).
137
+ - **`ideas.md` (Brainstorming & evaluation):** Evaluates candidate channels
138
+ (from Autoboard's template catalog or new ideas) against this product's
139
+ audience, competitors, and unit economics. Records why an idea was chosen,
140
+ deferred (with its adoption trigger), or rejected so later agents do not
141
+ re-propose rejected channels.
142
+ - **Optional `<channel-slug>.md`:** Deeper narrative research or playbook notes
143
+ when a channel needs more prose than `state.yaml` holds.
144
+
145
+ ### Board lifecycle and ledger synchronization
146
+
147
+ 1. **Board owns lifecycle state:** The Board's `growth_channels` records own
148
+ whether a channel is **Live** (`archived_at = null, gate = null`), **Gated**
149
+ (`archived_at = null, gate != null`), or **Archived** (`archived_at != null`),
150
+ plus its `description` and `strategy`. Never duplicate `board_channel_id` or
151
+ `board_version` in Git.
152
+ 2. **Read before acting:** Before planning growth tickets or drafting channel
153
+ material, read `business_ops/growth_channels/state.yaml`,
154
+ `publications.yaml`, `ideas.md`, and any `<channel-slug>.md`, and fetch
155
+ `autoboard growth-channels list --archive include --all` and
156
+ `autoboard growth-ledger get`.
157
+ 3. **Match by channel name:** Every `channel` field in `state.yaml` and
158
+ `publications.yaml` must match a project Board channel's `name`
159
+ (case-insensitively). If a channel is renamed on the Board, update its
160
+ `channel` name in `state.yaml` and `publications.yaml` and republish.
161
+ 4. **Record and publish after merge:** Whenever a PR changes
162
+ `business_ops/growth_channels/state.yaml` or `publications.yaml` (whether via
163
+ a Board ticket or an ad-hoc session), after the PR merges into `main`, update
164
+ the `main` checkout and run:
165
+ ```sh
166
+ autoboard growth-ledger publish \
167
+ --state business_ops/growth_channels/state.yaml \
168
+ --publications business_ops/growth_channels/publications.yaml \
169
+ --repository <product repository URL> --commit "$(git rev-parse HEAD)"
170
+ ```
171
+ Check stderr for any `unmatched_channels` warning and fix any mistyped or
172
+ renamed channel names.
173
+ 5. **Upstream reusable playbooks:** When a product discovers a new channel or a
174
+ general rule that helps other products, contribute a generalized template
175
+ update to Autoboard's root `growth_channels/` through a pull request.
176
+
177
+ ## 3. `business_ops/competition/`: the competition map
178
+
179
+ Map the competition before writing competitive claims. Read existing research
180
+ first and update it rather than duplicating it.
181
+
182
+ - **`README.md`:** State the product, target user, scope and research date.
183
+ Cover direct competitors and practical substitutes. Record why each matters,
184
+ where it is stronger or weaker, dated links to primary sources, and unknowns.
185
+ Missing documentation is not proof that a competitor lacks a capability.
186
+ - **Claims:** the
187
+ [why-we-are-best skill](../why-we-are-best/SKILL.md) owns them. Intended
188
+ differentiators live in `design/why_we_are_the_fucking_best_intent.md`;
189
+ measured or verified claims, and claims not to make, live in
190
+ `business_ops/why_we_are_the_fucking_best_verified.md`. Do not keep a
191
+ separate claims file here. Record the map against
192
+ `business/competition-map` only after it has merged and been verified.
193
+ - Keep product-specific findings in that product's repository. Architecture
194
+ decisions and accepted implementation designs still belong in `design/`.
195
+
196
+ ## 4. Trust recorded state, and never commit secrets or PII
197
+
198
+ - **Trust recorded as-is state:** Trust verified entries in `business_ops/`
199
+ (such as signed agreements, existing social/marketplace accounts, rejected
200
+ channel ideas, and completed directory submissions or outreach batches). Do
201
+ not repeat an already completed submission, re-propose a rejected channel
202
+ without its trigger changing, or re-audit verified business state unless the
203
+ task or owner explicitly requires it.
204
+ - **Never commit secrets or personal data (PII):**
205
+ - Never commit API keys, passwords, bank/tax credentials, or private contract
206
+ PDFs containing sensitive personal data.
207
+ - Never commit personal contact lists, individual email addresses, or scraped
208
+ social profiles of prospects or customers in `business_ops/growth_channels/`
209
+ (per GDPR, D14, and D36). Record public company/community/repository
210
+ targets, approved outreach frameworks, aggregate counts, and Autoboard
211
+ ticket IDs instead.
@@ -0,0 +1,300 @@
1
+ ---
2
+ name: design-corpus
3
+ description: The design-directory discipline for design and research programs — design/analysis/ holds the bulk of the thinking, design/designs/ the binding accepted design, design/proposals/ the live unchosen alternatives, and design/decisions.md the high-level decision log. Use this whenever you create, edit, review, or accept a design document, establish or revise a product's design system or brand, record an architecture or product decision, plan research for a design area, specify frontend pages for pen.dev, weigh alternatives ("should we use X or Y"), set up a design/ directory, or write the product's why_we_are_the_fucking_best_intent.md — even if the task only says "write a design", "add analysis", "document this decision", or "compare options".
4
+ ---
5
+
6
+ # Design corpus
7
+
8
+ A design program's output is not the conversation that produced it — it is a
9
+ corpus of documents that a stranger (human or agent, months later, zero
10
+ context) can read cold and trust. The structure below exists to force one
11
+ habit: **think long and hard, in writing, before deciding.** A decision made
12
+ without visible analysis is indistinguishable from a guess, and gets
13
+ relitigated forever.
14
+
15
+ ## The four places
16
+
17
+ - **`design/analysis/`** — the bulk of the thinking lives here. Research,
18
+ audits, cost models, comparisons, drill-downs, working notes. Analysis is
19
+ non-binding: documents may disagree with each other, reach dead ends, or be
20
+ superseded — that is healthy and stays visible. Most of the corpus by volume
21
+ should be analysis.
22
+ - **`design/designs/`** — the accepted, binding **current state**, not an
23
+ additive record of every design ever accepted. A future implementer must
24
+ be able to read it cold and understand the current scope, contracts,
25
+ flows, costs, failure/recovery behavior, and rationale. When a new design
26
+ changes old logic, reconcile every affected binding document: update or
27
+ remove superseded rules, examples, implementation contracts, and links.
28
+ Remove a wholly obsolete design from the binding set or reduce its old
29
+ path to a short pointer to the successor when inbound links need
30
+ continuity. Keep history in analysis, the decision log, and git history.
31
+ A supersession banner does not make a contradictory body an acceptable
32
+ current design.
33
+ - **`design/proposals/`** — alternatives that are relevant but not chosen:
34
+ viable paths, future options, competing approaches. Each states its
35
+ adoption trigger — what would have to become true for it to win. Proposals
36
+ keep disagreement honest instead of burying it inside binding documents.
37
+ - **`design/decisions.md`** — the numbered log of **high-level** decisions:
38
+ the ones that shape the product, architecture, or economics, or would be
39
+ expensive to reverse. Routine choices don't go here; they live in the
40
+ design docs they belong to. Each entry records context, the choice,
41
+ alternatives considered and why they lost, consequences, status, and links
42
+ to the analysis and design files behind it. The log states conclusions; the
43
+ linked design makes them self-contained. When a later decision supersedes
44
+ an earlier one, mark that **inside the earlier entry**, near its heading
45
+ or status, with a link to the successor. For a partial supersession, name
46
+ the clauses replaced and the parts that remain binding. Keep the original
47
+ decision text as history; do not rely only on a note in the new entry or
48
+ the index to warn a reader who lands on the old one.
49
+
50
+ Keep `design/README.md` (or the directory's index) navigable — a reader
51
+ should find the binding answer to any question in two hops.
52
+
53
+ ## Why we are the best: intent
54
+
55
+ Every product's `design/` also contains
56
+ **`design/why_we_are_the_fucking_best_intent.md`**: the owner-managed list of
57
+ ways we intend to beat the competition, each with its comparison target and
58
+ what would prove it. Fill it with the owner at project start, and link it
59
+ from `design/README.md`. Designs and the roadmap should serve these goals;
60
+ when a design trades one away, say so in its analysis. The intent file is not
61
+ a public claim. Follow the
62
+ [why-we-are-best skill](../why-we-are-best/SKILL.md) for its format, how a
63
+ claim becomes verified in `business_ops/`, and how both files reach the
64
+ Autoboard console.
65
+
66
+ PR review findings, reports and approval verdicts belong in PR discussions or
67
+ ticket results. Do not create or update Git-tracked PR review records, especially in
68
+ `design/`.
69
+ Update design documents for accepted design changes without copying review
70
+ records into the corpus.
71
+
72
+ ## The discipline: analysis before design
73
+
74
+ A binding design is the tip of an iceberg. Before writing or materially
75
+ changing one:
76
+
77
+ 1. **Frame the problem in analysis** — what question is being decided, what
78
+ constraints are real, what would "wrong" cost.
79
+ 2. **Do the research properly.** Survey genuine alternatives, not strawmen.
80
+ For anything third-party — Stripe, queues, databases, auth, hosting —
81
+ pull the official current documentation and cite it with URLs and
82
+ retrieval dates; never design against a remembered API. Work the numbers
83
+ where economics matter. Run independent parallel analyses when a decision
84
+ is consequential or contested — convergence from different angles is
85
+ strong evidence, and divergence is exactly what you need to see before
86
+ committing.
87
+ 3. **Let analyses argue.** Two analysis docs that disagree are more valuable
88
+ than one that's sure. Resolve the disagreement in writing, not by
89
+ picking silently.
90
+ 4. **Only then decide**: write or update the binding design, move the
91
+ losing-but-viable paths into proposals with adoption triggers, and add a
92
+ decision-log entry if the choice is high-level.
93
+
94
+ The test for "enough analysis": could a skeptical reviewer reconstruct why
95
+ the decision is right from the corpus alone, without asking anyone? If a
96
+ design change has no supporting analysis to link, that is the signal to stop
97
+ and write the analysis first.
98
+
99
+ ## Writing for the cold reader
100
+
101
+ - **Explain, don't just name.** Naming a technique or product is not
102
+ explaining it. Lead with the plain-language meaning and why it was chosen;
103
+ keep the precise technical term in parentheses as an anchor.
104
+ - **The reasoning lives in the document**, not in anyone's head or a chat
105
+ log. If a reader must have been in the conversation to follow the doc, the
106
+ doc is not finished.
107
+ - **Simplicity is the bar.** Prefer the simplest design that meets the
108
+ requirement; complexity must justify itself. When a simpler alternative
109
+ was rejected, it appears in the alternatives with the reason — "we chose
110
+ the complex thing" without a recorded why is a red flag.
111
+ - **Sequencing lives in roadmap documents**, not as hedges inside designs.
112
+ A design describes what is decided; when to build it is a separate,
113
+ explicit document.
114
+
115
+ ## Design and brand system
116
+
117
+ Follow the shared
118
+ [design and brand system checklist](https://github.com/writeitai/autoboard/blob/main/checklists/design-and-brand-system.md)
119
+ when establishing or changing a product's visual system. The pen.dev design
120
+ system and official logo are shared inputs for pages, emails and other product
121
+ surfaces, rather than independent artwork for each surface.
122
+
123
+ Define the design system in the repository-tracked `.pen` file before designing
124
+ pages: colors, typography, spacing, radii, shadows, icons and core components.
125
+ Prepare concrete frames and representative component states for owner review.
126
+ Record explicit owner approval tied to the source revision and frame identifiers
127
+ before treating the system as accepted. Agent review and owner silence do not
128
+ substitute for approval. When the system changes, obtain approval for the changed
129
+ version; an earlier approval covers only its recorded scope.
130
+
131
+ Have the owner select or approve the official logo. Supply horizontal (wide),
132
+ stacked (tall) and square layouts, reusing artwork where appropriate without
133
+ stretching or cropping it. Verify legibility at intended sizes and backgrounds.
134
+ Derive `favicon.ico` from the official square mark and verify it at small sizes.
135
+
136
+ Export the accepted system and logo to **`design/designs/brand/`** and commit
137
+ them through a PR. Include a design-system visual reference and token values,
138
+ and SVG and transparent PNG exports for each logo layout. Keep `README.md`
139
+ there as the asset index: source `.pen` file/revision and frames, links to owner
140
+ approval evidence, exported files, dimensions and intended uses. Link it from
141
+ `design/README.md`. Open the exports to verify they match the approved sources
142
+ and are not clipped or distorted. Source `.pen` files remain editable; exports
143
+ are the reusable assets, and a source alone does not complete export coverage.
144
+ Keep exports and their index in sync when approved sources change.
145
+
146
+ This section ships with the canonical skill under
147
+ `new-project-bootstrap/skills/design-corpus/` in Autoboard. Existing installed
148
+ project copies need a deliberate skill update or reinstall to receive changes;
149
+ do not assume they change when the canonical source changes.
150
+
151
+ ## Frontend pages and the pen.dev handoff
152
+
153
+ For a product with a frontend, maintain **`design/designs/pages/`** as the
154
+ accepted inventory of all pages in the app's current agreed scope, including
155
+ public, sign-in and authenticated pages. These specs are the input for
156
+ designing every page in pen.dev. Apply the analysis-before-design discipline
157
+ above when deciding or changing the page scope.
158
+
159
+ Use the **pen.dev CLI** to create and edit the designs. Save the canonical
160
+ `.pen` file inside the product repository under **`design/designs/`** (for
161
+ example, `design/designs/mountable.pen`), and use that repository copy for
162
+ subsequent edits. Link it from `design/README.md` and reference its page/frame
163
+ identifiers in `pages/pen-dev-checklist.md`. An existing tracked workspace
164
+ should be reused rather than creating competing canonical files.
165
+
166
+ ### Match the route tree
167
+
168
+ Mirror the Next.js App Router's folders relative to `app/` (or `src/app/`),
169
+ using **`page.md`** where the app has or will have a page file such as
170
+ `page.tsx` or `page.mdx`. Keep route segments, route groups and dynamic
171
+ parameter names aligned with the router.
172
+ For a new app, groups such as `(public)` and `(authenticated)` make the
173
+ access split easy to scan; follow an existing app's groups when present.
174
+ Record the URL pattern and access requirement in each spec regardless of
175
+ folder names. Route groups organize routes without adding URL segments;
176
+ their names do not enforce authentication. Sign-in pages are normally public.
177
+ Include user-visible error and not-found screens using matching spec names,
178
+ such as `error.md` and `not-found.md`, at their corresponding route level.
179
+
180
+ An illustrative inventory, not a required set of product pages:
181
+
182
+ ```text
183
+ design/designs/pages/
184
+ ├── pen-dev-checklist.md
185
+ ├── (public)/
186
+ │ ├── page.md # /
187
+ │ ├── sign-in/page.md # /sign-in
188
+ │ └── blog/
189
+ │ ├── page.md # /blog
190
+ │ └── [slug]/page.md # /blog/[slug]
191
+ └── (authenticated)/
192
+ └── dashboard/page.md # /dashboard
193
+ ```
194
+
195
+ Specify a dynamic page **once per page template**, not once per content
196
+ record. `blog/[slug]/page.md` describes the general article page and its
197
+ sections; 1,000 articles do not require 1,000 page specs. Apply the same rule
198
+ to other record-driven pages and catch-all routes. Dynamic parameters describe
199
+ the route shape, not a requirement to render the page at request time.
200
+ Content pages sharing one template, such as MDX docs articles, also share
201
+ one spec even when each article has its own route file. Put that spec at
202
+ their common route level (for example, `docs/article-template.md`), state
203
+ the URL family it covers, and list the template once in the checklist.
204
+
205
+ These conventions follow the official Next.js documentation for
206
+ [route groups](https://nextjs.org/docs/app/api-reference/file-conventions/route-groups)
207
+ and [dynamic segments](https://nextjs.org/docs/app/api-reference/file-conventions/dynamic-routes),
208
+ consulted on 2026-10-05.
209
+
210
+ ### Keep each page spec high-level
211
+
212
+ Each page or screen spec, including shared content templates, states:
213
+
214
+ - **Route and access:** the URL pattern; public or authentication required,
215
+ including any role restriction that matters for this page. For error and
216
+ not-found screens, state the route subtree served and its applicable
217
+ access requirements.
218
+ - **Purpose:** who the page is for and what it should help them understand
219
+ or accomplish.
220
+ - **Sections:** an ordered outline of the sections and what each contains
221
+ or is for. Mention a materially different state only if it changes that
222
+ outline, such as an empty dashboard's first-use guidance.
223
+
224
+ Describe content intent, not finished headings, marketing copy, article text,
225
+ component implementations or visual styling. Include only sections that make
226
+ sense for the product's current stage and agreed capabilities. A launching
227
+ product without customer references must not get testimonials, customer-logo
228
+ strips or referral claims merely because established products have them.
229
+ Keep later-stage ideas in proposals or the roadmap until their adoption
230
+ conditions are met. Keep shared navigation or shell specifications in
231
+ `layout.md` at the corresponding route level; link them rather than
232
+ duplicating their content in every page.
233
+
234
+ ### Landing page requirements
235
+
236
+ For a public product landing page, include these in its first screen (hero):
237
+
238
+ - A prominent, copyable prompt the visitor can paste into their coding agent
239
+ to start using the product, following Mountable's Prompt entry point. The
240
+ page spec describes its purpose; the implementation supplies a concise,
241
+ actionable prompt pointing to the project's real agent-readable docs and
242
+ shipped setup workflow.
243
+ - A visually compelling animation that explains the project's purpose or
244
+ core workflow. Describe the product-specific visual metaphor in the page
245
+ spec for pen.dev; keep renderer and timing details in the frontend design.
246
+ Keep the promise, agent prompt and primary action readable and usable.
247
+
248
+ For heroes and animated feature illustrations, read the
249
+ [product animation playbook](references/product-animations.md). Start with
250
+ native SVG/CSS for small 2D diagrams and choose another renderer when the scene
251
+ justifies it; vgpu is not mandatory. Preserve a complete static composition,
252
+ reuse the approved brand and make the important product behavior visible.
253
+
254
+ The page must also show where the product is better than a named alternative
255
+ at something concrete and measurable. The page spec names the comparison
256
+ target, the dimension and the evidence the page will link.
257
+
258
+ Follow the shared [frontend checklist](https://github.com/writeitai/autoboard/blob/main/checklists/frontend.md)
259
+ for copy behavior, playback controls, lazy loading, reduced motion and static
260
+ fallback verification.
261
+
262
+ ### Track every pen.dev page design
263
+
264
+ Create **`design/designs/pages/pen-dev-checklist.md`** at the inventory root.
265
+ It is both the page index and the design checklist; link it from the design
266
+ corpus index. Include one entry for every page spec, including each dynamic
267
+ template, with:
268
+
269
+ - A link to the spec, its URL pattern and its access requirement.
270
+ - An unchecked design item until the pen.dev design has been produced and
271
+ reviewed against the spec.
272
+ - A reference to the actual design artifact and its page/frame identifier,
273
+ plus the review result or remaining work. Do not invent artifact references
274
+ or mark a page complete just because its Markdown spec exists.
275
+
276
+ Each page spec owns its route, access requirement and content outline. The
277
+ checklist's URL and access summaries are navigation aids copied from the
278
+ specs, not independent binding definitions; correct any mismatch there.
279
+
280
+ The checklist must cover every specified page, not just the landing page.
281
+ Include separately specified error and not-found screens as well.
282
+ Keep it and the specs in sync when routes or scope change. When a page or
283
+ layout spec changes, reopen every design item it affects until each design
284
+ has been checked against the new outline. Shared designs may serve several
285
+ pages, but each page still has an entry pointing to the relevant design.
286
+ Completing this checklist records design coverage; implementation and product
287
+ verification remain separate.
288
+
289
+ ## Red flags to fix on sight
290
+
291
+ - A binding design (or design change) with no analysis behind it.
292
+ - A decision entry whose rationale exists only in conversation history.
293
+ - A superseded decision that still appears current when read on its own.
294
+ - A binding design that accumulates old and new logic instead of stating one
295
+ current contract.
296
+ - A proposal that is actually decided (promote it) or dead (say so).
297
+ - Analysis conclusions being cited as if binding — only designs and the
298
+ decision log bind.
299
+ - The same fact stated in multiple binding places (it will drift; pick one
300
+ home and link).
@@ -0,0 +1,126 @@
1
+ # Product animations that explain the product
2
+
3
+ Use for landing heroes and animated feature illustrations. These are defaults
4
+ learned from the owner-approved Mountable work, not a requirement to copy its
5
+ palette, layout or filesystem metaphor. Honor the current product brief and
6
+ approved design system. The
7
+ [supporting analysis](https://github.com/writeitai/autoboard/blob/main/design/analysis/product-animation-lessons.md)
8
+ records the evidence and the retirement of mandatory vgpu.
9
+
10
+ ## Start with the product's meaning
11
+
12
+ Write the sentence a visitor should understand after watching. Identify the
13
+ actors, their action, the visible consequence and what remains afterward.
14
+ Sketch that sequence before choosing a renderer. Put the content intent in
15
+ the page spec and the beats/timing in the frontend design or motion handoff.
16
+
17
+ Mountable provides three useful examples:
18
+
19
+ | Story | What the scene makes visible |
20
+ | --- | --- |
21
+ | Persistence | Agents and laptops connect at different times; reads move outward, writes inward. Saved files remain through a beat where every worker is offline. |
22
+ | Many entry points | API, filesystem, MCP, CLI and SDK paths converge on the same persistent files. |
23
+ | Budget control | An app uses storage; an illustrative usage meter fills and stops at its spending cap. |
24
+
25
+ Animate the cause and its result in a readable sequence. Keep the enduring
26
+ object visible if persistence is the promise; do not accidentally erase it at
27
+ the loop boundary. Distinguish concepts through labels and direction as well
28
+ as color. Let a viewer read the result before the next beat. Example amounts
29
+ are labeled as examples, and illustrated capabilities must actually ship.
30
+
31
+ For several feature stories, give each its own section, takeaway and useful
32
+ docs link. Alternating artwork left/right can give a desktop page rhythm;
33
+ on mobile, copy before artwork is a good default. Diagrams suit product
34
+ concepts; code examples still suit setup instructions and API details.
35
+
36
+ ## Give the scene a deliberate visual identity
37
+
38
+ Reuse approved colors, typography roles, spacing, line weights and surface
39
+ treatments from the product's tracked pen.dev source. Design its static
40
+ composition first, including a mobile composition with fewer actors when
41
+ needed. Shrinking a large desktop diagram usually makes labels unreadable.
42
+
43
+ For a mature technical brand, try precise connectors, strong hierarchy,
44
+ restrained accents and clear status changes. Energy can come from contrast
45
+ and timing without constant bouncing, flashing or ornamental motion. Adapt
46
+ this direction when the product's brand calls for a different tone.
47
+
48
+ Use third-party logos as secondary context, with faithful local vector assets
49
+ and recorded official sources. A logo does not establish an endorsement or
50
+ prove an integration. Label the actual access mode and stay within verified
51
+ capabilities. Keep the product's own objects and outcome dominant.
52
+
53
+ ## Choose the smallest renderer that fits
54
+
55
+ Start with **native SVG and CSS keyframes** for small labeled 2D diagrams,
56
+ connectors, highlights and meters. This can reuse the static artwork directly
57
+ without an additional animation player. Lottie is an option for an existing
58
+ authored animation and editing workflow. WebGPU/vgpu or another renderer is
59
+ an option when the scene needs capabilities that justify it. Record the choice
60
+ and its measured cost; vgpu is not required.
61
+
62
+ Keep the static illustration present in initial HTML. With Next.js static
63
+ export, render geometry in a build-time Server Component and pass the rendered
64
+ scene as children into a small client playback wrapper. Importing all the SVG
65
+ construction code into that wrapper puts it in the client dependency graph.
66
+ This follows Next.js's
67
+ [Server/Client composition guidance](https://nextjs.org/docs/app/getting-started/server-and-client-components).
68
+ Static SVG still costs HTML bytes and rendering work; measure those too.
69
+
70
+ For sibling illustrations, reuse a small local playback controller rather
71
+ than introducing a general animation framework. Start motion after critical
72
+ content has loaded and the browser is idle. Pause offscreen and in hidden
73
+ tabs, honor reduced motion before playback and when it changes, and preserve
74
+ the user's explicit pause across visibility changes. With CSS timelines,
75
+ use `animation-play-state` to pause/resume rather than remounting the scene.
76
+ For a heavy player, conditionally import it behind the same readiness gates;
77
+ disabling SSR alone does not make its download lazy.
78
+
79
+ ## Make the static state and controls complete
80
+
81
+ The illustration must communicate its meaning with JavaScript disabled,
82
+ before loading, on initialization failure and with reduced motion. Keep
83
+ essential labels, actors and the result in that state. For SVG, supply a
84
+ meaningful accessible name/description; hide purely decorative detail from
85
+ assistive technology.
86
+
87
+ Provide a keyboard-accessible pause/play control for continuous autoplay.
88
+ Keep the user's pause in force while they interact with the rest of the
89
+ page. Reserve control width and caption height from the first render so
90
+ initialization does not reflow text or move surrounding content. Reduced motion
91
+ alone does not replace a pause mechanism: see
92
+ [WCAG 2.2.2](https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.html).
93
+
94
+ ## Verify the story, not just the first screenshot
95
+
96
+ Inspect a complete loop on actual narrow and wide browser viewports. For a
97
+ hero, keep the promise, adoption prompt and primary action usable in the
98
+ initial screen. Prefer a different mobile composition over tiny text.
99
+
100
+ Exercise the narrative's invariants: saved files survive worker disconnects,
101
+ read-only clients never send writes, and a cap meter does not overshoot its
102
+ limit. Also check pause/resume, offscreen and hidden-tab suspension, reduced
103
+ motion, no JavaScript and renderer failure. Keep controlled illustration and
104
+ player states in Storybook, with browser behavior in the container layer.
105
+
106
+ Use a production build for network and performance checks. Record initial
107
+ HTML/SVG, JavaScript and player/asset costs, layout shift and loading metrics
108
+ against the project's budget or before/after baseline. Check that motion
109
+ dependencies stay off unrelated routes. Label local throttled measurements
110
+ as synthetic; they are not production RUM or proof of better conversion.
111
+
112
+ ## Mountable implementation reference
113
+
114
+ At reviewed revision `4cbf94f`, the artwork is native SVG, CSS owns the loops
115
+ and a React hook owns playback. The hero includes a deliberate all-offline
116
+ interval with the saved file tree still visible. Use the pattern, adapting
117
+ its vocabulary and composition to the next product:
118
+
119
+ - [Hero geometry and semantic labels](https://github.com/writeitai/fsit/blob/4cbf94fb280ad1bf0bbf9f4701c37c99dbf6d3e0/web/src/components/views/landing/FilesystemIllustration.tsx)
120
+ - [Hero CSS timeline](https://github.com/writeitai/fsit/blob/4cbf94fb280ad1bf0bbf9f4701c37c99dbf6d3e0/web/src/components/views/landing/FilesystemHero.module.css)
121
+ - [Feature geometry](https://github.com/writeitai/fsit/blob/4cbf94fb280ad1bf0bbf9f4701c37c99dbf6d3e0/web/src/components/views/landing/FeatureIllustration.tsx)
122
+ - [Shared playback controller](https://github.com/writeitai/fsit/blob/4cbf94fb280ad1bf0bbf9f4701c37c99dbf6d3e0/web/src/components/containers/landing/useAnimationPlayback.ts)
123
+
124
+ Official technical references consulted 2026-10-19: the linked Next.js and
125
+ WCAG documentation, and
126
+ [CSS pause/resume behavior](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/animation-play-state).