jetxu-llm/docmason/workspace-bootstrap
Claude Code and agent skill by jetxu-llm/docmason
- community
Checking that the SKILL.md file is still in the repository.
Prepare a DocMason repository for local operation by bootstrapping the environment, creating required directories, and recording runtime state.
Install
npx vskill@latest install jetxu-llm/docmason/workspace-bootstrapSKILL.md
Workspace Bootstrap
Use this skill when the task is to make a DocMason workspace ready for use, or when ask has discovered that the workspace is not yet ready for a safe answer path.
This is also the correct first explicit setup workflow when the current agent is not running on the native Codex path and needs to determine whether adapter-specific guidance should be refreshed.
Required Capabilities
- local file access
- shell or command execution
- ability to inspect command output
If the agent cannot perform these capabilities, stop and explain that the environment is not capable enough for the workflow.
Procedure
- Inspect
runtime/bootstrap_state.jsonwhen it exists.
- if it already says the current workspace root is ready and
.venvstill exists, do not
rerun deep bootstrap work by default
- if it belongs to another workspace root, treat that as a moved-repo repair case
- treat
self-containedas the only ordinary ask-time ready environment grade - in practice this means the repo-local steady-state runtime is trusted for ordinary work
- treat
mixedanddegradedas repair-needed states
- If
.venvis absent ordocmasonis not yet runnable from the repo-local environment, start with:
./scripts/bootstrap-workspace.sh --yes- add
--jsonwhen machine-readable output helps - on native Codex ordinary cold starts, treat
./scripts/bootstrap-workspace.sh --yes --jsonas the single governed mutation surface before ask-time workspace work can continue - the launcher should run a capability-aware preflight first, then either continue silently or stop once with a structured
host-access-upgradeboundary - in Codex
Default permissions, the ordinary path should use repo-local bootstrap cache only; it should not probe shared user cache paths first - the launcher should prefer the controlled UV bootstrap asset path for ordinary native cold starts instead of broad local-machine Python scavenging
- the launcher may honor an explicit
DOCMASON_BOOTSTRAP_PYTHONoverride for operator repair, but that is not the ordinary first-run path
- Once the launcher succeeds, prefer the repo-local environment for subsequent commands:
./.venv/bin/python -m docmason doctor --json./.venv/bin/python -m docmason prepare --json --yes- or the
docmasonexecutable installed inside.venv
- Run
docmason doctor --jsonwhen you need a readiness snapshot after launcher completion or on an already prepared workspace. - Run
docmason prepare --json --yeswhen the launcher was not used, or when bootstrap needs an explicit rerun to repair or complete the repo-local environment. - If
preparereports a degraded result, follow the reported next steps and rerun only the necessary deterministic command. - Use
docs/setup/manual-workspace-recovery.mdonly when the launcher orpreparestill cannot finish honestly after the governed automatic path has already had enough access. - If the corpus already contains PPTX, DOCX, or XLSX files and LibreOffice is missing or detected but unusable:
- LibreOffice is required only for an Office-rendering corpus; it is not a universal machine baseline dependency
- on macOS with Homebrew already present, DocMason may use
brew install --cask libreoffice-still - on macOS without Homebrew, DocMason should use the official LibreOffice installer path instead of trying to install Homebrew first
- on macOS, if LibreOffice is already detected but fails the governed smoke probe,
prepare --yesshould treat that as a repair or reinstall case rather than as a fake ready state - on Linux, install LibreOffice with the distro package manager or the official packages, then ensure
sofficeis onPATH
- Run
docmason status --jsonwhen you need to confirm the resulting workspace stage. - Recommend
docmason sync --jsonwhen source files are present and the user needs a usable knowledge base next. - If the current agent ecosystem is a compatibility target such as Claude Code rather than the native Codex path, decide here whether generated adapter guidance is needed.
- Recommend
docmason sync-adapters --jsononly when the current agent ecosystem depends on generated adapter files or those files are missing or stale. - Once
.venvexists, prefer the repo-local interpreter for subsequent repository commands instead of switching back to an arbitrary system Python. - Return the final readiness judgment to the main agent. Do not delegate environment sign-off.
Escalation Rules
- If the platform or Python version is unsupported, stop and surface that blocker directly.
- If
preparecan only proceed through a higher-intrusion install step, explain it explicitly rather than hiding it inside automation. - If system-level installation requires additional permissions, request them when the current platform supports that flow; otherwise give the user the exact command or GUI step to run.
- On native Codex/macOS, if the thread is still in
Default permissionsand higher access is required for downloads or machine-level setup, stop once with an explicitFull accessupgrade instruction. AfterFull accessis available, continue through the governed automatic repair or reinstall path instead of stopping at diagnosis alone. - For Claude Code or another compatibility host, keep the fallback wording short and host-generic; do not expand it into a second native bootstrap story.
- Deterministic shell setup steps may run as background or main-agent commands, but the final environment judgment returns to the main agent.
Completion Signal
- The workflow is complete when
prepareand follow-up readiness checks leave the workspace ready, or when an actionable environment blocker has been surfaced to the main agent.
Notes
preparebootstraps repo-local state only../scripts/bootstrap-workspace.sh --yesis the preferred zero-to-working launcher from a raw checkout because it can prepare.venvbefore the package is importable from thesrc/layout.- The launcher now performs governed preflight first, then probes bootstrap-Python liveness in bounded time and prefers repo-local candidates before shared ones.
- The launcher and
preparenow trust real LibreOffice smoke conversion, not onlysoffice --version, before declaring an Office-rendering machine baseline ready. runtime/bootstrap_state.jsonis the cached ready marker that ordinary ask-time work should reuse.- The steady-state runtime is repo-local managed Python
3.13under.docmason/toolchain/python/. - On the native Codex path, bootstrap should refresh repo-local skill shims under
.agents/skills/rather than writing into~/.codex/skills. preparemay use shared/system Python only as a bootstrap or repair helper; ordinary steady-state commands should not depend on it.- When
uvis missing,prepareshould provision the repo-local bootstrap helper venv under.docmason/toolchain/bootstrap/venvand installuvthere. - On the native macOS path, ordinary cold starts should prefer the controlled UV bootstrap asset path first, use repo-local cache in Codex
Default permissions, and auto-attempt only the real missing dependency installs when host access allows it. - Homebrew is optional. If it is already on
PATH, DocMason may use it as a convenience backend, but DocMason should not spend time installing or preparing Homebrew itself. - After preparation, prefer
./.venv/bin/python -m docmason ...or the CLI installed inside.venvfor ordinary workspace operations. - For Office rendering, DocMason detects the standard macOS
sofficepath inside/Applications/LibreOffice.app/Contents/MacOS/soffice, so shell-profile changes are usually unnecessary. - Not every Codex-first first-answer path requires
sync-adaptersbefore work can proceed. - Avoid shell-profile mutation unless it is clearly required and explicitly explained to the user.
- Do not silently upgrade the host from Codex
Default permissionstoFull access; explain that boundary explicitly.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/canonical/workspace-bootstrap/SKILL.md
Popularity
- Repository stars
- 129
- Repository forks
- 34
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jetxu-llm/docmason/workspace-bootstrap)