一键导入
workspace-bootstrap
Prepare a DocMason repository for local operation by bootstrapping the environment, creating required directories, and recording runtime state.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Prepare a DocMason repository for local operation by bootstrapping the environment, creating required directories, and recording runtime state.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Accept an ordinary user question inside a DocMason workspace, route it to the right inner workflow, and preserve conversation-native logs automatically.
Answer a user question through DocMason's canonical grounded workflow using retrieval, provenance tracing, render escalation, and a final answer-state check.
Produce evidence-backed research, planning, drafting, or composition output from the published DocMason knowledge base while preserving provenance and answer-file discipline.
Stage, incrementally refresh, validate, and publish the DocMason knowledge base from the local source corpus.
Trace published DocMason knowledge objects or answer text back to evidence units and provenance records.
Retrieve ranked evidence bundles from the published DocMason knowledge base.
| name | workspace-bootstrap |
| description | Prepare a DocMason repository for local operation by bootstrapping the environment, creating required directories, and recording runtime state. |
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.
If the agent cannot perform these capabilities, stop and explain that the environment is not capable enough for the workflow.
runtime/bootstrap_state.json when it exists.
.venv still exists, do not
rerun deep bootstrap work by defaultself-contained as the only ordinary ask-time ready environment grade
mixed and degraded as repair-needed states.venv is absent or docmason is not yet runnable from the repo-local environment, start with:
./scripts/bootstrap-workspace.sh --yes--json when machine-readable output helps./scripts/bootstrap-workspace.sh --yes --json as the single governed mutation surface before ask-time workspace work can continuehost-access-upgrade boundaryDefault permissions, the ordinary path should use repo-local bootstrap cache only; it should not probe shared user cache paths firstDOCMASON_BOOTSTRAP_PYTHON override for operator repair, but that is not the ordinary first-run path./.venv/bin/python -m docmason doctor --json./.venv/bin/python -m docmason prepare --json --yesdocmason executable installed inside .venvdocmason doctor --json when you need a readiness snapshot after launcher completion or on an already prepared workspace.docmason prepare --json --yes when the launcher was not used, or when bootstrap needs an explicit rerun to repair or complete the repo-local environment.prepare reports a degraded result, follow the reported next steps and rerun only the necessary deterministic command.docs/setup/manual-workspace-recovery.md only when the launcher or prepare still cannot finish honestly after the governed automatic path has already had enough access.brew install --cask libreoffice-stillprepare --yes should treat that as a repair or reinstall case rather than as a fake ready statesoffice is on PATHdocmason status --json when you need to confirm the resulting workspace stage.docmason sync --json when source files are present and the user needs a usable knowledge base next.docmason sync-adapters --json only when the current agent ecosystem depends on generated adapter files or those files are missing or stale..venv exists, prefer the repo-local interpreter for subsequent repository commands instead of switching back to an arbitrary system Python.prepare can only proceed through a higher-intrusion install step, explain it explicitly rather than hiding it inside automation.Default permissions and higher access is required for downloads or machine-level setup, stop once with an explicit Full access upgrade instruction. After Full access is available, continue through the governed automatic repair or reinstall path instead of stopping at diagnosis alone.prepare and follow-up readiness checks leave the workspace ready, or when an actionable environment blocker has been surfaced to the main agent.prepare bootstraps repo-local state only../scripts/bootstrap-workspace.sh --yes is the preferred zero-to-working launcher from a raw checkout because it can prepare .venv before the package is importable from the src/ layout.prepare now trust real LibreOffice smoke conversion, not only soffice --version, before declaring an Office-rendering machine baseline ready.runtime/bootstrap_state.json is the cached ready marker that ordinary ask-time work should reuse.3.13 under .docmason/toolchain/python/..agents/skills/ rather than writing into ~/.codex/skills.prepare may use shared/system Python only as a bootstrap or repair helper; ordinary steady-state commands should not depend on it.uv is missing, prepare should provision the repo-local bootstrap helper venv under .docmason/toolchain/bootstrap/venv and install uv there.Default permissions, and auto-attempt only the real missing dependency installs when host access allows it.PATH, DocMason may use it as a convenience backend, but DocMason should not spend time installing or preparing Homebrew itself../.venv/bin/python -m docmason ... or the CLI installed inside .venv for ordinary workspace operations.soffice path inside /Applications/LibreOffice.app/Contents/MacOS/soffice, so shell-profile changes are usually unnecessary.sync-adapters before work can proceed.Default permissions to Full access; explain that boundary explicitly.