workspace-bootstrap
Skill152 starsChanged 4 months agoApache-2.0View on GitHub
Prepare a DocMason repository for local operation by bootstrapping the environment, creating required directories, and recording runtime state.
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- HumbleDaan/fabric-project-structuretheir own version, first seen Sep 3, 2026
- seco/declawtheir own version, first seen Apr 4, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- seco/declaw★ 1same name
- HumbleDaan/fabric-project-structure★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- adapter-syncSkill
- askSkill
- grounded-answerSkill
- grounded-compositionSkill
- knowledge-base-syncSkill
- knowledge-constructionSkill
- provenance-traceSkill
- retrieval-workflowSkill
- runtime-log-reviewSkill
- validation-repairSkill
- workspace-doctorSkill
- workspace-statusSkill
- operator-evalSkill
- public-sample-workspaceSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 7 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
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 …
- Distinctive: line 18
If the agent cannot perform these capabilities, stop and explain that the environment is not capable enough for the workflow.
- Very specific: line 23
if it already says the current workspace root is ready and .venv still exists, do not rerun deep bootstrap work by default
- Distinctive: line 25
if it belongs to another workspace root, treat that as a moved-repo repair case
- Very specific: line 26
treat self-contained as the only ordinary ask-time ready environment grade
- Very specific: line 28
treat mixed and degraded as repair-needed states
- Very specific: line 29
If .venv is absent or docmason is not yet runnable from the repo-local environment, start with:
- Very specific: line 31
add --json when machine-readable output helps
- Very specific: line 41
Run docmason doctor --json when you need a readiness snapshot after launcher completion or on an already prepared workspace.
- Very specific: line 42
Run docmason prepare --json --yes when the launcher was not used, or when bootstrap needs an explicit rerun to repair or complete the …
- Very specific: line 43
If prepare reports a degraded result, follow the reported next steps and rerun only the necessary deterministic command.
- Very specific: line 44
Use docs/setup/manual-workspace-recovery.md only when the launcher or prepare still cannot finish honestly after the governed automatic …
- Distinctive: line 45
If the corpus already contains PPTX, DOCX, or XLSX files and LibreOffice is missing or detected but unusable:
- Very specific: line 51
Run docmason status --json when you need to confirm the resulting workspace stage.
- Distinctive: line 53
If the current agent ecosystem is a compatibility target such as Claude Code rather than the native Codex path, decide here whether …
- Distinctive: line 60
If the platform or Python version is unsupported, stop and surface that blocker directly.
- Very specific: line 61
If prepare can only proceed through a higher-intrusion install step, explain it explicitly rather than hiding it inside automation.
- Distinctive: line 62
If system-level installation requires additional permissions, request them when the current platform supports that flow.
- Very specific: line 81
When uv is missing, prepare should provision the repo-local bootstrap helper venv under .docmason/toolchain/bootstrap/venv and install uv …
- Very specific: line 84
After preparation, prefer ./.venv/bin/python -m docmason ...
- Very specific: line 86
Not every Codex-first first-answer path requires sync-adapters before work can proceed.
- Distinctive: line 87
Avoid shell-profile mutation unless it is clearly required and explicitly explained to the user.
- Very specific: line 88
Do not silently upgrade the host from Codex Default permissions to Full access.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 it already says the current workspace root is ready and
- 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

