You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/agents/pattern-dev-guide.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ color: orange
7
7
You are an expert CommonTools pattern development guide specializing in helping users create, modify, and network patterns using the ct utility. You have deep knowledge of the CommonTools framework, pattern practices, and the ct command-line interface.
8
8
9
9
**Critical Prerequisites**:
10
-
- Run `./dist/ct --help` and `./dist/ct charm --help` to discover ct binary commands
10
+
- Run `deno task ct --help` and `deno task ct charm --help` to discover ct binary commands
11
11
- You MUST search for and read `COMPONENTS.md` and `RECIPES.md` files in the user's pattern workspace before working on patterns
12
12
- Read `HANDLERS.md` when encountering event handler errors
13
13
- The user should have already run the space setup script or have an existing space
@@ -68,13 +68,13 @@ When working with UI handlers, ensure users understand:
Copy file name to clipboardExpand all lines: .claude/agents/research-specialist.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ color: pink
7
7
8
8
You are a research specialist with expertise in systematic codebase investigation and technical analysis. Your role is to conduct thorough, methodical research on any topic or question using all available tools and resources.
9
9
10
-
**CRITICAL FIRST STEP**: Run `./dist/ct --help` and `./dist/ct charm --help` to understand available ct commands.
10
+
**CRITICAL FIRST STEP**: Run `deno task ct --help` and `deno task ct charm --help` to understand available ct commands.
Copy file name to clipboardExpand all lines: .claude/skills/ct/SKILL.md
+25-34Lines changed: 25 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,42 +27,33 @@ Use this skill for:
27
27
28
28
```bash
29
29
# Top-level commands
30
-
./dist/ct --help
30
+
deno task ct --help
31
31
32
32
# Charm subcommands
33
-
./dist/ct charm --help
33
+
deno task ct charm --help
34
34
35
35
# Specific command details
36
-
./dist/ct charm get --help
37
-
./dist/ct charm link --help
38
-
./dist/ct dev --help
36
+
deno task ct charm get --help
37
+
deno task ct charm link --help
38
+
deno task ct dev --help
39
39
```
40
40
41
41
**Why this matters:** The tool's `--help` output is the authoritative source of truth. As new features are added or flags change, `--help` stays current automatically.
42
42
43
-
## Running CT: Binary vs Source
43
+
## Running CT
44
44
45
-
The `ct` command can be run in two ways:
45
+
The `ct` command is run via:
46
46
47
-
**1. As a compiled binary (recommended for production):**
48
47
```bash
49
-
./dist/ct [command]
48
+
deno task ct [command]
50
49
```
51
50
52
-
Verify the binary exists with `ls -la ./dist/ct`. If missing, build it:
53
-
```bash
54
-
deno task build-binaries --cli-only
55
-
```
51
+
This is the recommended approach for all users. If you use `ct` frequently, you can create a shell alias:
56
52
57
-
**2. From source (for active development):**
58
53
```bash
59
-
deno task ct [command]
54
+
alias ct="deno task ct"
60
55
```
61
56
62
-
Use this when actively developing the ct tool itself.
63
-
64
-
**Default approach:** Try `./dist/ct` first; if the binary doesn't exist, use `deno task ct`.
65
-
66
57
## Prerequisites and Setup
67
58
68
59
### Identity Management
@@ -74,19 +65,19 @@ ls -la claude.key
74
65
75
66
If missing, create one:
76
67
```bash
77
-
./dist/ct id new > claude.key
68
+
deno task ct id new > claude.key
78
69
```
79
70
80
71
To get the DID (Decentralized Identifier):
81
72
```bash
82
-
./dist/ct id did claude.key
73
+
deno task ct id did claude.key
83
74
```
84
75
85
76
### Recipe Development Setup
86
77
87
78
When working in a recipes repository, initialize TypeScript support:
88
79
```bash
89
-
./dist/ct init
80
+
deno task ct init
90
81
```
91
82
92
83
This creates/updates `tsconfig.json` with proper type definitions.
@@ -110,15 +101,15 @@ Use `ct dev` for rapid iteration during recipe development:
110
101
111
102
```bash
112
103
# Type check and execute
113
-
./dist/ct dev ./recipe.tsx
104
+
deno task ct dev ./recipe.tsx
114
105
115
106
# Type check only (no execution)
116
-
./dist/ct dev ./recipe.tsx --no-run
107
+
deno task ct dev ./recipe.tsx --no-run
117
108
```
118
109
119
110
**Discover more options:**
120
111
```bash
121
-
./dist/ct dev --help
112
+
deno task ct dev --help
122
113
```
123
114
124
115
### 2. Deploying and Managing Charms
@@ -131,7 +122,7 @@ Use `ct dev` for rapid iteration during recipe development:
131
122
132
123
**Discover commands:**
133
124
```bash
134
-
./dist/ct charm --help
125
+
deno task ct charm --help
135
126
```
136
127
137
128
### 3. Reading and Writing Charm Data
@@ -163,13 +154,13 @@ Linking creates reactive data flow between charms:
163
154
164
155
**Example pattern:**
165
156
```bash
166
-
./dist/ct charm link -i claude.key -a https://toolshed.saga-castor.ts.net/ -s space \
157
+
deno task ct charm link -i claude.key -a https://toolshed.saga-castor.ts.net/ -s space \
167
158
sourceCharmID/emails targetCharmID/emailData
168
159
```
169
160
170
161
**Discover linking options:**
171
162
```bash
172
-
./dist/ct charm link --help
163
+
deno task ct charm link --help
173
164
```
174
165
175
166
### 5. Visualizing Space Architecture
@@ -178,10 +169,10 @@ Use `ct charm map` to understand charm relationships:
178
169
179
170
```bash
180
171
# ASCII map
181
-
./dist/ct charm map -i claude.key -a https://toolshed.saga-castor.ts.net/ -s space
172
+
deno task ct charm map -i claude.key -a https://toolshed.saga-castor.ts.net/ -s space
182
173
183
174
# Graphviz DOT format (for visualization tools)
184
-
./dist/ct charm map -i claude.key -a https://toolshed.saga-castor.ts.net/ -s space --format dot
175
+
deno task ct charm map -i claude.key -a https://toolshed.saga-castor.ts.net/ -s space --format dot
185
176
```
186
177
187
178
## Common Patterns and Gotchas
@@ -202,13 +193,13 @@ All values passed to `set` and `call` must be valid JSON:
202
193
203
194
```bash
204
195
# Strings (note the nested quotes)
205
-
echo'"hello world"'|./dist/ct charm set ... title
196
+
echo'"hello world"'|deno task ct charm set ... title
206
197
207
198
# Numbers
208
-
echo'42'|./dist/ct charm set ... count
199
+
echo'42'|deno task ct charm set ... count
209
200
210
201
# Objects
211
-
echo'{"name": "John"}'|./dist/ct charm set ... user
202
+
echo'{"name": "John"}'|deno task ct charm set ... user
212
203
```
213
204
214
205
### Error Handling
@@ -220,7 +211,7 @@ echo '{"name": "John"}' | ./dist/ct charm set ... user
0 commit comments