feat: sync shared skills contract and graph-first discipline

This commit is contained in:
“BeeRad”
2026-04-17 20:58:21 +10:00
parent 5f4d1f61c2
commit 7e663abfb0
64 changed files with 1924 additions and 1902 deletions
+15 -11
View File
@@ -60,27 +60,31 @@ Metadata note for `createNode` / `updateNode`:
Skills are markdown instruction documents shared by internal and external agents.
Seeded defaults:
- `db-operations`
- `create-skill`
- `audit`
- `traverse`
- `onboarding`
- `persona`
- `calibration`
- `connect`
- `create-skill`
- `refine`
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:
- `queryNodes` for direct node lookup
- `retrieveQueryContext` for broader graph grounding
- search before create
- clear `description` quality
- preserving user wording in `source` when capturing user-authored ideas
## API Surfaces
| Route | Method | Purpose |
|-------|--------|---------|
| `/api/skills` | GET | List skills |
| `/api/skills/[name]` | GET/PUT/DELETE | Skill CRUD |
| `/api/guides` | GET | Legacy compatibility alias to skills |
| `/api/guides/[name]` | GET/PUT/DELETE | Legacy compatibility alias to skills |
| `/api/skills` | GET/POST | List skills or write a skill |
| `/api/skills/[name]` | GET/DELETE | Read or delete a specific skill |
## Key Files