xiaohongshu
xiaohongshu
build-insights-logger
Automatically log meaningful insights, discoveries, and decisions during coding sessions. Capture non-trivial learnings about edge cases, design decisions, patterns, and implementation details. Activate when building complex code where institutional knowledge should be preserved. Log to .claude/i...
Full skill instructions
Maintain a running log of meaningful insights, discoveries, and decisions made during coding sessions. Capture non-trivial learnings about requirements, edge cases, design considerations, implementation details, and coding patterns that emerge during development.
Target outcome: Preserve institutional knowledge and track the evolution of the codebase by logging insights to session files in .claude/insights/, then selectively transferring valuable learnings to CLAUDE.md.
Activate automatically when:
Do not activate for:
.claude/
└── insights/
├── session-YYYY-MM-DD-HHMMSS.md (current session)
└── archive/
└── session-YYYY-MM-DD-HHMMSS.md (archived sessions)
session-YYYY-MM-DD-HHMMSS.mdYYYY-MM-DD-HHMMSS format.claude/insights/ for active sessions.claude/insights/archive/ for completed sessionsEach session file contains insights in markdown format with this structure:
# Insights Session: YYYY-MM-DD HH:MM:SS
### [Category]: [Brief Title]
Files: `path/to/file.ts`, `another/file.ts`
Tags: #tag1 #tag2 #tag3
YYYY-MM-DD HH:MM:SS
[Clear, concise description of the insight]
[Optional: Brief code snippet if essential - max 3-5 lines]
---
### [Next insight...]
Automatic logging triggers (Claude decides these are insight-worthy):
Explicit user requests:
Step 1: Identify the insight
Step 2: Create or open session file
.claude/insights/session-YYYY-MM-DD-HHMMSS.mdStep 3: Format the insight Use this template:
### [Category]: [Brief Title]
Files: `path/to/file.ts`, `another/file.ts`
Tags: #tag1 #tag2 #tag3
YYYY-MM-DD HH:MM:SS
[Clear, concise description of the insight]
[Optional: Brief code snippet if essential - max 3-5 lines]
Category examples:
Tag guidelines:
#error-handling, #api-design#performance, #security, #edge-cases, #patterns, #testing, #api, #architectureDescription guidelines:
Code snippet rules (optional):
Step 4: Append to session file
--- dividerStep 5: Notify user
📝 Logged insight about [topic]📝 Logged insight about null handling in API responsesStep 1: Consolidation
.claude/insights/session-*.mdStep 2: Present insights Present in this format:
Based on this session, here are the key insights captured:
**[Category Group]**
1/ Insight: [Brief title]
Files: [file paths]
Explanation: [Why this matters and what was learned]
2/ Insight: [Brief title]
Files: [file paths]
Explanation: [Why this matters and what was learned]
**[Another Category Group]**
3/ Insight: [Brief title]
Files: [file paths]
Explanation: [Why this matters and what was learned]
Which insights would you like to add to CLAUDE.md? Reply with numbers (e.g., "1, 3" or "all").
Presentation guidelines:
Step 3: User selection
Step 4: Add to CLAUDE.md
Step 5: Archive session file
.claude/insights/session-*.md to .claude/insights/archive/session-*.mdIf user asks to review and no insights were logged:
.claude/insights/ to .claude/insights/archive/session-2025-11-17-143022.md).claude/insights/archive/ if it doesn't existUser can request deletion instead of archiving:
session-2025-11-17-143022-a.md.claude/insights/archive/ directory when first archiving### Edge Case: Null handling in API responses
Files: `api/users.ts`, `types/user.ts`
Tags: #api #edge-cases #error-handling
2025-11-17 14:30:22
Discovered that third-party user API can return null for email field even though documentation states it's required. Added validation layer with fallback to '[email protected]' for system processes to prevent downstream crashes.
// Good approach
const email = userData.email ?? '[email protected]';
// Avoid - will crash downstream
const email = userData.email; // assumes always present
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience