@theihtisham/agent-shadow-brain 7.0.0 → 7.1.3

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.
Files changed (130) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +47 -385
  3. package/dist/activity-cli.d.ts +3 -0
  4. package/dist/activity-cli.d.ts.map +1 -0
  5. package/dist/activity-cli.js +78 -0
  6. package/dist/activity-cli.js.map +1 -0
  7. package/dist/adapters/index.d.ts +2 -1
  8. package/dist/adapters/index.d.ts.map +1 -1
  9. package/dist/adapters/index.js +3 -2
  10. package/dist/adapters/index.js.map +1 -1
  11. package/dist/brain/activity-journal.d.ts +82 -0
  12. package/dist/brain/activity-journal.d.ts.map +1 -0
  13. package/dist/brain/activity-journal.js +314 -0
  14. package/dist/brain/activity-journal.js.map +1 -0
  15. package/dist/brain/activity-reporting.d.ts +14 -0
  16. package/dist/brain/activity-reporting.d.ts.map +1 -0
  17. package/dist/brain/activity-reporting.js +17 -0
  18. package/dist/brain/activity-reporting.js.map +1 -0
  19. package/dist/brain/auto-update.js +1 -1
  20. package/dist/brain/brain-portability.js +1 -1
  21. package/dist/brain/client-integrations.d.ts +61 -0
  22. package/dist/brain/client-integrations.d.ts.map +1 -0
  23. package/dist/brain/client-integrations.js +98 -0
  24. package/dist/brain/client-integrations.js.map +1 -0
  25. package/dist/brain/context-assembly.d.ts +76 -0
  26. package/dist/brain/context-assembly.d.ts.map +1 -0
  27. package/dist/brain/context-assembly.js +305 -0
  28. package/dist/brain/context-assembly.js.map +1 -0
  29. package/dist/brain/feature-settings.d.ts +58 -0
  30. package/dist/brain/feature-settings.d.ts.map +1 -0
  31. package/dist/brain/feature-settings.js +241 -0
  32. package/dist/brain/feature-settings.js.map +1 -0
  33. package/dist/brain/global-brain.d.ts +7 -0
  34. package/dist/brain/global-brain.d.ts.map +1 -1
  35. package/dist/brain/global-brain.js +19 -4
  36. package/dist/brain/global-brain.js.map +1 -1
  37. package/dist/brain/mcp-server.d.ts +23 -1
  38. package/dist/brain/mcp-server.d.ts.map +1 -1
  39. package/dist/brain/mcp-server.js +224 -24
  40. package/dist/brain/mcp-server.js.map +1 -1
  41. package/dist/brain/mcp-stdio.d.ts +12 -0
  42. package/dist/brain/mcp-stdio.d.ts.map +1 -0
  43. package/dist/brain/mcp-stdio.js +134 -0
  44. package/dist/brain/mcp-stdio.js.map +1 -0
  45. package/dist/brain/memory-annotations.d.ts +97 -0
  46. package/dist/brain/memory-annotations.d.ts.map +1 -0
  47. package/dist/brain/memory-annotations.js +388 -0
  48. package/dist/brain/memory-annotations.js.map +1 -0
  49. package/dist/brain/memory-graph.d.ts.map +1 -1
  50. package/dist/brain/memory-graph.js +12 -23
  51. package/dist/brain/memory-graph.js.map +1 -1
  52. package/dist/brain/memory-sources.d.ts +8 -0
  53. package/dist/brain/memory-sources.d.ts.map +1 -0
  54. package/dist/brain/memory-sources.js +27 -0
  55. package/dist/brain/memory-sources.js.map +1 -0
  56. package/dist/brain/orchestrator.js +1 -1
  57. package/dist/brain/subconscious.d.ts +21 -24
  58. package/dist/brain/subconscious.d.ts.map +1 -1
  59. package/dist/brain/subconscious.js +82 -218
  60. package/dist/brain/subconscious.js.map +1 -1
  61. package/dist/brain/task-workflow.d.ts +22 -0
  62. package/dist/brain/task-workflow.d.ts.map +1 -0
  63. package/dist/brain/task-workflow.js +182 -0
  64. package/dist/brain/task-workflow.js.map +1 -0
  65. package/dist/brain/workflow-skills.d.ts +86 -0
  66. package/dist/brain/workflow-skills.d.ts.map +1 -0
  67. package/dist/brain/workflow-skills.js +514 -0
  68. package/dist/brain/workflow-skills.js.map +1 -0
  69. package/dist/cli.js +21 -2
  70. package/dist/cli.js.map +1 -1
  71. package/dist/context-cli.d.ts +3 -0
  72. package/dist/context-cli.d.ts.map +1 -0
  73. package/dist/context-cli.js +56 -0
  74. package/dist/context-cli.js.map +1 -0
  75. package/dist/curation-cli.d.ts +4 -0
  76. package/dist/curation-cli.d.ts.map +1 -0
  77. package/dist/curation-cli.js +118 -0
  78. package/dist/curation-cli.js.map +1 -0
  79. package/dist/dashboard/live-workspace-html.d.ts +2 -0
  80. package/dist/dashboard/live-workspace-html.d.ts.map +1 -0
  81. package/dist/dashboard/live-workspace-html.js +893 -0
  82. package/dist/dashboard/live-workspace-html.js.map +1 -0
  83. package/dist/dashboard/server.d.ts +1 -0
  84. package/dist/dashboard/server.d.ts.map +1 -1
  85. package/dist/dashboard/server.js +53 -18
  86. package/dist/dashboard/server.js.map +1 -1
  87. package/dist/dashboard/v6-dashboard-html.d.ts +1 -1
  88. package/dist/dashboard/v6-dashboard-html.d.ts.map +1 -1
  89. package/dist/dashboard/v6-dashboard-html.js +7 -29
  90. package/dist/dashboard/v6-dashboard-html.js.map +1 -1
  91. package/dist/dashboard/workspace-api.d.ts +16 -0
  92. package/dist/dashboard/workspace-api.d.ts.map +1 -0
  93. package/dist/dashboard/workspace-api.js +309 -0
  94. package/dist/dashboard/workspace-api.js.map +1 -0
  95. package/dist/dashboard/workspace-html.d.ts +2 -0
  96. package/dist/dashboard/workspace-html.d.ts.map +1 -0
  97. package/dist/dashboard/workspace-html.js +2132 -0
  98. package/dist/dashboard/workspace-html.js.map +1 -0
  99. package/dist/index.d.ts +14 -0
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +10 -0
  102. package/dist/index.js.map +1 -1
  103. package/dist/integration-cli.d.ts +3 -0
  104. package/dist/integration-cli.d.ts.map +1 -0
  105. package/dist/integration-cli.js +14 -0
  106. package/dist/integration-cli.js.map +1 -0
  107. package/dist/types.d.ts +12 -3
  108. package/dist/types.d.ts.map +1 -1
  109. package/dist/workflow-cli.d.ts +3 -0
  110. package/dist/workflow-cli.d.ts.map +1 -0
  111. package/dist/workflow-cli.js +100 -0
  112. package/dist/workflow-cli.js.map +1 -0
  113. package/docs/WORKFLOW_INTEGRATION.md +105 -0
  114. package/docs/WORKSPACE.md +111 -0
  115. package/docs/assets/context-flow-v7.2.png +0 -0
  116. package/docs/assets/live-v7.1.3.png +0 -0
  117. package/docs/assets/memory-detail-v7.1.3.png +0 -0
  118. package/docs/assets/overview-v7.1.3.png +0 -0
  119. package/docs/assets/workspace-graph-v7.2.png +0 -0
  120. package/docs/assets/workspace-overview-v7.2.png +0 -0
  121. package/docs/launch/RELEASE_NOTES_v7.1.0.md +32 -0
  122. package/docs/launch/RELEASE_NOTES_v7.1.3.md +40 -0
  123. package/docs/launch/RELEASE_NOTES_v7.2.0.md +24 -0
  124. package/package.json +112 -207
  125. package/skills/shadow-debug/SKILL.md +16 -0
  126. package/skills/shadow-implement/SKILL.md +16 -0
  127. package/skills/shadow-release/SKILL.md +16 -0
  128. package/skills/shadow-research/SKILL.md +12 -0
  129. package/skills/shadow-review/SKILL.md +14 -0
  130. package/skills/shadow-workflow/SKILL.md +31 -0
package/package.json CHANGED
@@ -1,207 +1,112 @@
1
- {
2
- "name": "@theihtisham/agent-shadow-brain",
3
- "version": "7.0.0",
4
- "description": "Local-first memory and coordination layer for AI coding agents. Shadow Brain stores source-backed project lessons, recalls them across Codex, Claude Code, Cursor, Cline, OpenCode, and other tools, generates resume briefings, audits memory quality, exports training/eval JSONL, and exposes CLI/API/MCP surfaces with zero telemetry.",
5
- "main": "dist/index.js",
6
- "exports": {
7
- ".": "./dist/index.js"
8
- },
9
- "bin": {
10
- "shadow-brain": "dist/cli.js",
11
- "asb": "dist/cli.js"
12
- },
13
- "scripts": {
14
- "build": "tsc",
15
- "dev": "ts-node src/cli.ts",
16
- "watch": "tsc --watch",
17
- "test": "vitest run",
18
- "lint": "tsc --noEmit",
19
- "verify": "npm run build && npm test",
20
- "pack:dry": "npm pack --dry-run",
21
- "prepublishOnly": "npm run verify",
22
- "test:package": "node tools/package-smoke.mjs"
23
- },
24
- "keywords": [
25
- "ai",
26
- "agent",
27
- "brain",
28
- "shadow",
29
- "shadow-brain",
30
- "agent-shadow-brain",
31
- "subconscious",
32
- "singleton-brain",
33
- "global-brain",
34
- "session-hook",
35
- "agent-handoff",
36
- "agent-firewall",
37
- "mcp-security",
38
- "prompt-injection",
39
- "secret-scanning",
40
- "auto-attach",
41
- "claude-code",
42
- "claude",
43
- "cursor",
44
- "cursor-ai",
45
- "kilo-code",
46
- "cline",
47
- "opencode",
48
- "codex",
49
- "openai-codex",
50
- "roo-code",
51
- "rovodev",
52
- "aider",
53
- "copilot",
54
- "github-copilot",
55
- "windsurf",
56
- "codeium",
57
- "review",
58
- "intelligence",
59
- "mcp",
60
- "mcp-server",
61
- "model-context-protocol",
62
- "lsp",
63
- "language-server",
64
- "llm",
65
- "anthropic",
66
- "openai",
67
- "gemini",
68
- "ollama",
69
- "deepseek",
70
- "turbo-quant",
71
- "infinite-memory",
72
- "hierarchical-memory",
73
- "context-recall",
74
- "context-injection",
75
- "consensus-engine",
76
- "collective-learning",
77
- "cross-agent",
78
- "cross-project",
79
- "cross-session",
80
- "sssp",
81
- "self-evolution",
82
- "swarm-intelligence",
83
- "knowledge-graph",
84
- "adversarial-defense",
85
- "hallucination-defense",
86
- "bug-prediction",
87
- "pagerank",
88
- "neural-mesh",
89
- "multi-agent",
90
- "agentic",
91
- "agentic-ai",
92
- "zero-config",
93
- "auto-setup",
94
- "dashboard",
95
- "plugin-system",
96
- "brain-export",
97
- "code-analysis",
98
- "developer-tools",
99
- "ai-coding",
100
- "ai-pair-programming",
101
- "coding-assistant",
102
- "smart-fix",
103
- "health-score",
104
- "pattern-memory",
105
- "smart-cache",
106
- "predictive-prefetch",
107
- "code-dna",
108
- "temporal-intelligence",
109
- "fine-tuning",
110
- "intent-engine",
111
- "git-hooks",
112
- "ci-cd",
113
- "team-collaboration",
114
- "developer-productivity",
115
- "trending",
116
- "viral",
117
- "open-source",
118
- "hive-mind",
119
- "subagent-bridge",
120
- "sabb",
121
- "causal-chains",
122
- "dream-engine",
123
- "agent-reputation",
124
- "swarm-debate",
125
- "pre-mortem",
126
- "branch-brain",
127
- "attention-heatmap",
128
- "token-economy",
129
- "formal-verification",
130
- "calibration-monitor",
131
- "air-gap",
132
- "e2e-encryption",
133
- "voice-mode",
134
- "brain-garden",
135
- "pr-review",
136
- "team-brain",
137
- "brain-exchange",
138
- "local-first",
139
- "ollama",
140
- "forgetting-curve",
141
- "sleep-consolidation",
142
- "live-brain",
143
- "resume-pack",
144
- "memory-quality",
145
- "training-jsonl",
146
- "source-backed-memory"
147
- ],
148
- "author": "ihtisham",
149
- "license": "MIT",
150
- "dependencies": {
151
- "@anthropic-ai/sdk": "^1.8.0",
152
- "chalk": "^4.1.2",
153
- "chokidar": "^5.0.0",
154
- "commander": "^12.1.0",
155
- "conf": "^13.0.0",
156
- "diff": "^5.2.0",
157
- "execa": "^9.6.1",
158
- "ink": "^4.4.1",
159
- "inquirer": "^8.2.6",
160
- "marked": "^18.0.2",
161
- "ora": "^9.3.0",
162
- "react": "^18.3.1",
163
- "simple-git": "^4.0.2",
164
- "ws": "^8.22.2",
165
- "zod": "^4.6.7"
166
- },
167
- "devDependencies": {
168
- "@types/diff": "^5.2.3",
169
- "@types/inquirer": "^9.0.7",
170
- "@types/node": "^22.19.0",
171
- "@types/react": "^18.3.0",
172
- "@types/ws": "^8.5.13",
173
- "ts-node": "^10.9.2",
174
- "typescript": "^6.0.3",
175
- "vite": "^8.3.8",
176
- "vitest": "^5.1.0"
177
- },
178
- "engines": {
179
- "node": "^22.12.0 || ^24.0.0 || >=26.0.0"
180
- },
181
- "files": [
182
- "dist/**/*",
183
- "README.md",
184
- "CHANGELOG.md",
185
- "LICENSE",
186
- "docs/launch/RELEASE_CHECKLIST_v6.0.3.md",
187
- "docs/launch/RELEASE_NOTES_v6.0.3.md",
188
- "docs/launch/RELEASE_NOTES_v6.1.0.md",
189
- "docs/launch/RELEASE_NOTES_v6.2.0.md",
190
- "tools/export-resume-pack.mjs",
191
- "tools/record-global-memory.mjs",
192
- "docs/launch/RELEASE_NOTES_v7.0.0.md",
193
- "docs/launch/RELEASE_CHECKLIST_v7.0.0.md"
194
- ],
195
- "publishConfig": {
196
- "access": "public"
197
- },
198
- "type": "module",
199
- "repository": {
200
- "type": "git",
201
- "url": "git+https://github.com/ihtishaam-dev/agent-shadow-brain.git"
202
- },
203
- "bugs": {
204
- "url": "https://github.com/ihtishaam-dev/agent-shadow-brain/issues"
205
- },
206
- "homepage": "https://github.com/ihtishaam-dev/agent-shadow-brain#readme"
207
- }
1
+ {
2
+ "name": "@theihtisham/agent-shadow-brain",
3
+ "version": "7.1.3",
4
+ "description": "Local memory, focused skills, and a visual context workspace for coding agents. Explore memories, build project-scoped context, and control briefings across Codex, Claude Code, OpenCode, and DeepSeek Harness.",
5
+ "main": "dist/index.js",
6
+ "exports": {
7
+ ".": "./dist/index.js"
8
+ },
9
+ "bin": {
10
+ "shadow-brain": "dist/cli.js",
11
+ "asb": "dist/cli.js"
12
+ },
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "dev": "ts-node src/cli.ts",
16
+ "watch": "tsc --watch",
17
+ "test": "vitest run",
18
+ "lint": "tsc --noEmit",
19
+ "verify": "npm run build && npm test",
20
+ "pack:dry": "npm pack --dry-run",
21
+ "prepublishOnly": "npm run verify",
22
+ "test:package": "node tools/package-smoke.mjs"
23
+ },
24
+ "keywords": [
25
+ "ai",
26
+ "coding-agents",
27
+ "agent-memory",
28
+ "local-first",
29
+ "context",
30
+ "context-management",
31
+ "agent-skills",
32
+ "task-workflow",
33
+ "codex",
34
+ "claude-code",
35
+ "opencode",
36
+ "deepseek-harness",
37
+ "mcp",
38
+ "dashboard",
39
+ "knowledge-graph",
40
+ "developer-tools",
41
+ "cross-agent",
42
+ "recall",
43
+ "typescript",
44
+ "cli"
45
+ ],
46
+ "author": "ihtisham",
47
+ "license": "MIT",
48
+ "dependencies": {
49
+ "@anthropic-ai/sdk": "^1.8.0",
50
+ "chalk": "^4.1.2",
51
+ "chokidar": "^5.0.0",
52
+ "commander": "^12.1.0",
53
+ "conf": "^13.0.0",
54
+ "diff": "^5.2.0",
55
+ "execa": "^9.6.1",
56
+ "ink": "^4.4.1",
57
+ "inquirer": "^8.2.6",
58
+ "marked": "^18.0.2",
59
+ "ora": "^9.3.0",
60
+ "react": "^18.3.1",
61
+ "simple-git": "^4.0.2",
62
+ "ws": "^8.22.2",
63
+ "zod": "^4.6.7"
64
+ },
65
+ "devDependencies": {
66
+ "@types/diff": "^5.2.3",
67
+ "@types/inquirer": "^9.0.7",
68
+ "@types/node": "^22.19.0",
69
+ "@types/react": "^18.3.0",
70
+ "@types/ws": "^8.5.13",
71
+ "ts-node": "^10.9.2",
72
+ "typescript": "^6.0.3",
73
+ "vite": "^8.3.8",
74
+ "vitest": "^5.1.0"
75
+ },
76
+ "engines": {
77
+ "node": "^22.12.0 || ^24.0.0 || >=26.0.0"
78
+ },
79
+ "files": [
80
+ "dist/**/*",
81
+ "README.md",
82
+ "CHANGELOG.md",
83
+ "LICENSE",
84
+ "docs/launch/RELEASE_CHECKLIST_v6.0.3.md",
85
+ "docs/launch/RELEASE_NOTES_v6.0.3.md",
86
+ "docs/launch/RELEASE_NOTES_v6.1.0.md",
87
+ "docs/launch/RELEASE_NOTES_v6.2.0.md",
88
+ "tools/export-resume-pack.mjs",
89
+ "tools/record-global-memory.mjs",
90
+ "docs/launch/RELEASE_NOTES_v7.0.0.md",
91
+ "docs/launch/RELEASE_CHECKLIST_v7.0.0.md",
92
+ "skills/**/*",
93
+ "docs/launch/RELEASE_NOTES_v7.1.0.md",
94
+ "docs/WORKFLOW_INTEGRATION.md",
95
+ "docs/assets/*.png",
96
+ "docs/WORKSPACE.md",
97
+ "docs/launch/RELEASE_NOTES_v7.2.0.md",
98
+ "docs/launch/RELEASE_NOTES_v7.1.3.md"
99
+ ],
100
+ "publishConfig": {
101
+ "access": "public"
102
+ },
103
+ "type": "module",
104
+ "repository": {
105
+ "type": "git",
106
+ "url": "git+https://github.com/ihtishaam-dev/agent-shadow-brain.git"
107
+ },
108
+ "bugs": {
109
+ "url": "https://github.com/ihtishaam-dev/agent-shadow-brain/issues"
110
+ },
111
+ "homepage": "https://github.com/ihtishaam-dev/agent-shadow-brain#readme"
112
+ }
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: shadow-debug
3
+ description: Diagnose and fix a reported failure using a reproducible symptom, a focused cause investigation, and regression verification. Use for broken behavior, errors, crashes, or failing checks.
4
+ ---
5
+
6
+ # Diagnose and repair
7
+
8
+ Honor diagnosis-only or analysis-only requests: report the evidence and likely correction without editing files. Continue into repair only when fixing the problem is within the requested scope.
9
+
10
+ Establish the exact symptom, expected behavior, and smallest reproduction available from the request and project. Preserve data and rollback options proportional to the impact. Inspect relevant logs and source without exposing private values.
11
+
12
+ Test a cause hypothesis against evidence before changing multiple layers. Distinguish the failing component from downstream symptoms. If a reproduction is unavailable, make the uncertainty explicit and use a bounded fixture that exercises the suspected path.
13
+
14
+ Fix the cause with a coherent change, then rerun the original reproduction or the closest valid equivalent. Add a meaningful regression test when the failure could recur. Check adjacent behavior affected by the fix, then stop when the acceptance conditions hold.
15
+
16
+ After repeated failures, use the new evidence to revise the hypothesis; do not repeat the same attempt indefinitely or silently reset user state. Report the remaining blocker if the original environment cannot be exercised. A mock, running process, successful build, or isolated fixture is not proof that the user's original scenario works.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: shadow-implement
3
+ description: Implement or improve an explicitly requested project feature while preserving existing behavior and limiting changes to the requested outcome. Use after the goal is understood; not for analysis-only or review-only requests.
4
+ ---
5
+
6
+ # Implement the requested change
7
+
8
+ Trace the existing behavior through the relevant entry point, data flow, and tests before choosing an implementation. Reuse established components and configuration. Turn the requested behavior into a small set of acceptance conditions, including compatibility constraints that matter.
9
+
10
+ For a small edit, make it directly. For a larger change, order the work around dependencies and failure risks; preserve a working intermediate state where practical. Do not add architecture, infrastructure, configuration options, or supporting features just because they might be useful later.
11
+
12
+ Keep unrelated user changes intact. Handle input validation and errors where they affect the actual feature. Make user-facing controls explain meaningful choices instead of implementation details.
13
+
14
+ Verify the affected path with an observable before/after case. Run repository-required checks and targeted tests appropriate to the change. Inspect a produced artifact or running result when build success alone cannot establish correctness. Add regression tests for behavior that can plausibly break; avoid tests that only repeat the implementation.
15
+
16
+ Report what now works, what was verified, and any material limitation. Do not publish or deploy unless the request or existing authorization includes that action. If delivery is authorized, continue through delivery and verify the destination.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: shadow-release
3
+ description: Prepare and verify a requested package or application release, including artifact contents and destination checks. Publish only when the user's request or existing authorization includes publication.
4
+ ---
5
+
6
+ # Release a verified artifact
7
+
8
+ Identify the release target, version, source revision, existing authorization, and relevant project release instructions. Complete required build and behavior checks before publishing. Keep local validation, remote CI, packaging, and live publication as distinct evidence.
9
+
10
+ Inspect the distributable contents and exclude personal state, credentials, temporary files, and development dependencies. Test the actual artifact in a clean consumer or representative destination when packaging can affect behavior. Record its integrity or revision so the reviewed artifact can be matched to the release.
11
+
12
+ Use the already authorized destination and authenticated tooling. Do not inspect credential stores or ask the user to send private authentication values. If the service requires interactive authentication, let the user complete it directly and resume the same release. Do not repeat irreversible publication while a prior attempt is still processing; inspect remote state first.
13
+
14
+ After publishing, verify the destination's version or revision and artifact integrity. Treat an accepted upload, queued build, or processing notice as pending until the artifact is actually available. Preserve rollback information; do not silently unpublish, overwrite a released version, or rewrite existing history.
15
+
16
+ Report the release link, relevant validation, and any remaining availability limitation concisely. Do not create promotional posts, messages, recurring jobs, or unrelated announcements unless requested.
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: shadow-research
3
+ description: Resolve a technical or product question with relevant source evidence and an actionable conclusion. Use when current facts, compatibility, alternatives, or uncertain behavior must be researched before a decision.
4
+ ---
5
+
6
+ # Research for a decision
7
+
8
+ Define the decision or question the evidence must answer. Start with available project documentation and primary sources appropriate to the question. Verify version-sensitive claims against current official documentation or observed behavior. Keep quoted material short and distinguish source claims from inference.
9
+
10
+ Follow leads only while they can change the conclusion. Compare options using the user's actual constraints, not an exhaustive feature inventory. Report disagreement, missing evidence, and whether results are documentation-backed, fixture-tested, or demonstrated in the target environment.
11
+
12
+ Deliver the answer or recommendation with supporting links and practical limits. Research alone does not authorize modifying configuration, installing products, contacting others, or deploying changes. Continue into implementation only when it is part of the requested task.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: shadow-review
3
+ description: Review a requested code change or implementation for actionable correctness, security, data-loss, and compatibility problems. Use for reviews or audits; keep review-only work read-only.
4
+ ---
5
+
6
+ # Review for actionable defects
7
+
8
+ Identify the requested review scope and read the relevant code plus its callers, assumptions, and tests. Prefer concrete defects with a reachable trigger and an observable consequence. Prioritize data loss, broken behavior, authorization mistakes, and compatibility regressions over speculative style preferences.
9
+
10
+ Check whether a suspected issue is already prevented by the surrounding code or established contract. Where useful, reproduce it in an isolated fixture. Label uncertainty rather than reporting an unproven hypothesis as a confirmed defect.
11
+
12
+ For each actionable finding, explain the trigger, consequence, affected location, and a proportionate correction. Do not pad the review with generic hardening lists. If there are no actionable findings, say so and identify only meaningful validation limits.
13
+
14
+ Review-only requests do not authorize edits or publication. If the user also requests fixes, implement the supported corrections, rerun the affected checks, and separate verified fixes from unresolved findings.
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: shadow-workflow
3
+ description: Complete requested project work with proportionate planning, focused execution, and evidence of completion. Use for feature work, repairs, reviews, research, or releases; handle trivial questions and edits directly.
4
+ ---
5
+
6
+ # Focused task workflow
7
+
8
+ Identify the requested outcome, explicit limits, and what would demonstrate completion. Read applicable project instructions and inspect only the context needed for the task. Preserve the user's chosen tools, architecture, and existing work.
9
+
10
+ ## Match effort to the request
11
+
12
+ - For a factual answer, translation, small formatting change, or obvious local edit, act directly. Do not manufacture a plan, tracking files, research, or a test suite.
13
+ - For work with dependencies, uncertain behavior, several affected components, or consequential deployment, form a concrete plan before editing. Tie steps to observable outcomes and revise the plan when evidence changes it.
14
+ - If the user requests planning or analysis only, stop after that deliverable. A request to plan and then implement authorizes continuing into implementation within the requested scope.
15
+ - Ask only when a missing decision materially changes correctness, scope, or permission and cannot be resolved from available evidence. Carry forward existing authorization; do not repeatedly ask to do work already requested.
16
+
17
+ When installed and available, load only the focused skill that helps: `shadow-implement`, `shadow-debug`, `shadow-review`, `shadow-research`, or `shadow-release`. These are separate catalog entries; use the client's skill loader or read their installed SKILL.md. If a focused skill is unavailable, proceed using this workflow and the project instructions. Do not load the entire collection for every request.
18
+
19
+ ## Execute and verify
20
+
21
+ Use the smallest coherent change that fulfills the outcome. Follow project conventions and keep unrelated cleanup, new frameworks, extra dashboards, documentation sets, and speculative features outside scope. Do not silently change provider settings or install tools merely to follow this skill.
22
+
23
+ Choose verification that could reveal a meaningful failure: a regression reproduction, affected tests, build checks, an actual artifact, or a visible result as appropriate. Once relevant checks pass, finish unless a new failure or unresolved concern justifies more work. Distinguish prepared, tested, deployed, and independently observed states.
24
+
25
+ For complex work, existing Shadow Brain memories can help orient the task. Treat memory as fallible reference, verify it against current evidence, and do not copy private credentials or entire conversations into it. The optional `shadow-brain workflow analyze` command returns a heuristic workflow suggestion; the executing agent remains responsible for interpreting intent, permissions, and current evidence. It does not run the task or grant authority.
26
+
27
+ ## Communicate
28
+
29
+ Keep progress updates brief and useful. End with the outcome, essential verification, and any real remaining blocker. Match requested detail; avoid repeated summaries and extra recommendations when the user only needs the completed result. Never claim checks, publication, or client integration that were not actually observed.
30
+
31
+ Client and project permissions remain in force. These instructions do not authorize unrelated publication, destructive operations, external messages, credential access, or changes outside the requested project.