opencode-agent-kit 1.0.17 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -6
- package/bin/commands/init.mjs +29 -2
- package/package.json +2 -1
- package/template/.opencode/.agents.md +55 -0
- package/template/.opencode/agents/flutter-developer.md +1 -1
- package/template/.opencode/agents/nuxt-frontend-developer.md +4 -4
- package/template/.opencode/agents/react-frontend-developer.md +4 -4
- package/template/.opencode/commands/recall.md +19 -0
- package/template/.opencode/commands/remember.md +19 -0
- package/template/.opencode/docs/frontend/nuxt/COMPLETION_REPORT.md +1 -1
- package/template/.opencode/docs/frontend/nuxt/INDEX.md +1 -1
- package/template/.opencode/docs/frontend/nuxt/QUICK_START.md +2 -2
- package/template/.opencode/docs/frontend/nuxt/README.md +8 -8
- package/template/.opencode/docs/frontend/nuxt/SUMMARY.md +1 -1
- package/template/.opencode/docs/frontend/nuxt/TESTING_GUIDE.md +1 -1
- package/template/.opencode/docs/frontend/nuxt/WORKFLOWS.md +1 -1
- package/template/.opencode/docs/frontend/react/CHEATSHEET.md +1 -1
- package/template/.opencode/docs/frontend/react/INDEX.md +9 -9
- package/template/.opencode/docs/frontend/react/QUICK_START.md +1 -1
- package/template/.opencode/docs/frontend/react/README.md +1 -1
- package/template/.opencode/docs/mobile/flutter/README.md +1 -1
- package/template/.opencode/hooks/agentmemory-start.sh +17 -0
- package/template/.opencode/instructions/INSTRUCTIONS.md +49 -0
- package/template/.opencode/plugins/agentmemory-capture.ts +651 -0
- package/template/.opencode/skills/agentmemory/SKILL.md +97 -0
- package/template/.opencode/skills/impeccable/SKILL.md +5 -2
- package/template/opencode.json +32 -12
- package/template/.opencode/config.example.json +0 -309
- package/template/.opencode/config.json +0 -285
- package/template/.opencode/skills/continuous-learning/config.json +0 -18
- package/template/.opencode/skills/continuous-learning-v2/config.json +0 -41
- package/template/.opencode/skills/frontend-design/SKILL.md +0 -89
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Agent Kit — Setup Guide
|
|
6
6
|
|
|
7
|
-
Complete setup guide for the **Agent Kit** — a portable multi-stack AI agent system for OpenCode. Includes 13 specialized agents,
|
|
7
|
+
Complete setup guide for the **Agent Kit** — a portable multi-stack AI agent system for OpenCode. Includes 13 specialized agents, 63 skill playbooks, 39 slash commands, and 8 MCP servers.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npx opencode-agent-kit init # One command. Full team.
|
|
@@ -191,6 +191,10 @@ After installing `.opencode/`, the following slash commands are available:
|
|
|
191
191
|
|
|
192
192
|
# Quality
|
|
193
193
|
/sonarqube-scan [options] # SonarQube quality scan (issues, security, coverage)
|
|
194
|
+
|
|
195
|
+
# Memory
|
|
196
|
+
/recall [query] # Search past observations and lessons
|
|
197
|
+
/remember [text] # Save insight/decision to persistent memory
|
|
194
198
|
```
|
|
195
199
|
|
|
196
200
|
## Using the `.opencode/` Folder
|
|
@@ -330,16 +334,17 @@ Skills are stored in `.opencode/skills/` (local in the repo) — no need to sear
|
|
|
330
334
|
| Agent | Key Skills |
|
|
331
335
|
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
332
336
|
| IT Leader | coding-standards, backend-patterns, frontend-patterns |
|
|
333
|
-
| Frontend Developer (Vue) | coding-standards, frontend-patterns,
|
|
334
|
-
| Frontend Developer (React) | coding-standards, frontend-patterns,
|
|
337
|
+
| Frontend Developer (Vue) | coding-standards, frontend-patterns, impeccable, web-design-guidelines, nuxt-ui, tdd-workflow |
|
|
338
|
+
| Frontend Developer (React) | coding-standards, frontend-patterns, impeccable, web-design-guidelines, vercel-react-best-practices, vercel-composition-patterns, tdd-workflow |
|
|
335
339
|
| Backend Developer | coding-standards, backend-patterns, postgres-patterns, security-review |
|
|
336
|
-
| UI/UX Designer |
|
|
340
|
+
| UI/UX Designer | impeccable, web-design-guidelines, building-components, nuxt-ui |
|
|
337
341
|
| Code Reviewer / QA | coding-standards, security-review, tdd-workflow, web-design-guidelines |
|
|
338
342
|
| Database Specialist | postgres-patterns, backend-patterns |
|
|
339
343
|
| DevOps / Infrastructure | backend-patterns, coding-standards |
|
|
340
344
|
| SEO Specialist | frontend-patterns, web-design-guidelines, nuxt-ui |
|
|
341
345
|
| **Android Developer** | coding-standards, android-jetpack-compose, edge-to-edge, navigation-3, firebase-basics, play-billing, camera1-to-camerax, r8-analyzer, migrate-xml-views-to-jetpack-compose, gpc-setup, gpc-release-flow, gpc-preflight, gpc-vitals-monitoring |
|
|
342
346
|
| **Flutter Developer** | coding-standards, flutter (patterns), 10 Flutter skills, 9 Dart skills, firebase-basics |
|
|
347
|
+
| **All Agents** | agentmemory (persistent cross-session memory, 53 MCP tools) |
|
|
343
348
|
|
|
344
349
|
### Skills Not Required for Core Stack
|
|
345
350
|
|
|
@@ -363,6 +368,7 @@ These can be kept if your team uses multi-stack, but are optional.
|
|
|
363
368
|
- `verification-loop` — Agent verification cycle
|
|
364
369
|
- `nutrient-document-processing` — Document processing API
|
|
365
370
|
- `project-guidelines-example` — Project guidelines example
|
|
371
|
+
- `agentmemory` — Persistent cross-session memory with 53 MCP tools
|
|
366
372
|
|
|
367
373
|
## Skill Locations
|
|
368
374
|
|
|
@@ -388,7 +394,7 @@ If skills are not yet on your machine, copy them from this repo:
|
|
|
388
394
|
mkdir -p ~/.opencode/skills
|
|
389
395
|
cp -R ./.opencode/skills/coding-standards ~/.opencode/skills/
|
|
390
396
|
cp -R ./.opencode/skills/frontend-patterns ~/.opencode/skills/
|
|
391
|
-
cp -R ./.opencode/skills/
|
|
397
|
+
cp -R ./.opencode/skills/impeccable ~/.opencode/skills/
|
|
392
398
|
cp -R ./.opencode/skills/web-design-guidelines ~/.opencode/skills/
|
|
393
399
|
cp -R ./.opencode/skills/nuxt-ui ~/.opencode/skills/
|
|
394
400
|
cp -R ./.opencode/skills/security-review ~/.opencode/skills/
|
|
@@ -431,8 +437,9 @@ From `.opencode/config.json`, agents use the following MCP servers:
|
|
|
431
437
|
| `nuxt-ui` | remote | enabled | Nuxt UI component docs & examples |
|
|
432
438
|
| `playwright` | stdio | enabled | Browser automation & E2E testing |
|
|
433
439
|
| `postman` | remote | enabled | Postman API management (collections, requests, docs) |
|
|
434
|
-
| `figma` |
|
|
440
|
+
| `figma` | remote | disabled | Figma design file access (optional) |
|
|
435
441
|
| `stitch` | remote | disabled | Google Stitch AI design generation (optional) |
|
|
442
|
+
| `agentmemory`| local | enabled | Persistent cross-session memory (53 memory tools) |
|
|
436
443
|
|
|
437
444
|
To enable Figma MCP:
|
|
438
445
|
|
|
@@ -440,6 +447,15 @@ To enable Figma MCP:
|
|
|
440
447
|
export FIGMA_ACCESS_TOKEN="your-token"
|
|
441
448
|
```
|
|
442
449
|
|
|
450
|
+
To enable agentmemory:
|
|
451
|
+
|
|
452
|
+
```bash
|
|
453
|
+
npm install -g @agentmemory/agentmemory
|
|
454
|
+
agentmemory # Start the memory server on :3111
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
Open `http://localhost:3113` for the real-time memory viewer.
|
|
458
|
+
|
|
443
459
|
To enable Google Stitch MCP:
|
|
444
460
|
|
|
445
461
|
```bash
|
package/bin/commands/init.mjs
CHANGED
|
@@ -222,12 +222,35 @@ export async function init(options) {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
+
// 7.6 Install agentmemory globally
|
|
226
|
+
if (!skipInstall) {
|
|
227
|
+
console.log(` 🧠 Installing agentmemory (persistent memory)...`);
|
|
228
|
+
try {
|
|
229
|
+
execSync(`agentmemory --version`, { stdio: "pipe" });
|
|
230
|
+
console.log(` ✓ agentmemory already installed`);
|
|
231
|
+
} catch {
|
|
232
|
+
try {
|
|
233
|
+
execSync(`npm install -g @agentmemory/agentmemory`, {
|
|
234
|
+
stdio: "pipe",
|
|
235
|
+
timeout: 60000,
|
|
236
|
+
});
|
|
237
|
+
console.log(` ✓ agentmemory installed globally`);
|
|
238
|
+
} catch (err) {
|
|
239
|
+
console.error(` ⚠ agentmemory global install failed: ${err.message}`);
|
|
240
|
+
console.error(
|
|
241
|
+
` Run "npm install -g @agentmemory/agentmemory" manually`,
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
225
247
|
// 8. Update .gitignore
|
|
226
248
|
const gitignorePath = join(targetDir, ".gitignore");
|
|
227
249
|
const gitignoreEntries = [
|
|
228
250
|
".opencode/*",
|
|
229
251
|
"opencode.json",
|
|
230
252
|
"opencode.example.json",
|
|
253
|
+
"data/",
|
|
231
254
|
];
|
|
232
255
|
if (!existsSync(gitignorePath)) {
|
|
233
256
|
writeFileSync(gitignorePath, gitignoreEntries.join("\n") + "\n", "utf-8");
|
|
@@ -268,8 +291,12 @@ export async function init(options) {
|
|
|
268
291
|
console.log(` • .opencode/commands/ — 35+ slash commands`);
|
|
269
292
|
console.log(` • .opencode/rules/ — Scoped coding rules`);
|
|
270
293
|
console.log(` • .opencode/contexts/ — Dev/review/research contexts`);
|
|
271
|
-
console.log(` • .opencode/docs
|
|
294
|
+
console.log(` • .opencode/docs/ — Agent documentation`);
|
|
295
|
+
console.log(` • .opencode/plugins/ — agentmemory capture plugin (22 hooks)`);
|
|
296
|
+
console.log(` • .opencode/hooks/ — agentmemory auto-start wrapper`);
|
|
297
|
+
console.log(` • agentmemory (global) — Persistent cross-session memory`);
|
|
272
298
|
console.log(`\n Next steps:`);
|
|
273
299
|
console.log(` cd ${targetDir}`);
|
|
274
|
-
console.log(` opencode
|
|
300
|
+
console.log(` opencode # agentmemory auto-starts on first use`);
|
|
301
|
+
console.log(` # Viewer: http://localhost:3113`);
|
|
275
302
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-agent-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Multi-stack OpenCode agent toolkit — 13 specialized AI agents (Nuxt, React, Node.js, Laravel, CI3, Android, Flutter, DevOps, SEO, SonarQube) with 62 skills, 37 commands, and 7 MCP servers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"devops",
|
|
44
44
|
"seo",
|
|
45
45
|
"sonarqube",
|
|
46
|
+
"agentmemory",
|
|
46
47
|
"coding-agent",
|
|
47
48
|
"mcp",
|
|
48
49
|
"playwright",
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
## Goal
|
|
2
|
+
- Create a SonarQube quality agent that scans code via SonarQube MCP tools, generates TODOs for issues found, and delegates fixes to relevant subagents
|
|
3
|
+
|
|
4
|
+
## Constraints & Preferences
|
|
5
|
+
- Must use SonarQube MCP server tools (issues, quality-gates, security-hotspots, duplications, rules, measures, projects, coverage)
|
|
6
|
+
- Must use `todowrite` tool for task tracking (not `todo`)
|
|
7
|
+
- Must follow existing agent structure with Global Rules, Core Identity, What You DO, Delegation Protocol
|
|
8
|
+
- Must integrate with existing agent ecosystem (it-leader.md orchestrator + 13 specialized subagents)
|
|
9
|
+
- Full Scan mode: Issues + Security Hotspots + Duplications + Coverage + Dependencies + Quality Gate
|
|
10
|
+
- Trigger: Manual via `/sonarqube-scan` command or `@sonarqube` mention
|
|
11
|
+
- Landing page (index.html) and all documentation must reflect 13 agents, 37 commands, 7 MCP servers
|
|
12
|
+
|
|
13
|
+
## Progress
|
|
14
|
+
### Done
|
|
15
|
+
- Fetched SonarQube MCP server documentation and available toolsets
|
|
16
|
+
- Reviewed existing agent configurations (it-leader.md, code-reviewer.md)
|
|
17
|
+
- Created `.opencode/agents/sonarqube-quality.md` (406 lines) — full agent definition with scan modes, delegation matrix, issue lifecycle, output contracts
|
|
18
|
+
- Created `.opencode/commands/sonarqube-scan.md` (65 lines) — slash command with options (--project, --severity, --quick, --rescan)
|
|
19
|
+
- Updated `.opencode/agents/it-leader.md` — added `@sonarqube` to subagents table, capabilities reference, decision tree, verification policy, session subagents list
|
|
20
|
+
- Updated `AGENTS.md` — updated agent count (12→13), added Quality category, SonarQube to subagents list, added SonarQube to MCP servers
|
|
21
|
+
- Updated `index.html` — meta tags, hero badge, subtitle, stats, terminal, orbital nodes, marquee, agent cards, MCP section (all reflect 13 agents, 37 commands, 7 MCP)
|
|
22
|
+
- Updated `README.md` — counts, agent list, custom agents table, commands section
|
|
23
|
+
- Updated `package.json` — description, keywords
|
|
24
|
+
|
|
25
|
+
### In Progress
|
|
26
|
+
- (none)
|
|
27
|
+
|
|
28
|
+
### Blocked
|
|
29
|
+
- (none)
|
|
30
|
+
|
|
31
|
+
## Key Decisions
|
|
32
|
+
- File name: `sonarqube-quality.md` (not `sonarqube-agent.md`) to match naming convention
|
|
33
|
+
- Three operating modes: `quick` (issues only), `full` (all 10 toolsets), `pr` (PR scope)
|
|
34
|
+
- Delegation matrix routes fixes by file extension to 11 domain subagents including `@security-reviewer` for hotspots
|
|
35
|
+
- Issue lifecycle: OPEN → SCANNED → TODO_CREATED → DELEGATED → FIX_APPLIED → RE_SCANNED → VERIFIED/ACCEPTED
|
|
36
|
+
- SonarQube MCP server needs toolsets enabled: `issues,security-hotspots,duplications,coverage,dependency-risks,quality-gates,measures,projects,rules`
|
|
37
|
+
|
|
38
|
+
## Next Steps
|
|
39
|
+
- (all documentation updated — task complete)
|
|
40
|
+
|
|
41
|
+
## Critical Context
|
|
42
|
+
- SonarQube MCP tools: `search_sonar_issues_in_projects`, `search_security_hotspots`, `search_duplicated_files`, `get_duplications`, `search_files_by_coverage`, `get_file_coverage_details`, `search_dependency_risks`, `get_quality_gate_status`, `get_component_measures`, `search_my_sonarqube_projects`, `get_rule`, `get_analysis`, `change_sonar_issue_status`, `change_security_hotspot_review_status`
|
|
43
|
+
- Agent must NOT be a coder — only scan, report, create TODOs, and delegate
|
|
44
|
+
- Delegation targets: `@frontend-nuxt`, `@frontend-react`, `@backend`, `@ci3`, `@laravel`, `@android`, `@flutter`, `@database`, `@devops`, `@security-reviewer`
|
|
45
|
+
- Severity mapping: Blocker/Critical → high priority, Major → medium, Minor/Info → low
|
|
46
|
+
- Existing agents count updated from 12 to 13 across all documentation
|
|
47
|
+
|
|
48
|
+
## Relevant Files
|
|
49
|
+
- `.opencode/agents/sonarqube-quality.md`: New SonarQube quality agent definition (406 lines)
|
|
50
|
+
- `.opencode/commands/sonarqube-scan.md`: New slash command for triggering scans (65 lines)
|
|
51
|
+
- `.opencode/agents/it-leader.md`: Updated orchestrator — added `@sonarqube` to subagents, delegation tree, capabilities
|
|
52
|
+
- `AGENTS.md`: Updated project documentation — agent count, categories, MCP servers
|
|
53
|
+
- `index.html`: Landing page — updated to reflect 13 agents, SonarQube card, 37 commands, 7 MCP servers
|
|
54
|
+
- `README.md`: Setup guide — updated counts, agent list, custom agents table, commands
|
|
55
|
+
- `package.json`: NPM package metadata — updated description and keywords
|
|
@@ -90,7 +90,7 @@ If user does not specify mode, infer automatically from task size and risk.
|
|
|
90
90
|
1. **`coding-standards`** — Universal coding standards and best practices
|
|
91
91
|
2. **`flutter`** — Comprehensive Flutter patterns, architecture, state management, and testing
|
|
92
92
|
3. **`frontend-patterns`** — Mobile UI patterns and component architecture
|
|
93
|
-
4. **`
|
|
93
|
+
4. **`impeccable`** — Impeccable design intelligence: typography, color, layout, motion, critique, and polish
|
|
94
94
|
5. **`web-design-guidelines`** — UI/UX compliance and accessibility
|
|
95
95
|
|
|
96
96
|
### Contextual Skills (Load when needed)
|
|
@@ -103,7 +103,7 @@ Load these skills by default at the beginning of each session:
|
|
|
103
103
|
|
|
104
104
|
1. **`coding-standards`** - Universal coding standards and best practices
|
|
105
105
|
2. **`frontend-patterns`** - Modern Vue/Nuxt patterns and component architecture
|
|
106
|
-
3. **`
|
|
106
|
+
3. **`impeccable`** - Impeccable design intelligence: typography, color, layout, motion, critique, and polish
|
|
107
107
|
4. **`web-design-guidelines`** - UI/UX compliance and accessibility
|
|
108
108
|
|
|
109
109
|
For trivial edits, keep skill-loading implicit and avoid verbose announcements.
|
|
@@ -124,7 +124,7 @@ Load these skills based on the task context:
|
|
|
124
124
|
# Session Start Protocol
|
|
125
125
|
|
|
126
126
|
1. Analyze project structure
|
|
127
|
-
2. Load core skills (coding-standards, frontend-patterns,
|
|
127
|
+
2. Load core skills (coding-standards, frontend-patterns, impeccable)
|
|
128
128
|
3. Connect to MCP servers (Nuxt, Nuxt UI, Playwright)
|
|
129
129
|
4. Identify framework (Nuxt as primary) and load relevant skills
|
|
130
130
|
5. Infer session goals from user request first; ask only when blocked
|
|
@@ -1068,7 +1068,7 @@ export function useMarketData(marketId: Ref<string>) {
|
|
|
1068
1068
|
|
|
1069
1069
|
## Design & Aesthetics Philosophy
|
|
1070
1070
|
|
|
1071
|
-
This project uses **Impeccable** (impeccable.style) design intelligence. Impeccable's shared design laws are automatically applied to every UI you build. The `
|
|
1071
|
+
This project uses **Impeccable** (impeccable.style) design intelligence. Impeccable's shared design laws are automatically applied to every UI you build. The `impeccable` skill is pre-loaded with these principles.
|
|
1072
1072
|
|
|
1073
1073
|
### Design Thinking Process
|
|
1074
1074
|
|
|
@@ -1487,7 +1487,7 @@ Before starting work, check if `opencode-agent-kit` has an update:
|
|
|
1487
1487
|
Quick context check:
|
|
1488
1488
|
|
|
1489
1489
|
- Project: [Detected framework and version]
|
|
1490
|
-
- Loaded skills: coding-standards, frontend-patterns,
|
|
1490
|
+
- Loaded skills: coding-standards, frontend-patterns, impeccable
|
|
1491
1491
|
- Ready to: [build components | optimize performance | implement designs | review code]
|
|
1492
1492
|
|
|
1493
1493
|
What are we working on today?
|
|
@@ -103,7 +103,7 @@ If user does not specify mode, infer automatically from task size and risk.
|
|
|
103
103
|
|
|
104
104
|
1. **`coding-standards`** - Universal coding standards and best practices
|
|
105
105
|
2. **`frontend-patterns`** - Modern React/Next.js patterns and component architecture
|
|
106
|
-
3. **`
|
|
106
|
+
3. **`impeccable`** - Impeccable design intelligence: typography, color, layout, motion, critique, and polish
|
|
107
107
|
4. **`web-design-guidelines`** - UI/UX compliance and accessibility
|
|
108
108
|
|
|
109
109
|
### Contextual Skills (Load when needed)
|
|
@@ -121,7 +121,7 @@ If user does not specify mode, infer automatically from task size and risk.
|
|
|
121
121
|
# Session Start Protocol
|
|
122
122
|
|
|
123
123
|
1. Analyze project structure
|
|
124
|
-
2. Load core skills (coding-standards, frontend-patterns,
|
|
124
|
+
2. Load core skills (coding-standards, frontend-patterns, impeccable)
|
|
125
125
|
3. Identify framework (React/Next.js) and load relevant skills
|
|
126
126
|
4. Infer session goals from user request first; ask only when blocked
|
|
127
127
|
5. Load additional contextual skills as needed
|
|
@@ -623,7 +623,7 @@ function LoginForm() {
|
|
|
623
623
|
|
|
624
624
|
## Design & Aesthetics Philosophy
|
|
625
625
|
|
|
626
|
-
This project uses **Impeccable** (impeccable.style) design intelligence. Impeccable's shared design laws are automatically applied to every UI you build. The `
|
|
626
|
+
This project uses **Impeccable** (impeccable.style) design intelligence. Impeccable's shared design laws are automatically applied to every UI you build. The `impeccable` skill is pre-loaded with these principles.
|
|
627
627
|
|
|
628
628
|
### Design Thinking Process
|
|
629
629
|
|
|
@@ -958,7 +958,7 @@ React Frontend Developer activated!
|
|
|
958
958
|
|
|
959
959
|
Project context:
|
|
960
960
|
- Framework: [React | Next.js | Vite]
|
|
961
|
-
- Loaded skills: coding-standards, frontend-patterns,
|
|
961
|
+
- Loaded skills: coding-standards, frontend-patterns, impeccable
|
|
962
962
|
- Ready to: [build components | optimize performance | implement designs | review code]
|
|
963
963
|
|
|
964
964
|
What are we working on today?
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Search past session observations and lessons for relevant context. Wraps the `memory_smart_search` and `memory_lesson_recall` MCP tools.
|
|
2
|
+
|
|
3
|
+
## Usage
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
/recall [query]
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Instructions
|
|
10
|
+
|
|
11
|
+
1. Call `memory_smart_search` with the query and `limit: 10` (hybrid BM25 + vector + graph search).
|
|
12
|
+
2. Call `memory_lesson_recall` with the same query and `limit: 5` (lesson search).
|
|
13
|
+
3. Combine results and present to the user:
|
|
14
|
+
- Group by session
|
|
15
|
+
- Show type, title, and narrative for each observation
|
|
16
|
+
- Highlight high-importance observations
|
|
17
|
+
- Show lessons separately with confidence scores
|
|
18
|
+
4. If no results, suggest 2-3 alternative search terms.
|
|
19
|
+
5. **Never hallucinate results.** Only present what the MCP tools actually return.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Explicitly save an insight, decision, or learning to agentmemory for future sessions. Wraps the `memory_save` MCP tool.
|
|
2
|
+
|
|
3
|
+
## Usage
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
/remember [what to remember]
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Instructions
|
|
10
|
+
|
|
11
|
+
1. Analyze what needs to be remembered — extract the core insight, decision, or fact.
|
|
12
|
+
2. Extract 2-5 searchable concepts (lowercased keyword phrases). Prefer specific terms ("jwt-refresh-rotation" over "auth").
|
|
13
|
+
3. Extract relevant file paths the memory references.
|
|
14
|
+
4. Call `memory_save` with:
|
|
15
|
+
- `content` — full text to remember (preserve user's phrasing)
|
|
16
|
+
- `concepts` — extracted concept list
|
|
17
|
+
- `files` — extracted file list (empty array if none)
|
|
18
|
+
- `type` — choose from: pattern, preference, architecture, bug, workflow, fact
|
|
19
|
+
5. Confirm the save and show the concepts tagged so the user knows retrieval terms.
|
|
@@ -28,7 +28,7 @@ Navigasi lengkap untuk semua dokumentasi Frontend Developer Agent.
|
|
|
28
28
|
.opencode/
|
|
29
29
|
├── agents/
|
|
30
30
|
│ └── frontend-developer.md # Agent definition
|
|
31
|
-
└──
|
|
31
|
+
└── docs/frontend/nuxt/ # Supporting documentation (this directory)
|
|
32
32
|
├── INDEX.md # This file - navigation hub
|
|
33
33
|
├── README.md # Complete user guide
|
|
34
34
|
├── QUICK_START.md # Get started in 5 minutes
|
|
@@ -40,7 +40,7 @@ Agent otomatis akan load skills yang dibutuhkan:
|
|
|
40
40
|
```
|
|
41
41
|
✓ coding-standards
|
|
42
42
|
✓ frontend-patterns
|
|
43
|
-
✓
|
|
43
|
+
✓ impeccable
|
|
44
44
|
✓ web-design-guidelines
|
|
45
45
|
```
|
|
46
46
|
|
|
@@ -179,7 +179,7 @@ Agent punya akses ke 10+ skills dari repository Anda:
|
|
|
179
179
|
|
|
180
180
|
- **coding-standards** - Universal best practices
|
|
181
181
|
- **frontend-patterns** - Vue/Nuxt patterns
|
|
182
|
-
- **
|
|
182
|
+
- **impeccable** - Design intelligence (typography, color, layout, motion, critique)
|
|
183
183
|
- **web-design-guidelines** - UI/UX compliance
|
|
184
184
|
|
|
185
185
|
### Contextual Skills (On-demand)
|
|
@@ -73,12 +73,12 @@ Agent akan otomatis load skills ini saat session dimulai:
|
|
|
73
73
|
- Performance optimization
|
|
74
74
|
- Form handling
|
|
75
75
|
|
|
76
|
-
3. **`
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
- Typography
|
|
80
|
-
-
|
|
81
|
-
-
|
|
76
|
+
3. **`impeccable`**
|
|
77
|
+
- Impeccable design intelligence
|
|
78
|
+
- Design critique, audit, and polish
|
|
79
|
+
- Typography and color systems
|
|
80
|
+
- Layout, motion, and interaction
|
|
81
|
+
- 23 sub-commands (craft, shape, critique, etc.)
|
|
82
82
|
|
|
83
83
|
4. **`web-design-guidelines`**
|
|
84
84
|
- UI/UX compliance
|
|
@@ -145,7 +145,7 @@ geometric patterns.
|
|
|
145
145
|
|
|
146
146
|
Agent akan:
|
|
147
147
|
|
|
148
|
-
1. Load skill `
|
|
148
|
+
1. Load skill `impeccable`
|
|
149
149
|
2. Choose distinctive fonts (bukan Inter/Roboto)
|
|
150
150
|
3. Create cohesive color palette
|
|
151
151
|
4. Implement purposeful animations
|
|
@@ -484,7 +484,7 @@ git commit -m "Update frontend agent: add new skill integration"
|
|
|
484
484
|
│ │
|
|
485
485
|
│ LOADED SKILLS: │
|
|
486
486
|
│ ✓ coding-standards ✓ frontend-patterns │
|
|
487
|
-
│ ✓
|
|
487
|
+
│ ✓ impeccable ✓ web-design-guidelines │
|
|
488
488
|
│ │
|
|
489
489
|
│ CONTEXTUAL SKILLS: │
|
|
490
490
|
│ • nuxt-ui • vercel-composition-patterns │
|
|
@@ -196,7 +196,7 @@ Agent terintegrasi dengan **10+ professional skills**:
|
|
|
196
196
|
**Core Skills (Auto-loaded):**
|
|
197
197
|
- ✅ coding-standards
|
|
198
198
|
- ✅ frontend-patterns
|
|
199
|
-
- ✅
|
|
199
|
+
- ✅ impeccable
|
|
200
200
|
- ✅ web-design-guidelines
|
|
201
201
|
|
|
202
202
|
**Contextual Skills (On-demand):**
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
|-------|-------------|
|
|
78
78
|
| `coding-standards` | Universal coding standards |
|
|
79
79
|
| `frontend-patterns` | React/Next.js patterns |
|
|
80
|
-
| `
|
|
80
|
+
| `impeccable` | Impeccable design intelligence |
|
|
81
81
|
| `web-design-guidelines` | UI/UX compliance |
|
|
82
82
|
| `shadcn-ui` | shadcn/ui components |
|
|
83
83
|
| `vercel-react-best-practices` | React performance |
|
|
@@ -4,11 +4,11 @@ Navigasi lengkap untuk semua dokumentasi React Frontend Developer Agent (`@front
|
|
|
4
4
|
|
|
5
5
|
## Quick Links
|
|
6
6
|
|
|
7
|
-
| Kebutuhan
|
|
8
|
-
|
|
9
|
-
| Baru mulai?
|
|
10
|
-
| Panduan lengkap?
|
|
11
|
-
| Cari command cepat?
|
|
7
|
+
| Kebutuhan | Dokumen |
|
|
8
|
+
| ----------------------- | ------------------------------------ |
|
|
9
|
+
| Baru mulai? | [QUICK_START.md](./QUICK_START.md) |
|
|
10
|
+
| Panduan lengkap? | [README.md](./README.md) |
|
|
11
|
+
| Cari command cepat? | [CHEATSHEET.md](./CHEATSHEET.md) |
|
|
12
12
|
| Data fetching patterns? | [API_PATTERNS.md](./API_PATTERNS.md) |
|
|
13
13
|
|
|
14
14
|
## Documentation Structure
|
|
@@ -17,7 +17,7 @@ Navigasi lengkap untuk semua dokumentasi React Frontend Developer Agent (`@front
|
|
|
17
17
|
.opencode/
|
|
18
18
|
├── agents/
|
|
19
19
|
│ └── react-frontend-developer.md # Agent definition
|
|
20
|
-
└──
|
|
20
|
+
└── docs/frontend/react/ # Supporting documentation (this directory)
|
|
21
21
|
├── INDEX.md # This file — navigation hub
|
|
22
22
|
├── README.md # Complete user guide
|
|
23
23
|
├── QUICK_START.md # Get started in 5 minutes
|
|
@@ -39,7 +39,7 @@ Navigasi lengkap untuk semua dokumentasi React Frontend Developer Agent (`@front
|
|
|
39
39
|
|
|
40
40
|
## Agent Reference
|
|
41
41
|
|
|
42
|
-
| Mention
|
|
43
|
-
|
|
42
|
+
| Mention | File | Stack |
|
|
43
|
+
| ----------------- | ----------------------------- | --------------------------------------------- |
|
|
44
44
|
| `@frontend-react` | `react-frontend-developer.md` | React 19, Next.js 15, shadcn/ui, Tailwind CSS |
|
|
45
|
-
| `@frontend-nuxt`
|
|
45
|
+
| `@frontend-nuxt` | `nuxt-frontend-developer.md` | Nuxt 4, Vue 3, Nuxt UI, Tailwind CSS |
|
|
@@ -46,7 +46,7 @@ IT Leader akan otomatis mendelegasikan task ke `@frontend-react` ketika project
|
|
|
46
46
|
Setiap session, agent akan load:
|
|
47
47
|
1. `coding-standards` — Universal coding standards
|
|
48
48
|
2. `frontend-patterns` — React/Next.js patterns
|
|
49
|
-
3. `
|
|
49
|
+
3. `impeccable` — Impeccable design intelligence
|
|
50
50
|
4. `web-design-guidelines` — UI/UX compliance
|
|
51
51
|
|
|
52
52
|
### Contextual Skills (load sesuai kebutuhan)
|
|
@@ -36,7 +36,7 @@ Cross-platform mobile development dengan Dart, Flutter SDK, dan Material Design
|
|
|
36
36
|
|
|
37
37
|
- `coding-standards` — Universal coding standards
|
|
38
38
|
- `frontend-patterns` — Mobile UI patterns
|
|
39
|
-
- `
|
|
39
|
+
- `impeccable` — Impeccable design intelligence
|
|
40
40
|
- `web-design-guidelines` — UI/UX compliance
|
|
41
41
|
- `firebase-basics` — Firebase services
|
|
42
42
|
- `building-components` — Reusable widget libraries
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
AGENTMEMORY_URL="${AGENTMEMORY_URL:-http://localhost:3111}"
|
|
5
|
+
HEALTH_URL="$AGENTMEMORY_URL/agentmemory/livez"
|
|
6
|
+
|
|
7
|
+
if ! curl -sf "$HEALTH_URL" > /dev/null 2>&1; then
|
|
8
|
+
npx @agentmemory/agentmemory > /dev/null 2>&1 &
|
|
9
|
+
for i in $(seq 1 15); do
|
|
10
|
+
if curl -sf "$HEALTH_URL" > /dev/null 2>&1; then
|
|
11
|
+
break
|
|
12
|
+
fi
|
|
13
|
+
sleep 1
|
|
14
|
+
done
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
exec npx -y @agentmemory/mcp "$@"
|
|
@@ -380,6 +380,55 @@ flutter analyze # Static analysis
|
|
|
380
380
|
|
|
381
381
|
---
|
|
382
382
|
|
|
383
|
+
## Agentmemory: Persistent Cross-Session Memory
|
|
384
|
+
|
|
385
|
+
agentmemory provides persistent memory for all agents. It captures session history, saves decisions/insights, and injects relevant context from past sessions into the current session.
|
|
386
|
+
|
|
387
|
+
### Prerequisites
|
|
388
|
+
|
|
389
|
+
```bash
|
|
390
|
+
npm install -g @agentmemory/agentmemory # Install globally
|
|
391
|
+
agentmemory # Start server on :3111
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
### MCP Tools (53 tools)
|
|
395
|
+
|
|
396
|
+
All agents have access to agentmemory MCP tools prefixed with `agentmemory_memory_`:
|
|
397
|
+
|
|
398
|
+
| Tool | Purpose |
|
|
399
|
+
|------|---------|
|
|
400
|
+
| `memory_save` | Save insights, decisions, facts to long-term memory |
|
|
401
|
+
| `memory_recall` | Search past observations by keywords |
|
|
402
|
+
| `memory_smart_search` | Hybrid semantic+keyword search for conceptual queries |
|
|
403
|
+
| `memory_sessions` | List recent sessions with status and observation counts |
|
|
404
|
+
| `memory_file_history` | Get past observations about specific files |
|
|
405
|
+
| `memory_lesson_save` | Save a lesson learned with confidence scoring |
|
|
406
|
+
| `memory_lesson_recall` | Search lessons by query, sorted by confidence |
|
|
407
|
+
| `memory_governance_delete` | Delete specific memories (requires confirmation) |
|
|
408
|
+
| `memory_patterns` | Detect recurring patterns across sessions |
|
|
409
|
+
| `memory_consolidate` | Run 4-tier memory consolidation pipeline |
|
|
410
|
+
|
|
411
|
+
### Available Commands
|
|
412
|
+
|
|
413
|
+
- `/recall [query]` — Search past observations and lessons
|
|
414
|
+
- `/remember [text]` — Explicitly save an insight to long-term memory
|
|
415
|
+
|
|
416
|
+
### Auto-Capture Plugin
|
|
417
|
+
|
|
418
|
+
The `agentmemory-capture.ts` plugin (registered in `opencode.json`) captures 22 lifecycle events automatically:
|
|
419
|
+
- Session lifecycle: created, idle, compacted, updated, deleted, error
|
|
420
|
+
- Messages & prompts: user messages, assistant responses, removed messages
|
|
421
|
+
- Parts & steps: subagent starts, tool calls, reasoning, step-finish, patches, compaction events
|
|
422
|
+
- File enrichment: auto-injects file-specific context into system prompt
|
|
423
|
+
- Permissions: captures permission prompts and replies
|
|
424
|
+
- Tasks & commands: captures todo changes and command execution
|
|
425
|
+
|
|
426
|
+
### Skills
|
|
427
|
+
|
|
428
|
+
The `agentmemory` skill (`.opencode/skills/agentmemory/SKILL.md`) teaches agents when and how to use the memory tools effectively.
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
383
432
|
## opencode-agent-kit Version Check
|
|
384
433
|
|
|
385
434
|
If `.opencode/.kit-version` exists, your agent toolkit has a recorded installed version.
|