3.0 KiB
3.0 KiB
Tools & Skills
What actions agents can take, and how skills provide procedural guidance.
Tool Groups
| Group | Purpose | Examples |
|---|---|---|
| Read | Find, inspect, and ground graph context | queryNodes, retrieveQueryContext, getNodesById |
| Write | Create or update graph structure | createNode, updateNode, createEdge |
| Extraction | Ingest external content into the graph | websiteExtract, youtubeExtract, paperExtract |
| Utility | Deep inspection or external support | sqliteQuery, webSearch, think |
| Skills | Procedural guidance | listSkills, readSkill, writeSkill, deleteSkill |
Live Tool Surface
Read
getContextqueryNodesretrieveQueryContextgetNodesByIdqueryEdgesearchContentEmbeddingssqliteQuerywebSearchthink
Write
createNodeupdateNodedeleteNodecreateEdgeupdateEdge
Skills
listSkillsreadSkillwriteSkilldeleteSkill
Extraction
websiteExtractyoutubeExtractpaperExtract
Important Behavior Rules
- Search before creating.
- Use
queryNodesfirst when the user is clearly looking for a specific existing node. - Use
retrieveQueryContextwhen the current turn would benefit from broader graph grounding. createEdgeandupdateEdgeare confirmation-gated.- node creation quality should come from
title,description,source,metadata, and explicit edges, not taxonomy.
Metadata note for createNode / updateNode:
- prefer canonical keys:
type,state,captured_method,captured_by,source_metadata updateNode.metadatamerges into the existing object rather than replacing the whole blob
Skills System
Skills are markdown instruction documents shared by internal and external agents.
Seeded defaults:
onboardingcreate-skillrefine
Storage:
- live skills:
~/Library/Application Support/RA-H/skills/ - bundled defaults:
src/config/skills/
Memory-File Reinforcement
Optional memory files like AGENTS.md or CLAUDE.md can reinforce the graph contract, but they should stay short and should not contradict the MCP docs or tool descriptions.
Keep the reinforcement focused on:
queryNodesfor direct node lookupretrieveQueryContextfor broader graph grounding- search before create
- clear
descriptionquality - preserving user wording in
sourcewhen capturing user-authored ideas
API Surfaces
| Route | Method | Purpose |
|---|---|---|
/api/skills |
GET/POST | List skills or write a skill |
/api/skills/[name] |
GET/DELETE | Read or delete a specific skill |
Key Files
| File | Purpose |
|---|---|
src/tools/infrastructure/registry.ts |
Live tool registry |
src/services/skills/skillService.ts |
App skill service |
apps/mcp-server-standalone/services/skillService.js |
Standalone MCP skill service |
src/config/skills/*.md |
Bundled default skills |
apps/mcp-server-standalone/skills/*.md |
MCP bundled default skills |