Skip to content

Commit 01af315

Browse files
committed
Replace ct or ./dist/ct with deno task ct in docs
1 parent 8f868c0 commit 01af315

File tree

10 files changed

+80
-146
lines changed

10 files changed

+80
-146
lines changed

.claude/agents/pattern-dev-guide.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ color: orange
77
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.
88

99
**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
1111
- You MUST search for and read `COMPONENTS.md` and `RECIPES.md` files in the user's pattern workspace before working on patterns
1212
- Read `HANDLERS.md` when encountering event handler errors
1313
- 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:
6868

6969
**Command Quick Reference**:
7070
You should be fluent in all ct commands:
71-
- `ct charm getsrc/setsrc` - Get/update pattern source
72-
- `ct dev [pattern] --no-run` - Test syntax
73-
- `ct charm new` - Create new charm
74-
- `ct charm link` - Connect charms
75-
- `ct charm inspect` - View charm details
76-
- `ct charm get/set` - Manipulate cell data
77-
- `ct charm ls` - List all charms
71+
- `deno task ct charm getsrc/setsrc` - Get/update pattern source
72+
- `deno task ct dev [pattern] --no-run` - Test syntax
73+
- `deno task ct charm new` - Create new charm
74+
- `deno task ct charm link` - Connect charms
75+
- `deno task ct charm inspect` - View charm details
76+
- `deno task ct charm get/set` - Manipulate cell data
77+
- `deno task ct charm ls` - List all charms
7878

7979
**Error Handling Approach**:
8080
- Parse and explain syntax errors clearly

.claude/agents/research-specialist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ color: pink
77

88
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.
99

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.
1111

1212
**Your Research Methodology**:
1313

.claude/commands/link-github.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ This command finds GitHub URLs in page.tsx charms and creates linked GitHub repo
2424
### Step 1: Find Page Charms
2525
```bash
2626
# List all charms
27-
./dist/ct charm ls --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME]
27+
deno task ct charm ls --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME]
2828

2929
# For each charm, check if it's a page by trying to get its outline
30-
./dist/ct charm get --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] --charm [CHARM_ID] outline
30+
deno task ct charm get --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] --charm [CHARM_ID] outline
3131

3232
# If this returns data with a 'root' structure, it's a page charm
3333
```
@@ -37,10 +37,10 @@ For each page charm:
3737
```bash
3838
# IMPORTANT: For efficiency, especially when re-scanning, use jq to avoid pulling massive attachment data
3939
# Get only nodes with empty attachments (unlinked URLs)
40-
./dist/ct charm get --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] --charm [CHARM_ID] outline | jq '.root.children[].children[] | select(.attachments == []) | {body: .body, path: path(.)}'
40+
deno task ct charm get --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] --charm [CHARM_ID] outline | jq '.root.children[].children[] | select(.attachments == []) | {body: .body, path: path(.)}'
4141

4242
# Or for a specific path to avoid large JSON responses:
43-
./dist/ct charm get --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] --charm [CHARM_ID] outline | jq '.root.children[0].children[3]'
43+
deno task ct charm get --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] --charm [CHARM_ID] outline | jq '.root.children[0].children[3]'
4444

4545
# Look for patterns like: https://github.com/[owner]/[repo]
4646
```
@@ -49,17 +49,17 @@ For each page charm:
4949
For each unique GitHub URL found:
5050
```bash
5151
# Create new github-repo-fetcher charm
52-
./dist/ct charm new --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] [RECIPES_PATH]/github-repo-fetcher.tsx
52+
deno task ct charm new --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] [RECIPES_PATH]/github-repo-fetcher.tsx
5353

5454
# Set the repoUrl input (note the double quotes in the echo)
55-
echo '"https://github.com/owner/repo"' | ./dist/ct charm set --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] --charm [NEW_CHARM_ID] repoUrl --input
55+
echo '"https://github.com/owner/repo"' | deno task ct charm set --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] --charm [NEW_CHARM_ID] repoUrl --input
5656
```
5757

5858
### Step 4: Link to Page Attachments
5959
For each node containing a GitHub URL:
6060
```bash
6161
# Link the github fetcher charm to the node's attachments array at index 0
62-
./dist/ct charm link --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] [GITHUB_FETCHER_CHARM_ID] [PAGE_CHARM_ID]/[PATH_TO_NODE]/attachments/0
62+
deno task ct charm link --identity [IDENTITY_FILE] --api-url [API_URL] --space [SPACE_NAME] [GITHUB_FETCHER_CHARM_ID] [PAGE_CHARM_ID]/[PATH_TO_NODE]/attachments/0
6363

6464
# Example path: charm1/outline/root/children/1/attachments/0
6565
```
@@ -101,24 +101,24 @@ When searching:
101101

102102
```bash
103103
# Step 1: List charms
104-
./dist/ct charm ls --identity ~/dev/.ct.key --api-url https://toolshed.saga-castor.ts.net --space 2025-08-06-ben-dev
104+
deno task ct charm ls --identity ~/dev/.ct.key --api-url https://toolshed.saga-castor.ts.net --space 2025-08-06-ben-dev
105105
# Returns: charm1, charm2, charm3
106106

107107
# Step 2: Check each for outline
108-
./dist/ct charm get --identity ~/dev/.ct.key --api-url https://toolshed.saga-castor.ts.net --space 2025-08-06-ben-dev --charm charm1 outline
108+
deno task ct charm get --identity ~/dev/.ct.key --api-url https://toolshed.saga-castor.ts.net --space 2025-08-06-ben-dev --charm charm1 outline
109109
# Returns outline data - this is a page charm!
110110

111111
# Step 3: Found https://github.com/vercel/next.js in outline/root/children/0/body
112112

113113
# Step 4: Create fetcher
114-
./dist/ct charm new --identity ~/dev/.ct.key --api-url https://toolshed.saga-castor.ts.net --space 2025-08-06-ben-dev ~/code/recipes/recipes/github-repo-fetcher.tsx
114+
deno task ct charm new --identity ~/dev/.ct.key --api-url https://toolshed.saga-castor.ts.net --space 2025-08-06-ben-dev ~/code/recipes/recipes/github-repo-fetcher.tsx
115115
# Returns: newcharm123
116116

117117
# Step 5: Configure fetcher
118-
echo '"https://github.com/vercel/next.js"' | ./dist/ct charm set --identity ~/dev/.ct.key --api-url https://toolshed.saga-castor.ts.net --space 2025-08-06-ben-dev --charm newcharm123 repoUrl --input
118+
echo '"https://github.com/vercel/next.js"' | deno task ct charm set --identity ~/dev/.ct.key --api-url https://toolshed.saga-castor.ts.net --space 2025-08-06-ben-dev --charm newcharm123 repoUrl --input
119119

120120
# Step 6: Link to page
121-
./dist/ct charm link --identity ~/dev/.ct.key --api-url https://toolshed.saga-castor.ts.net --space 2025-08-06-ben-dev newcharm123 charm1/outline/root/children/0/attachments/0
121+
deno task ct charm link --identity ~/dev/.ct.key --api-url https://toolshed.saga-castor.ts.net --space 2025-08-06-ben-dev newcharm123 charm1/outline/root/children/0/attachments/0
122122
```
123123

124124
## Summary Output

.claude/commands/todos.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Direct todo management using CommonTools:
1919
- Space: Use date-based naming like `2025-07-15-claude-dev` (format: YYYY-MM-DD-claude-dev)
2020

2121
**Quick CT Commands:**
22-
- READ: `./dist/ct charm get [params] --charm [id] [path]`
23-
- SET: `echo '[value]' | ./dist/ct charm set [params] --charm [id] [path]`
24-
- CALL: `echo '[json]' | ./dist/ct charm call [params] --charm [id] [handler]`
22+
- READ: `deno task ct charm get [params] --charm [id] [path]`
23+
- SET: `echo '[value]' | deno task ct charm set [params] --charm [id] [path]`
24+
- CALL: `echo '[json]' | deno task ct charm call [params] --charm [id] [handler]`
2525

2626
**Todo Operations:**
2727
- Add item: `echo '{"title": "text"}' | ct charm call [params] --charm [id] addItem`

.claude/page-manager-helper.sh

Lines changed: 0 additions & 48 deletions
This file was deleted.

.claude/skills/ct/SKILL.md

Lines changed: 25 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -27,42 +27,33 @@ Use this skill for:
2727

2828
```bash
2929
# Top-level commands
30-
./dist/ct --help
30+
deno task ct --help
3131

3232
# Charm subcommands
33-
./dist/ct charm --help
33+
deno task ct charm --help
3434

3535
# 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
3939
```
4040

4141
**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.
4242

43-
## Running CT: Binary vs Source
43+
## Running CT
4444

45-
The `ct` command can be run in two ways:
45+
The `ct` command is run via:
4646

47-
**1. As a compiled binary (recommended for production):**
4847
```bash
49-
./dist/ct [command]
48+
deno task ct [command]
5049
```
5150

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:
5652

57-
**2. From source (for active development):**
5853
```bash
59-
deno task ct [command]
54+
alias ct="deno task ct"
6055
```
6156

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-
6657
## Prerequisites and Setup
6758

6859
### Identity Management
@@ -74,19 +65,19 @@ ls -la claude.key
7465

7566
If missing, create one:
7667
```bash
77-
./dist/ct id new > claude.key
68+
deno task ct id new > claude.key
7869
```
7970

8071
To get the DID (Decentralized Identifier):
8172
```bash
82-
./dist/ct id did claude.key
73+
deno task ct id did claude.key
8374
```
8475

8576
### Recipe Development Setup
8677

8778
When working in a recipes repository, initialize TypeScript support:
8879
```bash
89-
./dist/ct init
80+
deno task ct init
9081
```
9182

9283
This creates/updates `tsconfig.json` with proper type definitions.
@@ -110,15 +101,15 @@ Use `ct dev` for rapid iteration during recipe development:
110101

111102
```bash
112103
# Type check and execute
113-
./dist/ct dev ./recipe.tsx
104+
deno task ct dev ./recipe.tsx
114105

115106
# Type check only (no execution)
116-
./dist/ct dev ./recipe.tsx --no-run
107+
deno task ct dev ./recipe.tsx --no-run
117108
```
118109

119110
**Discover more options:**
120111
```bash
121-
./dist/ct dev --help
112+
deno task ct dev --help
122113
```
123114

124115
### 2. Deploying and Managing Charms
@@ -131,7 +122,7 @@ Use `ct dev` for rapid iteration during recipe development:
131122

132123
**Discover commands:**
133124
```bash
134-
./dist/ct charm --help
125+
deno task ct charm --help
135126
```
136127

137128
### 3. Reading and Writing Charm Data
@@ -163,13 +154,13 @@ Linking creates reactive data flow between charms:
163154

164155
**Example pattern:**
165156
```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 \
167158
sourceCharmID/emails targetCharmID/emailData
168159
```
169160

170161
**Discover linking options:**
171162
```bash
172-
./dist/ct charm link --help
163+
deno task ct charm link --help
173164
```
174165

175166
### 5. Visualizing Space Architecture
@@ -178,10 +169,10 @@ Use `ct charm map` to understand charm relationships:
178169

179170
```bash
180171
# 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
182173

183174
# 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
185176
```
186177

187178
## Common Patterns and Gotchas
@@ -202,13 +193,13 @@ All values passed to `set` and `call` must be valid JSON:
202193

203194
```bash
204195
# Strings (note the nested quotes)
205-
echo '"hello world"' | ./dist/ct charm set ... title
196+
echo '"hello world"' | deno task ct charm set ... title
206197

207198
# Numbers
208-
echo '42' | ./dist/ct charm set ... count
199+
echo '42' | deno task ct charm set ... count
209200

210201
# Objects
211-
echo '{"name": "John"}' | ./dist/ct charm set ... user
202+
echo '{"name": "John"}' | deno task ct charm set ... user
212203
```
213204

214205
### Error Handling
@@ -220,7 +211,7 @@ echo '{"name": "John"}' | ./dist/ct charm set ... user
220211
- JSON parse error → Check JSON formatting (proper quotes, no trailing commas)
221212

222213
**Debugging steps:**
223-
1. For recipe errors: Run `./dist/ct dev [recipe] --no-run` to check syntax
214+
1. For recipe errors: Run `deno task ct dev [recipe] --no-run` to check syntax
224215
2. For connection issues: Verify Tailnet connection for `*.ts.net` URLs
225216
3. For data issues: Use `ct charm inspect` to examine charm state
226217
4. For linking issues: Use `ct charm map` to visualize connections

.claude/skills/ct/references/well-known-ids.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CommonTools provides well-known IDs for accessing system-level data within a spa
1212

1313
**Example:**
1414
```bash
15-
./dist/ct charm link --identity claude.key --api-url https://toolshed.saga-castor.ts.net/ --space [space] baedreiahv63wxwgaem4hzjkizl4qncfgvca7pj5cvdon7cukumfon3ioye [target-charm]/allCharms
15+
deno task ct charm link --identity claude.key --api-url https://toolshed.saga-castor.ts.net/ --space [space] baedreiahv63wxwgaem4hzjkizl4qncfgvca7pj5cvdon7cukumfon3ioye [target-charm]/allCharms
1616
```
1717

1818
**Use Cases:**

0 commit comments

Comments
 (0)