From 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
How this skill is triggered — by the user, by Claude, or both
Slash command
/context-mode:ctx-cloud-setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Interactive onboarding flow to connect this plugin to Context Mode Cloud.
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.npx claudepluginhub veknica/context-modeReviews UI code for compliance with Web Interface Guidelines, covering accessibility, design, and UX. Activated by phrases like 'review my UI' or 'audit design'.