@vheins/local-memory-mcp 0.8.29 → 0.8.32
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/dist/{chunk-HVIOJXRW.js → chunk-NVK5O7VL.js} +88 -18
- package/dist/dashboard/public/assets/index-C2Zuk5Bn.js +86 -0
- package/dist/dashboard/public/assets/{index-OXSJZbwn.css → index-Don00sJ3.css} +1 -1
- package/dist/dashboard/public/index.html +2 -2
- package/dist/dashboard/server.js +8 -3
- package/dist/mcp/server.js +1 -1
- package/dist/prompts/architecture-design.md +8 -8
- package/dist/prompts/create-task.md +49 -121
- package/dist/prompts/documentation-sync.md +6 -6
- package/dist/prompts/export-task-to-github.md +27 -48
- package/dist/prompts/fix-suggestion.md +13 -14
- package/dist/prompts/import-github-issues.md +21 -20
- package/dist/prompts/learning-retrospective.md +11 -8
- package/dist/prompts/memory-agent-core.md +19 -32
- package/dist/prompts/memory-guided-review.md +7 -7
- package/dist/prompts/memory-index-policy.md +12 -12
- package/dist/prompts/project-briefing.md +7 -7
- package/dist/prompts/review-and-audit.md +41 -124
- package/dist/prompts/review-and-post-issue.md +39 -92
- package/dist/prompts/root-cause-analysis.md +13 -13
- package/dist/prompts/security-triage.md +12 -12
- package/dist/prompts/senior-code-review.md +17 -18
- package/dist/prompts/session-planner.md +9 -9
- package/dist/prompts/task-management-guidelines.md +15 -20
- package/dist/prompts/task-memory-executor.md +35 -53
- package/dist/prompts/tech-affinity-scout.md +7 -7
- package/dist/prompts/technical-planning.md +11 -11
- package/dist/prompts/tool-usage-guidelines.md +13 -13
- package/package.json +2 -2
- package/dist/dashboard/public/assets/index-CX52Iqkx.js +0 -84
|
@@ -1,61 +1,40 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: export-task-to-github
|
|
3
|
-
description:
|
|
3
|
+
description: Export local tasks to GitHub Issues
|
|
4
4
|
arguments:
|
|
5
5
|
- name: owner
|
|
6
|
-
description: GitHub
|
|
6
|
+
description: GitHub repo owner
|
|
7
7
|
required: true
|
|
8
8
|
- name: repo
|
|
9
|
-
description: GitHub
|
|
9
|
+
description: GitHub repo name
|
|
10
10
|
required: true
|
|
11
11
|
- name: task_id
|
|
12
|
-
description:
|
|
12
|
+
description: Local task ID
|
|
13
13
|
required: true
|
|
14
14
|
agent: Integration Architect
|
|
15
15
|
---
|
|
16
16
|
# Skill: export-task-to-github
|
|
17
17
|
|
|
18
|
-
##
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- **
|
|
35
|
-
- **
|
|
36
|
-
- **
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
2. **Task Update**: Use `local-memory-mcp` tool `task-update` to:
|
|
42
|
-
- Add the GitHub URL to `metadata`.
|
|
43
|
-
- Add a comment stating "Exported to GitHub Issue #{{number}}".
|
|
44
|
-
|
|
45
|
-
### 5. Confirmation
|
|
46
|
-
Provide the link to the newly created (or existing) GitHub issue.
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
### ✅ ALLOWED OUTPUT (STRICT)
|
|
51
|
-
Your output MUST ONLY consist of calls to:
|
|
52
|
-
- `mcp_local-memory_task-detail`
|
|
53
|
-
- `mcp_local-memory_task-update`
|
|
54
|
-
- `mcp_github-mcp-server_search_issues`
|
|
55
|
-
- `mcp_github-mcp-server_issue_write`
|
|
56
|
-
- `mcp_github-mcp-server_add_issue_comment`
|
|
57
|
-
|
|
58
|
-
**❌ DO NOT:**
|
|
59
|
-
- Output explanations or narrative text during execution.
|
|
60
|
-
- Modify the original title or description of the task when exporting.
|
|
61
|
-
- Create duplicate issues.
|
|
18
|
+
## 1. RETRIEVE
|
|
19
|
+
1. **Fetch**: Call `task-detail` for `task_id`.
|
|
20
|
+
2. **Verify**: Ensure title/description exist. Use `memory-search` for gaps.
|
|
21
|
+
|
|
22
|
+
## 2. SYNC CHECK
|
|
23
|
+
1. **Search**: Use `search_issues` for `task_code`.
|
|
24
|
+
2. **De-duplicate**: If issue exists, update local task `metadata` with URL. DO NOT re-create.
|
|
25
|
+
|
|
26
|
+
## 3. CREATE ISSUE
|
|
27
|
+
If new:
|
|
28
|
+
- **Write**: Use `issue_write` (method: 'create').
|
|
29
|
+
- **Content**: Match local title/body exactly.
|
|
30
|
+
- **Traceability**: Append `task_code` and `task_id` to body.
|
|
31
|
+
- **Comments**: Post local comments via `add_issue_comment`.
|
|
32
|
+
|
|
33
|
+
## 4. LINK
|
|
34
|
+
- **Update**: Call `task-update`.
|
|
35
|
+
- **Metadata**: Add GitHub URL.
|
|
36
|
+
- **Comment**: "Exported to GitHub Issue #X".
|
|
37
|
+
|
|
38
|
+
## ✅ OUTPUT: MCP ONLY
|
|
39
|
+
ONLY call: `task-detail`, `task-update`, `search_issues`, `issue_write`, `add_issue_comment`.
|
|
40
|
+
No prose. No modifications to original content.
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fix-suggestion
|
|
3
|
-
description:
|
|
3
|
+
description: Targeted fix with before/after code and test case.
|
|
4
4
|
arguments:
|
|
5
5
|
- name: tech_stack
|
|
6
|
-
description: Target
|
|
6
|
+
description: Target tech stack.
|
|
7
7
|
required: true
|
|
8
8
|
- name: bug_description
|
|
9
|
-
description:
|
|
9
|
+
description: Bug behavior.
|
|
10
10
|
required: true
|
|
11
11
|
- name: root_cause
|
|
12
|
-
description:
|
|
12
|
+
description: Identified root cause.
|
|
13
13
|
required: true
|
|
14
14
|
agent: Debugging Expert
|
|
15
15
|
---
|
|
16
|
-
|
|
16
|
+
Provide precise, minimal fix for confirmed bug.
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
Bug
|
|
20
|
-
|
|
18
|
+
Stack: {{tech_stack}}
|
|
19
|
+
Bug: {{bug_description}}
|
|
20
|
+
Cause: {{root_cause}}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
1. **
|
|
24
|
-
2. **Before
|
|
25
|
-
3. **
|
|
26
|
-
4. **
|
|
27
|
-
5. **Test Case**: A regression test case to verify the fix.
|
|
22
|
+
Output:
|
|
23
|
+
1. **Explanation**: Why it happens & how fix works.
|
|
24
|
+
2. **Before/After**: Diff style code blocks with comments.
|
|
25
|
+
3. **Checklist**: Meta changes (config, migrations).
|
|
26
|
+
4. **Verification**: Regression test case.
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: import-github-issues
|
|
3
|
-
description:
|
|
3
|
+
description: Import GitHub Issues as local tasks.
|
|
4
4
|
arguments: []
|
|
5
5
|
agent: Integration Scout
|
|
6
6
|
---
|
|
7
|
-
|
|
7
|
+
# Skill: import-github-issues
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 1. FETCH
|
|
10
|
+
- **Primary**: Use `github-mcp-server` to list open issues.
|
|
11
|
+
- **Fallback**: Terminal `gh issue list --json number,title,body,labels,url`.
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
2. **Review Existing Tasks**: Call `local-memory-mcp` MCP tools `task-list` for the current repository to identify tasks already imported.
|
|
14
|
-
3. **Map and Create**: For each relevant issue that hasn't been imported yet:
|
|
15
|
-
- Use 'task-manage' with action='create'.
|
|
16
|
-
- **MANDATORY**: Keep the original GitHub **title** and **description** exactly as they are. Do NOT summarize or modify them.
|
|
17
|
-
- Set 'task_code' to 'GH-{{issue_number}}' (e.g., GH-123).
|
|
18
|
-
- Set 'title' to the issue title.
|
|
19
|
-
- Set 'description' to the issue body.
|
|
20
|
-
- Map GitHub labels to 'tags' if applicable.
|
|
21
|
-
- Default 'phase' to 'backlog' or 'triage'.
|
|
22
|
-
- Set 'metadata' to include the original GitHub URL.
|
|
23
|
-
4. **Import Comments**: If the issue has comments:
|
|
24
|
-
- Use `github-mcp-server`'s `issue_read` tool with `method='get_comments'` to fetch all comments.
|
|
25
|
-
- For each comment, add it to the created task using the `task-update` tool, appending it to the `comments` array or adding a specific comment metadata.
|
|
26
|
-
5. **Avoid Duplicates**: Do not import issues that already have a corresponding 'GH-{{number}}' task code in our system.
|
|
27
|
-
6. **Confirmation**: Provide a summary of how many tasks were successfully created.
|
|
13
|
+
## 2. DE-DUPLICATE
|
|
14
|
+
- **Scan**: Call `task-list`. Skip issues already existing as `GH-{{number}}` task codes.
|
|
28
15
|
|
|
16
|
+
## 3. MAP & CREATE
|
|
17
|
+
For each new issue, use `task-create`:
|
|
18
|
+
- **`task_code`**: `GH-{{number}}`.
|
|
19
|
+
- **`title` / `description`**: EXACT match from GitHub. DO NOT summarize.
|
|
20
|
+
- **`tags`**: GitHub labels.
|
|
21
|
+
- **`phase`**: `backlog` or `triage`.
|
|
22
|
+
- **`metadata`**: include GitHub URL.
|
|
23
|
+
|
|
24
|
+
## 4. COMMENTS
|
|
25
|
+
- **Fetch**: Use `issue_read` (method='get_comments').
|
|
26
|
+
- **Import**: Add comments to local task via `task-update`.
|
|
27
|
+
|
|
28
|
+
## 5. SUMMARY
|
|
29
|
+
Report count of tasks created.
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: learning-retrospective
|
|
3
|
-
description:
|
|
3
|
+
description: Harvest knowledge from completed work.
|
|
4
4
|
arguments:
|
|
5
5
|
- name: task_id
|
|
6
|
-
description:
|
|
6
|
+
description: ID of completed task.
|
|
7
7
|
required: false
|
|
8
8
|
agent: Knowledge Harvester
|
|
9
9
|
---
|
|
10
|
-
|
|
10
|
+
Extract durable knowledge from task {{task_id}} for repository.
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
1. **Mistakes**:
|
|
14
|
-
2. **Decisions**:
|
|
15
|
-
3. **Patterns**:
|
|
12
|
+
Identify and `memory-store`:
|
|
13
|
+
1. **Mistakes**: Hard-to-find bugs or environment quirks.
|
|
14
|
+
2. **Decisions**: Trade-offs, library choices, architectural pivots.
|
|
15
|
+
3. **Patterns**: Repeatable implementations or conventions.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Directives:
|
|
18
|
+
- Use `type: mistake | decision | pattern`.
|
|
19
|
+
- Include technology tags.
|
|
20
|
+
- Keep content concise.
|
|
@@ -1,42 +1,29 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: memory-agent-core
|
|
3
|
-
description:
|
|
3
|
+
description: Behavioral contract for memory-aware agents.
|
|
4
4
|
arguments: []
|
|
5
5
|
agent: Memory Guardian
|
|
6
6
|
---
|
|
7
|
-
|
|
7
|
+
# Memory Guardian Protocol
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
You are a memory-aware agent. Memory is project truth, not a suggestion.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
11
|
+
## Core Rules
|
|
12
|
+
1. **Consistency**: Never contradict stored decisions without `memory-update` or `supersedes`.
|
|
13
|
+
2. **Mistake Prevention**: Never repeat documented mistakes.
|
|
14
|
+
3. **Affinity**: Only use cross-repo memory if tech tags match or it's marked `Global`.
|
|
15
|
+
4. **Conflicts**: If memory clashes with user request, ask for clarification or propose `supersedes`.
|
|
16
|
+
5. **Acknowledge**: After code generation using memory, you MUST call `memory-acknowledge`.
|
|
17
|
+
6. **Search Mechanics**: Hybrid Search (70% Cosine, 30% BM25). 0.55 similarity threshold prevents duplication.
|
|
15
18
|
|
|
16
|
-
|
|
17
|
-
1.
|
|
18
|
-
2.
|
|
19
|
-
3.
|
|
20
|
-
4. If memory conflicts with the user's new request, detect the conflict and ask for clarification or propose a 'supersedes' update.
|
|
21
|
-
5. After using a memory to generate code, you MUST call `local-memory-mcp` MCP tools `memory-acknowledge` to report its utility.
|
|
22
|
-
6. The system uses Hybrid Search: Score = (Cosine_Similarity * 0.7) + (BM25_Score * 0.3).
|
|
23
|
-
7. Semantic Conflict Detection: A 0.55 similarity threshold is enforced to prevent redundant entries.
|
|
19
|
+
## Execution Policy
|
|
20
|
+
1. **Search**: Call `memory-search` with `current_file_path` and `current_tags` before coding.
|
|
21
|
+
2. **Retrieve**: Use `memory-detail` for full content if search snippets are insufficient.
|
|
22
|
+
3. **Select**: Use ONLY highly relevant memories.
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
1.
|
|
28
|
-
2.
|
|
29
|
-
3. If more context is needed than provided in search results, fetch the full content via `local-memory-mcp` MCP tools `memory-detail`.
|
|
30
|
-
4. Use memory ONLY if clearly relevant. Prefer fewer, stronger memories over many weak ones.
|
|
24
|
+
## Creation Policy
|
|
25
|
+
Store memory ONLY if knowledge is durable (architecture, patterns, fixes) and affects future behavior.
|
|
26
|
+
1. **Categorize**: Use technology `tags`.
|
|
27
|
+
2. **Maintain**: Use `supersedes` for overrides.
|
|
31
28
|
|
|
32
|
-
|
|
33
|
-
You MAY store memory ONLY if:
|
|
34
|
-
- The information affects future behavior.
|
|
35
|
-
- The knowledge is durable (e.g., architecture, styling rules, bug fixes).
|
|
36
|
-
- You use 'tags' to categorize by technology (e.g., ['nestjs', 'typescript']).
|
|
37
|
-
|
|
38
|
-
Before storing memory:
|
|
39
|
-
- If this replaces an old rule, find the old memory ID and use 'supersedes'.
|
|
40
|
-
- Explain briefly why it should be stored.
|
|
41
|
-
|
|
42
|
-
Behave like a trusted senior engineer who remembers past decisions and protects the long-term health of the codebase across all user projects.
|
|
29
|
+
Protect codebase health by respecting project history.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: memory-guided-review
|
|
3
|
-
description: Review code for compliance with stored
|
|
3
|
+
description: Review code for compliance with stored decisions.
|
|
4
4
|
arguments:
|
|
5
5
|
- name: file_path
|
|
6
|
-
description:
|
|
6
|
+
description: File to review.
|
|
7
7
|
required: true
|
|
8
8
|
agent: Code Auditor
|
|
9
9
|
---
|
|
10
|
-
|
|
10
|
+
Audit {{file_path}} against stored project knowledge.
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
1. **Search
|
|
14
|
-
2. **Evaluate
|
|
15
|
-
3. **Feedback**:
|
|
12
|
+
Steps:
|
|
13
|
+
1. **Search**: Call `memory-search` using `current_file_path='{{file_path}}'`.
|
|
14
|
+
2. **Evaluate**: Check for compliance with established patterns and avoidance of documented mistakes.
|
|
15
|
+
3. **Feedback**: Suggest fixes for any decision violations found.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: memory-index-policy
|
|
3
|
-
description:
|
|
3
|
+
description: Strict memory storage criteria.
|
|
4
4
|
arguments: []
|
|
5
5
|
agent: Memory Auditor
|
|
6
6
|
---
|
|
7
|
-
|
|
8
|
-
- Temporary discussions or brainstorming.
|
|
9
|
-
- Subjective opinions without consensus.
|
|
10
|
-
- Generic coding knowledge available in public docs.
|
|
7
|
+
# Memory Indexing Rules
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
- Hard-won bug fixes (Mistakes to avoid).
|
|
17
|
-
- Persistence: Only mark as `is_global` if the knowledge applies beyond a single repository (e.g., framework-specific anti-patterns).
|
|
9
|
+
## ❌ FORBIDDEN
|
|
10
|
+
- Temporary discussions/brainstorming.
|
|
11
|
+
- Opinions without consensus.
|
|
12
|
+
- Generic knowledge from public docs.
|
|
18
13
|
|
|
19
|
-
|
|
14
|
+
## ✅ MANDATORY
|
|
15
|
+
Only store durable, project-specific knowledge.
|
|
16
|
+
- **Types**: `code_fact`, `decision`, `mistake`, `pattern`, `agent_handoff`, `agent_registered`, `file_claim`, `task_archive`.
|
|
17
|
+
- **Content**: Architecture, UI/UX choices, stack patterns, hard-won bug fixes.
|
|
18
|
+
- **Global**: Set `is_global` only if applicable across repositories (e.g., framework anti-patterns).
|
|
19
|
+
- **Categorization**: Use accurate technology tags.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: project-briefing
|
|
3
|
-
description:
|
|
3
|
+
description: Contextual onboarding to current repository.
|
|
4
4
|
arguments: []
|
|
5
5
|
agent: Session Concierge
|
|
6
6
|
---
|
|
7
|
-
|
|
7
|
+
Initialize session in repository.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
1. **
|
|
11
|
-
2. **
|
|
12
|
-
3. **Context
|
|
13
|
-
4. **
|
|
9
|
+
Briefing Steps:
|
|
10
|
+
1. **Discover**: Call `memory-search` (current repo) to find recent decisions, patterns, and mistakes.
|
|
11
|
+
2. **Backlog**: Call `task-list` to see active/pending tasks.
|
|
12
|
+
3. **Core Context**: Summarize the top 3 architectural decisions found.
|
|
13
|
+
4. **Action**: Propose next steps based on backlog.
|
|
@@ -1,131 +1,48 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review-and-audit
|
|
3
|
-
description: Audit documentation against implementation
|
|
3
|
+
description: Audit documentation against implementation; generate local tasks for gaps.
|
|
4
4
|
arguments:
|
|
5
5
|
- name: target
|
|
6
|
-
description:
|
|
6
|
+
description: Module, feature, or component to audit.
|
|
7
7
|
required: false
|
|
8
8
|
agent: Quality Auditor
|
|
9
9
|
---
|
|
10
|
-
# Skill: review-audit
|
|
11
|
-
|
|
12
|
-
##
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
* `local-memory-mcp` MCP tools `task-create`
|
|
50
|
-
* `local-memory-mcp` MCP tools `memory-store`
|
|
51
|
-
* `local-memory-mcp` MCP tools `task-list`
|
|
52
|
-
* `local-memory-mcp` MCP tools `memory-search`
|
|
53
|
-
|
|
54
|
-
**❌ DO NOT:**
|
|
55
|
-
* Output explanations or narrative text
|
|
56
|
-
* Output code or plans outside MCP
|
|
57
|
-
* Suggest fixes directly
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
### 3. PRE-ANALYSIS FOR TASK GENERATION (MANDATORY)
|
|
62
|
-
Before creating tasks, you MUST:
|
|
63
|
-
1. **Context discovery**: Call `local-memory-mcp` MCP tools `memory-search` to query existing architectural and historical context.
|
|
64
|
-
2. **Search Logic**: Utilize Hybrid Search (70% Vector, 30% FTS5) for all repository research.
|
|
65
|
-
3. **Conflict Prevention**: Respect the 0.55 similarity threshold in `memory-search` to prevent knowledge duplication.
|
|
66
|
-
4. **Sync backlog**: Call `local-memory-mcp` MCP tools `task-list` to check existing tasks. **CRITICAL: Do NOT create a new task if a similar, redundant task already exists in `backlog` or `pending` status. If your new findings are distinct but related to an existing task, link them using `parent_id` or `depends_on` instead of creating an isolated task.**
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
### 4. TASK DESIGN PRINCIPLES
|
|
71
|
-
Each task MUST be:
|
|
72
|
-
* **Atomic & Independent**: Exactly ONE logical change per task.
|
|
73
|
-
* **Context-Rich**: Include file paths, class/function names, and API endpoints.
|
|
74
|
-
* **Layer-Aware**: Specify if it's Database, Service, State, or UI layer.
|
|
75
|
-
* **Contract-First**: Follow project API standards (include request/response shapes).
|
|
76
|
-
* **Test-Ready**: Include at least one Positive and one Negative test case.
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
### 5. TASK ATTRIBUTES (MANDATORY)
|
|
81
|
-
Each `local-memory-mcp` MCP tools `task-create` MUST include:
|
|
82
|
-
* `task_code`: (e.g., FEAT-123 / FIX-456 / REFACTOR-789)
|
|
83
|
-
* `phase`: (Discovery / Implementation / Testing)
|
|
84
|
-
* `priority`: (1–5)
|
|
85
|
-
* `agent`: Current agent's name/role
|
|
86
|
-
* `model`: Current AI model being used
|
|
87
|
-
|
|
88
|
-
#### 🔥 DESCRIPTION FORMAT (STRICT)
|
|
89
|
-
The `description` field MUST follow this structure EXACTLY:
|
|
90
|
-
|
|
91
|
-
#### 1. Context & Analysis
|
|
92
|
-
* **Finding / Trigger**: The audit finding or gap that triggered this task.
|
|
93
|
-
* **Observation & Analysis**: The results of your context reading and technical reasoning.
|
|
94
|
-
* **Goal**: A clear, non-redundant statement of what needs to be achieved.
|
|
95
|
-
|
|
96
|
-
#### 2. Target Files & Implementation
|
|
97
|
-
* Group by layer or exact file path. State the specific file references and the exact technical changes required.
|
|
98
|
-
* **Constraint**: Do NOT separate scope, references, and steps into different sections. Combine them here to avoid redundancy.
|
|
99
|
-
|
|
100
|
-
#### 3. Acceptance & Verification
|
|
101
|
-
* **Checklist**: Actionable criteria (e.g., `[ ] Condition 1`) that prove the gap is resolved.
|
|
102
|
-
* **Testing**: Brief Positive/Negative scenarios to confirm success.
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
### metadata (MANDATORY)
|
|
107
|
-
* Required agent role.
|
|
108
|
-
* Additional technical context.
|
|
109
|
-
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
### 6. MEMORY STORAGE (CONDITIONAL)
|
|
113
|
-
If the finding or gap involves a decision, new feature, or architectural change, you MUST log it as a memory using `local-memory-mcp` MCP tools `memory-store` with `type: decision`. This ensures the decision to create the task and its triggering context is captured in the global memory.
|
|
114
|
-
**CRITICAL**: Do NOT log tasks as decisions if they are purely for bug fixes or straightforward defect resolutions.
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
### 7. MULTI-TASK HANDLING
|
|
119
|
-
If gaps are complex:
|
|
120
|
-
1. Create a parent task.
|
|
121
|
-
2. Create child tasks using `parent_id` and `depends_on`.
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
### 8. FINAL SELF-CHECK (MANDATORY)
|
|
126
|
-
Before finishing, validate:
|
|
127
|
-
* ❌ No code was written.
|
|
128
|
-
* ❌ No execution was performed.
|
|
129
|
-
* ✅ Only MCP task operations exist.
|
|
130
|
-
|
|
131
|
-
extra_context:
|
|
10
|
+
# Skill: review-and-audit (Audit Agent)
|
|
11
|
+
|
|
12
|
+
## 1. ANALYSIS
|
|
13
|
+
1. **Sequential Discovery**: Explore docs and code sequentially. NO parallel sub-agents.
|
|
14
|
+
2. **UX Audit**: Use `chrome-dev-tools` for visual, navigation, and responsiveness checks.
|
|
15
|
+
3. **Compare**: Match docs + code findings against live UI to find gaps/misalignments.
|
|
16
|
+
|
|
17
|
+
## 🚫 FORBIDDEN: NON-EXECUTION
|
|
18
|
+
DO NOT edit/create/delete files, run commands, or implement code.
|
|
19
|
+
**Allowed**: Read code, `chrome-dev-tools`, `task-create`, `memory-store`, `task-list`, `memory-search`.
|
|
20
|
+
|
|
21
|
+
## ✅ OUTPUT: MCP ONLY
|
|
22
|
+
ONLY call MCP tools. No prose, code, or external plans.
|
|
23
|
+
|
|
24
|
+
## 2. PRE-TASK ANALYSIS
|
|
25
|
+
1. **Search**: Call `memory-search` (Hybrid Search). 0.55 similarity threshold.
|
|
26
|
+
2. **De-duplicate**: Call `task-list`. Skip existing/redundant tasks. Link via `parent_id`/`depends_on`.
|
|
27
|
+
|
|
28
|
+
## 3. TASK DESIGN & FORMAT
|
|
29
|
+
- **Atomic**: One change per task.
|
|
30
|
+
- **Attributes**: `task_code`, `phase`, `priority`, `agent`, `model`.
|
|
31
|
+
- **Description** (STRICT FORMAT):
|
|
32
|
+
### 1. Context & Analysis
|
|
33
|
+
- **Finding**: Gap trigger.
|
|
34
|
+
- **Observation**: Reasoning.
|
|
35
|
+
- **Goal**: Clear objective.
|
|
36
|
+
### 2. Target Files & Implementation
|
|
37
|
+
- Combined scope/steps per path/layer.
|
|
38
|
+
### 3. Acceptance & Verification
|
|
39
|
+
- **Checklist**: `[ ]` criteria.
|
|
40
|
+
- **Testing**: Scenarios.
|
|
41
|
+
|
|
42
|
+
## 4. LOGGING & MULTI-TASK
|
|
43
|
+
- Log architectural/feature changes as `type: decision` via `memory-store`.
|
|
44
|
+
- Use Parent/Child structure for complex gaps.
|
|
45
|
+
|
|
46
|
+
## 5. SELF-CHECK
|
|
47
|
+
- ❌ No implementation.
|
|
48
|
+
- ✅ ONLY MCP tool calls.
|