1
---
2
name: workshop-create
3
description: 'Create a new workshop or use an existing directory as one. Handles two paths: (A) use an existing local directory the operator points at, or (B) create a new private GitHub repo in the signed-in account. Never creates a repo inside another repo.'
4
---
5
6
# Create a Workshop
7
8
Set up a new workshop — the root directory where desks live.
9
10
## When to use
11
12
- The operator says "create a workshop" or "start a new workshop"
13
- The operator wants to organize work under a shared root
14
- The operator has an existing directory they want to use as a workshop
15
16
## Two paths
17
18
### Path A: Use an existing directory
19
20
The operator already has a folder they want to use. Maybe it's a repo
21
they cloned, maybe it's a local project folder.
22
23
1. **Confirm the path exists.** If not, ask the operator for a valid path.
24
2. **Detect existing workshop markers.** Look for `desks/`, `classroom/`,
25
or `*-desks/` folders, a `workshop.md`, `CAIRN.md`, or `hands-up.md`.
26
Finding any of these tells you this is an existing workshop — but this
27
is detection only, not a stopping point. Continue to the next step and
28
add whatever is missing; never overwrite what is already there.
29
3. **Scaffold the workshop structure** (only what's missing):
30
```
31
<path>/
32
desks/ # where desks live
33
bench/ # shared workspace
34
CAIRN.md # operating disposition
35
README.md # workshop map
36
```
37
4. **Do NOT run `git init`.** The directory may already be a git repo, or
38
the operator may not want one yet. Leave git state alone.
39
5. **Do NOT create a GitHub repo.** This path is local-only.
40
41
### Path B: Create a new private GitHub repo
42
43
The operator wants a fresh workshop backed by a GitHub repo.
44
45
1. **Get the workshop name.** Short, no spaces, kebab-case preferred.
46
2. **Pick and validate a clone parent.** `gh repo create --clone` clones
47
into the **current working directory**, so choose an explicit parent
48
directory first (ask the operator, or use their configured workshops
49
directory) and confirm it is **not** already inside a git repo:
50
```bash
51
git -C <parent-dir> rev-parse --is-inside-work-tree
52
```
53
If that prints `true`, pick a different parent — otherwise the new
54
repo nests inside the existing one. Create the parent if needed.
55
3. **Create and clone the repo from that parent:**
56
```bash
57
cd <parent-dir>
58
gh repo create <owner>/<name> --private --clone
59
```
60
Use the operator's signed-in GitHub account as `<owner>`.
61
4. **Scaffold the workshop structure** inside the cloned repo. Git does
62
not track empty directories, so add a placeholder in each otherwise
63
empty folder or the scaffold will not survive the next clone:
64
```
65
<name>/
66
desks/.gitkeep
67
bench/.gitkeep
68
CAIRN.md
69
README.md
70
```
71
5. **Commit and push** the scaffold, including the `.gitkeep` placeholders.
72
73
### Critical: Never nest repos
74
75
**Never run `git init` inside a directory that is already inside a git
76
repository.** Before initializing, check:
77
78
```bash
79
git -C <parent-dir> rev-parse --is-inside-work-tree
80
```
81
82
If that returns `true`, the parent is already a git repo. Do NOT create
83
another repo inside it. Either:
84
- Use Path A (just scaffold, no git)
85
- Or clone to a different location that isn't inside a repo
86
87
## CAIRN.md content
88
89
The operating disposition every desk reads:
90
91
```markdown
92
# cairn
93
94
the trail markers that say: someone was here, and they were honest.
95
96
## how a desk stands
97
98
- **stop is a valid finish.** don't force a result when the evidence
99
says stop. "this doesn't work" is a finding, not a failure.
100
- **"done" means it holds.** if you'd bet your desk on it, ship it.
101
if not, say what's uncertain and why.
102
- **hold scope.** touch only what the task needs. if you find something
103
outside scope, note it and move on — don't chase it.
104
- **never go silent, never bluff.** partial + honest > complete + wrong.
105
if you're stuck, say so. if you're unsure, say that too.
106
- **equal standing.** you can say "that's the wrong question." you can
107
disagree with another desk. you answer to evidence, not hierarchy.
108
109
## the bench
110
111
the shared workspace. leave your work where others can find it.
112
label it. if it supersedes earlier work, say so.
113
114
## hands-up
115
116
when two desks disagree and can't settle it against external facts,
117
that's a hands-up. it goes to the operator. this is the system
118
working, not failing.
119
```
120
121
## After creation
122
123
Tell the operator:
124
- Where the workshop lives (full path)
125
- That they can now open desks in it with `desk-open` — in `desks/`, or
126
in a top-level `<group>-desks/` folder if they want to group desks
127
- That Cairn will show signals once desks start emitting them
128
129
## Principles
130
131
- A workshop is a place, not a product. Keep it simple.
132
- The operator decides where things go. Don't assume.
133
- If an existing directory already has work in it, preserve everything.
134
Only add what's missing.
135