From casemgr-channel
Set up the CaseMgr channel — save the API token and verify it works. Use when the user pastes a CaseMgr token, asks to configure casemgr-channel, asks "how do I set this up," or wants to check channel status.
How this skill is triggered — by the user, by Claude, or both
Slash command
/casemgr-channel:configureThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Writes a CaseMgr API token to `~/.claude/channels/casemgr/.env` so the channel server can authenticate when polling for AI work items.
Writes a CaseMgr API token to ~/.claude/channels/casemgr/.env so the channel server can authenticate when polling for AI work items.
Arguments passed: $ARGUMENTS
Read the env file and tell the user where they stand:
~/.claude/channels/casemgr/.env for CASEMGR_TOKEN. Show set/not-set; if set, show the first 8 chars masked (e.g. abc12345...).CASEMGR_URL (default if unset: https://casemgr.systems).~/.claude/channels/casemgr-channel.log exists, show the last line so the user knows whether the channel is connected.End with a concrete next step:
/casemgr-channel:configure <token>"claude --channels plugin:casemgr-channel@<marketplace> to activate the channel."The user passed a token. Validate, then save:
Validate the token by hitting an authenticated CaseMgr endpoint. The
channel server itself uses /api/ai/events (SSE), but for a one-shot
validation curl /api/extension/cases is friendlier — it returns JSON
with a 200 when the token is good and 401 when it isn't.
curl -sS -o /dev/null -w "%{http_code}\n" \
-H "Authorization: Bearer <token>" \
https://casemgr.systems/api/extension/cases
Expected: 200. 401 → tell the user the token doesn't work and stop.
Anything else (e.g. 5xx, network error) → warn the user but proceed
to save the token anyway, since the endpoint may be temporarily
degraded while the token itself is fine.
Make sure the directory exists:
mkdir -p ~/.claude/channels/casemgr
Write the env file (overwrites cleanly):
CASEMGR_TOKEN=<token>
Path: ~/.claude/channels/casemgr/.env
Confirm to the user:
~/.claude/channels/casemgr/.env."claude --channels plugin:casemgr-channel@<marketplace> to start receiving AI work items."For users running CaseMgr on a custom host (e.g. https://casemgr.example.com):
<url>/api/extension/cases instead of https://casemgr.systems/api/extension/cases.CASEMGR_TOKEN=<token> and CASEMGR_URL=<url> to the env file.~/.claude/. Same trust boundary as a .netrc or ~/.aws/credentials.CASEMGR_TOKEN, CASEMGR_URL, and POLL_INTERVAL_MS from this file at startup. If the user wants a custom poll interval, they can edit the file by hand or use the shell environment (which takes precedence).~/.config/casemgr/token from the wa CLI), tell them about it but don't read it automatically — they should make an explicit copy here, since this token will be used by Claude on their behalf.npx claudepluginhub mstang/casemgr-channel --plugin casemgr-channelGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.