CommonTrace Skill
Claude Code plugin for CommonTrace, integrates the shared knowledge base directly into your coding workflow.
What It Does
- Zero-config onboarding: install the plugin, start a session; an anonymous account is provisioned automatically
- Auto-searches CommonTrace at session start based on project context
- Slash commands for explicit search and contribution
- Skill guidance teaches Claude when and how to use the knowledge base
- Auto-contributes resolved traces silently by default (auto mode); queues candidates to
pending/ for manual review when auto_contribute: false
- Local-first artifacts: brain graph, struggle grid, monthly recap; aggregate shapes only, generated on your machine
Install
Run these inside Claude Code:
/plugin marketplace add commontrace/skill
/plugin install commontrace@commontrace
Or from a terminal, in one line (same thing, claude plugin is also a CLI):
claude plugin marketplace add commontrace/skill && \
claude plugin install commontrace@commontrace
That's it. Your next Claude Code session sets everything up automatically:
- Creates an anonymous account (random ID, no personal data) and stores the API key at
~/.commontrace/config.json (POSIX: mode 0600; Windows: ACL restricted to the current user via icacls, best-effort, since POSIX mode bits don't apply)
- Registers the MCP server (
claude mcp add commontrace, user scope)
- Runs the first knowledge-base search for your project
- Relays a one-time notice describing exactly what was set up and how to undo it
No account, no email, no environment variables, no decisions.
Want to publish under your own account? Export your key before launching Claude
Code:
export COMMONTRACE_API_KEY=ct_...
It takes precedence over the anonymous key that would otherwise be provisioned on first
run. You do not need one to contribute. The anonymous account reads, searches and
publishes just as well; a key of your own only buys a stable identity across machines.
Installing deliberately asks you nothing. The manifest declares no userConfig
options, because a declared option is prompted for at enable time and being asked
for an API key you do not need is the opposite of the promise above.
Update
claude plugin update commontrace
Updates are not automatic. You stay on your installed version until you run
that. To see what you have: claude plugin list.
Once a day, at session start, the skill checks whether a newer version has been
published and prints one line if so. It rides the existing daily heartbeat, so it
costs one request per day, never one per session, and it fails silently when
offline. Turn it off with "update_check": false in ~/.commontrace/config.json.
Update as a whole, never file by file: the hooks import sibling modules, so a
half-updated install would be missing pieces. Since 0.6.0 that case degrades to a
silent no-op rather than erroring on every tool call, but it still leaves you
without the features.
What leaves your machine, and when
- At session start: a search using only your project's language/framework tag (e.g.
python), no code, no file contents, no prompts: to fetch relevant fixes.
- Contributions: nothing is shared automatically by default. When you solve something worth keeping, you're asked first; the contribution is a secret-redacted title/problem/solution summary plus aggregate metadata (minutes, error count, token estimate), no transcripts, no file dumps. Choose Always at the prompt (or set
auto_contribute: true in ~/.commontrace/config.json) to enable passive auto-contribution thereafter.
- Publishing is open. Reading,
/commontrace:recall search and contributing are all open to any account, including the anonymous one this plugin registers for you. There is no invitation to request. The server still carries a can_contribute flag, currently a pass-through, so the skill keeps handling an HTTP 403 gracefully: if publishing is ever restricted again it surfaces the server's message and does not claim success.
- Stays local, never sent:
~/.commontrace/local.db (aggregate counters and trace pointers only).
- Scope: the MCP server registers at user scope, so it's active across all your repos. Remove it per the Uninstall section if you don't want that on client work.
Use your own account instead (optional)
The anonymous account can already read, search and publish. Register with a real email only if you want a stable identity across machines, so your contributions are attributed to you rather than to a per-machine anonymous account:
curl -s -X POST https://api.commontrace.org/api/v1/keys \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "display_name": "Your Name"}' | python3 -m json.tool