@theihtisham/agent-shadow-brain 7.22.0 → 7.22.1
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/CHANGELOG.md +7 -1
- package/README.md +7 -3
- package/dist/brain/auto-update.js +1 -1
- package/dist/brain/brain-portability.js +1 -1
- package/dist/brain/client-integrations.js +1 -1
- package/dist/brain/context-efficiency.d.ts.map +1 -1
- package/dist/brain/mcp-presence.js +2 -2
- package/dist/brain/mcp-server.js +5 -5
- package/dist/brain/native-codex.js +1 -1
- package/dist/brain/orchestrator.js +1 -1
- package/dist/brain/project-hub-pdf-worker.js +57 -57
- package/dist/brain/project-hub-store.js +11 -11
- package/dist/cli.js +1 -1
- package/dist/dashboard/brain-hub-agent-dock.js +252 -252
- package/dist/dashboard/brain-hub-controls.js +61 -61
- package/dist/dashboard/brain-hub-exchanges.js +80 -80
- package/dist/dashboard/brain-hub-graph.js +336 -336
- package/dist/dashboard/brain-hub-html.js +78 -78
- package/dist/dashboard/brain-hub-live.js +149 -149
- package/dist/dashboard/brain-hub-managed-skills.js +18 -18
- package/dist/dashboard/brain-hub-native.js +42 -42
- package/dist/dashboard/live-workspace-html.js +1 -1
- package/dist/dashboard/project-feedback-html.js +211 -211
- package/dist/dashboard/project-kit-html.js +353 -353
- package/dist/dashboard/server.js +1 -1
- package/dist/dashboard/v6-dashboard-html.js +4261 -4261
- package/dist/dashboard/workspace-api.js +1 -1
- package/dist/dashboard/workspace-html.js +2534 -2534
- package/dist/dashboard/workspace-status.js +1 -1
- package/dist/project-cli.js +1 -1
- package/docs/BRAND_ASSETS.md +36 -36
- package/docs/COMPARISON.md +22 -22
- package/docs/COMPONENTS.md +66 -66
- package/docs/CONTEXT_LAB.md +79 -79
- package/docs/INTEGRATIONS.md +69 -69
- package/docs/LEARNING.md +45 -45
- package/docs/PROJECT_KIT.md +97 -97
- package/docs/SHARING.md +13 -13
- package/docs/SHOWCASE.md +87 -87
- package/docs/STATS.md +21 -21
- package/docs/TROUBLESHOOTING.md +42 -42
- package/docs/UPGRADE_PLAN_v7.0.0.md +203 -203
- package/docs/WORKFLOW_INTEGRATION.md +125 -125
- package/docs/evaluation/CONTEXT_EVALUATION_v7.1.4.json +1818 -1818
- package/docs/evaluation/CONTEXT_EVALUATION_v7.1.4.md +36 -36
- package/docs/launch/COMPONENT_MAP_v7.1.4.md +122 -122
- package/docs/launch/PROJECT_KIT_PLAN_v7.1.4.md +110 -110
- package/docs/launch/PROJECT_LEARNING_PLAN_v7.1.4.md +63 -63
- package/docs/launch/RELEASE_ACCEPTANCE_v7.22.0.md +48 -48
- package/docs/launch/RELEASE_CHECKLIST_v7.0.0.md +24 -24
- package/docs/launch/RELEASE_NOTES_v7.0.0.md +44 -44
- package/docs/launch/RELEASE_NOTES_v7.1.0.md +32 -32
- package/docs/launch/RELEASE_NOTES_v7.1.3.md +40 -40
- package/docs/launch/RELEASE_NOTES_v7.1.4.md +30 -30
- package/docs/launch/RELEASE_NOTES_v7.2.0.md +24 -24
- package/docs/launch/RELEASE_NOTES_v7.22.0.md +53 -53
- package/docs/launch/RELEASE_NOTES_v7.22.1.md +11 -0
- package/docs/launch/RESEARCH_AND_PLAN_v7.1.4.md +255 -255
- package/docs/launch/RESEARCH_AND_PLAN_v7.22.0.md +672 -672
- package/package.json +7 -3
- package/skills/shadow-debug/SKILL.md +16 -16
- package/skills/shadow-implement/SKILL.md +16 -16
- package/skills/shadow-release/SKILL.md +16 -16
- package/skills/shadow-research/SKILL.md +14 -14
- package/skills/shadow-review/SKILL.md +14 -14
- package/skills/shadow-workflow/SKILL.md +39 -39
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
# Focused workflows and project skills
|
|
2
|
-
|
|
3
|
-
Agent Shadow Brain 7.1.0 bundles practical guidance for coding agents. It helps the host select an appropriate workflow, avoid unnecessary extra work, and check the requested result. It does not call a model or run the task on its own. Your host agent supplies the reasoning, tools, permissions, and execution.
|
|
4
|
-
|
|
5
|
-
## Share project work through the Hub
|
|
6
|
-
|
|
7
|
-
From the project directory, launch `shadow-brain project workspace . --port 62595` and open `/hub`. Generate the client’s project-local recipe with `shadow-brain project config . --target codex` or the appropriate target. This routes the browser and host to the same project store.
|
|
8
|
-
|
|
9
|
-
Compatible project-local MCP clients can read and create rooms, exchange recorded evidence, and propose lessons. Use `hub_artifact_read` with the room ID, artifact ID and recorded SHA-256 from `hub_room_read` to retrieve up to 32 KiB of immutable UTF-8 text. Larger or binary artifacts are available through the project workspace. Room actions record the author and accept an operation key for safe retries. Host claims and artifact proposals carry revisions. The operator reviews evidence and controls lesson promotion and rollback.
|
|
10
|
-
|
|
11
|
-
Project-local recall refreshes committed memory before each call and excludes archived, contested, and superseded records. The timeline and memory inspection retain those records for review. Approved PDF passages can be selected by project memory and context tools.
|
|
12
|
-
|
|
13
|
-
```mermaid
|
|
14
|
-
flowchart LR
|
|
15
|
-
Operator[Browser operator] --> Store[Project-local Hub store]
|
|
16
|
-
Host[Configured MCP host] --> Store
|
|
17
|
-
Store --> Work[Rooms, claims, and artifacts]
|
|
18
|
-
Store --> Records[PDF citations and lessons]
|
|
19
|
-
Host --> Journal[Local activity journal]
|
|
20
|
-
Journal --> Operator
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
[Workspace guide](WORKSPACE.md) · [Client recipes](INTEGRATIONS.md)
|
|
24
|
-
|
|
25
|
-
## Choose a client and install
|
|
26
|
-
|
|
27
|
-
Use Node 22.13+ within 22.x, Node 24.x, or Node 26+. Install the package, move to the project root, and preview the files:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm install -g @theihtisham/agent-shadow-brain
|
|
31
|
-
shadow-brain skills install . --target codex
|
|
32
|
-
shadow-brain skills install . --target codex --apply
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
| Target | Skill directory | Project instructions |
|
|
36
|
-
| --- | --- | --- |
|
|
37
|
-
| `codex` | `.agents/skills/<name>/SKILL.md` | `AGENTS.md` |
|
|
38
|
-
| `claude-code` | `.claude/skills/<name>/SKILL.md` | `CLAUDE.md` |
|
|
39
|
-
| `opencode` | `.opencode/skills/<name>/SKILL.md` | `AGENTS.md` |
|
|
40
|
-
| `deepseek-harness` | `.dsh/skills/<name>/SKILL.md` | `AGENTS.md` |
|
|
41
|
-
| `portable` (default) | `.agents/skills/<name>/SKILL.md` | `AGENTS.md` |
|
|
42
|
-
|
|
43
|
-
Use a comma-separated target list or `--target all` for the four native layouts. Existing identical destinations are deduplicated. Prefer only the targets you use: some hosts can discover several compatible roots. Select a smaller catalog with `--skills shadow-workflow,shadow-debug`. `skills targets` prints the supported mappings; `skills show shadow-debug` prints the complete bundled skill.
|
|
44
|
-
|
|
45
|
-
The managed project-instruction section points relevant tasks to the installed skills and defers to user and project constraints. Skill discovery remains a host feature: restart or reload the client if its documentation requires it. For DeepSeek Harness, install at its actual project root (nearest `.git` ancestor, or working directory if there is no repository). Enable the host's filesystem skill provider, registry and skill tool, plus agent-instruction context if you want the `AGENTS.md` pointer. This installer does not change host plugin configuration.
|
|
46
|
-
|
|
47
|
-
Other clients can use the portable layout if they support it, or read an installed `SKILL.md` explicitly. An MCP-capable client can retrieve the same guidance through the tools below. There is no claim that every client automatically discovers these files.
|
|
48
|
-
|
|
49
|
-
## What each skill contributes
|
|
50
|
-
|
|
51
|
-
| Skill | Purpose |
|
|
52
|
-
| --- | --- |
|
|
53
|
-
| `shadow-workflow` | Understand the outcome and constraints, choose the relevant guidance, and scale planning and verification. |
|
|
54
|
-
| `shadow-implement` | Inspect relevant code, make the requested change, and verify affected behavior. |
|
|
55
|
-
| `shadow-debug` | Isolate a failure using evidence; fix it when requested; confirm the original failure is resolved. |
|
|
56
|
-
| `shadow-review` | Report actionable findings with evidence; edit only when the requested scope includes fixes. |
|
|
57
|
-
| `shadow-research` | Check relevant sources, separate facts from inference, and answer the user's question. |
|
|
58
|
-
| `shadow-release` | Prepare and verify an artifact, perform an authorized release, and independently check the destination. |
|
|
59
|
-
|
|
60
|
-
Skills keep trivial questions direct, respect planning/diagnosis/review-only requests, and avoid unrelated rewrites, audits, documents, and tests. They ask for missing input only when it materially blocks correct work. Prior authorization counts; a routine second approval is not required. Available memory can supply fallible context, but memory writes are not compulsory. A useful plan states actions and verification, not private reasoning transcripts.
|
|
61
|
-
|
|
62
|
-
## Preview, updates, and conflicts
|
|
63
|
-
|
|
64
|
-
Without `--apply`, installation performs no writes. The plan shows destination paths, content, actions, hashes, and warnings (`--json` gives the full structure). Application recomputes and validates the plan and checks existing content before changing files.
|
|
65
|
-
|
|
66
|
-
Skills are allowlisted bundled files. Differing unowned files, locally edited managed files or blocks, malformed instruction markers, unsafe paths, and stale previews are rejected. Bytes outside the managed instruction block are preserved. A project-local `.shadow-brain/workflow-skills.json` receipt records ownership hashes so later package upgrades can distinguish managed content from local edits. Commit it with the installed skills if your team shares the installation.
|
|
67
|
-
|
|
68
|
-
Managed updates save original files under `.shadow-brain/workflow-backups/`. Caught write errors trigger best-effort rollback where the files still match this attempt; the installer reports failures instead of silently overwriting concurrent edits. It uses an exclusive project installation lock. Process termination can leave a partial installation and lock; arbitrary concurrent editors are not transactional. Rerun preview after resolving a reported conflict. Do not delete an active lock. After an interrupted process, confirm no installer is running before manually removing an abandoned `.shadow-brain/workflow-skills.lock`.
|
|
69
|
-
|
|
70
|
-
There is no force-overwrite or uninstall command. To remove the integration, review the receipt and installed paths, remove only the selected managed skill files and delimited instruction blocks, and preserve your own additions. Keep backups until the update has been checked. Do not remove a whole shared skills directory.
|
|
71
|
-
|
|
72
|
-
The installer never changes global client settings, selects providers/models, reads authentication stores, starts hosts, or executes skill commands. Installing or upgrading the npm package itself does not install skills into projects.
|
|
73
|
-
|
|
74
|
-
## Advisory request analysis
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
shadow-brain workflow analyze "Fix the failing CSV export" --json
|
|
78
|
-
shadow-brain workflow analyze "Plan a storage migration; do not edit files" --json
|
|
79
|
-
shadow-brain workflow analyze "Review this change" --type review --mode plan-only --json
|
|
80
|
-
shadow-brain workflow analyze --request-file ./task.txt --type implement --complexity complex --json
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Options are `--mode auto|plan-only|execute`, `--type auto|implement|debug|review|research|release`, and `--complexity auto|simple|complex`. Request files must be at most 64 KiB. The router returns task type, mode, relevant skills, bounded steps with completion checks, reasons, authorization categories, and limitations. It does not save requests or create plan files.
|
|
84
|
-
|
|
85
|
-
Automatic classification is a deterministic English-language heuristic, not a language model. Ambiguous, quoted, complex negation, or non-English text may require explicit options and host interpretation. Its suggestions do not grant permission. `requiresAuthorization` identifies external-action categories for the host to check against the user's existing authorization, not an instruction to ask again. Explicit user boundaries remain authoritative even when an execution override is supplied.
|
|
86
|
-
|
|
87
|
-
## Library and MCP
|
|
88
|
-
|
|
89
|
-
```js
|
|
90
|
-
import {
|
|
91
|
-
analyzeTask,
|
|
92
|
-
listBundledSkills,
|
|
93
|
-
getBundledSkill,
|
|
94
|
-
listWorkflowTargets,
|
|
95
|
-
planSkillInstall,
|
|
96
|
-
applySkillInstall,
|
|
97
|
-
} from '@theihtisham/agent-shadow-brain';
|
|
98
|
-
|
|
99
|
-
const workflow = analyzeTask('Diagnose the timeout without changing code');
|
|
100
|
-
const catalog = listBundledSkills();
|
|
101
|
-
const content = getBundledSkill('shadow-debug').content;
|
|
102
|
-
const targets = listWorkflowTargets();
|
|
103
|
-
const plan = planSkillInstall({ projectDir: process.cwd(), targets: ['codex'] });
|
|
104
|
-
// When installation has been requested and the plan is acceptable:
|
|
105
|
-
const installed = applySkillInstall(plan);
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Plans and installation results are synchronous. An apply failure throws; do not treat it as a successful installation. Keep the plan unchanged between preview and apply. Public type exports describe the options and results.
|
|
109
|
-
|
|
110
|
-
Existing Shadow Brain MCP connections expose two additional read-only tools:
|
|
111
|
-
|
|
112
|
-
- `workflow_analyze`: `{ "request": "...", "mode": "auto", "taskType": "auto", "complexity": "auto" }`.
|
|
113
|
-
- `workflow_skills`: `{}` lists names and descriptions; `{ "name": "shadow-debug" }` returns full guidance.
|
|
114
|
-
|
|
115
|
-
These tools do not install files, execute tasks, or call providers. Skill file installation also does not automatically configure MCP or start the memory service. The existing memory tools remain separately available through an explicitly configured integration.
|
|
116
|
-
|
|
117
|
-
## Compatibility evidence
|
|
118
|
-
|
|
119
|
-
These layouts were checked against the official sources below on 2026-11-11. Automated tests validate package contents, installation, preservation, and advisory behavior. They do not establish that a particular running client loaded a skill or that a model followed every instruction.
|
|
120
|
-
|
|
121
|
-
- [Codex skills documentation](https://learn.chatgpt.com/docs/build-skills): project `.agents/skills` discovery and skill frontmatter.
|
|
122
|
-
- [Claude Code skills](https://code.claude.com/docs/en/skills): project `.claude/skills` and on-demand guidance.
|
|
123
|
-
- [OpenCode skills](https://opencode.ai/docs/skills/): native and compatible roots.
|
|
124
|
-
- [DeepSeek Harness filesystem skill provider](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/skill/skill-filesystem/README.md): roots, priority, project-root detection, one-level bundles, and required plugins.
|
|
125
|
-
- [DeepSeek Harness project context](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/context/README.md): agent-instruction context.
|
|
1
|
+
# Focused workflows and project skills
|
|
2
|
+
|
|
3
|
+
Agent Shadow Brain 7.1.0 bundles practical guidance for coding agents. It helps the host select an appropriate workflow, avoid unnecessary extra work, and check the requested result. It does not call a model or run the task on its own. Your host agent supplies the reasoning, tools, permissions, and execution.
|
|
4
|
+
|
|
5
|
+
## Share project work through the Hub
|
|
6
|
+
|
|
7
|
+
From the project directory, launch `shadow-brain project workspace . --port 62595` and open `/hub`. Generate the client’s project-local recipe with `shadow-brain project config . --target codex` or the appropriate target. This routes the browser and host to the same project store.
|
|
8
|
+
|
|
9
|
+
Compatible project-local MCP clients can read and create rooms, exchange recorded evidence, and propose lessons. Use `hub_artifact_read` with the room ID, artifact ID and recorded SHA-256 from `hub_room_read` to retrieve up to 32 KiB of immutable UTF-8 text. Larger or binary artifacts are available through the project workspace. Room actions record the author and accept an operation key for safe retries. Host claims and artifact proposals carry revisions. The operator reviews evidence and controls lesson promotion and rollback.
|
|
10
|
+
|
|
11
|
+
Project-local recall refreshes committed memory before each call and excludes archived, contested, and superseded records. The timeline and memory inspection retain those records for review. Approved PDF passages can be selected by project memory and context tools.
|
|
12
|
+
|
|
13
|
+
```mermaid
|
|
14
|
+
flowchart LR
|
|
15
|
+
Operator[Browser operator] --> Store[Project-local Hub store]
|
|
16
|
+
Host[Configured MCP host] --> Store
|
|
17
|
+
Store --> Work[Rooms, claims, and artifacts]
|
|
18
|
+
Store --> Records[PDF citations and lessons]
|
|
19
|
+
Host --> Journal[Local activity journal]
|
|
20
|
+
Journal --> Operator
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[Workspace guide](WORKSPACE.md) · [Client recipes](INTEGRATIONS.md)
|
|
24
|
+
|
|
25
|
+
## Choose a client and install
|
|
26
|
+
|
|
27
|
+
Use Node 22.13+ within 22.x, Node 24.x, or Node 26+. Install the package, move to the project root, and preview the files:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install -g @theihtisham/agent-shadow-brain
|
|
31
|
+
shadow-brain skills install . --target codex
|
|
32
|
+
shadow-brain skills install . --target codex --apply
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
| Target | Skill directory | Project instructions |
|
|
36
|
+
| --- | --- | --- |
|
|
37
|
+
| `codex` | `.agents/skills/<name>/SKILL.md` | `AGENTS.md` |
|
|
38
|
+
| `claude-code` | `.claude/skills/<name>/SKILL.md` | `CLAUDE.md` |
|
|
39
|
+
| `opencode` | `.opencode/skills/<name>/SKILL.md` | `AGENTS.md` |
|
|
40
|
+
| `deepseek-harness` | `.dsh/skills/<name>/SKILL.md` | `AGENTS.md` |
|
|
41
|
+
| `portable` (default) | `.agents/skills/<name>/SKILL.md` | `AGENTS.md` |
|
|
42
|
+
|
|
43
|
+
Use a comma-separated target list or `--target all` for the four native layouts. Existing identical destinations are deduplicated. Prefer only the targets you use: some hosts can discover several compatible roots. Select a smaller catalog with `--skills shadow-workflow,shadow-debug`. `skills targets` prints the supported mappings; `skills show shadow-debug` prints the complete bundled skill.
|
|
44
|
+
|
|
45
|
+
The managed project-instruction section points relevant tasks to the installed skills and defers to user and project constraints. Skill discovery remains a host feature: restart or reload the client if its documentation requires it. For DeepSeek Harness, install at its actual project root (nearest `.git` ancestor, or working directory if there is no repository). Enable the host's filesystem skill provider, registry and skill tool, plus agent-instruction context if you want the `AGENTS.md` pointer. This installer does not change host plugin configuration.
|
|
46
|
+
|
|
47
|
+
Other clients can use the portable layout if they support it, or read an installed `SKILL.md` explicitly. An MCP-capable client can retrieve the same guidance through the tools below. There is no claim that every client automatically discovers these files.
|
|
48
|
+
|
|
49
|
+
## What each skill contributes
|
|
50
|
+
|
|
51
|
+
| Skill | Purpose |
|
|
52
|
+
| --- | --- |
|
|
53
|
+
| `shadow-workflow` | Understand the outcome and constraints, choose the relevant guidance, and scale planning and verification. |
|
|
54
|
+
| `shadow-implement` | Inspect relevant code, make the requested change, and verify affected behavior. |
|
|
55
|
+
| `shadow-debug` | Isolate a failure using evidence; fix it when requested; confirm the original failure is resolved. |
|
|
56
|
+
| `shadow-review` | Report actionable findings with evidence; edit only when the requested scope includes fixes. |
|
|
57
|
+
| `shadow-research` | Check relevant sources, separate facts from inference, and answer the user's question. |
|
|
58
|
+
| `shadow-release` | Prepare and verify an artifact, perform an authorized release, and independently check the destination. |
|
|
59
|
+
|
|
60
|
+
Skills keep trivial questions direct, respect planning/diagnosis/review-only requests, and avoid unrelated rewrites, audits, documents, and tests. They ask for missing input only when it materially blocks correct work. Prior authorization counts; a routine second approval is not required. Available memory can supply fallible context, but memory writes are not compulsory. A useful plan states actions and verification, not private reasoning transcripts.
|
|
61
|
+
|
|
62
|
+
## Preview, updates, and conflicts
|
|
63
|
+
|
|
64
|
+
Without `--apply`, installation performs no writes. The plan shows destination paths, content, actions, hashes, and warnings (`--json` gives the full structure). Application recomputes and validates the plan and checks existing content before changing files.
|
|
65
|
+
|
|
66
|
+
Skills are allowlisted bundled files. Differing unowned files, locally edited managed files or blocks, malformed instruction markers, unsafe paths, and stale previews are rejected. Bytes outside the managed instruction block are preserved. A project-local `.shadow-brain/workflow-skills.json` receipt records ownership hashes so later package upgrades can distinguish managed content from local edits. Commit it with the installed skills if your team shares the installation.
|
|
67
|
+
|
|
68
|
+
Managed updates save original files under `.shadow-brain/workflow-backups/`. Caught write errors trigger best-effort rollback where the files still match this attempt; the installer reports failures instead of silently overwriting concurrent edits. It uses an exclusive project installation lock. Process termination can leave a partial installation and lock; arbitrary concurrent editors are not transactional. Rerun preview after resolving a reported conflict. Do not delete an active lock. After an interrupted process, confirm no installer is running before manually removing an abandoned `.shadow-brain/workflow-skills.lock`.
|
|
69
|
+
|
|
70
|
+
There is no force-overwrite or uninstall command. To remove the integration, review the receipt and installed paths, remove only the selected managed skill files and delimited instruction blocks, and preserve your own additions. Keep backups until the update has been checked. Do not remove a whole shared skills directory.
|
|
71
|
+
|
|
72
|
+
The installer never changes global client settings, selects providers/models, reads authentication stores, starts hosts, or executes skill commands. Installing or upgrading the npm package itself does not install skills into projects.
|
|
73
|
+
|
|
74
|
+
## Advisory request analysis
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
shadow-brain workflow analyze "Fix the failing CSV export" --json
|
|
78
|
+
shadow-brain workflow analyze "Plan a storage migration; do not edit files" --json
|
|
79
|
+
shadow-brain workflow analyze "Review this change" --type review --mode plan-only --json
|
|
80
|
+
shadow-brain workflow analyze --request-file ./task.txt --type implement --complexity complex --json
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Options are `--mode auto|plan-only|execute`, `--type auto|implement|debug|review|research|release`, and `--complexity auto|simple|complex`. Request files must be at most 64 KiB. The router returns task type, mode, relevant skills, bounded steps with completion checks, reasons, authorization categories, and limitations. It does not save requests or create plan files.
|
|
84
|
+
|
|
85
|
+
Automatic classification is a deterministic English-language heuristic, not a language model. Ambiguous, quoted, complex negation, or non-English text may require explicit options and host interpretation. Its suggestions do not grant permission. `requiresAuthorization` identifies external-action categories for the host to check against the user's existing authorization, not an instruction to ask again. Explicit user boundaries remain authoritative even when an execution override is supplied.
|
|
86
|
+
|
|
87
|
+
## Library and MCP
|
|
88
|
+
|
|
89
|
+
```js
|
|
90
|
+
import {
|
|
91
|
+
analyzeTask,
|
|
92
|
+
listBundledSkills,
|
|
93
|
+
getBundledSkill,
|
|
94
|
+
listWorkflowTargets,
|
|
95
|
+
planSkillInstall,
|
|
96
|
+
applySkillInstall,
|
|
97
|
+
} from '@theihtisham/agent-shadow-brain';
|
|
98
|
+
|
|
99
|
+
const workflow = analyzeTask('Diagnose the timeout without changing code');
|
|
100
|
+
const catalog = listBundledSkills();
|
|
101
|
+
const content = getBundledSkill('shadow-debug').content;
|
|
102
|
+
const targets = listWorkflowTargets();
|
|
103
|
+
const plan = planSkillInstall({ projectDir: process.cwd(), targets: ['codex'] });
|
|
104
|
+
// When installation has been requested and the plan is acceptable:
|
|
105
|
+
const installed = applySkillInstall(plan);
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Plans and installation results are synchronous. An apply failure throws; do not treat it as a successful installation. Keep the plan unchanged between preview and apply. Public type exports describe the options and results.
|
|
109
|
+
|
|
110
|
+
Existing Shadow Brain MCP connections expose two additional read-only tools:
|
|
111
|
+
|
|
112
|
+
- `workflow_analyze`: `{ "request": "...", "mode": "auto", "taskType": "auto", "complexity": "auto" }`.
|
|
113
|
+
- `workflow_skills`: `{}` lists names and descriptions; `{ "name": "shadow-debug" }` returns full guidance.
|
|
114
|
+
|
|
115
|
+
These tools do not install files, execute tasks, or call providers. Skill file installation also does not automatically configure MCP or start the memory service. The existing memory tools remain separately available through an explicitly configured integration.
|
|
116
|
+
|
|
117
|
+
## Compatibility evidence
|
|
118
|
+
|
|
119
|
+
These layouts were checked against the official sources below on 2026-11-11. Automated tests validate package contents, installation, preservation, and advisory behavior. They do not establish that a particular running client loaded a skill or that a model followed every instruction.
|
|
120
|
+
|
|
121
|
+
- [Codex skills documentation](https://learn.chatgpt.com/docs/build-skills): project `.agents/skills` discovery and skill frontmatter.
|
|
122
|
+
- [Claude Code skills](https://code.claude.com/docs/en/skills): project `.claude/skills` and on-demand guidance.
|
|
123
|
+
- [OpenCode skills](https://opencode.ai/docs/skills/): native and compatible roots.
|
|
124
|
+
- [DeepSeek Harness filesystem skill provider](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/skill/skill-filesystem/README.md): roots, priority, project-root detection, one-level bundles, and required plugins.
|
|
125
|
+
- [DeepSeek Harness project context](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/context/README.md): agent-instruction context.
|