/declaude:setupfrom declaude
Finish declaude setup after installing the plugin. Use when the plain-English renditions do not appear, when the plugin key or opt-in is unset, or when the user asks to set up, configure or verify declaude.
Ships in declaude. 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.
The plugin already registers the Claude Code hook. It ships hooks/hooks.json, which
Claude Code loads on install. An unset hook_enabled option means on, so a fresh
install rewrites replies after its API key is configured. The manifest does not declare
a default because Claude Code may export declared defaults to plugin processes. The
api_key option stays optional because the MCP tools sign in on their own.
One case still stays inert. A user who exports DECLAUDE_TOKEN and never sets
hook_enabled keeps the plugin hook off. That user may still run a version 1.0 manual
hook, and two hooks would translate and bill every reply twice.
Work through the steps below in order. Report the result of each one.
Claude Code merges hooks from several settings files. Search all of them:
for f in "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"/settings.json \
"${CLAUDE_CONFIG_DIR:-$HOME/.claude}"/settings.local.json \
.claude/settings.json .claude/settings.local.json; do
[ -f "$f" ] && grep -l declaude_hook "$f"
done
Open each file the search names. Look for a MessageDisplay or Stop entry that runs
declaude_hook.py. Remove that entry.
The plugin now registers the hook. A manual entry on top of it translates every reply twice and bills the user twice. Do not enable the plugin hook until every manual entry is removed.
echo "${DECLAUDE_TOKEN:+set}"
If the answer is set, do not edit or replace it. The plugin can keep using
DECLAUDE_TOKEN during migration. If the answer is empty, the user may still have a key in
secure plugin storage; check that in step 3.
Only after every manual entry is removed, run:
/plugin configure declaude@tenken
Set the options in the configuration dialog:
api_key: if a key is already stored, do not edit or replace it. Otherwise get a dk_
key at /signin and enter it in this masked
field. Do not paste it into the chat. Existing DECLAUDE_TOKEN users may leave this
empty, because the hook falls back to that environment variable.hook_enabled: type true or false in this field. An unset value means on. Type
false to stop automatic rewrites. Type true if the user exports DECLAUDE_TOKEN and
wants the plugin hook on. The hook exits silently when it has no key, so a missing key
produces no error message.Claude Code stores api_key in secure storage and exports it only to the plugin process as
CLAUDE_PLUGIN_OPTION_API_KEY. It stores the Boolean opt-in in user settings. Project files
cannot supply either value.
If the plugin is using legacy DECLAUDE_TOKEN, verify that key:
curl -s -w '\nHTTP %{http_code}\n' https://speak-english.tenken.co/v1/usage \
-H "Authorization: Bearer $DECLAUDE_TOKEN"
HTTP 200 with plan and usage counts means the key works. HTTP 401 means the key is
wrong. HTTP 503 means the GPU is warming up, so retry shortly.
This proves the key, not the hook. Skip the command when the key is in plugin configuration; secure plugin values are deliberately unavailable to the shell.
The hook itself is proven only in a session. Ask the user to start a new Claude Code
session and send any prompt. A reply longer than 40 characters shows a
🧼 declaude plain English: block under it.
/plugin configure declaude@tenken and confirm hook_enabled is true and api_key
is set. If the plugin relies on legacy DECLAUDE_TOKEN, start Claude Code from a terminal
that prints set for echo "${DECLAUDE_TOKEN:+set}".claude --debug to see the hook's exit code and output.python3. See
hook/README.md.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub tenkenco/declaude --plugin declaude