@hybridlabor-api/aos 4.13.2 → 4.14.0

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 (150) hide show
  1. package/.agents/AGENTS.md +8 -0
  2. package/.agents/nodes.json +5 -2
  3. package/.claude/hooks/conventional-commits.mjs +14 -15
  4. package/.claude/hooks/env-file-protection.mjs +14 -15
  5. package/.claude/hooks/go-gate.mjs +152 -10
  6. package/.claude/hooks/go-token.mjs +55 -0
  7. package/.claude/hooks/memb-inject.mjs +75 -62
  8. package/.claude/hooks/trail-autostart.mjs +27 -0
  9. package/.claude/settings.json +18 -0
  10. package/.claude/workflows/startcycle-dispatch.mjs +11 -4
  11. package/.opencode/plugins/bdb-aos.js +98 -121
  12. package/.opencode/plugins/lib/trail-autostart.js +38 -0
  13. package/CLAUDE.md +1 -1
  14. package/README.de.md +6 -6
  15. package/README.md +6 -6
  16. package/README.pt.md +6 -6
  17. package/THIRD_PARTY_NOTICES.md +19 -3
  18. package/assets/header-v5.png +0 -0
  19. package/bin/aos-acp.mjs +211 -0
  20. package/bin/aos-doctor.mjs +1 -1
  21. package/bin/aos-uninstall.mjs +2 -2
  22. package/docs/master-session-acp.md +51 -0
  23. package/installer.js +252 -35
  24. package/mcps/mcsc/packages/mcp/server.js +6 -7
  25. package/package.json +4 -3
  26. package/scripts/validate-skills.mjs +76 -0
  27. package/skills/basic/bdbmediastorm/SKILL.md +1 -1
  28. package/skills/basic/godmode-shipping/SKILL.md +3 -0
  29. package/skills/basic/master-session/SKILL.md +89 -0
  30. package/skills/basic/startcycle/SKILL.md +1 -1
  31. package/skills/basic/startcycle-graph/SKILL.md +2 -2
  32. package/skills/basic/startcycle-graph-user/SKILL.md +1 -1
  33. package/skills/basic/teamwork-preview/SKILL.md +1 -1
  34. package/skills/bdbrainstorm/SKILL.md +7 -1
  35. package/skills/global_config/agentic-harness-patterns/SKILL.md +257 -0
  36. package/skills/global_config/agentic-harness-patterns/metadata.json +10 -0
  37. package/skills/global_config/agentic-harness-patterns/references/agent-orchestration-pattern.md +97 -0
  38. package/skills/global_config/agentic-harness-patterns/references/bootstrap-sequence-pattern.md +106 -0
  39. package/skills/global_config/agentic-harness-patterns/references/context-engineering/compress-pattern.md +78 -0
  40. package/skills/global_config/agentic-harness-patterns/references/context-engineering/isolate-pattern.md +82 -0
  41. package/skills/global_config/agentic-harness-patterns/references/context-engineering/select-pattern.md +86 -0
  42. package/skills/global_config/agentic-harness-patterns/references/context-engineering-pattern.md +29 -0
  43. package/skills/global_config/agentic-harness-patterns/references/hook-lifecycle-pattern.md +111 -0
  44. package/skills/global_config/agentic-harness-patterns/references/memory-persistence-pattern.md +109 -0
  45. package/skills/global_config/agentic-harness-patterns/references/permission-gate-pattern.md +111 -0
  46. package/skills/global_config/agentic-harness-patterns/references/skill-runtime-pattern.md +104 -0
  47. package/skills/global_config/agentic-harness-patterns/references/task-decomposition-pattern.md +92 -0
  48. package/skills/global_config/agentic-harness-patterns/references/tool-registry-pattern.md +101 -0
  49. package/skills/global_config/agenttrail/SKILL.md +8 -0
  50. package/skills/global_config/agenttrail/bin/agenttrail.mjs +14 -0
  51. package/skills/global_config/agenttrail/bin/ensure.mjs +118 -0
  52. package/skills/global_config/aos-setup/scripts/aos-doctor.mjs +1 -1
  53. package/skills/global_config/bdb-visual-edit/SKILL.md +51 -0
  54. package/skills/global_config/bdb-visual-edit/references/vite-react-source-attr.md +59 -0
  55. package/skills/global_config/bdb-visual-edit/scripts/pick-snippet.js +27 -0
  56. package/skills/global_config/bdb-visual-edit/scripts/sanitize-element.mjs +123 -0
  57. package/skills/global_config/factory-collect/SKILL.md +74 -0
  58. package/skills/global_config/factory-human-digest/SKILL.md +92 -0
  59. package/skills/global_config/factory-lookback/SKILL.md +95 -0
  60. package/skills/global_config/factory-review-prs/SKILL.md +63 -0
  61. package/skills/global_config/git-pr-review/SKILL.md +3 -0
  62. package/skills/global_config/grilling/SKILL.md +2 -0
  63. package/skills/global_config/mcsc/SKILL.md +1 -1
  64. package/skills/global_config/plan-arbiter/SKILL.md +125 -0
  65. package/skills/global_config/plan-canvas/SKILL.md +62 -5
  66. package/skills/global_config/plan-canvas/scripts/lib/loopback-guard.js +19 -3
  67. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/README.md +285 -0
  68. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/agent-trail.js +129 -0
  69. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/board-client.js +124 -0
  70. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/demo-plan/canvas.mdx +19 -0
  71. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/demo-plan/plan.mdx +18 -0
  72. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/recap-demo/plan.mdx +72 -0
  73. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/README.md +29 -0
  74. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/architecture.json +30 -0
  75. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/builder/00_architecture.html +14950 -0
  76. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/builder/canvas.mdx +511 -0
  77. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/builder/plan.mdx +208 -0
  78. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/recap/plan.mdx +102 -0
  79. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/showcase/standard/plan.md +136 -0
  80. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/signup-storyboard/canvas.mdx +124 -0
  81. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/examples/signup-storyboard/plan.mdx +37 -0
  82. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/index.js +188 -0
  83. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/kit.js +123 -0
  84. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/mdx.js +411 -0
  85. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/render.js +1291 -0
  86. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/architecture/meta.json +1 -0
  87. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/architecture/plan.mdx +195 -0
  88. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/architecture/standard.md +95 -0
  89. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/bugfix/meta.json +1 -0
  90. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/bugfix/plan.mdx +105 -0
  91. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/bugfix/standard.md +76 -0
  92. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/feature/canvas.mdx +81 -0
  93. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/feature/meta.json +1 -0
  94. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/feature/plan.mdx +145 -0
  95. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/feature/standard.md +76 -0
  96. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/migration/meta.json +1 -0
  97. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/migration/plan.mdx +172 -0
  98. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/migration/standard.md +100 -0
  99. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap/meta.json +1 -0
  100. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap/plan.mdx +67 -0
  101. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap/standard.md +49 -0
  102. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-board/canvas.mdx +63 -0
  103. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-board/meta.json +1 -0
  104. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-board/plan.mdx +49 -0
  105. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-board/standard.md +39 -0
  106. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-review/meta.json +1 -0
  107. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-review/plan.mdx +118 -0
  108. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/recap-review/standard.md +57 -0
  109. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/release/meta.json +1 -0
  110. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/release/plan.mdx +173 -0
  111. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/release/standard.md +96 -0
  112. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/research/meta.json +1 -0
  113. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/research/plan.mdx +91 -0
  114. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/research/standard.md +54 -0
  115. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/show-control/canvas.mdx +53 -0
  116. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/show-control/meta.json +1 -0
  117. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/show-control/plan.mdx +225 -0
  118. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/templates/show-control/standard.md +111 -0
  119. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/theme.css +472 -0
  120. package/skills/global_config/plan-canvas/scripts/lib/plan-builder/trail.js +216 -0
  121. package/skills/global_config/plan-canvas/scripts/lib/plan-canvas/markdown.js +1 -1
  122. package/skills/global_config/plan-canvas/scripts/lib/plan-canvas/server.js +37 -4
  123. package/skills/global_config/plan-canvas/scripts/lib/plan-canvas/ui.js +125 -29
  124. package/skills/global_config/plan-canvas/scripts/plan-canvas.js +196 -8
  125. package/skills/global_config/pr-recap/SKILL.md +47 -0
  126. package/skills/global_config/pr-recap/scripts/pr-recap.mjs +200 -0
  127. package/skills/global_config/quick-recap/SKILL.md +55 -0
  128. package/skills/global_config/stay-within-limits/SKILL.md +85 -0
  129. package/skills/global_config/triage/SKILL.md +3 -0
  130. package/skills/global_config/visual-edit/README.md +96 -0
  131. package/skills/global_config/visual-edit/SKILL.md +615 -0
  132. package/skills/global_config/visual-plan/README.md +93 -0
  133. package/skills/global_config/visual-plan/SKILL.md +544 -0
  134. package/skills/global_config/visual-plan/references/canvas.md +139 -0
  135. package/skills/global_config/visual-plan/references/connection.md +51 -0
  136. package/skills/global_config/visual-plan/references/document-quality.md +186 -0
  137. package/skills/global_config/visual-plan/references/exemplar.md +62 -0
  138. package/skills/global_config/visual-plan/references/local-files.md +99 -0
  139. package/skills/global_config/visual-plan/references/wireframe.md +319 -0
  140. package/skills/global_config/visual-recap/README.md +103 -0
  141. package/skills/global_config/visual-recap/SKILL.md +560 -0
  142. package/skills/global_config/visual-recap/references/connection.md +51 -0
  143. package/skills/global_config/visual-recap/references/local-files.md +99 -0
  144. package/skills/global_config/visual-recap/references/wireframe.md +319 -0
  145. package/skills/playbooks/pb-ci-fix/SKILL.md +49 -0
  146. package/skills/playbooks/pb-event-tracker/SKILL.md +45 -0
  147. package/skills/playbooks/pb-meeting-actions/SKILL.md +42 -0
  148. package/skills/playbooks/pb-project-new/SKILL.md +48 -0
  149. package/skills/playbooks/pb-week-plan/SKILL.md +45 -0
  150. package/assets/header-v4.jpg +0 -0
@@ -0,0 +1,99 @@
1
+ # Local-files privacy mode — single source of truth
2
+
3
+ This file is the canonical contract for fully local, no-database planning and
4
+ recaps. It is shared word for word by `/visual-plan` and `/visual-recap`. Read it
5
+ in full before using local-files mode; do not call any hosted Plan tool for a
6
+ local plan/recap except the schema-only block-catalog lookup described below.
7
+
8
+ <!-- SHARED-CORE:local-files START -->
9
+
10
+ **When to use it.** Use local-files privacy mode when the user explicitly asks
11
+ for no DB writes, no hosted Plan database writes, no Plan MCP publish, fully local
12
+ files, offline/private work, or repo-owned/source-controlled artifacts, or when
13
+ `AGENT_NATIVE_PLANS_MODE=local-files` is set. Also use it when a user or repo
14
+ policy says the work must stay under their own brand, domain, source control, or
15
+ infrastructure. In this mode the plan/recap data must never be sent to the Plan
16
+ MCP server or the Plan app action surface. This is the only exception to the
17
+ always-publish rule in `references/connection.md`.
18
+
19
+ The local-files contract:
20
+
21
+ - **Read context locally.** Read source, diff, and stat context from local files
22
+ and shell commands only. For recaps, the
23
+ `npx @agent-native/core@latest recap collect-diff`, `scan`, and
24
+ `build-prompt --local-files` helpers are safe — they operate on local files and
25
+ do not write to the Plan database.
26
+ - **Fetch the block catalog first** (it sends no plan content). Use the MCP
27
+ `get-plan-blocks` tool if it is already available, or run
28
+ `npx @agent-native/core@latest plan blocks --out plan-blocks.md` and read that
29
+ file before authoring MDX; it calls the public no-auth `get-plan-blocks` route.
30
+ Use `--format schema` when you need exact nested fields. If network access is
31
+ unavailable, use the bundled `references/*.md` and rely on `plan local check` to
32
+ catch invalid tags. Copy the catalog examples verbatim for the fields the
33
+ registry table cannot encode: `checklist` items need `id` and `label`;
34
+ `question-form` questions need `id`, `title`, and `mode`, and each option needs
35
+ `id` and `label`; and `Code` / `AnnotatedCode` / `Diff` are whitespace-sensitive
36
+ — encode multiline code as JSON string attributes such as `code={"const x =\n y"}`
37
+ (a static template literal is accepted only when it has no `${...}`
38
+ interpolation). `plan local check` is a quick OFFLINE lint (a subset of the
39
+ renderer schema), so a green `check` does not guarantee the plan renders.
40
+ `plan local verify` also stays on-device: it uses the offline lint unless it
41
+ can reach a Plan renderer on an explicit loopback `--app-url`.
42
+ - **Write a local MDX folder.** Use `plans/<slug>/` to check the artifact into the
43
+ repo, or a repo-ignored/temporary folder such as `.agent-native/plans/<slug>/`
44
+ or `/tmp/agent-native-plans/<slug>/` when it should not be checked in. The
45
+ folder holds `plan.mdx`, optional `canvas.mdx`, optional `prototype.mdx`, and
46
+ optional `.plan-state.json`. For a recap, set `kind: "recap"` and
47
+ `localOnly: true` in the frontmatter/state. Use that exact folder as
48
+ `<plan-dir>` in every command below.
49
+ - **Check, then serve.** Run
50
+ `npx @agent-native/core@latest plan local check --dir <plan-dir>` before any
51
+ preview, then
52
+ `npx @agent-native/core@latest plan local serve --dir <plan-dir> --kind <plan|recap> --open`
53
+ (use `--kind plan` for plans, `--kind recap` for recaps). Report the local
54
+ bridge URL from stdout or `<plan-dir>/.plan-url`; treat `.plan-url` as a local
55
+ token file and do not commit it. The URL opens the hosted Plan UI but reads from
56
+ the localhost bridge on this machine, so it is not shareable across machines.
57
+ The token is carried in the URL fragment (which is not sent to the hosted
58
+ origin), and the local-plan route disables DOM autocapture and session replay
59
+ while retaining sanitized pageviews and error monitoring. On
60
+ macOS `--open` prefers Chromium browsers; if Safari opens, switch to
61
+ Chrome/Chromium because Safari can block the hosted HTTPS page from fetching the
62
+ HTTP localhost bridge. If the Plan app itself is running locally with the same
63
+ `PLAN_LOCAL_DIR`, the `/local-plans/<slug>` route is also valid. In a truly
64
+ offline environment, hand off the `<plan-dir>` path after `plan local check` and
65
+ note that interactive preview requires network access to the hosted Plan UI or a
66
+ running local Plan app.
67
+ - **Headless verify.** Run
68
+ `npx @agent-native/core@latest plan local verify --dir <plan-dir> --kind <plan|recap>`.
69
+ It starts the bridge and checks the private-network preflight and JSON payload
70
+ entirely on loopback. It never sends MDX or assets to a remote validation
71
+ action. When `--app-url` points to a loopback Plan app, verify also validates
72
+ against that local app's real renderer schema via `validate-local-plan-source`.
73
+ A non-`ok` result with
74
+ `validation.valid: false` lists the renderer's exact schema-path issues (e.g.
75
+ `blocks[1].data.tabs[0]...`); fix those before handing off. If `validation.ran`
76
+ is `false`, verify used the offline lint because the app URL was remote or the
77
+ local Plan app was unavailable. Run a local Plan app and pass
78
+ `--app-url http://localhost:8096` for the authoritative check. If the browser hangs on
79
+ "Loading plan", fetch the `bridgeUrl` from the verify/serve JSON to read the
80
+ concrete validation error.
81
+ - **Never call hosted tools for that plan/recap.** Do not call
82
+ `create-visual-plan`, `create-ui-plan`, `create-prototype-plan`,
83
+ `create-plan-design`, `create-visual-recap`, `create-visual-questions`,
84
+ `import-visual-plan-source`, `update-visual-plan`, `patch-visual-plan-source`,
85
+ `get-plan-feedback`, `export-visual-plan`, `set-resource-visibility`, or any
86
+ other hosted Plan tool — except the schema-only block-catalog lookup above.
87
+ - **Feedback is file/chat feedback.** Update the MDX files directly, rerun
88
+ `plan local check`, and rerun `serve` or `verify` when that preview path is
89
+ available. Summarize the new local URL when one exists; otherwise summarize the
90
+ checked `<plan-dir>` path. Hosted comments, sharing, screenshots, history, usage
91
+ attachment, and publish/export receipts are unavailable until the user
92
+ explicitly opts into publishing.
93
+
94
+ Local-files mode prevents plan/recap content from being uploaded to the
95
+ Agent-Native Plan server or database. It does not by itself make the coding agent's language model local;
96
+ for that stronger boundary the host agent/model must also be local or otherwise
97
+ approved by the user.
98
+
99
+ <!-- SHARED-CORE:local-files END -->
@@ -0,0 +1,319 @@
1
+ # HTML wireframe quality — single source of truth
2
+
3
+ This file is the canonical quality bar for HTML wireframes / `<Screen>` /
4
+ `WireframeBlock` content, shared word for word by `/visual-plan` and
5
+ `/visual-recap`. Read it in full before authoring ANY wireframe; do not
6
+ author wireframes from memory or paraphrase these rules per command.
7
+
8
+ <!-- SHARED-CORE:wireframe-quality START -->
9
+
10
+ **A wireframe is an HTML mockup. The renderer owns the look; you write the
11
+ content.** Set `data.html` to a self-contained, semantic HTML fragment of the
12
+ screen and set `data.surface`. The renderer owns the surface footprint/aspect,
13
+ the dark/light theme, the hand-drawn font, and the rough.js sketch overlay — you
14
+ never write `<html>`/`<body>`/`<script>`/`<style>` tags or any
15
+ width/height/coordinates. You write real HTML layout and real product
16
+ content; the renderer styles and roughens it.
17
+
18
+ **A wireframe block's data is an HTML screen plus a surface:**
19
+
20
+ ```json
21
+ {
22
+ "surface": "browser",
23
+ "html": "<div style=\"display:flex;flex-direction:column;gap:10px;padding:16px;height:100%\"><h1>Sign in</h1><p class=\"wf-muted\">Use your work email to continue.</p><div class=\"wf-card\" style=\"display:flex;flex-direction:column;gap:10px\"><label>Email<input value=\"jane@acme.co\" /></label><label>Password<input value=\"••••••••\" /></label><label style=\"display:flex;align-items:center;gap:8px\"><input type=\"checkbox\" checked /> Remember me</label><button class=\"primary\">Sign in</button></div><a href=\"#\">Forgot password?</a></div>"
24
+ }
25
+ ```
26
+
27
+ **Write PLAIN semantic HTML and let the renderer style it.** Bare elements
28
+ (`h1`/`h2`/`h3`, `p`, `button`, `input`, `<input type="checkbox">`, `a`, `hr`)
29
+ are auto-themed — no classes needed. Helper classes carry the rest:
30
+
31
+ - `.wf-card` / `.wf-box` — a bordered, padded container (a panel, a list item).
32
+ - `.wf-pill` / `.wf-chip` — a rounded tag or filter; add `.accent`
33
+ (`<span class="wf-pill accent">`) for the accent-filled variant.
34
+ - `.wf-muted` — secondary/muted text (or use `<small>`).
35
+ - `button.primary` or any element with `[data-primary]` — the accent-filled
36
+ primary button.
37
+
38
+ **No decorative shadows around mockups.** Do not put `box-shadow`, `filter:
39
+ drop-shadow(...)`, Tailwind `shadow-*` classes, or other fake depth effects on a
40
+ wireframe frame, root container, `.wf-card` / `.wf-box`, or canvas artboard.
41
+ Mockups should read as flat, bordered surfaces; use spacing, borders, labels,
42
+ and annotations for separation. Only show a shadow when the real product UI
43
+ already has that shadow and it is essential to the change being reviewed.
44
+
45
+ **Use renderer icons, not visible icon words.** For icon-only buttons or leading
46
+ icons inside fields, chips, menu items, and toolbars, write an empty marker such
47
+ as `<span data-icon="mail" aria-label="Email"></span>` or
48
+ `<i data-icon="lock"></i>`. The renderer replaces it with a Tabler-style SVG and
49
+ the `.wf-icon` class sizes it to the surrounding text. Supported names and
50
+ aliases: `mail`/`email`, `lock`/`password`, `search`, `plus`/`add`, `x`/`close`,
51
+ `check`, `chevronDown`, `chevronUp`, `chevronLeft`, `chevronRight`, `dots`/`more`,
52
+ `chevron`/`caret`/`dropdown` (down chevron), `user`, `settings`, `calendar`,
53
+ `bell`, `send`, `edit`, `arrowLeft`, and `arrowRight`. Do not put visible words
54
+ like "email", "lock", "search", "chevron", or "more" where the product UI would
55
+ show an icon; use text only when it is a real label a user would read.
56
+
57
+ **Use the `--wf-*` tokens for any custom color, never hex.** The renderer flips
58
+ these on light/dark, so reading them is what keeps a mockup correct in both
59
+ themes. For any inline border, background, or text color, reference a token:
60
+ `style="border:1.4px solid var(--wf-line)"`. The tokens are `--wf-ink` (text),
61
+ `--wf-muted` (secondary text), `--wf-line` (borders/dividers), `--wf-paper`
62
+ (page background), `--wf-card` (container surface), `--wf-accent` /
63
+ `--wf-accent-fg` / `--wf-accent-soft` (brand action), `--wf-warn`, `--wf-ok`,
64
+ and `--wf-radius`. Never hard-code a hex color and never set `font-family` — the
65
+ renderer owns the sketch/clean font.
66
+
67
+ **Never use host/Tailwind theme classes in wireframe HTML.** Classes such as
68
+ `bg-white`, `bg-zinc-50`, `bg-slate-950`, `text-zinc-950`,
69
+ `text-slate-400`, `border-zinc-200`, `hover:bg-slate-800`, `shadow-xl`,
70
+ or arbitrary color utilities like `bg-[#fff]` leak the host app's CSS into the
71
+ mockup and can make dark-mode canvas frames unreadable. Use bare semantic
72
+ elements, `.wf-*` helper classes, and `--wf-*` color tokens instead. Before
73
+ publishing, scan every wireframe `class` and `style` attribute: if a class sets
74
+ background, text, border, ring, fill, stroke, gradient, placeholder, decoration,
75
+ or shadow color, rewrite it to renderer tokens or remove it. Layout-only classes
76
+ are still discouraged; inline flex/grid styles are safer and easier to review.
77
+
78
+ **Keep Rough.js sparse.** The renderer sketches the outer frame, standard
79
+ `.wf-*` primitives, controls, and inline border dividers by default. Do not add
80
+ `data-rough` to broad root wrappers, dialog shells, page panels, grid cells, or
81
+ nested containers unless that single container is the visual point. Use
82
+ `data-rough` only for a deliberate one-off shape. If a mockup starts looking
83
+ like stacked/overlapping sketch lines, remove rough targets from parent
84
+ containers and let backgrounds plus spacing separate the surfaces.
85
+
86
+ **Use literal CSS lengths for spacing.** The `--wf-*` tokens are for colors and
87
+ renderer-owned visual styling, not layout spacing. Do not use guessed spacing
88
+ tokens such as `var(--wf-space-4)`, Tailwind spacing classes, or theme spacing
89
+ variables inside wireframe HTML; if a token is unavailable in the Plan renderer,
90
+ padding collapses and content hugs the border. Use explicit CSS lengths for
91
+ layout: `padding:16px`, `gap:12px`, `margin-top:18px`, `minmax(0,1fr)`.
92
+
93
+ **Lay out with inline `style` flex/grid.** You write the real layout —
94
+ `display:flex; flex-direction:column; gap:10px; padding:16px` and so on — and the
95
+ renderer never repositions anything. Compose the actual product: reproduce the
96
+ current screen, then show the modification. Real labels, real counts, real dates,
97
+ real button text grounded in the screen you read; not lorem or gray bars.
98
+
99
+ **Surface presets — match the real footprint, never default to desktop+mobile.**
100
+ Pick the `surface` that matches what the user will actually see:
101
+
102
+ - `browser`: a web page that needs a browser chrome frame around it.
103
+ - `desktop`: a full desktop app page or app shell.
104
+ - `mobile`: a phone screen, only when the work is genuinely mobile.
105
+ - `popover`: a small floating menu, dropdown, or inline popover.
106
+ - `panel`: a side panel, inspector, or sidebar widget.
107
+
108
+ A sidebar popover renders as a small surface, not a desktop page and a phone
109
+ frame. Do not emit `desktop` + `mobile` variants unless responsive behavior
110
+ actually changes the layout. For a component or widget, show one broader
111
+ app-context frame only when placement affects understanding, then the focused
112
+ component states.
113
+
114
+ **Model the actual component shell for small surfaces.** A rendered UI change
115
+ belongs in a wireframe; reserve `diagram` for architecture, dependency, state,
116
+ or data-flow relationships. Popovers, dropdown menus, command palettes, and
117
+ context menus use `surface: "popover"` unless the surrounding page placement is
118
+ the point of the change. Dialogs, sheets, inspectors, sidebars, and long
119
+ property panels use the matching `panel` / `desktop` surface as appropriate.
120
+ Show the real chrome: trigger or anchor when it matters, title/header row,
121
+ top-right actions, separators, fields, options, selected states, body content,
122
+ and footer actions that are visible in the workflow.
123
+
124
+ **Modify, don't redesign.** When the task changes an existing screen, reproduce
125
+ the current screen's real layout and footprint FIRST, then change only the delta
126
+ and call it out with a single annotation. Do not restack the page into a new
127
+ layout. For net-new surfaces, compose from the real app shell. Inspect the
128
+ actual app components before drawing an existing product: sidebar density,
129
+ toolbar actions, overflow menus, property panels, and framework chrome should
130
+ match the product unless the plan intentionally changes them.
131
+
132
+ **Keep product screens pure.** A product wireframe shows the app state a user
133
+ would actually see. Do not embed file contracts, architecture arrows, repo pills,
134
+ mode explanations, or implementation callouts inside the screen just to explain
135
+ the plan. Put those in canvas annotations, a separate diagram, or the document
136
+ body. Secondary UI such as properties, history, sync, export, or agent controls
137
+ should appear where the real product would put them: an overflow popover, sheet,
138
+ panel, or separate framework sidebar state, not a generic permanent right
139
+ inspector unless that inspector is the actual design.
140
+
141
+ **Classify mockup scope before implementation.** Before turning a plan mockup
142
+ into source code, decide whether each artboard represents the whole page/app
143
+ shell, a route body inside an existing shell, or a component/sub-surface. If an
144
+ artboard includes navigation, sidebars, auth banners, or a signup/login form,
145
+ map those pieces to the real shared shell/auth components instead of nesting the
146
+ entire mockup inside the current page. When a mockup references the product's
147
+ standard signup/login page, find and reuse that existing implementation; do not
148
+ approximate it from the wireframe.
149
+
150
+ **Zoom in on sub-surfaces, don't redraw the page.** For a small sub-surface (a
151
+ popover, menu, dialog, toast), show the full screen once, then add a small
152
+ separate artboard whose `html` contains ONLY that sub-surface — do not re-draw
153
+ the whole page around it, and do not scale a duplicate up. Pick the matching
154
+ `surface` (e.g. `popover`) so the footprint is right; never widen a popover to
155
+ page width.
156
+
157
+ **Loading / skeleton states.** Set `data.skeleton: true` on the wireframe and
158
+ fill the `html` with neutral, textless placeholder geometry — boxes and bars
159
+ built as `<div>`s with `background:var(--wf-line)` and explicit heights/widths,
160
+ no labels or copy. The renderer drops borders, sketch, and color into the
161
+ skeleton register automatically. Never escape to a `custom-html` document block
162
+ to fake a loader.
163
+
164
+ **Editing an existing mockup.** In hosted mode, to change one element, text, or
165
+ color in an existing html mockup, do not regenerate the frame — call
166
+ `update-visual-plan` with
167
+ `contentPatches: [{ op: "patch-wireframe-html", blockId, edits: [{ find,
168
+ replace }] }]`. Each `find` is a unique snippet of the current html (read it
169
+ first with `get-visual-plan`); set `all: true` on an edit to replace every
170
+ occurrence. The result is re-sanitized. In local-files privacy mode, do not call
171
+ hosted Plan tools; edit the local MDX source directly and rerun the local
172
+ check/serve or verify command for `<plan-dir>`.
173
+
174
+ **Choose the outer frame deliberately.** Wireframe and diagram data accept
175
+ `frame: "auto" | "show" | "hide"` in block data (`<Screen frame="hide">` in
176
+ MDX wireframes, `<Diagram frame="hide">` for MDX diagrams). Leave it unset or
177
+ `auto` when the host context should decide: Plan and recap surfaces default to a
178
+ drawn outer frame; docs surfaces default to no outer frame. Use `show` for
179
+ standalone product screens, before/after recap comparisons, screenshot-like
180
+ artifacts, and visuals that need containment from surrounding prose. Use `hide`
181
+ when a docs page, tab, column, card, canvas artboard, or the visual's own
182
+ internal chrome already supplies the boundary. Do not use `hide` to compensate
183
+ for cramped content; fix the layout instead.
184
+
185
+ **Inner padding and borders still matter.** Always wrap HTML wireframe content
186
+ in a root container with real inner padding before drawing cards, fields, pills,
187
+ labels, or controls. Use at least 14-16px of padding, `box-sizing: border-box`,
188
+ `height: 100%`, and `gap` between child rows on the root node itself so the
189
+ first row never sits flush against the screen edge. Do not rely on padding on a
190
+ nested page section as the first visible inset; the outermost element must
191
+ create the breathing room. Keep text away from borders: every container, field,
192
+ button, menu item, and annotation needs enough padding and line-height to read
193
+ cleanly in the rendered Plan view.
194
+
195
+ **Center page-like content inside broad surfaces.** For browser or desktop
196
+ screens, let the outer root provide the full-width frame and padding, then keep
197
+ the page body in a centered wrapper such as
198
+ `width:100%;max-width:720px;margin-inline:auto`. Full-width app bars may span
199
+ the root, but onboarding, auth, settings, and other page-like content should
200
+ not hug the left border unless the real product does.
201
+
202
+ **For feature-cloud or abundance visuals, optimize the composition over line-by-line
203
+ reading.** Some marketing/product sections need to feel like a large surface area
204
+ of capability rather than a precise app workflow. In those cases, use one padded
205
+ root with a short headline and a dense, aesthetic cloud of short feature labels,
206
+ chips, rings, or columns. Vary scale and opacity with tokens, cluster by meaning,
207
+ and let many labels be glanceable rather than individually essential. Do not
208
+ force dozens of features into equal cards with long wrapped sentences; that
209
+ usually creates a messy unreadable mockup.
210
+
211
+ **Lay out children safely so they never collide.** Use HTML flex/grid with
212
+ `gap`, `min-width: 0`, and sensible overflow. Avoid negative margins, absolute
213
+ positioning, or fixed child widths that can collide when the renderer switches
214
+ between light/dark, sketch/clean, or different zoom levels.
215
+
216
+ **Do not wrap intentionally single-line labels.** For toolbars, tab rails,
217
+ breadcrumbs, chip/filter rows, branch and file names, file chips, and code
218
+ filenames — any deliberately single-line row — do not let long text wrap. Put
219
+ `white-space: nowrap` on the row (and `overflow: hidden; text-overflow: ellipsis`
220
+ on the individual labels that can grow), so the wireframe demonstrates the actual
221
+ layout behavior instead of producing ugly stacked or vertical text. Use
222
+ horizontally scrollable or clipped rails for overflow.
223
+
224
+ **Fill the frame; keep labels short.** Each artboard is a fixed-size surface — compose enough realistic HTML to fill it top to bottom with even vertical rhythm; never leave a large empty band. On desktop/app-shell sidebars, let the nav stack flex to fill (`flex:1`) and add any persistent bottom action/status after it so the rail reads complete in taller frames. On mobile especially, flow real rows down the whole screen (status bar, header, then list/detail content) rather than a header floating above a gap. Keep every label short enough to sit on one line within its column — shorten the copy rather than relying on the frame to absorb it (long labels wrap or clip).
225
+
226
+ **Persistent chrome bars span the full frame width.** Top bars, app headers,
227
+ toolbars, and bottom tab/nav bars are full-width chrome, not centered content.
228
+ Lay each one out as a single flex row that fills the frame
229
+ (`style="display:flex;align-items:center;width:100%"`) and push trailing actions
230
+ to the right edge with a flex spacer (`<div style="flex:1"></div>`) between the
231
+ leading group and the trailing group — never center a bar inside a narrow,
232
+ centered block, and never let it collapse to the width of its contents. In a
233
+ Before/After pair the bar stays full-width in BOTH states even when one state has
234
+ fewer controls; the spacer absorbs the difference so the remaining controls hold
235
+ their edge alignment instead of sliding to the center.
236
+
237
+ **Pin bottom bars to the bottom of the frame.** For mobile tab bars, footers, and
238
+ any persistent bottom action row, make the frame itself a flex column at
239
+ `height:100%` (`style="display:flex;flex-direction:column;height:100%"`), give the
240
+ scrolling body `flex:1` so it absorbs the slack, and place the bar as the LAST
241
+ child of the frame (or set `margin-top:auto` on it). The bar then sits flush at
242
+ the bottom of the surface instead of floating directly under the content with an
243
+ empty band beneath it.
244
+
245
+ **Before / after must be comparable.** When showing a state change, preserve the
246
+ unchanged controls in both states so the reviewer can see exactly what moved or
247
+ appeared; do not show an added control as a generic box floating elsewhere in
248
+ the surface. Place the new/changed affordance where the implementation puts it —
249
+ for example, a new `Edit with AI` action in a popover header belongs in the
250
+ top-right header slot, aligned with the title, not in the body or footer. Use
251
+ the same frame size, scale, outer padding, border radius, and visual density on
252
+ both sides unless the change itself alters those properties, and let the frame
253
+ height fit the content rather than leaving a tall empty lower half.
254
+
255
+ **Name the states with the column header, never inside the frame.** For
256
+ document-body wireframes (recaps), put the two
257
+ states in a `columns` block and set each column's `label` to `Before` and
258
+ `After` — the renderer draws that label as an `h4` heading above each frame. Do
259
+ NOT bake a `Before`/`After` pill, title, or heading into the wireframe `html`: a
260
+ label placed inside reads as part of the product UI, lands in a random corner,
261
+ and clutters the comparison. The column header is the one and only place the
262
+ state name belongs. On a canvas, place the two state artboards as neighbors with
263
+ frame labels — never encode Before/After inside the html.
264
+
265
+ **Let the surface choose side-by-side vs. stacked.** For document-body
266
+ wireframes (recaps), the `columns` renderer lays
267
+ narrow surfaces (`mobile`, `popover`, `panel`) out side by side, and
268
+ automatically stacks wide surfaces (`desktop`, `browser`) vertically at full
269
+ document width so a large frame is never crushed into a half-width column and
270
+ cropped. Author both wireframes with the real `surface` and the matching
271
+ `Before`/`After` column labels; do not hand-stack the pair into separate
272
+ top-level wireframes or duplicate the state name as body content.
273
+
274
+ **Good example — a contacts list, surface `browser`.** A small, real screen
275
+ composed from the helper classes and tokens, layout in inline flex, no fonts or
276
+ hex colors:
277
+
278
+ ```html
279
+ <div
280
+ style="display:flex;flex-direction:column;gap:12px;padding:16px;height:100%"
281
+ >
282
+ <div style="display:flex;align-items:center;justify-content:space-between">
283
+ <h1>Contacts</h1>
284
+ <button class="primary">New contact</button>
285
+ </div>
286
+ <div style="display:flex;gap:6px">
287
+ <span class="wf-pill accent">All 128</span>
288
+ <span class="wf-pill">Favorites</span>
289
+ <span class="wf-pill">Archived</span>
290
+ </div>
291
+ <div
292
+ class="wf-card"
293
+ style="display:flex;flex-direction:column;gap:0;padding:0"
294
+ >
295
+ <div
296
+ style="display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1.4px solid var(--wf-line)"
297
+ >
298
+ <div
299
+ style="width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)"
300
+ ></div>
301
+ <div style="flex:1">
302
+ <strong>Jane Cooper</strong><br /><small>jane@acme.co</small>
303
+ </div>
304
+ <span class="wf-pill">Lead</span>
305
+ </div>
306
+ <div style="display:flex;align-items:center;gap:10px;padding:10px 12px">
307
+ <div
308
+ style="width:32px;height:32px;border-radius:999px;background:var(--wf-accent-soft)"
309
+ ></div>
310
+ <div style="flex:1">
311
+ <strong>Marcus Lee</strong><br /><small>marcus@globex.io</small>
312
+ </div>
313
+ <span class="wf-pill">Customer</span>
314
+ </div>
315
+ </div>
316
+ </div>
317
+ ```
318
+
319
+ <!-- SHARED-CORE:wireframe-quality END -->
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: pb-ci-fix
3
+ description: >-
4
+ Fix red CI or set up GitHub Actions end to end: read the failing run, find
5
+ the root cause, patch and validate the workflow, push only after GO, and
6
+ watch the run go green on the pushed commit. Use for "CI is red", "the
7
+ build fails on GitHub", "set up CI for this repo", "fix the workflow".
8
+ category: engineering-method
9
+ kind: playbook
10
+ trigger: ["CI is red", "set up CI", "fix the GitHub Actions run"]
11
+ inputs: [repo, failing_run_id?]
12
+ requires:
13
+ skills: [github, deja-memory, systematic-debugging, ci-pipeline, github-actions-generator, github-actions-validator, bdbresilience, verification-before-completion, "gh (external)"]
14
+ agents: []
15
+ mcps: []
16
+ store: []
17
+ go_points: [git push]
18
+ outputs: [".github/workflows/*.yml", "production_artifacts/pb-ci-fix-<date>.md"]
19
+ verify: "gh run list --commit <sha> --json conclusion -q '.[0].conclusion' == success"
20
+ difficulty: intermediate
21
+ est_time: 15-45 min
22
+ disable-model-invocation: true
23
+ ---
24
+
25
+ # Fix red CI or set up GitHub Actions
26
+ What you get: a green GitHub Actions run on a pushed commit, with the cause and the fix written down.
27
+
28
+ ## Inputs
29
+ - repo — the current directory, or the one the user names
30
+ - failing_run_id (optional) — from the GitHub Actions page; otherwise the latest failed run
31
+
32
+ ## Steps
33
+ 1. github — repo → `gh run list --limit 5` (gh missing, not authenticated, or no GitHub remote → log it, give the `gh auth login` / remote hint, stop) and `gh run view <id> --log-failed` excerpt in the run log — failing job and step named; no workflows exist → go to step 4 (setup path; skips steps 2, 3 and 6, and step 7 runs the new workflow's commands locally)
34
+ 2. deja-memory — error text → `deja fix` result in the run log — prior fix found, or "none"
35
+ 3. systematic-debugging — failing step → root cause and a local repro command — repro fails locally, or the reason it cannot run locally (a config-only fault: the validator or step commands are the repro for step 7)
36
+ 4. ci-pipeline (no workflows) or github-actions-generator (patch) — root cause → `.github/workflows/*.yml` diff — diff touches only the cause
37
+ 5. github-actions-validator — workflows → validator report — zero errors after the mandatory rerun
38
+ 6. bdbresilience — only if step 3 classified the failure as transient → retry or timeout on that step only — no blanket retries
39
+ 7. verification-before-completion — repro command → fresh passing output pasted in the run log — output pasted, not claimed
40
+ 8. git commit `ci: <cause>` — stage only the changed `.github/workflows/*` files (never the run log) → SHA in the run log — commit hook passes
41
+ 9. [GO] git push — SHA → remote branch (name the branch in the WAITING FOR GO line) — The run stops here until the human types GO. Each retry cycle that pushes again needs its own fresh GO here.
42
+ 10. github — SHA → `<id>` from `gh run list --commit <sha> --limit 1 --json databaseId` (wait until it exists), then `gh run watch <id> --exit-status` — `gh run list --commit <sha> --json conclusion -q '.[0].conclusion'` equals `success`; otherwise back to step 3, at most 2 cycles (each push behind a fresh GO at step 9), then stop and escalate
43
+
44
+ Run log: `production_artifacts/pb-ci-fix-<date>.md`
45
+
46
+ Rules
47
+ - Anything other than the literal GO (case-insensitive) is not a GO; a GO covers only that one step, one time.
48
+ - A failed check stops the run: write the failure into the run log and report. No silent retries beyond what a step names.
49
+ - Write one run-log line per step as it completes (`N. done|skipped|failed — artifact — check result`) and `WAITING FOR GO: <step>` at each gate.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: pb-event-tracker
3
+ description: >-
4
+ Build one spreadsheet for an event covering guests, vendors, timeline and
5
+ budget, from your event brief and vendor list, and draft the vendor
6
+ messages for your GO. Use for "event tracker", "plan this event", "track
7
+ vendors and budget", "event spreadsheet".
8
+ category: media-eventtech
9
+ kind: playbook
10
+ trigger: ["event tracker", "track my event", "vendor and budget sheet"]
11
+ inputs: [event_brief, vendor_list]
12
+ requires:
13
+ skills: [bdb-eventagency-skill]
14
+ agents: []
15
+ mcps: []
16
+ store: []
17
+ go_points: [send vendor or guest messages]
18
+ outputs: ["brief.md", "tracker.csv", "summary.md", "vendor-requests-draft.md", "run-log.md"]
19
+ verify: "summary.md total recomputed from tracker.csv matches"
20
+ difficulty: intermediate
21
+ est_time: 20-40 min
22
+ disable-model-invocation: true
23
+ ---
24
+
25
+ # Event tracker
26
+ What you get: guests, vendors, timeline and budget for one event in a single spreadsheet.
27
+
28
+ ## Inputs
29
+ - An event brief — a text or document file describing the event
30
+ - A vendor list — a file with the vendors and what each provides
31
+ - A save folder — asked once; default `./pb-event-tracker-<date>/`
32
+
33
+ ## Steps
34
+ 1. Ask once — save folder, event brief, vendor list → `run-log.md` — the files are readable
35
+ 2. bdb-eventagency-skill (section "2. Client & Project Intake") — brief → `brief.md` with date, venue, attendance estimate, budget range — missing fields listed as `?`
36
+ 3. bdb-eventagency-skill (section "4. Vendor Management", status list) — vendor list → `tracker.csv`, columns section, item, owner, status, due, cost, notes; sections guest, vendor, timeline, budget (the budget section holds one budget line whose amount goes in `notes`, never in `cost`; costs sit on their rows; guest rows from a guest list if given, else one `?` row) — every vendor from your list is present
37
+ 4. bdb-eventagency-skill (section "5.1 Pre-production", run-of-show and day-minus milestones) — event date → timeline rows in `tracker.csv` (date `?` → ask, else skip the timeline and log it) — no row dated after the event
38
+ 5. Total = sum of `cost` over all rows except the budget row; budget = the amount in the budget row's `notes` → `summary.md` with total versus budget, over or under — the sum recomputed from `tracker.csv` matches; budget `?` is reported as "budget unknown"
39
+ 6. Show `tracker.csv` and `summary.md` in full and apply your edits until you approve — approval logged
40
+ 7. Write `vendor-requests-draft.md` (requests and confirmations), each recipient as name + address (`?` blocks sending until you fill it) — draft only, nothing is sent
41
+ 8. [GO] Send the vendor or guest messages through a connector you name, or send them yourself — show every recipient and the full text of every message first. The run stops here until the human types GO. The GO covers exactly the recipients and messages shown and nothing else; a different or added recipient needs a fresh GO. Never send to anyone not listed in `vendor-requests-draft.md`.
42
+
43
+ The tracker is a CSV file that opens in any spreadsheet app.
44
+
45
+ Run log: `run-log.md` in the save folder. One line per step as it completes (`N. done|skipped|failed — file — check result`), and `WAITING FOR GO: <step>` at the gate. Anything other than the literal GO (case-insensitive) is not a GO. If a check fails, stop, write the failure into the log and tell the user.
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: pb-meeting-actions
3
+ description: >-
4
+ Turn a meeting transcript into clean notes, the decisions, and who does
5
+ what by when, then draft the follow-up mail and send it only after your GO.
6
+ Use for "meeting notes", "action items from this meeting", "who did what
7
+ in this transcript", "who does what after the call".
8
+ category: bdb-core
9
+ kind: playbook
10
+ trigger: ["meeting notes", "action items from this meeting", "follow-up mail"]
11
+ inputs: [transcript_file]
12
+ requires:
13
+ skills: [memb-skill]
14
+ agents: []
15
+ mcps: []
16
+ store: []
17
+ go_points: [send follow-up]
18
+ outputs: ["notes.md", "decisions.md", "actions.md", "followup-draft.md", "run-log.md"]
19
+ verify: "every decision and action in the files cites a transcript line"
20
+ difficulty: beginner
21
+ est_time: 10-20 min
22
+ disable-model-invocation: true
23
+ ---
24
+
25
+ # Meeting notes and action list
26
+ What you get: clean notes, the decisions, and who does what by when, from a meeting transcript.
27
+
28
+ ## Inputs
29
+ - A transcript file (.txt, .md, .vtt or .srt) — exported from your meeting tool; an audio file alone is not enough
30
+ - A save folder — asked once; default `./pb-meeting-actions-<date>/`
31
+
32
+ ## Steps
33
+ 1. Ask once — save folder and transcript file → `run-log.md` (create the folder only after the file check passes) — the file is readable; if you only have audio, ask for the transcript export instead (no transcription is available here)
34
+ 2. Read the transcript → `notes.md` with attendees and at most 10 summary bullets — each bullet cites a timestamp or line
35
+ 3. Read the transcript → `decisions.md` — each decision traced to a transcript line
36
+ 4. Read the transcript → `actions.md` as a table: owner, task, due, source — an unknown owner or due date is written as `?`, never guessed
37
+ 5. Show notes, decisions and actions in full and apply your edits until you approve — approval logged
38
+ 6. Write `followup-draft.md`, one mail per recipient group, each recipient as name + address (`?` blocks sending until you fill it) — draft only, nothing is sent
39
+ 7. [GO] Send the follow-up through a connector you name; without one, you copy the draft yourself — show every recipient and the full text of every message first. The run stops here until the human types GO. The GO covers exactly the recipients and messages shown and nothing else; a different or added recipient needs a fresh GO. Never send to anyone not listed in `followup-draft.md`.
40
+ 8. memb-skill — optional, ask first: store the decisions — memory ids logged
41
+
42
+ Run log: `run-log.md` in the save folder. One line per step as it completes (`N. done|skipped|failed — file — check result`), and `WAITING FOR GO: <step>` at the gate. Anything other than the literal GO (case-insensitive) is not a GO. If a check fails, stop, write the failure into the log and tell the user.
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: pb-project-new
3
+ description: >-
4
+ Start a new private GitHub project the AOS way: create the private repo,
5
+ bootstrap AOS (project card, AGENTS.md, wiki, memory, CI choice), push
6
+ after GO, and confirm the first CI run is green and the repo is still
7
+ private. Use for "new project", "start a repo", "bootstrap a project".
8
+ category: bdb-core
9
+ kind: playbook
10
+ trigger: ["new project", "start a new repo", "bootstrap a project"]
11
+ inputs: [name, owner, local_folder, upstream_url?]
12
+ requires:
13
+ skills: [github, aos-project-init, pb-ci-fix, "gh (external)"]
14
+ agents: []
15
+ mcps: []
16
+ store: []
17
+ go_points: [gh repo create, git push -u origin main]
18
+ outputs: [".aos/project.json", "AGENTS.md", ".openwiki/", "production_artifacts/pb-project-new-<date>.md"]
19
+ verify: "gh repo view <owner>/<name> --json visibility -q .visibility == PRIVATE"
20
+ difficulty: intermediate
21
+ est_time: 20-40 min
22
+ disable-model-invocation: true
23
+ ---
24
+
25
+ # New private AOS project
26
+ What you get: a private GitHub repo with AOS bootstrapped, pushed, and a first CI run checked.
27
+
28
+ ## Inputs
29
+ - name, owner — asked in step 1
30
+ - local_folder — where the clone goes, asked in step 1
31
+ - upstream_url (optional) — a repo to track as `upstream`, asked in step 1
32
+
33
+ ## Steps
34
+ 1. Ask — name, owner, local folder, optional upstream URL → run log header in the start directory (`production_artifacts/pb-project-new-<date>.md`, never committed) — all answered
35
+ 2. [GO] github — from the parent of `<local_folder>` (`cd` there first; the clone lands in `<name>/`), `gh repo create <owner>/<name> --private --clone` → repo and local clone — The run stops here until the human types GO.
36
+ 3. github — `gh repo view <owner>/<name> --json visibility -q .visibility` → value in the run log — must equal `PRIVATE`; otherwise fail-stop: write the value to the run log, tell the user, push nothing, and do not delete or change the repo (destructive actions need the user's confirmation)
37
+ 4. Upstream given → `git remote add upstream <url>` — `git remote -v` shows it; never push to `upstream` (no `gh repo fork`: a fork of a public repo cannot be private)
38
+ 5. aos-project-init — folder → `.aos/project.json`, `AGENTS.md` and symlinks, OpenWiki, memB project card, Synapse, CI choice (it may create triage labels and write `../WORKTREE.md`; aos-project-init asks for its own write-list approval) — doctor rows green or exceptions named, `.openwiki/` present; accept aos-project-init's own commit if it makes one, step 6 commits only what is left, never the run log
39
+ 6. git commit `chore: bootstrap AOS project` — remaining bootstrap files → SHA — commit hook passes (skip if nothing is left)
40
+ 7. [GO] `git branch -M main`, then git push -u origin main — SHA → remote — The run stops here until the human types GO.
41
+ 8. pb-ci-fix — only if CI was chosen in step 5: run its step 10 (watch the run on the pushed SHA) → conclusion `success`; if red, hand over to `/pb-ci-fix` from its step 1 (it has its own GO); then re-run the step 3 check — still `PRIVATE`
42
+
43
+ Run log: `production_artifacts/pb-project-new-<date>.md` in the start directory, outside the new repo
44
+
45
+ Rules
46
+ - Anything other than the literal GO (case-insensitive) is not a GO; a GO covers only that one step, one time.
47
+ - A failed check stops the run: write the failure into the run log and report. No silent retries.
48
+ - Write one run-log line per step as it completes (`N. done|skipped|failed — artifact — check result`) and `WAITING FOR GO: <step>` at each gate.