From insights-share
Upload a Claude Code insight, trap or lesson learned to the team shared knowledge base. Trigger when user says "I hit a trap", "I discovered this works better", "share my finding", "记录这个坑", "分享心得", "我发现", "踩坑了"
How this skill is triggered — by the user, by Claude, or both
Slash command
/insights-share:upload-insightThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Capture and share a Claude Code insight with teammates.
Capture and share a Claude Code insight with teammates.
When user says something like:
Extract the insight from user's message:
name: Short descriptive titlewhen_to_use: Situation/context when this appliesdescription: What to do or avoiduploader: Current user (from whoami)uploader_ip: Host IP (from hostname -I)Generate content hash:
CONTENT_HASH=$(echo "${NAME}${WHEN}${DESC}" | sha256sum | awk '{print $1}')
Generate raw hash for original content:
RAW_HASH=$(echo "${ORIGINAL_MESSAGE}" | sha256sum | awk '{print $1}')
Create entry JSON:
{
"name": "Insight name",
"uploader": "username",
"uploader_ip": "192.168.1.x",
"when_to_use": "Python TDD with mocks",
"description": "Don't import production code in tests",
"content_hash": "abc123...",
"raw_hashes": ["raw1", "raw2"],
"created_at": "2026-04-27T10:00:00Z"
}
Save raw content to ~/.claude-team/insights/raw/${RAW_HASH}.json
Update index:
bash ~/.claude-team/scripts/generate-index.sh '${ENTRY_JSON}'
Push to teammates:
bash ~/.claude-team/scripts/rsync-push.sh
~/.claude-team/insights/index.json~/.claude-team/insights/raw/${RAW_HASH}.json~/.claude-team/config/teammates.jsonCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub liush2yuxjtu/insights-share-lan