research-and-incorporate

Research external topics, create comprehensive analysis, determine project applicability, and incorporate learnings into Serena and Forgetful memory systems. Transforms knowledge into searchable, actionable project context.

model: claude-opus-4-5

$ Installer

git clone https://github.com/rjmurillo/ai-agents /tmp/ai-agents && cp -r /tmp/ai-agents/.claude/skills/research-and-incorporate ~/.claude/skills/ai-agents

// tip: Run this command in your terminal to install the skill


name: research-and-incorporate version: 1.0.0 description: Research external topics, create comprehensive analysis, determine project applicability, and incorporate learnings into Serena and Forgetful memory systems. Transforms knowledge into searchable, actionable project context. license: MIT model: claude-opus-4-5 metadata: timelessness: 8/10 source: Chesterton's Fence research workflow (Session 203)

Research and Incorporate

Transform external knowledge into actionable, searchable project context through structured research, analysis, and memory integration.

Quick Start

/research-and-incorporate

Topic: Chesterton's Fence
Context: Decision-making principle for understanding existing systems before changing them
URLs: https://fs.blog/chestertons-fence/, https://en.wikipedia.org/wiki/G._K._Chesterton
InputOutputDuration
Topic + Context + URLsAnalysis doc + Serena memory + 5-10 Forgetful memories20-40 min

Triggers

  • /research-and-incorporate - Main invocation
  • "research and incorporate {topic}" - Natural language
  • "study {topic} and add to memory" - Alternative phrasing
  • "deep dive on {topic}" - Research focus
  • "learn about {topic} for the project" - Project integration focus

Parameters

ParameterRequiredDescription
TOPICYesSubject to research (e.g., "Chesterton's Fence")
CONTEXTYesWhy this matters to the project
URLSNoComma-separated source URLs

Workflow Overview

┌─────────────────────────────────────────────────────────────────┐
│ Phase 1: RESEARCH (BLOCKING)                                    │
│ • Check existing knowledge (Serena + Forgetful)                 │
│ • Fetch URLs with quote extraction                              │
│ • Web search for additional context                             │
│ • Synthesize: principles, frameworks, examples, failure modes   │
├─────────────────────────────────────────────────────────────────┤
│ Phase 2: ANALYSIS DOCUMENT (BLOCKING)                           │
│ • Write 3000-5000 word analysis to .agents/analysis/            │
│ • Include: concepts, frameworks, applications, failure modes    │
│ • Verify: 3+ examples, 3+ failure modes, 2+ relationships       │
├─────────────────────────────────────────────────────────────────┤
│ Phase 3: APPLICABILITY (BLOCKING)                               │
│ • Map integration points: agents, protocols, memory, skills     │
│ • Propose applications with effort estimates                    │
│ • Prioritize: High/Medium/Low based on project goals            │
├─────────────────────────────────────────────────────────────────┤
│ Phase 4: MEMORY INTEGRATION (BLOCKING)                          │
│ • Create Serena project memory with cross-references            │
│ • Create 5-10 atomic Forgetful memories (importance 7-10)       │
│ • Link memories to related concepts (auto + manual)             │
├─────────────────────────────────────────────────────────────────┤
│ Phase 5: ACTION ITEMS                                           │
│ • Create GitHub issue if implementation work identified         │
│ • Document in session log                                       │
└─────────────────────────────────────────────────────────────────┘

Quality Gates (BLOCKING)

GateRequirementPhase
Research depthCore principles + frameworks + 3 examples1
Analysis length3000-5000 words minimum2
Concrete examples3+ with context and outcomes2
Failure modes3+ anti-patterns with corrections2
Relationships2+ connections to existing concepts2
Memory atomicityEach memory <2000 chars, ONE concept4
Memory count5-10 Forgetful memories created4

Verification Checklist

After completion, verify:

  • Analysis document exists at .agents/analysis/{topic-slug}.md
  • Analysis is 3000-5000 words with concrete examples
  • Applicability section documents integration opportunities
  • Serena memory created with cross-references
  • 5-10 Forgetful memories created (importance 7-10)
  • Memories linked to related concepts
  • Each memory is atomic (<2000 chars, one concept)
  • Action items documented (issue or next steps)

Anti-Patterns

AvoidWhyInstead
Superficial researchSurface definitions miss actionable insightsDig into frameworks, examples, failure modes
Missing applicabilityResearch without integration is wastedEvery insight must show HOW it applies
Non-atomic memories>2000 chars or multiple concepts pollutes graphONE concept per memory
Disconnected knowledgeOrphaned artifacts aren't discoverableLink memories to related concepts
Template over-complianceForcing irrelevant sections wastes tokensOrganize for the topic, not the template
Skipping verificationQuality gates exist for a reasonVerify each phase before proceeding

Related Skills

SkillRelationship
using-forgetful-memoryMemory creation best practices
encode-repo-serenaSimilar but for codebase analysis
exploring-knowledge-graphNavigate created knowledge
memorySearch and retrieve incorporated knowledge

References

DocumentContent
workflow.mdDetailed phase workflows with templates
memory-templates.mdForgetful memory structure templates

Extension Points

  1. Additional research sources: Add MCP tools for specialized domains
  2. Custom analysis templates: Topic-specific document structures
  3. Automated validation: Scripts to verify memory atomicity
  4. Integration hooks: Connect to ADR review for architecture topics