Skip to content

Add customization examples library - #4246

Merged
lawrencecchen merged 2 commits into
mainfrom
docs-customization-examples-library
May 16, 2026
Merged

lawrencecchen merged 2 commits into
mainfrom
docs-customization-examples-library

Conversation

@lawrencecchen

@lawrencecchen lawrencecchen commented May 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add a cmux-customization examples reference with reusable worktree, dev, SSH, PR review, agent button, and CI watch patterns
  • document examples-library coverage on the Skills docs page
  • update internal customization planning notes and OpenAI skill metadata

Testing

  • jq empty web/messages/en.json web/messages/ja.json
  • parsed 7 JSON examples from skills/cmux-customization/references/examples.md
  • npx -y skills@latest add . --skill cmux-customization --list
  • git diff --check
  • bun test tests/docs-search-utils.test.ts
  • SKIP_ENV_VALIDATION=1 bun run build

Note

Low Risk
Low risk: changes are limited to documentation, skill metadata, and localized strings/UI docs rendering with no runtime cmux behavior changes.

Overview
Adds an examples library to cmux-customization, including a new references/examples.md file with copy/pasteable presets (worktree agents, full-stack dev, SSH devbox, PR review, docs workspace, CI watch, and quick agent buttons) plus a small validation checklist.

Updates the cmux-customization skill docs and OpenAI metadata to point agents at the examples library, clarify project-local vs global precedence, and add a simple backup step before editing configs.

Surfaces the examples library in the web Skills docs page via a new table and prompt snippets, with new en/ja translation strings, and expands internal planning notes around presets and promotion guidance.

Reviewed by Cursor Bugbot for commit e3bab43. Bugbot is set up for automated code reviews on this repo. Configure here.


Summary by cubic

Added a reusable customization examples library for cmux and surfaced it in the Skills docs and the cmux-customization skill. This helps users quickly apply common workflows like worktrees, dev layouts, PR review, SSH, agent buttons, and CI.

  • New Features
    • Added skills/cmux-customization/references/examples.md with seven JSON presets (worktree agents, full‑stack dev, SSH devbox, review PR, docs workspace, quick agent buttons, CI watch) and a validation checklist.
    • Updated skills/cmux-customization/SKILL.md with examples-library guidance, explicit config precedence (project overrides global), timestamped backup/rollback steps, and an Examples Library section.
    • Updated skills/cmux-customization/agents/openai.yaml to default to picking an examples preset and validating cmux.json.
    • Added a “Customization examples library” table, info callout, and example prompts to web/app/[locale]/docs/skills/page.tsx, with en/ja strings.
    • Expanded docs/internal/skills-customization-ideas.md with examples scope, config lifecycle, team/agent presets, ui.newWorkspace.contextMenu (and alias) guidance, and a refined Promotion Rule.

Written for commit e3bab43. Summary will update on new commits. Review in cubic

Summary by CodeRabbit

  • Documentation

    • Expanded customization guidance (precedence, import/export/reset, backup/rollback, diff previews, validation checklist)
    • Added guidance for shareable team presets and agent presets, plus an Examples Library describing which workflows belong there
  • New Features

    • Added a customization examples library in the Skills docs with ready-to-use presets and prompt examples, localized in English and Japanese and surfaced on the docs page

Review Change Stack

@vercel

vercel Bot commented May 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cmux Ready Ready Preview, Comment May 16, 2026 7:28am
cmux-staging Building Building Preview, Comment May 16, 2026 7:28am

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented May 16, 2026 •

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

This PR adds a customization examples library to cmux docs and web UI, introduces references/examples.md with multiple workflow snippets and a validation checklist, updates SKILL documentation and the agent prompt to reference presets, adds web UI rendering and localization, and expands internal product notes on precedence and lifecycle.

Changes

Examples Library for cmux Customization

Layer / File(s) Summary
Examples library reference documentation
skills/cmux-customization/references/examples.md
Seven copy-paste configuration examples covering Worktree Agents, Full-Stack Dev, SSH Devbox, Review PR, Docs Workspace, Quick Agent Buttons, and CI Watch, plus a validation checklist for JSON/JSONC, cwd placement, command-name matching, and avoiding secrets.
Customization skill documentation
skills/cmux-customization/SKILL.md
Adds examples-library presets to the skill description; expands guidance for team preset sharing, import/export/reset/backup workflows, choose-surface scope, and workflow steps including conditional pre-edit backup and validation/reload steps.
Agent interface metadata
skills/cmux-customization/agents/openai.yaml
short_description broadened to include presets; default_prompt revised to instruct selecting an examples-library preset, wiring it into cmux.json, and validating the config.
Web UI component and localization
web/app/[locale]/docs/skills/page.tsx, web/messages/en.json, web/messages/ja.json
Adds customizationExamples metadata and a new docs section rendering an examples table, an info callout, and a code block from translated prompt strings; English and Japanese localization keys added for the examples and prompts.
Internal product strategy documentation
docs/internal/skills-customization-ideas.md
Clarifies configuration precedence (project-local actions/commands override global), expands product customization ideas (config lifecycle, team .cmux/ bundles, agent presets), and defines Examples Library promotion rules.

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • manaflow-ai/cmux#4236: Updates the same cmux-customization documentation stack (SKILL.md, agents/openai.yaml, web/messages) to expand customization surfaces and examples.
  • manaflow-ai/cmux#4222: Creates the cmux-customization skill foundation that this PR extends with examples-library documentation and UI.

Poem

🐰 A library of recipes for the curious coder,
Mix and match workflows, from harbor to border,
Worktrees and devboxes in one friendly guide,
No need to start blank when examples reside. ✨


Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore

❌ Failed checks (1 error, 1 warning)

Check name Status Explanation Resolution
Cmux Swiftui State Layout ❌ Error New files use ObservableObject+@published instead of @Observable: AuthManager, CmuxConfigStore, SelectedWorkspaceDirectoryObserver, SidebarTabItemSettingsStore, SidebarDragFailsafeMonitor. Replace ObservableObject+@published with @Observable. Use snapshots/closures for list row subtrees.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (14 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Cmux Swift Actor Isolation ✅ Passed PR contains no Swift files. All changes are documentation, config, JSON, and TypeScript. Swift actor isolation check is not applicable.
Cmux Swift Blocking Runtime ✅ Passed No Swift files modified in this PR. The check targets Swift code changes, but this PR only modifies documentation, YAML, TypeScript, and JSON files.
Cmux No Hacky Sleeps ✅ Passed PR contains no runtime timing/sleep code violations. The only production code file (page.tsx) has pure UI/data logic with no sleep, setTimeout, setInterval, polling, or delay patterns.
Cmux Swift Concurrency ✅ Passed No Swift code files are modified in this PR. Changes are limited to documentation (Markdown), YAML config, TypeScript/React, and JSON localization. The Swift concurrency check does not apply.
Cmux Swift @Concurrent ✅ Passed PR contains documentation, web UI, and localization changes. All Swift files are newly added infrastructure, not modifications. No @concurrent violations possible.
Cmux Swift File And Package Boundaries ✅ Passed PR contains no Swift files or production Swift changes. Changes are documentation, web code, config, and localization only.
Cmux Swift Logging ✅ Passed PR contains no Swift code. Changes are documentation (Markdown), configuration (YAML), frontend (TypeScript), and localization (JSON). The Swift logging check is not applicable.
Cmux User-Facing Error Privacy ✅ Passed Documentation-only PR adding customization examples and guidance. No user-facing error messages, alerts, or sensitive exposure. Properly guides users to keep secrets out of config.
Cmux Architecture Rethink ✅ Passed PR contains no Swift (.swift) files. Changes are documentation, YAML config, TypeScript/React, and JSON. Swift architectural rethink check is not applicable.
Cmux Swift Auxiliary Window Close Shortcuts ✅ Passed PR contains only documentation and web UI changes (Markdown, YAML, TypeScript, JSON). No Swift code changes present. Swift auxiliary window check does not apply.
Title check ✅ Passed The title 'Add customization examples library' directly matches the main objective: adding a new examples reference with reusable presets for cmux customization.
Description check ✅ Passed The PR description provides a clear summary of changes and testing performed, but lacks a demo video and bot review trigger block as specified in the template.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs-customization-examples-library

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps

greptile-apps Bot commented May 16, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a reusable customization examples library (references/examples.md) to the cmux-customization skill and surfaces it in the web Skills docs page with English and Japanese translations. No runtime app behavior is modified — all changes are documentation, skill metadata, and static docs content.

  • New references/examples.md: seven copy-paste JSON presets (Worktree Agents, Full-Stack Dev, SSH Devbox, Review PR, Docs Workspace, Quick Agent Buttons, CI Watch), each correctly labeled with its target config file where it differs from cmux.json.
  • SKILL.md updates: adds an Examples Library section directing agents to load the new file, documents project-local vs. global config precedence, and inserts a backup-before-edit step (renumbering subsequent workflow steps correctly).
  • Docs page + i18n: adds a table and callout in page.tsx backed by 31 new keys in both en.json and ja.json; all keys referenced in the TSX are present in both message files.

Confidence Score: 5/5

Safe to merge — all changes are documentation, skill metadata, and static docs content with no modifications to runtime app logic.

The PR adds a new reference file and updates docs/translations only. All seven examples advertised in the docs page are present in references/examples.md. Translation keys are complete in both locales. No logic, APIs, database schema, or Swift code is touched.

No files require special attention.

Important Files Changed

Filename Overview
skills/cmux-customization/references/examples.md New reference file with seven JSON presets; all sections present and CI Watch correctly carries a .cmux/dock.json label.
web/app/[locale]/docs/skills/page.tsx Adds customizationExamples array (7 entries) and new table + callout section; all i18n keys present in both locales.
skills/cmux-customization/SKILL.md Adds examples-library guidance, config precedence clarification, backup-before-edit step, and Examples Library section.
web/messages/en.json Adds 31 new translation keys covering all seven examples; all keys referenced by page.tsx are present.
web/messages/ja.json Mirrors en.json additions in Japanese with the same 31 keys.
skills/cmux-customization/agents/openai.yaml Updates short description and default prompt to reference the new examples-library preset workflow.
docs/internal/skills-customization-ideas.md Adds config-precedence note, lifecycle ideas, team/agent preset ideas, and Examples Library section; internal planning doc only.

Reviews (2): Last reviewed commit: "Address customization examples review" | Re-trigger Greptile

Comment on lines +1 to +8
# cmux Customization Examples

Use these examples as starting points. Merge only the relevant top-level keys
into the user's existing `cmux.json`, preserve unrelated sections, then run
`cmux reload-config` when available.

Prefer project-local `.cmux/cmux.json` for team workflows and global
`~/.config/cmux/cmux.json` for personal app preferences.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 "Docs workspace" example promised but absent from this file

The docs page (web/app/[locale]/docs/skills/page.tsx) renders a table row for id: "docs-workspace" with full i18n strings in both en.json and ja.json (exampleDocsName, exampleDocsSurface, exampleDocsUse). SKILL.md also instructs agents to load this file for "reusable patterns" that now includes docs workspaces by implication. There is no "Docs workspace" section or JSON snippet anywhere in this file. When a user asks an agent to apply that preset, the agent will find nothing and either fabricate a config or report an error. Either add the missing example section or remove the docs-workspace row from the page and its translation keys.

Comment on lines +246 to +269
## CI Watch

Use this when the user wants a repeatable place for GitHub Actions, CircleCI,
or release-monitoring commands. Prefer Dock controls for long-running monitors.

```json
{
"controls": [
{
"id": "gh-runs",
"title": "GitHub Runs",
"command": "gh run list --limit 10 && exec ${SHELL:-/bin/zsh} -l",
"cwd": ".",
"height": 260
},
{
"id": "feed",
"title": "Feed",
"command": "cmux feed tui --opentui",
"height": 260
}
]
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 CI Watch block missing target-file label

The CI Watch JSON block has "controls" as its top-level key — the same format used by dock.json (compare the labeled .cmux/dock.json block in the Full-Stack Dev section). The file-level preamble says to "merge only the relevant top-level keys into the user's existing cmux.json", so an agent that follows those instructions will put controls into cmux.json rather than dock.json, where it will be silently ignored or cause a parse error. Add a .cmux/dock.json: label above the code fence, matching the pattern used in the Full-Stack Dev example.

coderabbitai[bot]
coderabbitai Bot previously requested changes May 16, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/internal/skills-customization-ideas.md`:
- Around line 69-70: The two promotion guidance items overlap; update the
Examples Library text around the sentence referencing "Promote an example into
its own skill only after it has setup commands, validation, and safety rules
that are too detailed for `cmux-customization`" to either reference the existing
general "Promotion Rule" section or replace both with a single consolidated
Promotion guidance paragraph that uses the canonical phrasing (mentioning "setup
commands, validation, safety rules" and "that an agent would otherwise
rediscover") and cross-references `cmux-customization` as needed; ensure you
update the sentence in the Examples Library and the general Promotion Rule so
they are not duplicated but point to the same consolidated guidance.
- Around line 61-67: The Examples Library list references a "Docs workspace"
entry that doesn't exist in examples.md; either add a corresponding example to
examples.md named "Docs workspace" with the described components (docs dev
server, browser preview, markdown viewer) or remove the "Docs workspace" bullet
from the list in docs/internal/skills-customization-ideas.md; update whichever
file you choose (look for the list block containing "Worktree agents... Quick
agent buttons" and the examples.md file where examples are enumerated) so the
two files are consistent.

In `@skills/cmux-customization/references/examples.md`:
- Around line 210-271: The examples list is advertising a "Docs workspace"
preset that isn't present in the examples file; either add a corresponding JSON
snippet for the "Docs workspace" preset into this examples collection (following
the pattern used by "Quick Agent Buttons" and "CI Watch") or remove "Docs
workspace" from the surfaced examples list in the code that builds the UI;
specifically update the examples library entry for the "Docs workspace" preset
(or the array that lists surfaced examples) so the name and content are
consistent with the examples shown (refer to the example snippets named "Quick
Agent Buttons" and "CI Watch" for structure and the UI key
"surfaceTabBar"/"controls" usage).

In `@skills/cmux-customization/SKILL.md`:
- Around line 54-57: The backup commands unconditionally copy files and will
fail if a source is missing; update the snippet around stamp="$(date
+%Y%m%d-%H%M%S)" and the two cp invocations to guard each copy with a
file-existence check (e.g., test -f or [ -f ]) before running cp for
~/.config/cmux/cmux.json and .cmux/cmux.json so each backup only runs when the
corresponding file exists and still uses the stamp variable for the .bak
filename.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 9c2055c2-b46e-46a4-b110-1e0ae3d2e454

📥 Commits

Reviewing files that changed from the base of the PR and between 19d70ef and a3e4b5a.

📒 Files selected for processing (7)
  • docs/internal/skills-customization-ideas.md
  • skills/cmux-customization/SKILL.md
  • skills/cmux-customization/agents/openai.yaml
  • skills/cmux-customization/references/examples.md
  • web/app/[locale]/docs/skills/page.tsx
  • web/messages/en.json
  • web/messages/ja.json

Comment thread docs/internal/skills-customization-ideas.md
Comment thread docs/internal/skills-customization-ideas.md Outdated
Comment thread skills/cmux-customization/references/examples.md
Comment thread skills/cmux-customization/SKILL.md

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Re-trigger cubic

@lawrencecchen
lawrencecchen dismissed coderabbitai[bot]’s stale review May 16, 2026 07:33

Addressed by e3bab43; latest checks and bot summaries are green.

@lawrencecchen
lawrencecchen merged commit fba02b6 into main May 16, 2026
24 checks passed
@lawrencecchen
lawrencecchen deleted the docs-customization-examples-library branch May 16, 2026 07:34

This branch was successfully deployed

1 active deployment
Preview – cmux — e3bab433 Deployed May 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant