By liush2yuxjtu
Team-wide insight sharing for Claude Code instances. v0.2 adds the full Approach-B architecture: silent Stop-hook capture into per-session buffers, two-layer PII filter (regex + haiku) with Gate-0 corpus benchmark, GitHub mirror repo storage with per-repo PAT auth, sub-500ms hot-path retrieval with embedding fallback, and /insight-rate + /insight-flush skills.
Use this skill when a Claude instance has just hit, fixed, or learned about a non-obvious trap that another teammate (or another Claude instance) would benefit from knowing. Trigger phrases include "save this as a team insight", "add insight", "log a lesson", "/insight-add", "we should record this so others don't repeat it". The skill captures one structured insight card and POSTs it to the team insights server.
Use this skill when the user wants to force-finalize the in-flight session buffer immediately, instead of waiting for the 30-min idle threshold. Triggered by "/insight-flush", "flush insights", "push my insight buffer now", "publish lessons now", "force-sync the mirror". Reads the local buffer, runs the two-layer PII filter, and pushes any surviving lessons to the mirror repo.
Use this skill when the user has just installed the insights-share plugin and asks any onboarding question — "what next", "where is the README", "how do I use this plugin", "/insight-help", "show me the insights-share quickstart", "what does this plugin do for me". The skill prints a compact onboarding card pointing to the README on disk, the four slash commands, statusline wiring, and the optional self-host stub server.
Use this skill when a Claude instance is bootstrapping a new repository or onboarding a project that is not yet wired into the team insights system. Trigger phrases include "install insights into this repo", "wire insights-share here", "/insight-install", "wire this repo so teammates inherit insights". The skill idempotently appends a force-install block to the project CLAUDE.md (append-only) and verifies hook registration so any future Claude instance entering this repo is guided to install the plugin.
Use this skill when the user (or another Claude instance) wants to rate a previously injected insight as good / bad / irrelevant for the current task. Triggered by "/insight-rate", "rate this insight", "this lesson saved me time", "this lesson was wrong", "thumbs up the insight", or similar phrasings. Writes a single rating record to the per-repo ratings.jsonl. Used at Gate 1 to compute "≥1 cross-engineer relevant retrieval / week" and detect drift in topic-tag inference.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Team insight sharing plugin for Claude Code instances (not the human users). New Claude collaborators automatically inherit the team's accumulated lessons and stop re-discovering known traps.
Audience: this plugin is written for Claude, not for the developer behind it. Skill bodies are imperative instructions Claude follows on the team's behalf.
| Surface | Effect |
|---|---|
| Statusline | Shows total insight count, count relevant to the current session, NEW badge, and server health. A glanceable "team knowledge presence" indicator. |
UserPromptSubmit hook | Forces every prompt to first query the insights server for relevant cards and inject them as system context. New Claude instances cannot miss a relevant prior lesson. |
SessionStart hook | Idempotently appends an install marker block to the project CLAUDE.md so any future collaborator's Claude instance is forced to install this plugin. Append-only — never rewrites. |
| Skills | /insight-add (manual write), /insight-search (manual query), /insight-install (manually trigger CLAUDE.md append), /insight-server (manage self-host server stub). |
v0.1 is built to Approach B of the canonical design — a repo-scoped
precedent router that captures Claude Code session lessons silently,
filters PII through a two-layer pipeline, and shares them via a per-repo
GitHub mirror (<owner>/<repo>-insights).
scripts/inject-insights.sh → _inject_hot_path.py).scripts/capture-async.sh → finalize-buffer.sh)._filter_pii.py, 15 pattern families) +
Layer 2 haiku (filter-haiku.sh, 2s timeout, drop on conf<0.8).sync-mirror.sh, pat-auth.sh).examples/server-stub.py).Full B-feature ↔ file map: see docs/B-scope-impl.md.
Gate-0 PII benchmark: bash tests/gate0/run-gate0.sh --strict
(currently 654 turns / 4 buckets / 54 adversarial / 0 leaks / 0% FP).
Create .claude/insights-share.local.md (gitignored) in your project root:
---
server_url: http://localhost:7777
auth_token: <optional>
statusline_mode: full # or: lite | ultra
nightly_sync: false # server-side cron, manual on client by default
---
Environment variable overrides:
INSIGHTS_SERVER_URLINSIGHTS_AUTH_TOKENINSIGHTS_CACHE_PATH (default ~/.claude/insights/cache.json)Install commands always start with claude plugin .... The repo is a
single-plugin self-marketplace, so adding the marketplace = adding the
plugin source in one step.
# 1. register this repo as a marketplace (one-time)
claude plugin marketplace add liush2yuxjtu/insights-share
# 2. install + enable
claude plugin install insights-share@insights-share
claude plugin enable insights-share@insights-share
# 3. verify
claude plugin list | grep insights-share # status: ✔ enabled
claudefast -p 'list slash commands containing insight'
# → /insight-add /insight-search /insight-install /insight-server
After install, hooks register automatically.
Open any new Claude Code session. The SessionStart hook prints a
one-time welcome banner that includes:
The banner only fires on the first session post-install (gated by
~/.claude/insights/.welcomed). Delete that file to see it again.
Run /insight-help at any time to reprint the onboarding card.
Read the README on disk. The plugin cache copy lives at:
~/.claude/plugins/cache/insights-share/insights-share/<version>/README.md
Or use:
PLUGIN_DIR=$(claude plugin list \
| awk '/insights-share@insights-share/{found=1} found && /Path/{print $NF; exit}')
cat "$PLUGIN_DIR/README.md" | less
Verify install (everything below should be true):
claude plugin list | grep insights-share # status: ✔ enabled
claudefast -p 'list slash commands containing insight'
# → /insight-add /insight-search /insight-install /insight-server /insight-help
First real use:
/insight-search <keyword> before any non-trivial change./insight-add the first time you spend >10 min on a non-obvious bug./insight-install in any teammate-shared repo so their Claude
instances inherit the same insights.The first session inside any project that already has a CLAUDE.md
triggers the append-only force-install marker block.
npx claudepluginhub liush2yuxjtu/insights-share --plugin insights-share局域网 insights-share:topic 中心 Good/Bad 并列卡片的静默回灌 + 管理面板。M5 已交付:插件深度重命名 insights-wiki -> insights-share、plugins/<name>/ 布局、share-* 命令与 agent、[share ...] 徽章。
Team knowledge sharing plugin — silently upload/pull Claude Code insights, traps and lessons learned. LAN teammates share discoveries so others won't repeat the same mistakes.
局域网 insights-share:topic 中心 Good/Bad 并列卡片的静默回灌 + 管理面板。M5 已交付:插件深度重命名 insights-wiki -> insights-share、plugins/<name>/ 布局、share-* 命令与 agent、[share ...] 徽章。M6/M7 交付:latency_cache + early-exit + async hook + SessionStart prefetch + parallel search/adapter(cache-hit p95=1ms)。
Starter skeleton for a new talk-html-powered project. Replace name + description + journey with your own. Generated from LiuShiyuMath/talk-html-plugin v0.4.0.
Harness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use
Efficient skill management system with progressive discovery — 410+ production-ready skills across 33+ domains