twg-space-creation
Use with root twg. Turn a source into an approved information architecture
and Confluence mix, then create and verify it. twg-confluence owns content
semantics and write safety; live help owns mutation grammar.
CLI launcher fallback
Run twg <command>. On shell command not found, use $HOME/.local/bin/twg
(macOS/Linux) / $env:LOCALAPPDATA\Programs\twg\bin\twg.exe (PowerShell), then
tell user to add that directory to PATH. Do not treat auth or command errors as
PATH failures.
Guiding principle
Build a navigable space, not an object quota. Favor useful hubs, ask only
material questions, and show cost before substantial work.
Workflow
- Resolve. Infer target, source, purpose, audiences, and workflows. Existing
spaces are same-site only; reject mismatches before source reads or writes.
- Configure. Load
references/proposal-flow.md. Ask one compact batch only
for missing identity/access, scale/richness, truth-boundary, or plan/build choices.
- Gather evidence. For a repository, load
references/repo-discovery.md;
for an existing space, inspect its tree, instructions, and a bounded body sample.
- Design. Load
references/blueprints.md and references/page-archetypes.md.
Present the tree, node jobs, companions, type counts, body modes/sources,
instructions, exclusions, and a representative vertical slice.
- Approve. A precise request that already authorizes the displayed scope
may proceed. Otherwise require create/refine/cancel confirmation. Always
confirm a large, ambiguous, private, or synthetic build. Approval bounds the
build; it does not authorize archive, delete, overwrite, or public links.
- Create in stages. Load
references/twg-confluence-space.md. Ledger the
build; set/read instructions when supported; verify one branch and one of
every selected type. Expand only families matching the approved semantics.
- Verify and hand off. Reconcile hierarchy, bodies, every structured/visual
artifact, and supported instructions. Report URLs, counts, gaps, omitted
instructions, and truncated verification.
Composition rules
- Use folders only for navigation, pages/live docs for narrative and
decisions, databases for recurring structured work, whiteboards for
spatial understanding. Keep time-based publishing outside space creation.
- Give each database or whiteboard an owning page; add a type only for a clear job.
- Scaffolds may use prompts, layouts, tables, and templates, but must not invent
owners, decisions, dates, metrics, customer evidence, or system behavior.
- Adapt source material for its audience; choose a canonical link, synthesis,
faithful import, or attachment rather than dumping a repository.
- Load
twg confluence content body-formats just in time for every selected
authoring format. This skill never restates raw HTML, CSV, SVG, or ADF rules.
Stop conditions
Stop before writes for unresolved sites/sources, cross-site adaptation, material
scope ambiguity, or proposal-only requests. Missing instructions support does
not stop creation. Stop expansion on slice mismatch; never replace an unresolved
parent with the space root.
References
references/proposal-flow.md — intake, space contract, approval, instructions.
Load every run.
references/blueprints.md — workflow-first starting shapes and scale choices.
references/page-archetypes.md — rich composition by page purpose.
references/repo-discovery.md — repository evidence without repo-shaped IA.
references/twg-confluence-space.md — stable creation and verification flow.
Body-format syntax belongs exclusively to live body-formats guidance.
1---2name: twg-space-creation3description: Create, design, bootstrap, or clone a whole Confluence space for any domain from a brief, existing space, repository evidence, or another source. Use for space creation or structure adaptation, not individual edits.4---56# twg-space-creation78Use with root `twg`. Turn a source into an approved information architecture9and Confluence mix, then create and verify it. `twg-confluence` owns content10semantics and write safety; live help owns mutation grammar.1112## CLI launcher fallback1314Run `twg <command>`. On shell `command not found`, use `$HOME/.local/bin/twg`15(macOS/Linux) / `$env:LOCALAPPDATA\Programs\twg\bin\twg.exe` (PowerShell), then16tell user to add that directory to PATH. Do not treat auth or command errors as17PATH failures.1819## Guiding principle2021Build a navigable space, not an object quota. Favor useful hubs, ask only22material questions, and show cost before substantial work.2324## Workflow25261. **Resolve.** Infer target, source, purpose, audiences, and workflows. Existing27 spaces are same-site only; reject mismatches before source reads or writes.282. **Configure.** Load `references/proposal-flow.md`. Ask one compact batch only29 for missing identity/access, scale/richness, truth-boundary, or plan/build choices.303. **Gather evidence.** For a repository, load `references/repo-discovery.md`;31 for an existing space, inspect its tree, instructions, and a bounded body sample.324. **Design.** Load `references/blueprints.md` and `references/page-archetypes.md`.33 Present the tree, node jobs, companions, type counts, body modes/sources,34 instructions, exclusions, and a representative vertical slice.355. **Approve.** A precise request that already authorizes the displayed scope36 may proceed. Otherwise require create/refine/cancel confirmation. Always37 confirm a large, ambiguous, private, or synthetic build. Approval bounds the38 build; it does not authorize archive, delete, overwrite, or public links.396. **Create in stages.** Load `references/twg-confluence-space.md`. Ledger the40 build; set/read instructions when supported; verify one branch and one of41 every selected type. Expand only families matching the approved semantics.427. **Verify and hand off.** Reconcile hierarchy, bodies, every structured/visual43 artifact, and supported instructions. Report URLs, counts, gaps, omitted44 instructions, and truncated verification.4546## Composition rules4748- Use **folders** only for navigation, **pages/live docs** for narrative and49 decisions, **databases** for recurring structured work, **whiteboards** for50 spatial understanding. Keep time-based publishing outside space creation.51- Give each database or whiteboard an owning page; add a type only for a clear job.52- Scaffolds may use prompts, layouts, tables, and templates, but must not invent53 owners, decisions, dates, metrics, customer evidence, or system behavior.54- Adapt source material for its audience; choose a canonical link, synthesis,55 faithful import, or attachment rather than dumping a repository.56- Load `twg confluence content body-formats` just in time for every selected57 authoring format. This skill never restates raw HTML, CSV, SVG, or ADF rules.5859## Stop conditions6061Stop before writes for unresolved sites/sources, cross-site adaptation, material62scope ambiguity, or proposal-only requests. Missing instructions support does63not stop creation. Stop expansion on slice mismatch; never replace an unresolved64parent with the space root.6566## References6768- `references/proposal-flow.md` — intake, space contract, approval, instructions.69 **Load every run.**70- `references/blueprints.md` — workflow-first starting shapes and scale choices.71- `references/page-archetypes.md` — rich composition by page purpose.72- `references/repo-discovery.md` — repository evidence without repo-shaped IA.73- `references/twg-confluence-space.md` — stable creation and verification flow.7475Body-format syntax belongs exclusively to live `body-formats` guidance.