@vheins/local-memory-mcp 0.14.7 → 0.14.9
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-ODEGMBOP.js → chunk-UQZNTQJP.js} +2 -2
- package/dist/dashboard/server.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/prompts/architecture-design.md +8 -12
- package/dist/prompts/create-task.md +38 -78
- package/dist/prompts/csl-from-docs.md +10 -53
- package/dist/prompts/csl-scrapper.md +12 -52
- package/dist/prompts/documentation-sync.md +10 -11
- package/dist/prompts/export-task-to-github.md +10 -24
- package/dist/prompts/fix-suggestion.md +14 -8
- package/dist/prompts/import-github-issues.md +9 -24
- package/dist/prompts/learning-retrospective.md +8 -10
- package/dist/prompts/memory-agent-core.md +16 -27
- package/dist/prompts/memory-guided-review.md +11 -8
- package/dist/prompts/memory-index-policy.md +17 -23
- package/dist/prompts/project-briefing.md +13 -15
- package/dist/prompts/review-and-audit.md +35 -49
- package/dist/prompts/review-and-post-issue.md +20 -32
- package/dist/prompts/root-cause-analysis.md +10 -11
- package/dist/prompts/security-triage.md +11 -11
- package/dist/prompts/senior-code-review.md +9 -18
- package/dist/prompts/sentinel-issue-resolver.md +14 -36
- package/dist/prompts/server/instructions.md +33 -30
- package/dist/prompts/session-planner.md +12 -12
- package/dist/prompts/task-management-guidelines.md +18 -27
- package/dist/prompts/task-memory-executor.md +40 -127
- package/dist/prompts/tech-affinity-scout.md +11 -8
- package/dist/prompts/technical-planning.md +22 -37
- package/dist/prompts/tool-usage-guidelines.md +31 -43
- package/package.json +1 -1
|
@@ -3,32 +3,26 @@ name: memory-index-policy
|
|
|
3
3
|
description: Strict memory storage criteria.
|
|
4
4
|
arguments: []
|
|
5
5
|
agent: Memory Auditor
|
|
6
|
-
version: "1.0.0"
|
|
7
|
-
license: Proprietary — Personal Use Only
|
|
8
6
|
category: workflows
|
|
9
|
-
|
|
10
|
-
complexity: Beginner
|
|
7
|
+
version: "1.0.0"
|
|
11
8
|
tags: [memory, indexing, policy, mcp]
|
|
12
|
-
author: vheins
|
|
13
9
|
---
|
|
14
|
-
# Memory Indexing Rules
|
|
15
10
|
|
|
16
|
-
##
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
## FSM
|
|
12
|
+
|
|
13
|
+
Entry=G0 → S0 → S1 → S2 Exit=stored|rejected
|
|
14
|
+
Guard: S(N) req S(N-1)✅
|
|
15
|
+
|
|
16
|
+
G0 | is durable + project-specific? NOT forbidden types? | content provided? | → S0 / reject | —
|
|
17
|
+
S0 | classify type (code_fact|decision|mistake|pattern|task_archive) + tech tags | G0✅ | classified | —
|
|
18
|
+
S1 | scope: is_global ONLY if cross-repo applicable | S0✅ | scoped | —
|
|
19
|
+
S2 | store via memory-store | S1✅ | memory created | —
|
|
20
20
|
|
|
21
|
-
##
|
|
22
|
-
Only store durable, project-specific knowledge.
|
|
23
|
-
- **Types**: `code_fact`, `decision`, `mistake`, `pattern`, `task_archive`.
|
|
24
|
-
- **Content**: Architecture, UI/UX choices, stack patterns, hard-won bug fixes.
|
|
25
|
-
- **Global**: Set `is_global` only if applicable across repositories (e.g., framework anti-patterns).
|
|
26
|
-
- **Categorization**: Use accurate technology tags.
|
|
21
|
+
## Forbidden (G0→reject)
|
|
27
22
|
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
- File ownership/claims
|
|
33
|
-
-
|
|
34
|
-
- Use `standard-search` as the standards navigation layer before applying or creating standards.
|
|
23
|
+
- Temporary discussions / brainstorming
|
|
24
|
+
- Opinions without consensus
|
|
25
|
+
- Generic knowledge from public docs
|
|
26
|
+
- Agent coordination state (use handoff-create/handoff-list/handoff-update instead)
|
|
27
|
+
- File ownership / claims (use task-claim/claim-list/claim-release instead)
|
|
28
|
+
- Implementation rules (use standard-store instead)
|
|
@@ -3,22 +3,20 @@ name: project-briefing
|
|
|
3
3
|
description: Contextual onboarding to current repository.
|
|
4
4
|
arguments: []
|
|
5
5
|
agent: Session Concierge
|
|
6
|
-
version: "1.0.0"
|
|
7
|
-
license: Proprietary — Personal Use Only
|
|
8
6
|
category: workflows
|
|
9
|
-
|
|
10
|
-
complexity: Beginner
|
|
7
|
+
version: "1.0.0"
|
|
11
8
|
tags: [workflow, briefing, onboarding, memory, backlog]
|
|
12
|
-
author: vheins
|
|
13
9
|
---
|
|
14
|
-
Initialize session in repository.
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
## FSM
|
|
12
|
+
|
|
13
|
+
Entry=S0 → S1-4(parallel) → S5 → S6 Exit=briefed
|
|
14
|
+
Guard: S(N) req S(N-1)✅
|
|
15
|
+
|
|
16
|
+
S0 | identify current repo | — | repo context | —
|
|
17
|
+
S1 | load tasks: task-list (in_progress, pending) | S0✅ | active tasks | —
|
|
18
|
+
S2 | load handoffs: handoff-list (pending) — active only if unfinished work/blockers/linked task | S0✅ | pending transfers | —
|
|
19
|
+
S3 | load memory: memory-search or memory-recap; hydrate via memory-detail | S0✅ | decisions, patterns, mistakes | —
|
|
20
|
+
S4 | load standards: standard-search (repo, stack) | S0✅ | applicable standards | —
|
|
21
|
+
S5 | summarize core: active task + pending handoffs + standards + top decisions | S1-4✅ | briefing | —
|
|
22
|
+
S6 | propose next steps based on active queue; priority: 1=Low 2=Normal 3=Medium 4=High 5=Critical | S5✅ | action plan | —
|
|
@@ -6,55 +6,41 @@ arguments:
|
|
|
6
6
|
description: Module, feature, or component to audit.
|
|
7
7
|
required: false
|
|
8
8
|
agent: Quality Auditor
|
|
9
|
-
version: "1.0.0"
|
|
10
|
-
license: Proprietary — Personal Use Only
|
|
11
9
|
category: workflows
|
|
12
|
-
|
|
13
|
-
complexity: Advanced
|
|
10
|
+
version: "1.0.0"
|
|
14
11
|
tags: [workflow, audit, ux, gap-analysis, mcp]
|
|
15
|
-
author: vheins
|
|
16
12
|
---
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
- **Testing**: Scenarios.
|
|
52
|
-
|
|
53
|
-
## 4. LOGGING & MULTI-TASK
|
|
54
|
-
- Log architectural/feature changes as `type: decision` via `memory-store`.
|
|
55
|
-
- Log reusable coding rules as `standard-store` only when the rule is durable and source-backed.
|
|
56
|
-
- Use Parent/Child structure for complex gaps.
|
|
57
|
-
|
|
58
|
-
## 5. SELF-CHECK
|
|
59
|
-
- ❌ No implementation.
|
|
60
|
-
- ✅ ONLY MCP tool calls.
|
|
13
|
+
|
|
14
|
+
## FSM
|
|
15
|
+
|
|
16
|
+
Entry=S0 → S1 → S2 → S3 Exit=done
|
|
17
|
+
Guard: S(N) req S(N-1)✅; NO code/edit/delete — read+MCP tools ONLY
|
|
18
|
+
|
|
19
|
+
S0 | sequential discovery: docs → code → UI (chrome-dev-tools) | — | findings | —
|
|
20
|
+
S1 | pre-task analysis: memory-search (0.55 threshold) + standard-search + handoff-list + task-list dedup | S0✅ | context | —
|
|
21
|
+
S2 | design tasks: atomic, attributes (task_code, phase, priority, agent, model), strict description format | S1✅ | task specs | —
|
|
22
|
+
S3 | create via task-create + log decisions via memory-store + standard-store for coding rules | S2✅ | MCP tasks | —
|
|
23
|
+
|
|
24
|
+
## Description Format (STRICT — used in S2)
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
### 1. Context & Analysis
|
|
28
|
+
- **Trigger**: Instruction/finding.
|
|
29
|
+
- **Observation**: Technical reasoning.
|
|
30
|
+
- **Goal**: Clear objective.
|
|
31
|
+
### 2. Step & Implementation
|
|
32
|
+
- Detailed execution steps per path/layer.
|
|
33
|
+
### 3. Acceptance & Verification
|
|
34
|
+
- **Checklist**: `[ ]` criteria.
|
|
35
|
+
- **Testing**: Scenarios.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Priority Scale
|
|
39
|
+
|
|
40
|
+
`1=Low` `2=Normal` `3=Medium` `4=High` `5=Critical`
|
|
41
|
+
|
|
42
|
+
## Logging
|
|
43
|
+
|
|
44
|
+
- Decisions → `memory-store` (type=decision)
|
|
45
|
+
- Reusable coding rules → `standard-store` (only if durable + source-backed)
|
|
46
|
+
- Complex gaps → parent/child structure
|
|
@@ -12,43 +12,31 @@ arguments:
|
|
|
12
12
|
description: Module, feature, or component to audit.
|
|
13
13
|
required: false
|
|
14
14
|
agent: Quality Auditor
|
|
15
|
-
version: "1.0.0"
|
|
16
15
|
category: workflows
|
|
16
|
+
version: "1.0.0"
|
|
17
17
|
tags: [workflow, audit, github, issue-triage]
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## 1. ANALYSIS
|
|
23
|
-
1. **Sequential Discovery**: Explore docs and code sequentially. NO parallel sub-agents.
|
|
24
|
-
2. **UX Audit**: If applicable, use `chrome-dev-tools` for visual, navigation, and responsiveness checks.
|
|
25
|
-
3. **Compare**: Match findings against live UI to find gaps/misalignments.
|
|
26
|
-
|
|
27
|
-
## 🚫 FORBIDDEN: NON-EXECUTION
|
|
28
|
-
DO NOT edit/create/delete files, run commands, or implement code.
|
|
29
|
-
**Allowed**: Read code, `chrome-dev-tools`, `memory-search`, GitHub `search_issues`, `issue_write`.
|
|
20
|
+
## FSM
|
|
30
21
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
No prose. No external plans.
|
|
22
|
+
Entry=S0 → S1 → S2 → S3 Exit=done
|
|
23
|
+
Guard: S(N) req S(N-1)✅; NO code/edit/delete — GitHub+MCP tools ONLY
|
|
34
24
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
25
|
+
S0 | sequential discovery: docs → code → UI (chrome-dev-tools if applicable) | — | findings | —
|
|
26
|
+
S1 | pre-issue analysis: memory-search (0.55 threshold) + search_issues dedup (comment on related if distinct) | S0✅ | context | —
|
|
27
|
+
S2 | design issues: atomic, strict body format, labels | S1✅ | issue specs | —
|
|
28
|
+
S3 | create via issue_write(method=create) | S2✅ | GitHub issues | —
|
|
38
29
|
|
|
39
|
-
##
|
|
40
|
-
- **Atomic**: One change per issue.
|
|
41
|
-
- **Body** (STRICT FORMAT):
|
|
42
|
-
### 1. Context & Analysis
|
|
43
|
-
- **Finding**: Gap trigger.
|
|
44
|
-
- **Observation**: Reasoning.
|
|
45
|
-
- **Goal**: Clear objective.
|
|
46
|
-
### 2. Target Files & Implementation
|
|
47
|
-
- Path/layer specific changes.
|
|
48
|
-
### 3. Acceptance & Verification
|
|
49
|
-
- **Checklist**: `[ ]` criteria.
|
|
50
|
-
- **Testing**: Scenarios.
|
|
30
|
+
## Issue Body Format (STRICT — used in S2)
|
|
51
31
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-
|
|
32
|
+
```
|
|
33
|
+
### 1. Context & Analysis
|
|
34
|
+
- **Trigger**: Instruction/finding.
|
|
35
|
+
- **Observation**: Technical reasoning.
|
|
36
|
+
- **Goal**: Clear objective.
|
|
37
|
+
### 2. Step & Implementation
|
|
38
|
+
- Detailed execution steps per path/layer.
|
|
39
|
+
### 3. Acceptance & Verification
|
|
40
|
+
- **Checklist**: `[ ]` criteria.
|
|
41
|
+
- **Testing**: Scenarios.
|
|
42
|
+
```
|
|
@@ -12,20 +12,19 @@ arguments:
|
|
|
12
12
|
description: Logs, errors, metrics.
|
|
13
13
|
required: false
|
|
14
14
|
agent: Diagnostic Lead
|
|
15
|
-
version: "1.0.0"
|
|
16
15
|
category: debugging
|
|
16
|
+
version: "1.0.0"
|
|
17
17
|
tags: [root-cause, 5-why, debugging, diagnosis]
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
## FSM
|
|
21
|
+
|
|
22
|
+
Entry=S0 → S1 → S2 → S3 Exit=diagnosis
|
|
23
|
+
Guard: S(N) req S(N-1)✅
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
S0 | restate symptom: technical problem statement | tech_stack + bug_description provided? | symptom statement | —
|
|
26
|
+
S1 | 5-why analysis: causal chain from symptom to core failure | S0✅ | causal chain | —
|
|
27
|
+
S2 | identify root cause: "root cause is [X] because [Y], allowing [Z]" | S1✅ | root cause | —
|
|
28
|
+
S3 | recommend fix addressing root cause + prevention (monitoring/test) | S2✅ | recommendation | —
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
1. **Symptom**: Technical problem restatement.
|
|
28
|
-
2. **5-Whys**: Causal chain from symptom to core failure.
|
|
29
|
-
3. **Root Cause**: "The root cause is [X] because [Y], allowing [Z]."
|
|
30
|
-
4. **Recommendation**: Fix addressing root cause.
|
|
31
|
-
5. **Prevention**: Monitoring/testing measure.
|
|
30
|
+
Stack: {{tech_stack}} Bug: {{bug_description}} Symptoms: {{symptoms}}
|
|
@@ -12,20 +12,20 @@ arguments:
|
|
|
12
12
|
description: Usage context.
|
|
13
13
|
required: false
|
|
14
14
|
agent: Security Engineer
|
|
15
|
-
version: "1.0.0"
|
|
16
15
|
category: debugging
|
|
16
|
+
version: "1.0.0"
|
|
17
17
|
tags: [security, triage, vulnerability, cvss, appsec]
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
## FSM
|
|
21
|
+
|
|
22
|
+
Entry=S0 → S1 → S2 → S3 → S4 Exit=assessment
|
|
23
|
+
Guard: S(N) req S(N-1)✅
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
S0 | classify: type, CVE, CVSS vector, score | tech_stack + vuln_report provided? | classification | —
|
|
26
|
+
S1 | assess exploitability: reachability + attack scenarios | S0✅ | exploit scenarios | —
|
|
27
|
+
S2 | assess impact: CIA triad | S1✅ | impact assessment | —
|
|
28
|
+
S3 | remediate: priority P0-P3 + fix steps | S2✅ | remediation plan | —
|
|
29
|
+
S4 | verify: testing method to confirm fix | S3✅ | verification plan | —
|
|
25
30
|
|
|
26
|
-
|
|
27
|
-
1. **Classification**: Type, CVE, CVSS, vector.
|
|
28
|
-
2. **Exploitability**: Reachability & scenarios.
|
|
29
|
-
3. **Impact**: CIA impact.
|
|
30
|
-
4. **Remediation**: Priority (P0-P3) & fix steps.
|
|
31
|
-
5. **Verification**: Testing method.
|
|
31
|
+
Stack: {{tech_stack}} Report: {{vulnerability_report}} Context: {{codebase_context}}
|
|
@@ -9,28 +9,19 @@ arguments:
|
|
|
9
9
|
description: Production context (SLA, data, conventions).
|
|
10
10
|
required: false
|
|
11
11
|
agent: Principal Reviewer
|
|
12
|
-
version: "1.
|
|
12
|
+
version: "1.2.0"
|
|
13
13
|
category: coding
|
|
14
14
|
tags: [code-review, production-readiness, security, observability, senior-review, architecture]
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
## FSM
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
Entry=S0 → S1 → S2 → S3 Exit=decision
|
|
20
|
+
Guard: S(N) req S(N-1)✅; cite code evidence only; ONE fix option per finding
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
4. **Observability**: Logs, metrics, traces.
|
|
27
|
-
5. **Testing**: Coverage & quality.
|
|
28
|
-
6. **Docs**: Clarity & accuracy.
|
|
22
|
+
S0 | audit 6 dimensions: errors, security, performance (N+1, cache, complexity), observability (logs, metrics, traces), testing (coverage, quality), docs (clarity) | tech_stack provided? | findings[] | —
|
|
23
|
+
S1 | check cross-domain invariants: lifecycle, concurrency guard, derived state, upload safety, file>500→refactor, doc hierarchy | S0✅ | invariant results | —
|
|
24
|
+
S2 | assign severity: CRITICAL (bug/data loss) | HIGH (concurrency/arch) | MEDIUM (maintainability) | LOW (cosmetic) | S0-1✅ | scored findings | —
|
|
25
|
+
S3 | produce: DECISION (APPROVE|REQUEST_CHANGES|NOT_READY) + SEVERITY_SCORE + MESSAGE (blockers only) | S2✅ | review decision | —
|
|
29
26
|
|
|
30
|
-
|
|
31
|
-
- **Severity**: P0-P3.
|
|
32
|
-
- **Problem**: What & why.
|
|
33
|
-
- **Location**: Path/function.
|
|
34
|
-
- **Fix**: Actionable step.
|
|
35
|
-
|
|
36
|
-
Verdict: READY | READY WITH MINOR FIXES | NOT READY
|
|
27
|
+
Stack: {{tech_stack}} Context: {{context}}
|
|
@@ -6,46 +6,24 @@ arguments:
|
|
|
6
6
|
description: The full URL of the GitHub issue to resolve.
|
|
7
7
|
required: true
|
|
8
8
|
agent: SENTINEL Issue Resolver
|
|
9
|
-
version: "1.0.0"
|
|
10
|
-
license: Proprietary — Personal Use Only
|
|
11
9
|
category: workflows
|
|
12
|
-
|
|
13
|
-
complexity: Advanced
|
|
10
|
+
version: "1.0.0"
|
|
14
11
|
tags: [workflow, github, issue-resolution, sentinel]
|
|
15
|
-
author: vheins
|
|
16
12
|
---
|
|
17
13
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
You are **SENTINEL**, an elite issue resolution agent. Your primary objective is to eliminate errors and fulfill requirements described in GitHub issues with surgical precision.
|
|
21
|
-
|
|
22
|
-
## 1. INTELLIGENCE GATHERING
|
|
23
|
-
1. **Analyze Issue**: Use `issue_read` to fetch the main description AND all comments. Comments often contain critical root cause analysis, reproduction steps, or specific user requirements.
|
|
24
|
-
2. **Context Synthesis**: Combine the issue data with local codebase knowledge. Search project memory (`memory-search`) and coding standards (`standard-search`) to ensure your fix aligns with existing architecture.
|
|
25
|
-
3. **Task Registration**: Use `task-create` to register your plan in MCP. Link the task to the GitHub Issue URL in the metadata.
|
|
26
|
-
|
|
27
|
-
## 2. EXECUTION & RESOLUTION
|
|
28
|
-
1. **Claim Work**: Use `task-claim` for the generated task.
|
|
29
|
-
2. **Implement Fix**: Perform the necessary code changes. Ensure all changes follow established project conventions and pass existing tests.
|
|
30
|
-
3. **Validate**: Run tests and linters to verify the fix. Perform end-to-end verification if applicable.
|
|
31
|
-
|
|
32
|
-
## 3. FINALIZATION & COMMIT
|
|
33
|
-
1. **Identity**: Use the local Git configuration (name/email) for all commits.
|
|
34
|
-
2. **Commit Format**: Every commit MUST follow this specific structure:
|
|
35
|
-
```
|
|
36
|
-
type(scope): your commit message
|
|
37
|
-
|
|
38
|
-
- {{task_title}}
|
|
39
|
-
{{summary_task}}
|
|
40
|
-
|
|
41
|
-
{{keyword}} #{{issue_number}}
|
|
42
|
-
```
|
|
43
|
-
Use `fix` for bug fixes, `closes` for features/chores, `resolve` as general. Extract the issue number from the provided `issue_url`.
|
|
14
|
+
## FSM
|
|
44
15
|
|
|
45
|
-
|
|
46
|
-
|
|
16
|
+
Entry=S0 → S1 → S2 → S3 → S4 → S5 → S6 → S7 → S8 Exit=resolved
|
|
17
|
+
Guard: S(N) req S(N-1)✅; autonomous — no permission per step
|
|
47
18
|
|
|
48
|
-
|
|
49
|
-
|
|
19
|
+
S0 | fetch: issue_read body + ALL comments (get_comments) | issue_url provided? | raw issue + all comments | —
|
|
20
|
+
S1 | analyze comments: extract requirements, hints, root cause clues, reproduction steps, error details | S0✅ | comment analysis | —
|
|
21
|
+
S2 | detect attachments: parse all comments for image/video markdown URLs, linked assets | S1✅ | attachment URL list | —
|
|
22
|
+
S3 | download: gh CLI (gh issue view, gh api) to fetch each attachment — private repo, NO curl | S2✅ & attachments exist? | local files | —
|
|
23
|
+
S4 | analyze attachments: inspect screenshots/videos for UI bugs, error states, configs, visual hints | S3✅ | attachment analysis | —
|
|
24
|
+
S5 | research: memory-search + standard-search + codebase exploration (trace call sites, read docs) | S0-4✅ | full context | —
|
|
25
|
+
S6 | register: task-create (link issue URL) + task-claim + task-update→in_progress | S5✅ | MCP task | —
|
|
26
|
+
S7 | implement fix + validate: tests, linters, e2e | S6✅ | verified changes | —
|
|
27
|
+
S8 | finalize: commit (type(scope): msg — fix #N) + task-update→completed + issue comment summary | S7✅ | resolution | —
|
|
50
28
|
|
|
51
|
-
Target
|
|
29
|
+
Target: {{issue_url}}
|
|
@@ -2,41 +2,44 @@
|
|
|
2
2
|
name: server-instructions
|
|
3
3
|
description: Main instructions for the MCP server
|
|
4
4
|
---
|
|
5
|
+
|
|
5
6
|
Local Memory MCP — persistent memory, task coordination, and coding standards for AI agents.
|
|
6
7
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
## Session Start FSM
|
|
9
|
+
|
|
10
|
+
Entry=orient → hydrate → ready Guard: S(N) req S(N-1)✅
|
|
11
|
+
|
|
12
|
+
S0 | task-list (active/pending) + handoff-list(pending; close stale via handoff-update) | session start? | active tasks + transfers | —
|
|
13
|
+
S1 | memory-search + memory-synthesize (architectural context) + standard-search(MANDATORY before code/test/refactor/migrate — task intent, lang, stack, repo filters) | S0✅ | hydrated context | —
|
|
14
|
+
S2 | continue to task or respond | S1✅ | ready | —
|
|
13
15
|
|
|
14
16
|
## Core Workflows
|
|
15
17
|
|
|
16
|
-
**Memory**:
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- Create
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
## Available Prompts (
|
|
18
|
+
**Memory**: memory-search → memory-detail → memory-store | memory-update
|
|
19
|
+
|
|
20
|
+
- Durable only (arch, patterns, decisions, fixes)
|
|
21
|
+
- memory-acknowledge after code gen from memory
|
|
22
|
+
- Global scope = cross-repo only; prefer repo-specific
|
|
23
|
+
|
|
24
|
+
**Tasks**: task-list → task-claim → task-update(in_progress) → task-update(completed)
|
|
25
|
+
|
|
26
|
+
- Register via task-create before execution
|
|
27
|
+
- NEVER skip in_progress
|
|
28
|
+
- Commit: `type(scope): [task-code] message` + `- [Title]` + ` [Summary]`
|
|
29
|
+
- Complete auto-releases claims + expires linked handoffs
|
|
30
|
+
|
|
31
|
+
**Standards**: standard-search → standard-store
|
|
32
|
+
|
|
33
|
+
- MANDATORY pre-implementation gate
|
|
34
|
+
- 1 rule/entry, normative contract
|
|
35
|
+
|
|
36
|
+
**Handoffs/Claims**: handoff-list → handoff-create | handoff-update | task-claim | claim-release
|
|
37
|
+
|
|
38
|
+
- Create ONLY for unfinished work (concrete next owner/steps)
|
|
39
|
+
- NO handoff for completion summaries → use task-update comments
|
|
40
|
+
|
|
41
|
+
## Available Prompts (slash commands)
|
|
42
|
+
|
|
40
43
|
- `session-planner` — orient and plan at session start
|
|
41
44
|
- `task-memory-executor` — execute tasks with memory and standard enforcement
|
|
42
45
|
- `senior-code-review` — full code review against stored standards
|
|
@@ -6,21 +6,21 @@ arguments:
|
|
|
6
6
|
description: High-level session goal.
|
|
7
7
|
required: true
|
|
8
8
|
agent: Strategy Lead
|
|
9
|
-
version: "1.0.0"
|
|
10
9
|
category: workflows
|
|
10
|
+
version: "1.0.0"
|
|
11
11
|
tags: [workflow, planning, task-breakdown]
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
## FSM
|
|
15
|
+
|
|
16
|
+
Entry=S0 → S1 → S2 → S3 → S4 → S5 Exit=planned
|
|
17
|
+
Guard: S(N) req S(N-1)✅
|
|
15
18
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
6. **Hierarchy**: Use `parent_id` / `depends_on` for sequencing.
|
|
23
|
-
7. **Priority Scale**: When creating tasks, use the exact MCP scale `1=Low`, `2=Normal`, `3=Medium`, `4=High`, `5=Critical`. Higher number means higher urgency.
|
|
24
|
-
8. **Create**: Use `task-create` in current repo with stable `task_code`, tags, and acceptance criteria.
|
|
19
|
+
S0 | orient: task-list (avoid dupes) + standard-search (if code edits) + handoff-list (close stale) | objective provided? | existing state | —
|
|
20
|
+
S1 | analyze: break into 3-7 atomic verifiable tasks | S0✅ | task breakdown | —
|
|
21
|
+
S2 | phase: group into research / implementation / validation | S1✅ | phased tasks | —
|
|
22
|
+
S3 | hierarchy: parent_id + depends_on for sequencing; priority 1-5 scale | S2✅ | structured plan | —
|
|
23
|
+
S4 | create via task-create (stable task_code, tags, acceptance criteria) | S3✅ | MCP tasks | —
|
|
24
|
+
S5 | display final plan to user | S4✅ | user output | —
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Objective: {{objective}}
|
|
@@ -3,36 +3,27 @@ name: task-management-guidelines
|
|
|
3
3
|
description: Task tracking & progress management standards.
|
|
4
4
|
arguments: []
|
|
5
5
|
agent: Project Manager
|
|
6
|
-
version: "1.0.0"
|
|
7
|
-
license: Proprietary — Personal Use Only
|
|
8
6
|
category: workflows
|
|
9
|
-
|
|
10
|
-
complexity: Beginner
|
|
7
|
+
version: "1.0.0"
|
|
11
8
|
tags: [workflow, tasks, status-management, mcp]
|
|
12
|
-
author: vheins
|
|
13
9
|
---
|
|
14
|
-
# Task Management Standards
|
|
15
10
|
|
|
16
|
-
##
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
## FSM — Task Lifecycle
|
|
12
|
+
|
|
13
|
+
Entry=S0 → S1 → S2 → S3 → S4 Exit=done|archived
|
|
14
|
+
Guard: S(N) req S(N-1)✅; MUST transition backlog/pending → in_progress → completed
|
|
15
|
+
|
|
16
|
+
S0 | plan: task-create for full lifecycle (Research→Strategy→Execution→Validation) | — | tasks | —
|
|
17
|
+
S1 | claim: task-claim with task_code; inspect via claim-list | S0✅, not claimed by others | ownership | —
|
|
18
|
+
S2 | progress: task-update → in_progress | S1✅ | active work | —
|
|
19
|
+
S3 | validate: tests pass / explicit doc why verification skipped | S2✅ | evidence | —
|
|
20
|
+
S4 | complete: task-update → completed (auto-releases claims, expires handoffs, archives) | S3✅ | completion | —
|
|
21
|
+
|
|
22
|
+
## FSM — Navigation
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- **Memory**: Call `memory-detail` for full entry content.
|
|
26
|
-
- **Standards**: Call `standard-search` before any code edit, test edit, refactor, migration, or implementation decision. If no relevant standards are returned, continue and state that no applicable standards were found.
|
|
27
|
-
- **Handoffs**: Call `handoff-list` to discover pending context transfers before starting a task. Close stale handoffs with `handoff-update` when no concrete next owner, unfinished task, or blocker remains.
|
|
24
|
+
Entry=S0 → S1 → S2 Exit=mutated
|
|
25
|
+
Guard: S(N) req S(N-1)✅
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- **Automatic Cleanup**: `task-update` to `completed` or `canceled` automatically releases active claims and expires pending handoffs linked to that task.
|
|
33
|
-
- **Claiming**: Use `task-claim` when taking ownership of a task, with `task_code` when working from human-visible queues.
|
|
34
|
-
- **Claim Inspection**: Use `claim-list` when ownership is unclear or when triaging stale work.
|
|
35
|
-
- **Claim Release**: Use `claim-release` to clear stale ownership explicitly when a task is being handed back or reassigned.
|
|
36
|
-
- **Handoff**: Use `handoff-create` only when pausing or transferring unfinished work. Do not use pending handoffs for completion summaries; close consumed/stale handoffs with `handoff-update`.
|
|
37
|
-
- **Validation**: Only mark `completed` after passing tests or explicitly documenting why verification could not run.
|
|
38
|
-
- **Archiving**: Completion triggers auto-archive to `task_archive` memory with token reporting.
|
|
27
|
+
S0 | list: task-list (in_progress, pending) | — | pointer table | —
|
|
28
|
+
S1 | detail: task-detail after selecting (includes claims + handoffs) | S0✅ | full context | —
|
|
29
|
+
S2 | mutate: task-create | task-update | task-delete | S1✅ | changed | —
|