Skip to content

Commit 4bfec8a

Browse files
phernandezclaude
andcommitted
feat: Add research skill and /research command
New capability to research topics and save structured reports: /research command: - /research <topic> [folder] - Investigates using web search, codebase search, and existing notes - Produces structured report with findings and analysis - Saves to research/ folder by default research skill (model-invoked): - Triggers on "research", "investigate", "look into", "explore" - Gathers information from multiple sources - Synthesizes findings into actionable reports - Links to sources and related notes Report structure: - Summary and research question - Key findings with evidence - Analysis and recommendations - Open questions and sources - Observations and relations for knowledge graph 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 9c3d2eb commit 4bfec8a

4 files changed

Lines changed: 396 additions & 2 deletions

File tree

claude-code-plugin/PLUGIN.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,22 @@ Actions:
121121
- `relations` - Suggest connections
122122
- `tags` - Review tag consistency
123123

124+
### `/research <topic> [folder]`
125+
126+
Research a topic and save a structured report to Basic Memory.
127+
128+
```
129+
/research MCP protocol
130+
/research "database migrations"
131+
/research "auth options" decisions
132+
```
133+
134+
Produces a report with:
135+
- Summary and key findings
136+
- Analysis and recommendations
137+
- Sources and related notes
138+
- Saved to `research/` folder by default
139+
124140
---
125141

126142
## Skills
@@ -210,6 +226,24 @@ Help organize, link, and maintain the knowledge graph.
210226

211227
**Best for:** Periodic knowledge base maintenance and improving discoverability.
212228

229+
### research
230+
231+
Research topics thoroughly and produce structured reports saved to Basic Memory.
232+
233+
**Triggers when:**
234+
- User asks to research or investigate something
235+
- User wants to understand a concept or technology
236+
- User needs context before making a decision
237+
- Phrases like "research", "look into", "explore", "investigate"
238+
239+
**What it produces:**
240+
- Structured report with summary, findings, and analysis
241+
- Recommendations when applicable
242+
- Links to sources and related notes
243+
- Saved to `research/` folder
244+
245+
**Best for:** Building knowledge base through investigation and documentation.
246+
213247
---
214248

215249
## Hooks
@@ -253,14 +287,16 @@ claude-code-plugin/
253287
│ ├── continue.md # /continue command
254288
│ ├── context.md # /context command
255289
│ ├── recent.md # /recent command
256-
│ └── organize.md # /organize command
290+
│ ├── organize.md # /organize command
291+
│ └── research.md # /research command
257292
├── skills/
258293
│ ├── knowledge-capture/
259294
│ ├── continue-conversation/
260295
│ ├── spec-driven-development/
261296
│ ├── edit-note/
262297
│ ├── edit-note-local/
263-
│ └── knowledge-organize/
298+
│ ├── knowledge-organize/
299+
│ └── research/
264300
├── hooks/
265301
│ └── hooks.json # Hook definitions
266302
├── README.md # Quick start guide

claude-code-plugin/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pipx install basic-memory
4242
| `/context <memory://url>` | Build context from a specific note |
4343
| `/recent [timeframe]` | Show recent activity |
4444
| `/organize [action]` | Maintain your knowledge graph |
45+
| `/research <topic>` | Research a topic and save a report |
4546

4647
### Examples
4748

@@ -57,6 +58,9 @@ pipx install basic-memory
5758

5859
# Find orphan notes and suggest links
5960
/organize orphans
61+
62+
# Research a topic and save findings
63+
/research "MCP protocol"
6064
```
6165

6266
## Skills
@@ -71,6 +75,7 @@ Skills are model-invoked - Claude uses them automatically when the context fits.
7175
| `edit-note` | Edits notes via MCP tools (cloud-compatible) |
7276
| `edit-note-local` | Edits notes as files (local installations) |
7377
| `knowledge-organize` | Helps organize and link notes |
78+
| `research` | Researches topics and produces saved reports |
7479

7580
## Hooks
7681

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
---
2+
description: Research a topic and save a structured report to Basic Memory
3+
argument-hint: <topic> [folder]
4+
allowed-tools: mcp__basic-memory__write_note, mcp__basic-memory__search_notes, mcp__basic-memory__read_note, mcp__basic-memory__build_context, WebSearch, WebFetch, Grep, Glob, Read
5+
---
6+
7+
# Research
8+
9+
Research a topic thoroughly and produce a structured report saved to Basic Memory.
10+
11+
## Arguments
12+
13+
- `$1` - Topic to research (required)
14+
- `$2` - Folder to save report (optional, default: "research")
15+
16+
## Your Task
17+
18+
Conduct thorough research on: **$ARGUMENTS**
19+
20+
### 1. Check Existing Knowledge
21+
22+
First, see what we already know:
23+
```python
24+
mcp__basic-memory__search_notes(query="$1", project="main")
25+
```
26+
27+
Read any relevant existing notes to avoid duplicating research.
28+
29+
### 2. Gather Information
30+
31+
Depending on the topic, use appropriate tools:
32+
33+
**For codebase topics:**
34+
- Search code with Grep/Glob
35+
- Read relevant files
36+
- Check tests for examples
37+
38+
**For external topics:**
39+
- Use WebSearch for current information
40+
- Fetch documentation with WebFetch
41+
- Look for official sources
42+
43+
**For Basic Memory context:**
44+
- Build context from related notes
45+
- Check for prior decisions or research
46+
47+
### 3. Analyze Findings
48+
49+
Synthesize what you learned:
50+
- Identify key concepts
51+
- Note patterns and trade-offs
52+
- Form recommendations if applicable
53+
- Flag uncertainties
54+
55+
### 4. Produce Report
56+
57+
Create a structured report with this format:
58+
59+
```markdown
60+
---
61+
title: "Research: [Topic]"
62+
type: research
63+
tags:
64+
- research
65+
- [relevant-tags]
66+
---
67+
68+
# Research: [Topic]
69+
70+
## Summary
71+
72+
[2-3 sentence executive summary]
73+
74+
## Research Question
75+
76+
[What we investigated and why]
77+
78+
## Key Findings
79+
80+
### [Finding 1]
81+
[Details and evidence]
82+
83+
### [Finding 2]
84+
[Details and evidence]
85+
86+
### [Finding 3]
87+
[Details and evidence]
88+
89+
## Analysis
90+
91+
[Synthesis, patterns, trade-offs, recommendations]
92+
93+
## Open Questions
94+
95+
- [Areas needing more investigation]
96+
97+
## Sources
98+
99+
- [Links to sources]
100+
- [[Related Notes]] from Basic Memory
101+
102+
## Observations
103+
104+
- [finding] Key insight #research
105+
- [recommendation] Suggested approach based on research
106+
107+
## Relations
108+
109+
- researches [[Topic]]
110+
- relates-to [[Related Concepts]]
111+
```
112+
113+
### 5. Save Report
114+
115+
```python
116+
mcp__basic-memory__write_note(
117+
title="Research: $1",
118+
content="[report content]",
119+
folder="$2" or "research",
120+
tags=["research", ...],
121+
project="main"
122+
)
123+
```
124+
125+
### 6. Present Summary
126+
127+
After saving, present:
128+
- Key findings summary
129+
- Main recommendation (if applicable)
130+
- Where the report was saved
131+
- Offer to dive deeper into any aspect
132+
133+
## Examples
134+
135+
```
136+
/research MCP protocol
137+
/research "database migration patterns"
138+
/research "authentication options" decisions
139+
/research "React vs Vue" architecture
140+
```

0 commit comments

Comments
 (0)