@moreih29/nexus-core 0.17.0 → 0.18.2
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/README.md +101 -67
- package/dist/cli/sync.d.ts +3 -0
- package/dist/cli/sync.d.ts.map +1 -0
- package/dist/cli/sync.js +59 -0
- package/dist/cli/sync.js.map +1 -0
- package/dist/generate/index.d.ts +3 -0
- package/dist/generate/index.d.ts.map +1 -0
- package/dist/generate/index.js +2 -0
- package/dist/generate/index.js.map +1 -0
- package/dist/generate/load-data.d.ts +8 -0
- package/dist/generate/load-data.d.ts.map +1 -0
- package/dist/generate/load-data.js +45 -0
- package/dist/generate/load-data.js.map +1 -0
- package/dist/generate/load-spec.d.ts +3 -0
- package/dist/generate/load-spec.d.ts.map +1 -0
- package/dist/generate/load-spec.js +48 -0
- package/dist/generate/load-spec.js.map +1 -0
- package/dist/generate/macros/expand.d.ts +3 -0
- package/dist/generate/macros/expand.d.ts.map +1 -0
- package/dist/generate/macros/expand.js +48 -0
- package/dist/generate/macros/expand.js.map +1 -0
- package/dist/generate/macros/parse.d.ts +4 -0
- package/dist/generate/macros/parse.d.ts.map +1 -0
- package/dist/generate/macros/parse.js +142 -0
- package/dist/generate/macros/parse.js.map +1 -0
- package/dist/generate/macros/validate.d.ts +3 -0
- package/dist/generate/macros/validate.d.ts.map +1 -0
- package/dist/generate/macros/validate.js +23 -0
- package/dist/generate/macros/validate.js.map +1 -0
- package/dist/generate/renderers/claude.d.ts +3 -0
- package/dist/generate/renderers/claude.d.ts.map +1 -0
- package/dist/generate/renderers/claude.js +48 -0
- package/dist/generate/renderers/claude.js.map +1 -0
- package/dist/generate/renderers/codex.d.ts +3 -0
- package/dist/generate/renderers/codex.d.ts.map +1 -0
- package/dist/generate/renderers/codex.js +79 -0
- package/dist/generate/renderers/codex.js.map +1 -0
- package/dist/generate/renderers/markdown.d.ts +2 -0
- package/dist/generate/renderers/markdown.d.ts.map +1 -0
- package/dist/generate/renderers/markdown.js +6 -0
- package/dist/generate/renderers/markdown.js.map +1 -0
- package/dist/generate/renderers/opencode.d.ts +3 -0
- package/dist/generate/renderers/opencode.d.ts.map +1 -0
- package/dist/generate/renderers/opencode.js +69 -0
- package/dist/generate/renderers/opencode.js.map +1 -0
- package/dist/generate/sync.d.ts +4 -0
- package/dist/generate/sync.d.ts.map +1 -0
- package/dist/generate/sync.js +60 -0
- package/dist/generate/sync.js.map +1 -0
- package/dist/generate/types.d.ts +74 -0
- package/dist/generate/types.d.ts.map +1 -0
- package/dist/generate/types.js +2 -0
- package/dist/generate/types.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/definitions/artifact.d.ts +20 -0
- package/dist/mcp/definitions/artifact.d.ts.map +1 -0
- package/dist/mcp/definitions/artifact.js +14 -0
- package/dist/mcp/definitions/artifact.js.map +1 -0
- package/dist/mcp/definitions/history.d.ts +20 -0
- package/dist/mcp/definitions/history.d.ts.map +1 -0
- package/dist/mcp/definitions/history.js +18 -0
- package/dist/mcp/definitions/history.js.map +1 -0
- package/dist/mcp/definitions/index.d.ts +276 -0
- package/dist/mcp/definitions/index.d.ts.map +1 -0
- package/dist/mcp/definitions/index.js +16 -0
- package/dist/mcp/definitions/index.js.map +1 -0
- package/dist/mcp/definitions/plan.d.ts +111 -0
- package/dist/mcp/definitions/plan.d.ts.map +1 -0
- package/dist/mcp/definitions/plan.js +89 -0
- package/dist/mcp/definitions/plan.js.map +1 -0
- package/dist/mcp/definitions/task.d.ts +138 -0
- package/dist/mcp/definitions/task.d.ts.map +1 -0
- package/dist/mcp/definitions/task.js +78 -0
- package/dist/mcp/definitions/task.js.map +1 -0
- package/dist/mcp/handlers/artifact.d.ts.map +1 -0
- package/dist/mcp/handlers/artifact.js +42 -0
- package/dist/mcp/handlers/artifact.js.map +1 -0
- package/dist/mcp/handlers/history.d.ts.map +1 -0
- package/dist/mcp/handlers/history.js +35 -0
- package/dist/mcp/handlers/history.js.map +1 -0
- package/dist/mcp/handlers/plan.d.ts.map +1 -0
- package/dist/mcp/handlers/plan.js +324 -0
- package/dist/mcp/handlers/plan.js.map +1 -0
- package/dist/mcp/handlers/task.d.ts.map +1 -0
- package/dist/mcp/handlers/task.js +216 -0
- package/dist/mcp/handlers/task.js.map +1 -0
- package/dist/{src/mcp → mcp}/server.d.ts +1 -1
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +58 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/shared/json-store.d.ts.map +1 -0
- package/dist/{src/shared → shared}/json-store.js +5 -4
- package/dist/shared/json-store.js.map +1 -0
- package/dist/shared/mcp-utils.d.ts.map +1 -0
- package/dist/shared/mcp-utils.js.map +1 -0
- package/dist/{src/shared → shared}/paths.d.ts +0 -6
- package/dist/shared/paths.d.ts.map +1 -0
- package/dist/shared/paths.js +62 -0
- package/dist/shared/paths.js.map +1 -0
- package/dist/shared/register-tool.d.ts +20 -0
- package/dist/shared/register-tool.d.ts.map +1 -0
- package/dist/shared/register-tool.js +15 -0
- package/dist/shared/register-tool.js.map +1 -0
- package/dist/{src/types → types}/state.d.ts +65 -65
- package/dist/types/state.d.ts.map +1 -0
- package/dist/{src/types → types}/state.js +1 -1
- package/dist/types/state.js.map +1 -0
- package/harness/claude/agent-rules.yml +21 -0
- package/harness/claude/invocations.yml +11 -0
- package/harness/claude/layout.yml +3 -0
- package/harness/codex/agent-rules.yml +28 -0
- package/harness/codex/invocations.yml +13 -0
- package/harness/codex/layout.yml +3 -0
- package/harness/opencode/agent-rules.yml +18 -0
- package/harness/opencode/invocations.yml +12 -0
- package/harness/opencode/layout.yml +3 -0
- package/package.json +38 -43
- package/{assets → spec}/agents/architect/body.ko.md +92 -84
- package/spec/agents/architect/body.md +185 -0
- package/spec/agents/designer/body.ko.md +330 -0
- package/spec/agents/designer/body.md +330 -0
- package/spec/agents/engineer/body.ko.md +166 -0
- package/spec/agents/engineer/body.md +166 -0
- package/spec/agents/lead/body.ko.md +276 -0
- package/spec/agents/lead/body.md +276 -0
- package/{assets → spec}/agents/postdoc/body.ko.md +116 -46
- package/spec/agents/postdoc/body.md +192 -0
- package/{assets → spec}/agents/researcher/body.ko.md +131 -45
- package/spec/agents/researcher/body.md +223 -0
- package/spec/agents/reviewer/body.ko.md +219 -0
- package/spec/agents/reviewer/body.md +219 -0
- package/{assets → spec}/agents/strategist/body.ko.md +108 -35
- package/spec/agents/strategist/body.md +187 -0
- package/spec/agents/tester/body.ko.md +272 -0
- package/spec/agents/tester/body.md +272 -0
- package/{assets → spec}/agents/writer/body.ko.md +109 -33
- package/spec/agents/writer/body.md +198 -0
- package/spec/skills/nx-auto-plan/body.ko.md +150 -0
- package/spec/skills/nx-auto-plan/body.md +150 -0
- package/spec/skills/nx-plan/body.ko.md +159 -0
- package/spec/skills/nx-plan/body.md +159 -0
- package/spec/skills/nx-run/body.ko.md +132 -0
- package/spec/skills/nx-run/body.md +132 -0
- package/vocabulary/enums/task-register-state.yml +4 -0
- package/vocabulary/invocations.yml +43 -0
- package/assets/agents/architect/body.md +0 -177
- package/assets/agents/designer/body.ko.md +0 -125
- package/assets/agents/designer/body.md +0 -125
- package/assets/agents/engineer/body.ko.md +0 -106
- package/assets/agents/engineer/body.md +0 -106
- package/assets/agents/lead/body.ko.md +0 -70
- package/assets/agents/lead/body.md +0 -70
- package/assets/agents/postdoc/body.md +0 -122
- package/assets/agents/researcher/body.md +0 -137
- package/assets/agents/reviewer/body.ko.md +0 -138
- package/assets/agents/reviewer/body.md +0 -138
- package/assets/agents/strategist/body.md +0 -116
- package/assets/agents/tester/body.ko.md +0 -195
- package/assets/agents/tester/body.md +0 -195
- package/assets/agents/writer/body.md +0 -122
- package/assets/capability-matrix.yml +0 -200
- package/assets/hooks/agent-bootstrap/handler.test.ts +0 -369
- package/assets/hooks/agent-bootstrap/handler.ts +0 -132
- package/assets/hooks/agent-bootstrap/meta.yml +0 -10
- package/assets/hooks/agent-finalize/handler.test.ts +0 -368
- package/assets/hooks/agent-finalize/handler.ts +0 -76
- package/assets/hooks/agent-finalize/meta.yml +0 -10
- package/assets/hooks/capability-matrix.yml +0 -313
- package/assets/hooks/post-tool-telemetry/handler.test.ts +0 -302
- package/assets/hooks/post-tool-telemetry/handler.ts +0 -49
- package/assets/hooks/post-tool-telemetry/meta.yml +0 -10
- package/assets/hooks/prompt-router/handler.test.ts +0 -801
- package/assets/hooks/prompt-router/handler.ts +0 -272
- package/assets/hooks/prompt-router/meta.yml +0 -11
- package/assets/hooks/session-init/handler.test.ts +0 -274
- package/assets/hooks/session-init/handler.ts +0 -31
- package/assets/hooks/session-init/meta.yml +0 -9
- package/assets/lsp-servers.json +0 -55
- package/assets/schema/lsp-servers.schema.json +0 -67
- package/assets/skills/nx-init/body.ko.md +0 -197
- package/assets/skills/nx-init/body.md +0 -197
- package/assets/skills/nx-plan/body.ko.md +0 -361
- package/assets/skills/nx-plan/body.md +0 -361
- package/assets/skills/nx-run/body.ko.md +0 -161
- package/assets/skills/nx-run/body.md +0 -160
- package/assets/skills/nx-sync/body.ko.md +0 -92
- package/assets/skills/nx-sync/body.md +0 -92
- package/assets/tools/tool-name-map.yml +0 -353
- package/dist/assets/hooks/agent-bootstrap/handler.d.ts +0 -4
- package/dist/assets/hooks/agent-bootstrap/handler.d.ts.map +0 -1
- package/dist/assets/hooks/agent-bootstrap/handler.js +0 -114
- package/dist/assets/hooks/agent-bootstrap/handler.js.map +0 -1
- package/dist/assets/hooks/agent-finalize/handler.d.ts +0 -4
- package/dist/assets/hooks/agent-finalize/handler.d.ts.map +0 -1
- package/dist/assets/hooks/agent-finalize/handler.js +0 -63
- package/dist/assets/hooks/agent-finalize/handler.js.map +0 -1
- package/dist/assets/hooks/post-tool-telemetry/handler.d.ts +0 -4
- package/dist/assets/hooks/post-tool-telemetry/handler.d.ts.map +0 -1
- package/dist/assets/hooks/post-tool-telemetry/handler.js +0 -40
- package/dist/assets/hooks/post-tool-telemetry/handler.js.map +0 -1
- package/dist/assets/hooks/prompt-router/handler.d.ts +0 -4
- package/dist/assets/hooks/prompt-router/handler.d.ts.map +0 -1
- package/dist/assets/hooks/prompt-router/handler.js +0 -214
- package/dist/assets/hooks/prompt-router/handler.js.map +0 -1
- package/dist/assets/hooks/session-init/handler.d.ts +0 -4
- package/dist/assets/hooks/session-init/handler.d.ts.map +0 -1
- package/dist/assets/hooks/session-init/handler.js +0 -22
- package/dist/assets/hooks/session-init/handler.js.map +0 -1
- package/dist/claude/.claude-plugin/marketplace.json +0 -75
- package/dist/claude/.claude-plugin/plugin.json +0 -67
- package/dist/claude/agents/architect.md +0 -172
- package/dist/claude/agents/designer.md +0 -120
- package/dist/claude/agents/engineer.md +0 -98
- package/dist/claude/agents/lead.md +0 -59
- package/dist/claude/agents/postdoc.md +0 -117
- package/dist/claude/agents/researcher.md +0 -132
- package/dist/claude/agents/reviewer.md +0 -133
- package/dist/claude/agents/strategist.md +0 -111
- package/dist/claude/agents/tester.md +0 -190
- package/dist/claude/agents/writer.md +0 -114
- package/dist/claude/dist/hooks/agent-bootstrap.js +0 -238
- package/dist/claude/dist/hooks/agent-finalize.js +0 -180
- package/dist/claude/dist/hooks/post-tool-telemetry.js +0 -71
- package/dist/claude/dist/hooks/prompt-router.js +0 -7336
- package/dist/claude/dist/hooks/session-init.js +0 -50
- package/dist/claude/hooks/hooks.json +0 -64
- package/dist/claude/settings.json +0 -3
- package/dist/claude/skills/nx-init/SKILL.md +0 -189
- package/dist/claude/skills/nx-plan/SKILL.md +0 -353
- package/dist/claude/skills/nx-run/SKILL.md +0 -154
- package/dist/claude/skills/nx-sync/SKILL.md +0 -87
- package/dist/codex/agents/architect.toml +0 -175
- package/dist/codex/agents/designer.toml +0 -123
- package/dist/codex/agents/engineer.toml +0 -105
- package/dist/codex/agents/lead.toml +0 -64
- package/dist/codex/agents/postdoc.toml +0 -120
- package/dist/codex/agents/researcher.toml +0 -136
- package/dist/codex/agents/reviewer.toml +0 -137
- package/dist/codex/agents/strategist.toml +0 -114
- package/dist/codex/agents/tester.toml +0 -194
- package/dist/codex/agents/writer.toml +0 -121
- package/dist/codex/dist/hooks/agent-bootstrap.js +0 -238
- package/dist/codex/dist/hooks/agent-finalize.js +0 -180
- package/dist/codex/dist/hooks/prompt-router.js +0 -7336
- package/dist/codex/dist/hooks/session-init.js +0 -50
- package/dist/codex/hooks/hooks.json +0 -28
- package/dist/codex/install/AGENTS.fragment.md +0 -60
- package/dist/codex/install/config.fragment.toml +0 -5
- package/dist/codex/install/install.sh +0 -60
- package/dist/codex/package.json +0 -20
- package/dist/codex/plugin/.codex-plugin/plugin.json +0 -57
- package/dist/codex/plugin/skills/nx-init/SKILL.md +0 -189
- package/dist/codex/plugin/skills/nx-plan/SKILL.md +0 -353
- package/dist/codex/plugin/skills/nx-run/SKILL.md +0 -154
- package/dist/codex/plugin/skills/nx-sync/SKILL.md +0 -87
- package/dist/codex/prompts/architect.md +0 -166
- package/dist/codex/prompts/designer.md +0 -114
- package/dist/codex/prompts/engineer.md +0 -97
- package/dist/codex/prompts/lead.md +0 -60
- package/dist/codex/prompts/postdoc.md +0 -111
- package/dist/codex/prompts/researcher.md +0 -127
- package/dist/codex/prompts/reviewer.md +0 -128
- package/dist/codex/prompts/strategist.md +0 -105
- package/dist/codex/prompts/tester.md +0 -185
- package/dist/codex/prompts/writer.md +0 -113
- package/dist/hooks/agent-bootstrap.js +0 -238
- package/dist/hooks/agent-finalize.js +0 -180
- package/dist/hooks/post-tool-telemetry.js +0 -71
- package/dist/hooks/prompt-router.js +0 -7336
- package/dist/hooks/session-init.js +0 -50
- package/dist/manifests/claude-hooks.json +0 -64
- package/dist/manifests/codex-hooks.json +0 -28
- package/dist/manifests/opencode-manifest.json +0 -54
- package/dist/manifests/portability-report.json +0 -75
- package/dist/opencode/.opencode/skills/nx-init/SKILL.md +0 -189
- package/dist/opencode/.opencode/skills/nx-plan/SKILL.md +0 -353
- package/dist/opencode/.opencode/skills/nx-run/SKILL.md +0 -154
- package/dist/opencode/.opencode/skills/nx-sync/SKILL.md +0 -87
- package/dist/opencode/package.json +0 -23
- package/dist/opencode/src/agents/architect.ts +0 -176
- package/dist/opencode/src/agents/designer.ts +0 -124
- package/dist/opencode/src/agents/engineer.ts +0 -105
- package/dist/opencode/src/agents/lead.ts +0 -66
- package/dist/opencode/src/agents/postdoc.ts +0 -121
- package/dist/opencode/src/agents/researcher.ts +0 -136
- package/dist/opencode/src/agents/reviewer.ts +0 -137
- package/dist/opencode/src/agents/strategist.ts +0 -115
- package/dist/opencode/src/agents/tester.ts +0 -194
- package/dist/opencode/src/agents/writer.ts +0 -121
- package/dist/opencode/src/index.ts +0 -25
- package/dist/opencode/src/plugin.ts +0 -6
- package/dist/scripts/build-agents.d.ts +0 -170
- package/dist/scripts/build-agents.d.ts.map +0 -1
- package/dist/scripts/build-agents.js +0 -907
- package/dist/scripts/build-agents.js.map +0 -1
- package/dist/scripts/build-hooks.d.ts +0 -57
- package/dist/scripts/build-hooks.d.ts.map +0 -1
- package/dist/scripts/build-hooks.js +0 -562
- package/dist/scripts/build-hooks.js.map +0 -1
- package/dist/scripts/cli.d.ts +0 -54
- package/dist/scripts/cli.d.ts.map +0 -1
- package/dist/scripts/cli.js +0 -504
- package/dist/scripts/cli.js.map +0 -1
- package/dist/scripts/smoke/smoke-claude.d.ts +0 -2
- package/dist/scripts/smoke/smoke-claude.d.ts.map +0 -1
- package/dist/scripts/smoke/smoke-claude.js +0 -58
- package/dist/scripts/smoke/smoke-claude.js.map +0 -1
- package/dist/scripts/smoke/smoke-codex.d.ts +0 -2
- package/dist/scripts/smoke/smoke-codex.d.ts.map +0 -1
- package/dist/scripts/smoke/smoke-codex.js +0 -50
- package/dist/scripts/smoke/smoke-codex.js.map +0 -1
- package/dist/scripts/smoke/smoke-consumer.d.ts +0 -2
- package/dist/scripts/smoke/smoke-consumer.d.ts.map +0 -1
- package/dist/scripts/smoke/smoke-consumer.js +0 -230
- package/dist/scripts/smoke/smoke-consumer.js.map +0 -1
- package/dist/scripts/smoke/smoke-opencode.d.ts +0 -2
- package/dist/scripts/smoke/smoke-opencode.d.ts.map +0 -1
- package/dist/scripts/smoke/smoke-opencode.js +0 -99
- package/dist/scripts/smoke/smoke-opencode.js.map +0 -1
- package/dist/src/hooks/opencode-mount.d.ts +0 -35
- package/dist/src/hooks/opencode-mount.d.ts.map +0 -1
- package/dist/src/hooks/opencode-mount.js +0 -352
- package/dist/src/hooks/opencode-mount.js.map +0 -1
- package/dist/src/hooks/runtime.d.ts +0 -37
- package/dist/src/hooks/runtime.d.ts.map +0 -1
- package/dist/src/hooks/runtime.js +0 -274
- package/dist/src/hooks/runtime.js.map +0 -1
- package/dist/src/hooks/types.d.ts +0 -196
- package/dist/src/hooks/types.d.ts.map +0 -1
- package/dist/src/hooks/types.js +0 -85
- package/dist/src/hooks/types.js.map +0 -1
- package/dist/src/lsp/cache.d.ts +0 -9
- package/dist/src/lsp/cache.d.ts.map +0 -1
- package/dist/src/lsp/cache.js +0 -216
- package/dist/src/lsp/cache.js.map +0 -1
- package/dist/src/lsp/client.d.ts +0 -24
- package/dist/src/lsp/client.d.ts.map +0 -1
- package/dist/src/lsp/client.js +0 -166
- package/dist/src/lsp/client.js.map +0 -1
- package/dist/src/lsp/detect.d.ts +0 -77
- package/dist/src/lsp/detect.d.ts.map +0 -1
- package/dist/src/lsp/detect.js +0 -116
- package/dist/src/lsp/detect.js.map +0 -1
- package/dist/src/mcp/server.d.ts.map +0 -1
- package/dist/src/mcp/server.js +0 -34
- package/dist/src/mcp/server.js.map +0 -1
- package/dist/src/mcp/tools/artifact.d.ts.map +0 -1
- package/dist/src/mcp/tools/artifact.js +0 -36
- package/dist/src/mcp/tools/artifact.js.map +0 -1
- package/dist/src/mcp/tools/history.d.ts.map +0 -1
- package/dist/src/mcp/tools/history.js +0 -29
- package/dist/src/mcp/tools/history.js.map +0 -1
- package/dist/src/mcp/tools/lsp.d.ts +0 -13
- package/dist/src/mcp/tools/lsp.d.ts.map +0 -1
- package/dist/src/mcp/tools/lsp.js +0 -225
- package/dist/src/mcp/tools/lsp.js.map +0 -1
- package/dist/src/mcp/tools/plan.d.ts.map +0 -1
- package/dist/src/mcp/tools/plan.js +0 -317
- package/dist/src/mcp/tools/plan.js.map +0 -1
- package/dist/src/mcp/tools/task.d.ts.map +0 -1
- package/dist/src/mcp/tools/task.js +0 -252
- package/dist/src/mcp/tools/task.js.map +0 -1
- package/dist/src/shared/invocations.d.ts +0 -74
- package/dist/src/shared/invocations.d.ts.map +0 -1
- package/dist/src/shared/invocations.js +0 -247
- package/dist/src/shared/invocations.js.map +0 -1
- package/dist/src/shared/json-store.d.ts.map +0 -1
- package/dist/src/shared/json-store.js.map +0 -1
- package/dist/src/shared/mcp-utils.d.ts.map +0 -1
- package/dist/src/shared/mcp-utils.js.map +0 -1
- package/dist/src/shared/package-root.d.ts +0 -6
- package/dist/src/shared/package-root.d.ts.map +0 -1
- package/dist/src/shared/package-root.js +0 -19
- package/dist/src/shared/package-root.js.map +0 -1
- package/dist/src/shared/paths.d.ts.map +0 -1
- package/dist/src/shared/paths.js +0 -117
- package/dist/src/shared/paths.js.map +0 -1
- package/dist/src/shared/tool-log.d.ts +0 -8
- package/dist/src/shared/tool-log.d.ts.map +0 -1
- package/dist/src/shared/tool-log.js +0 -22
- package/dist/src/shared/tool-log.js.map +0 -1
- package/dist/src/types/agent-config.d.ts +0 -22
- package/dist/src/types/agent-config.d.ts.map +0 -1
- package/dist/src/types/agent-config.js +0 -2
- package/dist/src/types/agent-config.js.map +0 -1
- package/dist/src/types/index.d.ts +0 -2
- package/dist/src/types/index.d.ts.map +0 -1
- package/dist/src/types/index.js +0 -2
- package/dist/src/types/index.js.map +0 -1
- package/dist/src/types/state.d.ts.map +0 -1
- package/dist/src/types/state.js.map +0 -1
- package/docs/consuming/codex-lead-merge.md +0 -106
- package/docs/contract/harness-io.md +0 -333
- package/docs/plugin-guide.md +0 -355
- package/docs/plugin-template/claude/.github/workflows/build.yml +0 -60
- package/docs/plugin-template/claude/README.md +0 -110
- package/docs/plugin-template/claude/package.json +0 -16
- package/docs/plugin-template/codex/.github/workflows/build.yml +0 -51
- package/docs/plugin-template/codex/README.md +0 -147
- package/docs/plugin-template/codex/install/install.sh +0 -60
- package/docs/plugin-template/codex/package.json +0 -17
- package/docs/plugin-template/opencode/.github/workflows/build.yml +0 -61
- package/docs/plugin-template/opencode/README.md +0 -121
- package/docs/plugin-template/opencode/package.json +0 -25
- package/docs/plugin-template/opencode/src/plugin.ts +0 -6
- /package/dist/{src/mcp/tools → mcp/handlers}/artifact.d.ts +0 -0
- /package/dist/{src/mcp/tools → mcp/handlers}/history.d.ts +0 -0
- /package/dist/{src/mcp/tools → mcp/handlers}/plan.d.ts +0 -0
- /package/dist/{src/mcp/tools → mcp/handlers}/task.d.ts +0 -0
- /package/dist/{src/shared → shared}/json-store.d.ts +0 -0
- /package/dist/{src/shared → shared}/mcp-utils.d.ts +0 -0
- /package/dist/{src/shared → shared}/mcp-utils.js +0 -0
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://github.com/moreih29/nexus-core/assets/schema/lsp-servers.schema.json",
|
|
4
|
-
"title": "Nexus Core — LSP Servers Configuration",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": ["languages"],
|
|
7
|
-
"additionalProperties": false,
|
|
8
|
-
"properties": {
|
|
9
|
-
"$schema": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"languages": {
|
|
13
|
-
"type": "object",
|
|
14
|
-
"additionalProperties": {
|
|
15
|
-
"$ref": "#/$defs/LanguageDef"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"$defs": {
|
|
20
|
-
"LanguageDef": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"required": ["extensions", "server", "install_hint"],
|
|
23
|
-
"additionalProperties": false,
|
|
24
|
-
"properties": {
|
|
25
|
-
"extensions": {
|
|
26
|
-
"type": "object",
|
|
27
|
-
"minProperties": 1,
|
|
28
|
-
"additionalProperties": {
|
|
29
|
-
"type": "string"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"server": {
|
|
33
|
-
"$ref": "#/$defs/ServerDef"
|
|
34
|
-
},
|
|
35
|
-
"install_hint": {
|
|
36
|
-
"type": "string"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"ServerDef": {
|
|
41
|
-
"type": "object",
|
|
42
|
-
"required": ["command_chain", "args"],
|
|
43
|
-
"additionalProperties": false,
|
|
44
|
-
"properties": {
|
|
45
|
-
"command_chain": {
|
|
46
|
-
"type": "array",
|
|
47
|
-
"items": {
|
|
48
|
-
"type": "string"
|
|
49
|
-
},
|
|
50
|
-
"minItems": 1
|
|
51
|
-
},
|
|
52
|
-
"search_paths": {
|
|
53
|
-
"type": "array",
|
|
54
|
-
"items": {
|
|
55
|
-
"type": "string"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"args": {
|
|
59
|
-
"type": "array",
|
|
60
|
-
"items": {
|
|
61
|
-
"type": "string"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: nx-init
|
|
3
|
-
description: Project onboarding — scan, mission, essentials, context generation
|
|
4
|
-
summary: "Project onboarding — scan, mission, essentials, context generation"
|
|
5
|
-
manual_only: true
|
|
6
|
-
harness_docs_refs:
|
|
7
|
-
- instruction_file
|
|
8
|
-
- slash_command_display
|
|
9
|
-
id: nx-init
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Role
|
|
13
|
-
|
|
14
|
-
프로젝트를 스캔하고 flat `.nexus/` 구조에 Nexus 지식을 구축한다. 최초 실행 시 5단계 전체 온보딩 시퀀스를 수행한다.
|
|
15
|
-
|
|
16
|
-
## Constraints
|
|
17
|
-
|
|
18
|
-
- 소스 코드를 절대 수정하지 않는다. instruction 파일의 project 섹션 외 부분을 줄이는 것은 이 skill의 책임이 아니다.
|
|
19
|
-
- 코드에서 확인할 수 없는 정보는 추론하거나 추측하지 않는다 — context/에 작성하지 않는다.
|
|
20
|
-
- 지식 파일에 secrets (API 키, credentials 등)를 저장하지 않는다.
|
|
21
|
-
- `--reset` 없이는 기존 파일을 덮어쓰지 않는다. 재개 시 기존 파일을 그대로 보존한다.
|
|
22
|
-
- instruction 파일의 project 섹션은 반드시 사용자 확인을 거쳐 작성한다.
|
|
23
|
-
- identity/, codebase/, reference/, core/ 경로를 참조하거나 생성하지 않는다.
|
|
24
|
-
- Essentials 섹션은 10줄을 초과하지 않는다. 항목이 더 필요하면 우선순위가 낮은 항목을 .nexus/context/로 이동한다.
|
|
25
|
-
|
|
26
|
-
## Guidelines
|
|
27
|
-
|
|
28
|
-
## Trigger
|
|
29
|
-
|
|
30
|
-
- 수동 트리거 — 전체 온보딩(또는 재개). harness 문서 참조: slash_command_display.
|
|
31
|
-
- `--reset` 플래그와 함께 수동 트리거 — 기존 `.nexus/` 지식을 백업하고 재온보딩. harness 문서 참조: slash_command_display.
|
|
32
|
-
- `--reset --cleanup` 플래그와 함께 수동 트리거 — 백업 목록 표시 + 선택적 삭제. harness 문서 참조: slash_command_display.
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## Modes
|
|
37
|
-
|
|
38
|
-
### First Run (`.nexus/` flat 구조 없음)
|
|
39
|
-
|
|
40
|
-
5단계 전체 온보딩을 자동으로 실행한다.
|
|
41
|
-
|
|
42
|
-
감지 기준: `.nexus/context/`, `.nexus/memory/`, `.nexus/state/`, `.nexus/rules/`가 존재하지 않음.
|
|
43
|
-
|
|
44
|
-
### Resume (`.nexus/`가 부분적으로 존재)
|
|
45
|
-
|
|
46
|
-
기존 상태를 확인하고 첫 번째 미완료 단계부터 재개한다.
|
|
47
|
-
|
|
48
|
-
### Reset (`--reset`)
|
|
49
|
-
|
|
50
|
-
기존 `.nexus/` 지식 디렉터리를 `.nexus/bak.{timestamp}/`로 백업한 뒤 First Run으로 진입한다.
|
|
51
|
-
|
|
52
|
-
### Cleanup (`--reset --cleanup`)
|
|
53
|
-
|
|
54
|
-
백업 디렉터리 목록을 표시하고, 사용자가 삭제할 백업을 선택하도록 한다.
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## Process
|
|
59
|
-
|
|
60
|
-
### Phase 0: Mode Detection
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
IF --reset --cleanup flag:
|
|
64
|
-
.nexus/bak.*/ 디렉터리 목록을 표시
|
|
65
|
-
`{{user_question question="Select a backup to delete (or cancel)" options=[<backup list...>, {label: Cancel, description: "Exit without changes"}]}}`를 통해 사용자에게 옵션 제시.
|
|
66
|
-
선택한 백업을 삭제하고 종료
|
|
67
|
-
|
|
68
|
-
ELSE IF --reset flag:
|
|
69
|
-
.nexus/{memory,context,state,rules}/ → .nexus/bak.{timestamp}/로 이동
|
|
70
|
-
안내: "Existing knowledge has been backed up to .nexus/bak.{timestamp}/. Starting re-onboarding."
|
|
71
|
-
→ First Run으로 진입
|
|
72
|
-
|
|
73
|
-
ELSE IF .nexus/context/ 존재:
|
|
74
|
-
→ Resume으로 진입 (기존 단계 확인 후 재개)
|
|
75
|
-
|
|
76
|
-
ELSE:
|
|
77
|
-
→ First Run으로 진입 (Step 1부터)
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
## Steps
|
|
83
|
-
|
|
84
|
-
### Step 1: Project Scan
|
|
85
|
-
|
|
86
|
-
코드 구조와 기술 스택을 자동 감지한다. `.nexus/` 디렉터리 구조가 존재하지 않으면 생성한다.
|
|
87
|
-
|
|
88
|
-
디렉터리 생성 (shell 명령어 실행):
|
|
89
|
-
- `.nexus/memory/`
|
|
90
|
-
- `.nexus/context/`
|
|
91
|
-
- `.nexus/state/`
|
|
92
|
-
- `.nexus/rules/`
|
|
93
|
-
|
|
94
|
-
수집 항목:
|
|
95
|
-
- **디렉터리 구조**: 최상위 레이아웃, 주요 모듈/패키지
|
|
96
|
-
- **기술 스택**: 언어, 프레임워크, 런타임 (package.json, Cargo.toml, pyproject.toml, go.mod, build.gradle 등)
|
|
97
|
-
- **빌드/test 시스템**: 스크립트, CI 설정
|
|
98
|
-
- **기존 문서**: CLAUDE.md, README.md, docs/, .cursorrules 등
|
|
99
|
-
- **git context**: 최근 커밋, 브랜치 구조, 기여자
|
|
100
|
-
|
|
101
|
-
출력: 스캔 요약 (언어, 프레임워크, 구조 개요)
|
|
102
|
-
|
|
103
|
-
대규모 프로젝트(최상위 디렉터리 10개 이상 또는 파일 100개 이상)의 경우, Lead context 사용을 줄이기 위해 Explore subagent를 스폰하여 병렬 스캔을 수행하는 것을 고려한다.
|
|
104
|
-
|
|
105
|
-
### Step 2: Mission + Essentials (Interactive)
|
|
106
|
-
|
|
107
|
-
Step 1 스캔 결과를 바탕으로 Mission 문장(1–2줄)과 Essentials 목록 초안을 작성한 뒤, 한 번에 사용자에게 제시하여 확인을 받는다.
|
|
108
|
-
|
|
109
|
-
#### Essentials Guidelines
|
|
110
|
-
|
|
111
|
-
Essentials는 에이전트에게 필수적인 사실이다 — 알지 못하면 에이전트가 잘못된 결과를 낼 항목들이다. 판단 기준: **"이것을 모르면 에이전트가 잘못된 결과를 낼까?"** 그렇다면 → Essentials. 아니라면 → .nexus/context/.
|
|
112
|
-
|
|
113
|
-
다음 다섯 범주에서 초안을 작성한다 (해당되는 항목만 포함):
|
|
114
|
-
|
|
115
|
-
- **Tech stack** — 런타임, 언어, 패키지 매니저, 핵심 프레임워크. 비기본 도구는 표시한다 (예: npm 대신 bun, node 대신 deno).
|
|
116
|
-
- **Workflow** — 빌드, test, 배포 명령어. 커밋 전 필수 lint 또는 타입 검사 단계 등 반드시 따라야 하는 절차.
|
|
117
|
-
- **Constraints** — 사용 금지 도구, 패턴, 또는 접근법. 수정해서는 안 되는 디렉터리 또는 파일.
|
|
118
|
-
- **Domain** — 대상 사용자, 필수 용어 또는 톤, 연구 프로젝트의 컴플라이언스·규제 제약·방법론.
|
|
119
|
-
- **Conventions** — 일반 기본값에서 벗어난 명명, 구조, 또는 스타일. 에이전트가 추론하지 못할 프로젝트 고유 패턴.
|
|
120
|
-
|
|
121
|
-
감지된 기술 스택의 표준 기본값에 해당하는 항목은 포함하지 않는다. Essentials 섹션은 총 10줄을 초과하지 않는다.
|
|
122
|
-
|
|
123
|
-
#### Draft Presentation
|
|
124
|
-
|
|
125
|
-
다음 형식으로 전체 초안을 사용자에게 제시한다:
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
The following will be added to the instruction file (see harness docs: instruction_file) (existing content will not be changed):
|
|
129
|
-
|
|
130
|
-
<!-- PROJECT:START -->
|
|
131
|
-
## {project-name}
|
|
132
|
-
|
|
133
|
-
{mission 1-2 lines}
|
|
134
|
-
|
|
135
|
-
### Essentials
|
|
136
|
-
- {auto-detected item}
|
|
137
|
-
- {auto-detected item}
|
|
138
|
-
<!-- PROJECT:END -->
|
|
139
|
-
|
|
140
|
-
Any changes?
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
사용자의 확인 또는 수정 의견을 기다린다. 모든 변경 사항을 한 번에 반영한다 — Mission과 Essentials를 별도로 묻지 않는다.
|
|
144
|
-
|
|
145
|
-
확인 후, harness의 파일 편집 프리미티브를 사용하여 마커 안에 섹션을 instruction 파일에 작성한다. instruction 파일에 이미 `<!-- PROJECT:START -->` 마커가 있으면 그 사이 내용을 교체한다. instruction 파일이 존재하지 않으면 마커와 함께 새로 생성한다.
|
|
146
|
-
|
|
147
|
-
### Step 3: Context Knowledge Auto-Generation
|
|
148
|
-
|
|
149
|
-
Step 1 스캔 결과를 분석하여 `.nexus/context/`에 context 지식 문서를 생성한다.
|
|
150
|
-
|
|
151
|
-
원칙:
|
|
152
|
-
- 파일 이름과 내용은 프로젝트 특성에 따라 자유롭게 결정한다. 고정된 템플릿은 없다.
|
|
153
|
-
- 기존 문서는 정보 출처일 뿐 — 구조를 그대로 복제하지 않는다.
|
|
154
|
-
- 코드에서 확인할 수 없는 내용은 추측하여 작성하지 않는다.
|
|
155
|
-
- 보통 1–3개 파일로 충분하다. 파일이 많다고 좋은 것이 아니다.
|
|
156
|
-
- **추상 수준의 내용만 생성한다** — 설계 패턴, 아키텍처 방향, 모듈 관계, 컨벤션. 파일 목록, 함수 시그니처, import 맵 같은 코드 수준 세부 사항은 포함하지 않는다. 그런 내용은 코드에서 직접 읽을 수 있다.
|
|
157
|
-
|
|
158
|
-
생성 대상 (프로젝트 실제 필요에 따라 선택하고 명명):
|
|
159
|
-
- 개발 스택 (언어, 프레임워크, 런타임, 핵심 의존성, 빌드/test/배포 워크플로우)
|
|
160
|
-
- 설계 및 아키텍처 (모듈 관계, 데이터 흐름, 핵심 진입점, 컨벤션)
|
|
161
|
-
- 구현 세부 사항 (파이프라인 세부 사항, 설정 패턴, 파일 구조 컨벤션, 도구 제한 — instruction 파일에 담기엔 너무 구체적이지만 코드만으로는 파악하기 어려운 내용)
|
|
162
|
-
|
|
163
|
-
harness의 파일 생성 프리미티브를 사용하여 `.nexus/context/{chosen-name}.md`에 파일을 생성한다.
|
|
164
|
-
|
|
165
|
-
대규모 프로젝트의 경우, 주제별로 Writer subagent를 스폰하여 context 지식을 병렬로 생성한다. Lead가 조율하고 결과를 검토한다.
|
|
166
|
-
|
|
167
|
-
완료 시: "context knowledge N files generated" 출력
|
|
168
|
-
|
|
169
|
-
### Step 4: Rules Initial Setup (Optional)
|
|
170
|
-
|
|
171
|
-
팀 커스텀 rule이 필요한지 확인한다.
|
|
172
|
-
|
|
173
|
-
```
|
|
174
|
-
{{user_question question="Do you want to set up development rules now?" options=[{label: "Set up", description: "Coding conventions, test policy, commit rules, etc."}, {label: Skip, description: "Can be added later via [rule] tag"}]}}
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
"Set up" 선택 시: 스캔 결과를 바탕으로 초안을 제시 → 사용자 확인 → harness의 파일 생성 프리미티브를 사용하여 `.nexus/rules/{topic}.md`에 저장한다.
|
|
178
|
-
|
|
179
|
-
"Skip" 선택 시: 안내 후 Step 5로 진행한다.
|
|
180
|
-
|
|
181
|
-
### Step 5: Completion Summary
|
|
182
|
-
|
|
183
|
-
온보딩 결과 요약을 출력한다.
|
|
184
|
-
|
|
185
|
-
```
|
|
186
|
-
## Nexus Initialization Complete
|
|
187
|
-
|
|
188
|
-
### Generated Files
|
|
189
|
-
- instruction file: project section — mission and essentials (<!-- PROJECT:START/END -->)
|
|
190
|
-
- .nexus/context/: {생성된 파일 목록}
|
|
191
|
-
- .nexus/rules/: {생성된 파일 또는 "none (skipped)"}
|
|
192
|
-
|
|
193
|
-
### Next Steps
|
|
194
|
-
- [plan] — 실행 전 리서치, 분석, 계획 수립
|
|
195
|
-
- [run] — plan에서 실행
|
|
196
|
-
- `--reset` 플래그와 함께 수동 재실행 — 온보딩 재실행 (기존 지식은 백업됨). harness 문서 참조: slash_command_display.
|
|
197
|
-
```
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: nx-init
|
|
3
|
-
description: Project onboarding — scan, mission, essentials, context generation
|
|
4
|
-
summary: "Project onboarding — scan, mission, essentials, context generation"
|
|
5
|
-
manual_only: true
|
|
6
|
-
harness_docs_refs:
|
|
7
|
-
- instruction_file
|
|
8
|
-
- slash_command_display
|
|
9
|
-
id: nx-init
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Role
|
|
13
|
-
|
|
14
|
-
Scans the project and builds Nexus knowledge in the flat .nexus/ structure. On first run, performs a 5-step full onboarding sequence.
|
|
15
|
-
|
|
16
|
-
## Constraints
|
|
17
|
-
|
|
18
|
-
- NEVER modify source code. Slimming down the instruction file beyond the project section is not this skill's responsibility.
|
|
19
|
-
- NEVER infer or guess information that cannot be confirmed from code — do not write it to context/.
|
|
20
|
-
- NEVER store secrets (API keys, credentials, etc.) in knowledge files.
|
|
21
|
-
- NEVER overwrite existing files without `--reset`. On resume, preserve existing files intact.
|
|
22
|
-
- Project section in the instruction file MUST go through user confirmation before writing.
|
|
23
|
-
- NEVER reference or create identity/, codebase/, reference/, or core/ paths.
|
|
24
|
-
- Essentials section MUST NOT exceed 10 lines. If more items are needed, move lower-priority ones to .nexus/context/.
|
|
25
|
-
|
|
26
|
-
## Guidelines
|
|
27
|
-
|
|
28
|
-
## Trigger
|
|
29
|
-
|
|
30
|
-
- Manual trigger — full onboarding (or resume). See harness docs: slash_command_display.
|
|
31
|
-
- Manual trigger with `--reset` flag — back up existing `.nexus/` knowledge and re-onboard. See harness docs: slash_command_display.
|
|
32
|
-
- Manual trigger with `--reset --cleanup` flags — show backup list + selective deletion. See harness docs: slash_command_display.
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## Modes
|
|
37
|
-
|
|
38
|
-
### First Run (no `.nexus/` flat structure)
|
|
39
|
-
|
|
40
|
-
Automatically runs the 5-step full onboarding.
|
|
41
|
-
|
|
42
|
-
Detection: `.nexus/context/`, `.nexus/memory/`, `.nexus/state/`, `.nexus/rules/` do not exist.
|
|
43
|
-
|
|
44
|
-
### Resume (`.nexus/` partially exists)
|
|
45
|
-
|
|
46
|
-
Check existing state and resume from the first incomplete step.
|
|
47
|
-
|
|
48
|
-
### Reset (`--reset`)
|
|
49
|
-
|
|
50
|
-
Back up existing `.nexus/` knowledge directories to `.nexus/bak.{timestamp}/`, then enter First Run.
|
|
51
|
-
|
|
52
|
-
### Cleanup (`--reset --cleanup`)
|
|
53
|
-
|
|
54
|
-
Show backup directory list, let user select backups to delete.
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## Process
|
|
59
|
-
|
|
60
|
-
### Phase 0: Mode Detection
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
IF --reset --cleanup flag:
|
|
64
|
-
Show list of .nexus/bak.*/ directories
|
|
65
|
-
Prompt user with options via `{{user_question question="Select a backup to delete (or cancel)" options=[<backup list...>, {label: Cancel, description: "Exit without changes"}]}}`.
|
|
66
|
-
Delete selected backup and exit
|
|
67
|
-
|
|
68
|
-
ELSE IF --reset flag:
|
|
69
|
-
Move .nexus/{memory,context,state,rules}/ → .nexus/bak.{timestamp}/
|
|
70
|
-
Inform: "Existing knowledge has been backed up to .nexus/bak.{timestamp}/. Starting re-onboarding."
|
|
71
|
-
→ Enter First Run
|
|
72
|
-
|
|
73
|
-
ELSE IF .nexus/context/ exists:
|
|
74
|
-
→ Enter Resume (check existing steps and resume)
|
|
75
|
-
|
|
76
|
-
ELSE:
|
|
77
|
-
→ Enter First Run (from Step 1)
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
## Steps
|
|
83
|
-
|
|
84
|
-
### Step 1: Project Scan
|
|
85
|
-
|
|
86
|
-
Auto-detect code structure and tech stack. Create the flat `.nexus/` directory structure if it does not exist.
|
|
87
|
-
|
|
88
|
-
Create directories (using shell command execution):
|
|
89
|
-
- `.nexus/memory/`
|
|
90
|
-
- `.nexus/context/`
|
|
91
|
-
- `.nexus/state/`
|
|
92
|
-
- `.nexus/rules/`
|
|
93
|
-
|
|
94
|
-
Collected items:
|
|
95
|
-
- **Directory structure**: top-level layout, major modules/packages
|
|
96
|
-
- **Tech stack**: language, framework, runtime (package.json, Cargo.toml, pyproject.toml, go.mod, build.gradle, etc.)
|
|
97
|
-
- **Build/test system**: scripts, CI configuration
|
|
98
|
-
- **Existing docs**: CLAUDE.md, README.md, docs/, .cursorrules, etc.
|
|
99
|
-
- **git context**: recent commits, branch structure, contributors
|
|
100
|
-
|
|
101
|
-
Output: scan summary (language, framework, structure overview)
|
|
102
|
-
|
|
103
|
-
For large projects (10+ top-level directories or 100+ files), consider spawning an Explore subagent for parallel scanning to reduce Lead context usage.
|
|
104
|
-
|
|
105
|
-
### Step 2: Mission + Essentials (Interactive)
|
|
106
|
-
|
|
107
|
-
Using the Step 1 scan results, draft a Mission statement (1–2 lines) and an Essentials list, then present both to the user for confirmation in a single pass.
|
|
108
|
-
|
|
109
|
-
#### Essentials Guidelines
|
|
110
|
-
|
|
111
|
-
Essentials are agent-critical facts — things an agent would get wrong if it didn't know them. Apply this judgment criterion: **"Would an agent produce wrong results without knowing this?"** Yes → Essentials. No → .nexus/context/.
|
|
112
|
-
|
|
113
|
-
Draft from these five categories (include only what applies to this project):
|
|
114
|
-
|
|
115
|
-
- **Tech stack** — runtime, language, package manager, core framework. Flag non-default tools (e.g. bun instead of npm, deno instead of node).
|
|
116
|
-
- **Workflow** — build, test, deploy commands. Must-follow procedures such as required lint or type-check steps before committing.
|
|
117
|
-
- **Constraints** — forbidden tools, patterns, or approaches. Directories or files that must not be modified.
|
|
118
|
-
- **Domain** — target audience, required terminology or tone, compliance or regulatory constraints, methodology for research projects.
|
|
119
|
-
- **Conventions** — naming, structure, or style that deviate from general defaults. Project-specific patterns an agent would not infer.
|
|
120
|
-
|
|
121
|
-
Do not include items that are standard defaults for the detected tech stack. Do not exceed 10 lines total in the Essentials section.
|
|
122
|
-
|
|
123
|
-
#### Draft Presentation
|
|
124
|
-
|
|
125
|
-
Present the full draft to the user in this format:
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
The following will be added to the instruction file (see harness docs: instruction_file) (existing content will not be changed):
|
|
129
|
-
|
|
130
|
-
<!-- PROJECT:START -->
|
|
131
|
-
## {project-name}
|
|
132
|
-
|
|
133
|
-
{mission 1-2 lines}
|
|
134
|
-
|
|
135
|
-
### Essentials
|
|
136
|
-
- {auto-detected item}
|
|
137
|
-
- {auto-detected item}
|
|
138
|
-
<!-- PROJECT:END -->
|
|
139
|
-
|
|
140
|
-
Any changes?
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
Wait for the user to confirm or provide edits. Apply all changes in one pass — do not ask about Mission and Essentials separately.
|
|
144
|
-
|
|
145
|
-
After confirmation, write the section into the instruction file inside markers using the harness's file-editing primitive. If the instruction file already contains `<!-- PROJECT:START -->` markers, replace the content between them. If the instruction file does not exist, create it with the markers.
|
|
146
|
-
|
|
147
|
-
### Step 3: Context Knowledge Auto-Generation
|
|
148
|
-
|
|
149
|
-
Analyze Step 1 scan results to generate context knowledge documents in `.nexus/context/`.
|
|
150
|
-
|
|
151
|
-
Principles:
|
|
152
|
-
- File names and content are decided freely based on project characteristics. No fixed templates.
|
|
153
|
-
- Existing docs are information sources only — do not replicate their structure verbatim.
|
|
154
|
-
- Do not guess content that cannot be confirmed from code.
|
|
155
|
-
- Typically 1-3 files are sufficient. More files are not better.
|
|
156
|
-
- **Generate abstract-level content only** — design patterns, architecture direction, module relationships, conventions. Do NOT include code-level details such as file listings, function signatures, or import maps. Those can be read directly from code.
|
|
157
|
-
|
|
158
|
-
Generation targets (select and name based on what the project actually needs):
|
|
159
|
-
- Development stack (languages, frameworks, runtimes, key dependencies, build/test/deploy workflow)
|
|
160
|
-
- Design and architecture (module relationships, data flow, core entry points, conventions)
|
|
161
|
-
- Implementation specifics (pipeline details, configuration patterns, file structure conventions, tool restrictions — anything too specific for the instruction file but not readable from code alone)
|
|
162
|
-
|
|
163
|
-
Use the harness's file-creation primitive to create files at `.nexus/context/{chosen-name}.md`.
|
|
164
|
-
|
|
165
|
-
For large projects, spawn Writer subagents per topic to generate context knowledge in parallel. Lead coordinates and reviews outputs.
|
|
166
|
-
|
|
167
|
-
On completion: "context knowledge N files generated"
|
|
168
|
-
|
|
169
|
-
### Step 4: Rules Initial Setup (Optional)
|
|
170
|
-
|
|
171
|
-
Check whether team custom rules are needed.
|
|
172
|
-
|
|
173
|
-
```
|
|
174
|
-
{{user_question question="Do you want to set up development rules now?" options=[{label: "Set up", description: "Coding conventions, test policy, commit rules, etc."}, {label: Skip, description: "Can be added later via [rule] tag"}]}}
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
If "Set up": present a draft based on scan results → user confirms → save via the harness's file-creation primitive to `.nexus/rules/{topic}.md`.
|
|
178
|
-
|
|
179
|
-
If "Skip": inform and proceed to Step 5.
|
|
180
|
-
|
|
181
|
-
### Step 5: Completion Summary
|
|
182
|
-
|
|
183
|
-
Output a summary of the onboarding results.
|
|
184
|
-
|
|
185
|
-
```
|
|
186
|
-
## Nexus Initialization Complete
|
|
187
|
-
|
|
188
|
-
### Generated Files
|
|
189
|
-
- instruction file: project section — mission and essentials (<!-- PROJECT:START/END -->)
|
|
190
|
-
- .nexus/context/: {list of generated files}
|
|
191
|
-
- .nexus/rules/: {generated files or "none (skipped)"}
|
|
192
|
-
|
|
193
|
-
### Next Steps
|
|
194
|
-
- [plan] — research, analyze, and plan before execution
|
|
195
|
-
- [run] — execute from a plan
|
|
196
|
-
- Manual re-run trigger with `--reset` flag — re-run onboarding (existing knowledge will be backed up). See harness docs: slash_command_display.
|
|
197
|
-
```
|