@theihtisham/agent-shadow-brain 7.0.0 → 7.2.0

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 (79) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +36 -396
  3. package/dist/brain/auto-update.js +1 -1
  4. package/dist/brain/brain-portability.js +1 -1
  5. package/dist/brain/context-assembly.d.ts +58 -0
  6. package/dist/brain/context-assembly.d.ts.map +1 -0
  7. package/dist/brain/context-assembly.js +207 -0
  8. package/dist/brain/context-assembly.js.map +1 -0
  9. package/dist/brain/feature-settings.d.ts +53 -0
  10. package/dist/brain/feature-settings.d.ts.map +1 -0
  11. package/dist/brain/feature-settings.js +232 -0
  12. package/dist/brain/feature-settings.js.map +1 -0
  13. package/dist/brain/global-brain.d.ts +1 -0
  14. package/dist/brain/global-brain.d.ts.map +1 -1
  15. package/dist/brain/global-brain.js +3 -3
  16. package/dist/brain/global-brain.js.map +1 -1
  17. package/dist/brain/mcp-server.d.ts +4 -0
  18. package/dist/brain/mcp-server.d.ts.map +1 -1
  19. package/dist/brain/mcp-server.js +81 -5
  20. package/dist/brain/mcp-server.js.map +1 -1
  21. package/dist/brain/orchestrator.js +1 -1
  22. package/dist/brain/subconscious.d.ts +19 -24
  23. package/dist/brain/subconscious.d.ts.map +1 -1
  24. package/dist/brain/subconscious.js +77 -218
  25. package/dist/brain/subconscious.js.map +1 -1
  26. package/dist/brain/task-workflow.d.ts +22 -0
  27. package/dist/brain/task-workflow.d.ts.map +1 -0
  28. package/dist/brain/task-workflow.js +182 -0
  29. package/dist/brain/task-workflow.js.map +1 -0
  30. package/dist/brain/workflow-skills.d.ts +86 -0
  31. package/dist/brain/workflow-skills.d.ts.map +1 -0
  32. package/dist/brain/workflow-skills.js +514 -0
  33. package/dist/brain/workflow-skills.js.map +1 -0
  34. package/dist/cli.js +6 -2
  35. package/dist/cli.js.map +1 -1
  36. package/dist/context-cli.d.ts +3 -0
  37. package/dist/context-cli.d.ts.map +1 -0
  38. package/dist/context-cli.js +54 -0
  39. package/dist/context-cli.js.map +1 -0
  40. package/dist/dashboard/server.d.ts +1 -0
  41. package/dist/dashboard/server.d.ts.map +1 -1
  42. package/dist/dashboard/server.js +32 -4
  43. package/dist/dashboard/server.js.map +1 -1
  44. package/dist/dashboard/v6-dashboard-html.d.ts +1 -1
  45. package/dist/dashboard/v6-dashboard-html.d.ts.map +1 -1
  46. package/dist/dashboard/v6-dashboard-html.js +5 -27
  47. package/dist/dashboard/v6-dashboard-html.js.map +1 -1
  48. package/dist/dashboard/workspace-api.d.ts +10 -0
  49. package/dist/dashboard/workspace-api.d.ts.map +1 -0
  50. package/dist/dashboard/workspace-api.js +193 -0
  51. package/dist/dashboard/workspace-api.js.map +1 -0
  52. package/dist/dashboard/workspace-html.d.ts +2 -0
  53. package/dist/dashboard/workspace-html.d.ts.map +1 -0
  54. package/dist/dashboard/workspace-html.js +1555 -0
  55. package/dist/dashboard/workspace-html.js.map +1 -0
  56. package/dist/index.d.ts +8 -0
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +4 -0
  59. package/dist/index.js.map +1 -1
  60. package/dist/types.d.ts +4 -2
  61. package/dist/types.d.ts.map +1 -1
  62. package/dist/workflow-cli.d.ts +3 -0
  63. package/dist/workflow-cli.d.ts.map +1 -0
  64. package/dist/workflow-cli.js +100 -0
  65. package/dist/workflow-cli.js.map +1 -0
  66. package/docs/WORKFLOW_INTEGRATION.md +105 -0
  67. package/docs/WORKSPACE.md +70 -0
  68. package/docs/assets/context-flow-v7.2.png +0 -0
  69. package/docs/assets/workspace-graph-v7.2.png +0 -0
  70. package/docs/assets/workspace-overview-v7.2.png +0 -0
  71. package/docs/launch/RELEASE_NOTES_v7.1.0.md +32 -0
  72. package/docs/launch/RELEASE_NOTES_v7.2.0.md +24 -0
  73. package/package.json +111 -207
  74. package/skills/shadow-debug/SKILL.md +16 -0
  75. package/skills/shadow-implement/SKILL.md +16 -0
  76. package/skills/shadow-release/SKILL.md +16 -0
  77. package/skills/shadow-research/SKILL.md +12 -0
  78. package/skills/shadow-review/SKILL.md +14 -0
  79. package/skills/shadow-workflow/SKILL.md +31 -0
@@ -0,0 +1,70 @@
1
+ # Workspace guide
2
+
3
+ Start the local workspace from your project directory.
4
+
5
+ ```bash
6
+ shadow-brain dash . --no-analysis
7
+ ```
8
+
9
+ The CLI binds to `127.0.0.1:7341` by default and opens the workspace. Use `--no-open` to open the printed address yourself, or `--port` to choose another port. `--no-analysis` starts the UI and API without background project analysis.
10
+
11
+ **Overview** shows the memory count, projects and agents represented in the inventory, and recent activity. **Memories** supports project, category, agent, and text filters. **Graph** connects each memory to its project and recording agent. Select a node to inspect its detail. **Context** builds a pack for the task at hand. **Features** changes the runtime controls.
12
+
13
+ The workspace uses up to 2,500 recent memories for its inventory and filter lists. Text search ranks matching records in the selected scope and returns up to 2,500 results. The graph displays up to 180 memories plus their project and agent nodes. The workspace indicates when it is showing a partial view.
14
+
15
+ Visit `/advanced` for the previous dashboard and its existing tools. Its Features page links to the current controls.
16
+
17
+ ## Build context for the task
18
+
19
+ Choose a project and enter a task or a few search terms. Review the selected memories, their recorded references, and the reasons entries were skipped before copying the pack.
20
+
21
+ ```bash
22
+ shadow-brain context-pack "trace retry behavior in the importer" --project . --token-budget 1200 --json
23
+ ```
24
+
25
+ The assembler considers up to 200 ranked candidates and selects up to 12 entries by default. The library supports a maximum of 30 entries. It groups exact content matches within a project after normalizing case and whitespace, keeps the highest-ranked representative, and carries forward bounded source references with their originating memory IDs. Distinct statements remain separate.
26
+
27
+ The size limit applies to the complete Markdown, including labels and references. Long text can appear as a labeled excerpt. The assembler skips oversized entries and checks the remaining candidates. The token estimate is the rendered JavaScript string length divided by four, rounded up. It is a rough sizing guide because model tokenizers count text differently.
28
+
29
+ Context stays within the selected project unless you enable `crossProjectContext` and explicitly request other projects using the workspace option, `--cross-project`, or the MCP/library option. Broader packs label each memory's project. Recorded references come from saved memory metadata. Check them against current sources before relying on a claim.
30
+
31
+ Session-start briefings use the same assembler and budget. They respect the current task, project, allowed agents, and runtime controls. A task can still recall an older relevant lesson.
32
+
33
+ ## Change the runtime controls
34
+
35
+ Set features in the workspace or through the CLI.
36
+
37
+ ```bash
38
+ shadow-brain features list
39
+ shadow-brain features set automaticBriefing off
40
+ shadow-brain features set automaticBriefing on
41
+ ```
42
+
43
+ | ID | Default | What it controls |
44
+ | --- | --- | --- |
45
+ | `contextAssembly` | On | Builds context packs, including the memory context used by session briefings. |
46
+ | `crossProjectContext` | Off | Permits a context request to include other projects when the caller explicitly selects it. |
47
+ | `automaticBriefing` | On | Generates session-start briefings for eligible agents. Turning it off also suppresses previously cached briefings. |
48
+ | `liveActivity` | On | Serves the dashboard activity feed and delivers WebSocket activity events and backlog. Memory storage and other internal events continue operating. |
49
+
50
+ Settings persist in `~/.shadow-brain/feature-settings.json` and take effect on the next relevant operation. The workspace writes validated changes and checks the settings revision before saving. If another client changes the settings first, review the refreshed values and try again. CLI commands accept `--settings <path>` for an explicitly selected file.
51
+
52
+ ## Integrate with a client
53
+
54
+ The read-only MCP tools `context_pack` and `feature_flags` provide context assembly and current feature states. `context_pack` accepts `projectId`, optional `query`, `tokenBudget`, and `includeCrossProject`.
55
+
56
+ The library exports `assembleContext`, `FeatureSettingsStore`, and their types. Pass a recall source and current feature settings to `assembleContext`. Context assembly uses stored memories and recorded references without making model calls.
57
+
58
+ The local dashboard uses these HTTP endpoints.
59
+
60
+ | Method and route | Purpose |
61
+ | --- | --- |
62
+ | `GET /api/workspace/overview` | Workspace totals, projects, recent memories, and current activity state. |
63
+ | `GET /api/workspace/memories` | Filter and page through saved memories. |
64
+ | `GET /api/workspace/graph` | Get project, agent, and memory nodes and their relationships. |
65
+ | `POST /api/workspace/context` | Send a project ID, query, budget, and cross-project choice. |
66
+ | `GET /api/workspace/activity` | Read the activity feed when enabled. |
67
+ | `GET /api/workspace/features` | Read feature settings and their revision. |
68
+ | `POST /api/workspace/features` | Send a boolean `patch` and optional `expectedRevision`. |
69
+
70
+ Install the [bundled workflow skills](WORKFLOW_INTEGRATION.md) separately to give compatible clients task guidance.
@@ -0,0 +1,32 @@
1
+ # Agent Shadow Brain 7.1.0
2
+
3
+ This release adds focused task guidance and project skill installation on top of 7.0.0's durable memory and explained recall.
4
+
5
+ ## Changes
6
+
7
+ - Six bundled skills: workflow selection, implementation, debugging, review, research, and release.
8
+ - Project skill layouts for Codex, Claude Code, OpenCode, and DeepSeek Harness; portable files for other compatible clients.
9
+ - Preview-first installation that preserves project instruction text, detects local edits, validates destinations and stale plans, records ownership, and backs up managed updates.
10
+ - CLI skill catalog/install commands and advisory request analysis with explicit overrides.
11
+ - Read-only MCP guidance tools and public library functions/types.
12
+
13
+ The intended workflow is understand, plan when useful, execute authorized work, and verify. A small question stays a small answer. Plan-only, diagnosis-only, and review-only instructions keep their scope. No provider/model setup, credentials, new runtime dependencies, or global configuration changes are required.
14
+
15
+ ## Start
16
+
17
+ ```bash
18
+ npm install -g @theihtisham/agent-shadow-brain@7.1.0
19
+ # Run in the project root:
20
+ shadow-brain skills install . --target codex
21
+ shadow-brain skills install . --target codex --apply
22
+ ```
23
+
24
+ Choose `claude-code`, `opencode`, `deepseek-harness`, `portable`, or `all` instead as appropriate. See the [integration guide](../WORKFLOW_INTEGRATION.md) for host requirements, updates, conflicts, and examples.
25
+
26
+ ## Verification and limits
27
+
28
+ The release gate covers TypeScript, regression tests, installer preservation/failure scenarios, representative task-routing scenarios, skill frontmatter validation, and an installed npm tarball in a clean consumer project. CI runs on Windows and Linux with Node 22, 24, and 26. Final run counts and publication evidence are recorded in the release report.
29
+
30
+ The router is a deterministic English-language heuristic; host interpretation and explicit options handle ambiguity. The package provides guidance, not autonomous task execution or authorization. Documented host layouts and automated installation tests do not prove that a running host discovered or followed a skill. DeepSeek Harness needs its skill/context plugins enabled.
31
+
32
+ This is an additive 7.x release. No memory-store schema migration is introduced; retain the 7.0.0 upgrade guidance when coming from 6.x.
@@ -0,0 +1,24 @@
1
+ # Agent Shadow Brain 7.2.0
2
+
3
+ Version 7.2 makes it easier to see what agents have saved and choose what to hand to a new session. The default local workspace has five views for overview, memory search, the project and agent graph, context assembly, and feature controls. The previous dashboard remains available at `/advanced`.
4
+
5
+ ## What changed
6
+
7
+ - Context packs rank memories for the selected project and task, collapse exact duplicates, retain recorded source provenance, and explain what fits the rendered budget. Cross-project context requires both a setting and explicit opt-in.
8
+ - Session briefings use the same assembler. Cached briefings follow the current task and feature settings. Disabling automatic briefings suppresses both new and cached output.
9
+ - Four persistent switches control context packs, cross-project access within context packs, automatic briefings, and dashboard activity. The settings store validates updates, detects revision conflicts, and replaces saved settings atomically.
10
+ - The CLI adds `context-pack` and `features list|set`. MCP clients can call `context_pack` and `feature_flags`. Library consumers can import the assembler and settings store directly.
11
+ - The README includes a conceptual memory-flow illustration and screenshots from the running workspace with synthetic data.
12
+
13
+ ## Start the workspace
14
+
15
+ ```bash
16
+ npm install -g @theihtisham/agent-shadow-brain@7.2.0
17
+ shadow-brain dash . --no-analysis
18
+ ```
19
+
20
+ From a second terminal, run `shadow-brain context-pack "import retry behavior" --project . --token-budget 1200` to inspect what an agent would receive for that task.
21
+
22
+ Memory storage keeps schema version 1. The six bundled skills and the existing skill install workflow remain available. If you are coming from 6.x, follow the [7.0 migration notes](RELEASE_NOTES_v7.0.0.md).
23
+
24
+ [Workspace guide](../WORKSPACE.md) · [Skill integration guide](../WORKFLOW_INTEGRATION.md)
package/package.json CHANGED
@@ -1,207 +1,111 @@
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.2.0",
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
+ ],
99
+ "publishConfig": {
100
+ "access": "public"
101
+ },
102
+ "type": "module",
103
+ "repository": {
104
+ "type": "git",
105
+ "url": "git+https://github.com/ihtishaam-dev/agent-shadow-brain.git"
106
+ },
107
+ "bugs": {
108
+ "url": "https://github.com/ihtishaam-dev/agent-shadow-brain/issues"
109
+ },
110
+ "homepage": "https://github.com/ihtishaam-dev/agent-shadow-brain#readme"
111
+ }
@@ -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.