xiaohongshu
xiaohongshu
ct
Guide for using the ct (CommonTools) binary to interact with charms,
Full skill instructions
The ct binary is the CLI for CommonTools. Use --help for current commands:
deno task ct --help # Top-level commands
deno task ct charm --help # Charm operations
deno task ct check --help # Type checking
Identity key (required for most operations):
ls -la claude.key # Check for existing
deno task ct id new > claude.key # Create if missing
Environment variables (avoid repeating flags):
export CT_API_URL=http://localhost:8000 # or https://toolshed.saga-castor.ts.net/
export CT_IDENTITY=./claude.key
Local servers: See docs/development/LOCAL_DEV_SERVERS.md
| Operation | Command |
|---|---|
| Type check | deno task ct check pattern.tsx --no-run |
| Deploy new | deno task ct charm new pattern.tsx -i key -a url -s space |
| Update existing | deno task ct charm setsrc pattern.tsx --charm ID -i key -a url -s space |
| Inspect state | deno task ct charm inspect --charm ID ... |
| Get field | deno task ct charm get --charm ID fieldPath ... |
| Set field | echo '{"data":...}' | deno task ct charm set --charm ID path ... |
| Call handler | deno task ct charm call --charm ID handlerName ... |
| Trigger recompute | deno task ct charm step --charm ID ... |
| List charms | deno task ct charm ls -i key -a url -s space |
| Visualize | deno task ct charm map ... |
Critical pattern: After initial deployment, use setsrc to iterate:
# First time only
deno task ct charm new pattern.tsx ...
# Output: Created charm bafyreia... <- Save this ID!
# ALL subsequent iterations
deno task ct charm setsrc pattern.tsx --charm bafyreia... ...
Why: new creates duplicate charms. setsrc updates in-place.
All values to set and call must be valid JSON:
# Strings need nested quotes
echo '"hello world"' | deno task ct charm set ... title
# Numbers are bare
echo '42' | deno task ct charm set ... count
# Objects
echo '{"name": "John"}' | deno task ct charm set ... user
charm set does NOT trigger recompute. Run charm step after:
echo '[...]' | deno task ct charm set --charm ID expenses ...
deno task ct charm step --charm ID ... # Required!
deno task ct charm get --charm ID totalSpent ...
See docs/development/debugging/cli-debugging.md for debugging patterns.
| Issue | Fix |
|---|---|
| Commands hang | Check Tailnet connection for *.ts.net URLs |
| Permission denied | chmod 600 claude.key |
| JSON parse error | Check nested quotes, no trailing commas |
| Local servers not responding | ./scripts/restart-local-dev.sh --force |
packages/patterns/system/default-app.tsx - System charms (allCharms list lives here)docs/common/workflows/handlers-cli-testing.md - Handler testingdocs/development/debugging/cli-debugging.md - CLI debuggingxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience