/context-mode:ctx-cloud-setupfrom context-mode
Connect context-mode to Context Mode Cloud. Guides through API URL, token, and org ID configuration. Saves config to ~/.context-mode/sync.json and tests the connection. Trigger: /context-mode:ctx-cloud-setup
Ships in context-mode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interactive onboarding flow to connect this plugin to Context Mode Cloud.
Check existing config — read ~/.context-mode/sync.json using Bash:
cat ~/.context-mode/sync.json 2>/dev/null || echo "NOT_FOUND"
api_token, inform the user that cloud sync is already configured and show the current api_url and organization_id (never reveal the token — show only the last 4 characters masked as ctx_****abcd).Collect configuration — ask the user for three values, one at a time:
a) API URL
https://api.context-mode.comhttps://api.context-mode.com.b) API Token
ctx_ and be at least 20 characters. If invalid, warn and ask again.c) Organization ID
Save config — write the merged config to ~/.context-mode/sync.json using Bash:
mkdir -p ~/.context-mode
cat > ~/.context-mode/sync.json << 'JSONEOF'
{
"enabled": true,
"api_url": "<API_URL>",
"api_token": "<API_TOKEN>",
"organization_id": "<ORG_ID>",
"batch_size": 50,
"flush_interval_ms": 30000
}
JSONEOF
chmod 600 ~/.context-mode/sync.json
Replace <API_URL>, <API_TOKEN>, and <ORG_ID> with the collected values.
Test the connection — send a health check using Bash:
curl -sf -o /dev/null -w "%{http_code}" \
-H "Authorization: Bearer <API_TOKEN>" \
"<API_URL>/api/health"
200 = successDisplay results as markdown directly in the conversation:
On success:
## context-mode cloud setup
- [x] Config saved to ~/.context-mode/sync.json
- [x] Connection test: PASS (200 OK)
- [x] Organization: <ORG_ID>
Cloud sync is now active. Events will be sent to the dashboard
on your next Claude Code session. Run `/ctx-cloud-status` to
check sync health at any time.
On failure:
## context-mode cloud setup
- [x] Config saved to ~/.context-mode/sync.json
- [ ] Connection test: FAIL (<error details>)
Config was saved but the connection test failed. Check that:
1. Your API URL is reachable
2. Your API token is valid and not expired
3. Your network allows outbound HTTPS
Run `/ctx-cloud-setup` again to reconfigure.
600 (owner read/write only).Authorization header.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/context-modeUse context-mode tools (ctx_execute, ctx_execute_file) instead of Bash/cat when processing
large outputs. Triggers: "analyze logs", "summarize output", "process data",
"parse JSON", "filter results", "extract errors", "check build output",
"analyze dependencies", "process API response", "large file analysis",
"page snapshot", "browser snapshot", "DOM structure", "inspect page",
"accessibility tree", "Playwright snapshot",
"run tests", "test output", "coverage report", "git log", "recent commits",
"diff between branches", "list containers", "pod status", "disk usage",
"fetch docs", "API reference", "index documentation",
"call API", "check response", "query results",
"find TODOs", "count lines", "codebase statistics", "security audit",
"outdated packages", "dependency tree", "cloud resources", "CI/CD output".
Also triggers on ANY MCP tool output that may exceed 20 lines.
Subagent routing is handled automatically via PreToolUse hook.
/ctx-cloud-statusShow current Context Mode Cloud sync status.
Displays connection health, sync config, and event statistics.
Trigger: /context-mode:ctx-cloud-status
/ctx-doctorRun context-mode diagnostics. Checks runtimes, hooks, FTS5,
plugin registration, npm and marketplace versions.
Trigger: /context-mode:ctx-doctor
npx claudepluginhub infodigitalmissionary/context-mode-fork --plugin context-mode