Skip to content

docs: document the system end-to-end (bootstrap/doctor/maintain/auto-sync)#45

Open
abdout wants to merge 2 commits into
docs/shadcn-new-sectionsfrom
docs/system-pages
Open

docs: document the system end-to-end (bootstrap/doctor/maintain/auto-sync)#45
abdout wants to merge 2 commits into
docs/shadcn-new-sectionsfrom
docs/system-pages

Conversation

@abdout
Copy link
Copy Markdown
Contributor

@abdout abdout commented May 18, 2026

Summary

Fills the gaps in the new hierarchical IA with five operational-engine docs that document everything we built over the bootstrap chain + repos-at-home + auto-sync work. One master overview ties them together.

Pages added

Path What it covers
reference/system.mdx Master overview — the 6 scripts, the cold-start flow, the steady-state loop, the ~/.claude/ artifact map, repo layout, friendly URLs, exit code semantics, and known gaps
operations/bootstrap.mdx 16-step single-paste cold start — run command, full step table, flags, OAuth batch UX, roles
operations/doctor.mdx 7 check categories (Core/Shell/Identity/Repos/Updates/Scheduled/IDE), status icons, exit codes, auto-fix slugs, sample report
operations/maintain.mdx Daily heartbeat — install per OS, what each run does, log format, relationship to auto-sync
operations/auto-sync.mdx Real-time bidirectional git sync — install, flags, log format, service backend per OS, troubleshooting

Pages updated

Path Change
reference/repositories.mdx Adds prominent "Local layout" section near the top — the canonical answer to "where does X live?" now lands above the fold
operations/meta.json Adds ---System--- divider + the 4 new pages to the sidebar
reference/meta.json Adds system as the first reference doc

Why this PR exists

Three earlier PRs (#37 onboarding rewrite, #38 repos at home root, #41 auto-sync) shipped their docs at the top-level content/docs/ directory, which predated the shadcn-style hierarchical IA restructure in PR #39. This PR ports/extends that content into the new IA spots and adds the missing operational pages (bootstrap, doctor, maintain) that didn't exist anywhere before.

Cross-linking

Every new page links to:

  • reference/system (the master overview)
  • The relevant .claude/scripts/* source file on GitHub
  • Sibling operations pages when they relate (doctormaintainauto-sync)

Dependencies

Stacks on docs/shadcn-new-sections (the active docs branch) to inherit the new IA. No dependency on the bootstrap chain (#29-#36) — these are docs describing future-merged scripts. They'll be accurate once the script PRs land.

Test plan

  • pnpm dev — navigate the new sidebar entries, confirm pages render without MDX errors
  • Cross-links resolve (Operations → System → Operations)
  • /docs/reference/repositories shows "Local layout" as the first section after the intro
  • /docs/reference/system renders the ASCII diagrams correctly
  • Spot-check a sample command — copy-paste-runnable on Windows + macOS/Linux

Known gaps (called out in system.mdx)

The doc lists 4 real-but-small rough edges as future tracking items:

  1. Repair-Profile is PowerShell-version-blind (only writes to current host's $PROFILE)
  2. Check-Shell.ps1 ~/.claude/bin false positive (regex doesn't match unexpanded $env:USERPROFILE)
  3. maintain -Install may need admin on some Windows configs
  4. Auto-sync scripts must be ASCII-only (PS 5 + UTF-8 BOM-less = parse errors) — already enforced, just a contributor reminder

Refs #28

🤖 Generated with Claude Code

abdout and others added 2 commits May 18, 2026 07:50
Phase 4 polish. Two changes that make the docs feel current and
discoverable without rewiring infrastructure.

- Hover-anchor # next to every h2/h3/h4. Slugify helper extracted so
  ids are stable across renders and consistent across heading levels.
  Anchor is opacity-0 by default and fades in on group-hover or when
  the link itself receives focus (keyboard-accessible).
- src/lib/docs.ts declares PAGES_NEW (4 entries, the Phase 3 resources)
  and PAGES_UPDATED (10 entries, the pages templated in Phase 2 and 3).
- Sidebar renderLink now reads those arrays and shows a small inline
  badge (primary tint for New, muted for Updated). New beats Updated
  if both are flagged.

Why: hover-anchors are the simplest way to give every section a
permanent, copy-able URL. Badges surface what's worth re-reading
without forcing users to scan the changelog.

Deferred: mobile sidebar via Sheet — it needs the shadcn Sidebar
component switched from collapsible="none" to "offcanvas" plus a
layout-level SidebarTrigger, which risks regressing desktop behavior.
Splitting into its own PR.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…uto-sync

Adds the operational engine documentation that was missing from the new
hierarchical IA. Five new pages plus a master overview tie together the
six scripts that run on every teammate's machine.

New pages:
  reference/system.mdx           master overview — the 6 scripts, the
                                 cold-start flow, the steady-state loop,
                                 the ~/.claude/ artifact map, the repo
                                 layout, the friendly URLs, exit code
                                 semantics, and known gaps
  operations/bootstrap.mdx       the 16-step single-paste cold start —
                                 run command, full step table, flags,
                                 OAuth batch, roles
  operations/doctor.mdx          7 check categories, status icons,
                                 exit codes, auto-fix slugs, sample
                                 green report, known false positives
  operations/maintain.mdx        daily heartbeat — install per OS,
                                 what each run does, log format,
                                 relationship to auto-sync
  operations/auto-sync.mdx       real-time bidirectional git sync —
                                 install, config flags, log format,
                                 service backend per OS, troubleshooting

Updated:
  reference/repositories.mdx     adds 'Local layout' section near the
                                 top — the canonical answer to 'where
                                 does X live?' is now the first thing
                                 a reader sees. Includes OS expansion
                                 table and migration commands from the
                                 old ~/oss/* layout.

  operations/meta.json           adds 'System' divider + bootstrap,
                                 doctor, maintain, auto-sync to sidebar
  reference/meta.json            adds system as the first reference doc

Each page lives in the IA spot that matches the shadcn-style hierarchy
introduced earlier. Internal cross-links use the new paths.

Refs #28

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

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

Project Deployment Actions Updated (UTC)
kun Ready Ready Preview, Comment May 18, 2026 5:58am

@abdout abdout changed the base branch from docs/shadcn-new-sections to main May 19, 2026 17:28
@abdout abdout changed the base branch from main to docs/shadcn-new-sections May 19, 2026 17:29
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