By danielwii
Personal knowledge notebook for Claude Code: capture and recall gotchas, rules, architecture, topology, habits, best practices, and lessons learned with strict 6-category typing and rule-strengthening on repeated violations.
A Claude Code plugin that acts as a signal-to-noise optimizer for AI context — captures only the engineering knowledge that's worth a permanent slot in every future session's context. Tool gotchas, project structure, personal preferences, recurring mistakes, workflow recipes — encoded compactly (one-line index, lazy bodies), gated against training-redundancy and against low-signal noise.
Core purpose (also the evaluation criterion for future changes):
Does this raise the ratio of "behavior-changing knowledge" to "context tokens consumed"?
Every mechanism in this plugin — strict 6-category typing, disambiguation gate, severity ladder, strengthening protocol, lazy body loading, ## Related cross-references, action=overview, action=audit — exists to push signal density up or to keep noise from accumulating. New features should be evaluated against the same test. If a change can't articulate a signal-density answer, it probably shouldn't ship.
Engineering knowledge accumulates one mistake at a time. Most tools either:
gotcha ate recipe).iris-gotcha takes a different approach:
disambiguation field on every entry.@-imported into your CLAUDE.md, so Claude always sees what you've learned without needing to actively search.The AI already handles plenty without help: standard security ("don't log secrets"), generic best practices (input validation, error handling, REST conventions), well-known tool usage. iris-gotcha doesn't capture those — they pollute the index without changing AI behavior.
What goes in: tool gotchas the AI hasn't seen, your project structure, personal preferences that diverge from defaults, workflow recipes specific to your environment, quality lessons from your specific bugs, recurring mistakes the AI keeps making.
Single test before capturing: would the AI, in a fresh session with no notebook, refuse / handle this correctly anyway? If yes, don't capture.
All entries use English category identifiers (type: field). Chinese names are kept as cultural glosses.
type | Chinese | Shape | What it captures |
|---|---|---|---|
lesson | 教训 | Behavioral, incident-derived | A specific past mistake plus the corrective rule (the classic "gotcha") |
rule | 规则 | Behavioral, MUST | Project-specific MUST, or user override of AI default behavior |
best-practice | 最佳实践 | Behavioral, SHOULD | Class-level recommendation the AI wouldn't follow by default |
habit | 习惯 | Behavioral, soft preference | Personal/team preference |
architecture | 架构 | Reference, design intent | How a system is designed and why |
topology | 拓扑 | Reference, location | Where services / files / endpoints live |
Full strict definitions with examples and disambiguation tests: see skills/iris-gotcha/definitions.md.
/plugin marketplace add danielwii/iris-gotcha
/plugin install iris-gotcha
That's it. The first capture in any directory automatically:
~/.claude/iris-gotcha/ or <pwd>/.claude/iris-gotcha/ (depending on scope) with the 6 category subdirectories and an index.md.@-import line into the relevant CLAUDE.md (user-scope → ~/.claude/CLAUDE.md; project-scope → <pwd>/CLAUDE.md or, if absent, creates <pwd>/.claude/CLAUDE.md).No manual configuration steps required.
Claude invokes this skill autonomously when any of these happen:
lessonNo hooks. No background agents. All triggers are detected by the Claude session itself, guided by the skill's description.
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.
Ein unified channel — Telegram messaging bridge with logging and diagnostics.
npx claudepluginhub danielwii/iris-gotcha --plugin iris-gotchaUltra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Memory compression system for Claude Code - persist context across sessions
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.