@dsmm/dsmm 0.1.9 → 0.2.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 +46 -58
- package/agent-presets/dsmm-builder/agent.cordis.yml +91 -186
- package/agent-presets/dsmm-builder/preset.yml +1 -1
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +120 -17
- package/agent-presets/dsmm-clarifier/preset.yml +1 -1
- package/agent-presets/dsmm-code-search/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-code-search/preset.yml +1 -1
- package/agent-presets/dsmm-coding/agent.cordis.yml +169 -0
- package/agent-presets/dsmm-coding/preset.yml +3 -0
- package/agent-presets/dsmm-complex/agent.cordis.yml +154 -0
- package/agent-presets/dsmm-complex/preset.yml +3 -0
- package/agent-presets/dsmm-creative/agent.cordis.yml +122 -15
- package/agent-presets/dsmm-creative/preset.yml +1 -1
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +179 -0
- package/agent-presets/dsmm-cross-cutting/preset.yml +3 -0
- package/agent-presets/dsmm-deep/agent.cordis.yml +189 -0
- package/agent-presets/dsmm-deep/preset.yml +3 -0
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-doc-search/preset.yml +1 -1
- package/agent-presets/dsmm-documenting/agent.cordis.yml +168 -0
- package/agent-presets/dsmm-documenting/preset.yml +3 -0
- package/agent-presets/dsmm-frontend/agent.cordis.yml +161 -0
- package/agent-presets/dsmm-frontend/preset.yml +3 -0
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +153 -0
- package/agent-presets/dsmm-hard-reasoning/preset.yml +3 -0
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-media-reader/preset.yml +1 -1
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +127 -0
- package/agent-presets/dsmm-normal-task/preset.yml +3 -0
- package/agent-presets/dsmm-oracle/agent.cordis.yml +109 -15
- package/agent-presets/dsmm-oracle/preset.yml +1 -1
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +109 -15
- package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +174 -190
- package/agent-presets/dsmm-orchestrator/preset.yml +1 -1
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +102 -16
- package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +134 -15
- package/agent-presets/dsmm-planner/preset.yml +1 -1
- package/agent-presets/dsmm-quick/agent.cordis.yml +132 -0
- package/agent-presets/dsmm-quick/preset.yml +3 -0
- package/agent-presets/dsmm-research/agent.cordis.yml +156 -0
- package/agent-presets/dsmm-research/preset.yml +3 -0
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +108 -16
- package/agent-presets/dsmm-reviewer/preset.yml +1 -1
- package/cordis.patch.yml +1 -5
- package/docs/agent-presets.md +48 -15
- package/docs/compatibility.md +58 -68
- package/docs/deferred-native-approval-risk.md +19 -0
- package/docs/design.md +43 -2
- package/docs/lsp.md +12 -12
- package/docs/migration-from-ocmm.md +10 -2
- package/docs/model-routing.md +84 -59
- package/docs/native-permissions.md +35 -0
- package/docs/profiles.md +43 -64
- package/docs/releasing.md +159 -8
- package/docs/roadmap.md +77 -17
- package/docs/runtime-recovery.md +12 -0
- package/docs/safety-guards.md +7 -3
- package/docs/settings-status.md +46 -40
- package/docs/skill-sync.md +89 -14
- package/lib/child-admission-contract.d.ts +37 -0
- package/lib/child-admission-contract.js +2 -0
- package/lib/child-admission.d.ts +42 -0
- package/lib/child-admission.js +162 -0
- package/lib/child-capture.d.ts +81 -0
- package/lib/child-capture.js +203 -0
- package/lib/child-evidence.d.ts +17 -0
- package/lib/child-evidence.js +43 -0
- package/lib/client/ChildrenPanel.d.ts +43 -0
- package/lib/client/ChildrenPanel.js +82 -0
- package/lib/client/DeploymentPage.d.ts +18 -0
- package/lib/client/DeploymentPage.js +127 -0
- package/lib/client/EditableChoice.d.ts +17 -0
- package/lib/client/EditableChoice.js +49 -0
- package/lib/client/PermissionsPanel.d.ts +14 -0
- package/lib/client/PermissionsPanel.js +46 -0
- package/lib/client/ProfilesSection.js +32 -15
- package/lib/client/RoleAvailability.d.ts +7 -0
- package/lib/client/RoleAvailability.js +19 -0
- package/lib/client/SessionProfiles.js +27 -9
- package/lib/client/StructuredEditor.js +15 -7
- package/lib/client/children-controller.d.ts +98 -0
- package/lib/client/children-controller.js +296 -0
- package/lib/client/children-locales.d.ts +367 -0
- package/lib/client/children-locales.js +69 -0
- package/lib/client/controller.d.ts +6 -1
- package/lib/client/controller.js +14 -8
- package/lib/client/deployment-controller.d.ts +50 -0
- package/lib/client/deployment-controller.js +193 -0
- package/lib/client/deployment-data.d.ts +17 -0
- package/lib/client/deployment-data.js +138 -0
- package/lib/client/deployment-locales.d.ts +70 -0
- package/lib/client/deployment-locales.js +81 -0
- package/lib/client/diagnostics.d.ts +14 -0
- package/lib/client/diagnostics.js +53 -0
- package/lib/client/index.d.ts +4 -0
- package/lib/client/index.js +145 -1
- package/lib/client/locales.d.ts +58 -0
- package/lib/client/locales.js +38 -18
- package/lib/client/permission-client.d.ts +16 -0
- package/lib/client/permission-client.js +38 -0
- package/lib/client/permission-controller.d.ts +62 -0
- package/lib/client/permission-controller.js +149 -0
- package/lib/client/permission-locales.d.ts +114 -0
- package/lib/client/permission-locales.js +75 -0
- package/lib/client/plugins-contract.d.ts +27 -0
- package/lib/client/plugins-contract.js +2 -0
- package/lib/client/session-labels.js +4 -4
- package/lib/client/structured.js +19 -5
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +36 -0
- package/lib/client.js +6724 -1604
- package/lib/commands.js +3 -0
- package/lib/config-file-store.d.ts +23 -0
- package/lib/config-file-store.js +67 -0
- package/lib/core-permission-authority.d.ts +18 -0
- package/lib/core-permission-authority.js +255 -0
- package/lib/core-permissions.d.ts +8 -0
- package/lib/core-permissions.js +33 -0
- package/lib/delivery-authority.d.ts +68 -0
- package/lib/delivery-authority.js +260 -0
- package/lib/deployment-config.d.ts +60 -0
- package/lib/deployment-config.js +205 -0
- package/lib/deployment-permission-rules.d.ts +55 -0
- package/lib/deployment-permission-rules.js +306 -0
- package/lib/dsh-home.d.ts +3 -0
- package/lib/dsh-home.js +10 -0
- package/lib/dsh-types.d.ts +22 -69
- package/lib/guards.d.ts +3 -2
- package/lib/guards.js +44 -6
- package/lib/host-llm-startup.d.ts +41 -0
- package/lib/host-llm-startup.js +65 -0
- package/lib/host-llm.d.ts +92 -0
- package/lib/host-llm.js +325 -0
- package/lib/index.d.ts +23 -5
- package/lib/index.js +383 -40
- package/lib/legacy-child-policy.d.ts +51 -0
- package/lib/legacy-child-policy.js +123 -0
- package/lib/legacy-read-composition.d.ts +20 -0
- package/lib/legacy-read-composition.js +144 -0
- package/lib/legacy-read-contracts.d.ts +157 -0
- package/lib/legacy-read-contracts.js +39 -0
- package/lib/legacy-read-host.d.ts +19 -0
- package/lib/legacy-read-host.js +67 -0
- package/lib/legacy-read-integration.d.ts +121 -0
- package/lib/legacy-read-integration.js +522 -0
- package/lib/legacy-read-proxy.d.ts +26 -0
- package/lib/legacy-read-proxy.js +237 -0
- package/lib/live-pi-ai-owner.d.ts +18 -0
- package/lib/live-pi-ai-owner.js +144 -0
- package/lib/llm-runtime.d.ts +11 -0
- package/lib/llm-runtime.js +21 -0
- package/lib/lsp.d.ts +13 -0
- package/lib/lsp.js +60 -0
- package/lib/managed-settings.d.ts +5 -0
- package/lib/managed-settings.js +14 -0
- package/lib/mode.js +42 -47
- package/lib/model-parameter-policy.d.ts +11 -0
- package/lib/model-parameter-policy.js +27 -0
- package/lib/model-routing.js +33 -19
- package/lib/modules.d.ts +35 -0
- package/lib/modules.js +37 -0
- package/lib/native-child-evidence.d.ts +42 -0
- package/lib/native-child-evidence.js +133 -0
- package/lib/native-pi-ai-wire.d.ts +37 -0
- package/lib/native-pi-ai-wire.js +261 -0
- package/lib/native-scope.d.ts +9 -0
- package/lib/native-scope.js +20 -0
- package/lib/permission-bash.d.ts +6 -0
- package/lib/permission-bash.js +7 -0
- package/lib/permission-control.d.ts +73 -0
- package/lib/permission-control.js +205 -0
- package/lib/permission-controller.d.ts +68 -0
- package/lib/permission-controller.js +317 -0
- package/lib/permission-errors.d.ts +7 -0
- package/lib/permission-errors.js +21 -0
- package/lib/permission-fs-search.d.ts +5 -0
- package/lib/permission-fs-search.js +7 -0
- package/lib/permission-fs.d.ts +5 -0
- package/lib/permission-fs.js +7 -0
- package/lib/permission-native-access.d.ts +11 -0
- package/lib/permission-native-access.js +6 -0
- package/lib/permission-native-command.d.ts +10 -0
- package/lib/permission-native-command.js +93 -0
- package/lib/permission-native-rules.d.ts +75 -0
- package/lib/permission-native-rules.js +278 -0
- package/lib/permission-pwsh.d.ts +6 -0
- package/lib/permission-pwsh.js +7 -0
- package/lib/permission-remote.d.ts +26 -0
- package/lib/permission-remote.js +53 -0
- package/lib/permission-rpc.d.ts +29 -0
- package/lib/permission-rpc.js +152 -0
- package/lib/permission-rules.d.ts +115 -0
- package/lib/permission-rules.js +256 -0
- package/lib/permission-settings.d.ts +45 -0
- package/lib/permission-settings.js +48 -0
- package/lib/permission-shell.d.ts +38 -0
- package/lib/permission-shell.js +150 -0
- package/lib/permission-web.d.ts +5 -0
- package/lib/permission-web.js +7 -0
- package/lib/plan-validation.js +6 -44
- package/lib/preset-materializer.js +2 -0
- package/lib/preset-registry.d.ts +1 -1
- package/lib/preset-registry.js +38 -24
- package/lib/preset-skills.d.ts +4 -1
- package/lib/preset-skills.js +60 -19
- package/lib/profile-diagnostics.d.ts +45 -0
- package/lib/profile-diagnostics.js +148 -0
- package/lib/profile-locale.d.ts +3 -0
- package/lib/profile-locale.js +2 -0
- package/lib/profile-remote.d.ts +22 -0
- package/lib/profile-remote.js +344 -27
- package/lib/profile-rpc.d.ts +25 -1
- package/lib/profile-rpc.js +143 -3
- package/lib/profile-runtime.d.ts +63 -0
- package/lib/profile-runtime.js +496 -77
- package/lib/profile-store.d.ts +56 -1
- package/lib/profile-store.js +377 -111
- package/lib/profile-types.d.ts +125 -1
- package/lib/profile-types.js +1 -0
- package/lib/profiles.d.ts +16 -2
- package/lib/profiles.js +156 -79
- package/lib/prompt-content.d.ts +25 -0
- package/lib/prompt-content.js +27 -0
- package/lib/prompts.d.ts +45 -4
- package/lib/prompts.js +157 -43
- package/lib/recovery-policy.js +20 -7
- package/lib/role-control-remote.d.ts +38 -0
- package/lib/role-control-remote.js +211 -0
- package/lib/role-control-rpc.d.ts +51 -0
- package/lib/role-control-rpc.js +377 -0
- package/lib/role-control-types.d.ts +92 -0
- package/lib/role-control-types.js +8 -0
- package/lib/role-invocation.d.ts +47 -0
- package/lib/role-invocation.js +135 -0
- package/lib/role-llm-runtime.d.ts +17 -0
- package/lib/role-llm-runtime.js +62 -0
- package/lib/role-llm.d.ts +31 -0
- package/lib/role-llm.js +66 -0
- package/lib/role-policy.d.ts +92 -0
- package/lib/role-policy.js +601 -0
- package/lib/role-providers.d.ts +7 -3
- package/lib/role-providers.js +74 -46
- package/lib/role-routing.d.ts +11 -2
- package/lib/role-routing.js +42 -25
- package/lib/role-runs.d.ts +135 -0
- package/lib/role-runs.js +304 -0
- package/lib/role-subagents.d.ts +63 -4
- package/lib/role-subagents.js +299 -47
- package/lib/roles.d.ts +20 -9
- package/lib/roles.js +87 -216
- package/lib/route-json.d.ts +19 -0
- package/lib/route-json.js +129 -0
- package/lib/routing-policy.d.ts +2 -0
- package/lib/routing-policy.js +12 -2
- package/lib/runtime-integration.d.ts +112 -0
- package/lib/runtime-integration.js +784 -0
- package/lib/runtime-recovery.js +34 -13
- package/lib/session-scope.js +2 -0
- package/lib/settings.d.ts +116 -14
- package/lib/settings.js +455 -149
- package/lib/skills.d.ts +24 -9
- package/lib/skills.js +114 -35
- package/lib/state.d.ts +10 -6
- package/lib/state.js +48 -49
- package/lib/status.d.ts +35 -1
- package/lib/status.js +58 -17
- package/lib/subagent-runtime.d.ts +45 -0
- package/lib/subagent-runtime.js +131 -0
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +112 -45
- package/patches/subagent-runtime.yml +15 -0
- package/prompts/deepseek-flash.md +1 -1
- package/prompts/deepseek-v4-pro.md +2 -2
- package/prompts/deepwork.md +153 -20
- package/prompts/source/agents/clarifier.md +47 -0
- package/prompts/source/agents/orchestrator.md +72 -0
- package/prompts/source/agents/plan-critic.md +29 -0
- package/prompts/source/agents/planner.md +21 -0
- package/prompts/source/agents/reviewer.md +23 -0
- package/prompts/source/catalog.json +548 -0
- package/prompts/source/category/coding.md +46 -0
- package/prompts/source/category/complex.md +29 -0
- package/prompts/source/category/creative.md +40 -0
- package/prompts/source/category/cross-cutting.md +54 -0
- package/prompts/source/category/deep.md +64 -0
- package/prompts/source/category/documenting.md +68 -0
- package/prompts/source/category/frontend.md +38 -0
- package/prompts/source/category/hard-reasoning.md +53 -0
- package/prompts/source/category/normal-task.md +27 -0
- package/prompts/source/category/quick.md +34 -0
- package/prompts/source/category/research.md +58 -0
- package/prompts/source/deepwork/claude-opus-5.md +28 -0
- package/prompts/source/deepwork/codex.md +9 -0
- package/prompts/source/deepwork/default.md +136 -0
- package/prompts/source/deepwork/gemini.md +191 -0
- package/prompts/source/deepwork/glm.md +263 -0
- package/prompts/source/deepwork/gpt.md +49 -0
- package/prompts/source/deepwork/kimi-k27.md +13 -0
- package/prompts/source/deepwork/planner.md +44 -0
- package/prompts/source/deepwork/swe-2.md +13 -0
- package/prompts/source/manifest.json +3233 -0
- package/prompts/source/shared/dsh-host-contract.md +8 -0
- package/prompts/source/shared/locale.md +8 -0
- package/prompts/source/shared/shell-safety.md +7 -0
- package/prompts/source/terminal/builder.md +13 -0
- package/prompts/source/terminal/clarifier.md +41 -0
- package/prompts/source/terminal/code-search.md +39 -0
- package/prompts/source/terminal/coding.md +41 -0
- package/prompts/source/terminal/complex.md +43 -0
- package/prompts/source/terminal/creative.md +41 -0
- package/prompts/source/terminal/cross-cutting.md +43 -0
- package/prompts/source/terminal/deep.md +43 -0
- package/prompts/source/terminal/doc-search.md +39 -0
- package/prompts/source/terminal/documenting.md +41 -0
- package/prompts/source/terminal/frontend.md +41 -0
- package/prompts/source/terminal/hard-reasoning.md +41 -0
- package/prompts/source/terminal/media-reader.md +39 -0
- package/prompts/source/terminal/normal-task.md +41 -0
- package/prompts/source/terminal/oracle-2nd.md +53 -0
- package/prompts/source/terminal/oracle.md +53 -0
- package/prompts/source/terminal/orchestrator.md +26 -0
- package/prompts/source/terminal/plan-critic.md +41 -0
- package/prompts/source/terminal/planner.md +42 -0
- package/prompts/source/terminal/quick.md +39 -0
- package/prompts/source/terminal/research.md +39 -0
- package/prompts/source/terminal/reviewer.md +53 -0
- package/scripts/cold-profile-composition.mjs +329 -0
- package/scripts/cold-profile-sources.mjs +238 -0
- package/scripts/migrate-cold-profile.mjs +315 -0
- package/skills/ast-grep/LICENSE +21 -0
- package/skills/ast-grep/README.md +138 -0
- package/skills/ast-grep/SKILL.md +287 -0
- package/skills/ast-grep/SOURCE +1 -0
- package/skills/ast-grep/install.ps1 +235 -0
- package/skills/ast-grep/install.sh +286 -0
- package/skills/ast-grep/references/cli.md +233 -0
- package/skills/ast-grep/references/install.md +168 -0
- package/skills/ast-grep/references/patterns.md +149 -0
- package/skills/ast-grep/references/pitfalls.md +305 -0
- package/skills/ast-grep/references/recipes.md +404 -0
- package/skills/ast-grep/references/sgconfig.md +250 -0
- package/skills/ast-grep/references/yaml-rules.md +511 -0
- package/skills/ast-grep/scripts/ast_grep_helper.py +760 -0
- package/skills/ast-grep/tests/smoke.ps1 +129 -0
- package/skills/ast-grep/tests/smoke.sh +212 -0
- package/skills/ast-grep/tests/test_resolver.py +154 -0
- package/skills/brainstorming/SKILL.md +123 -9
- package/skills/coding-agent-sessions/LICENSE-UPSTREAM.md +82 -0
- package/skills/coding-agent-sessions/NOTICE.md +24 -0
- package/skills/coding-agent-sessions/SKILL.md +147 -0
- package/skills/coding-agent-sessions/agents/openai.yaml +4 -0
- package/skills/coding-agent-sessions/pyrightconfig.json +5 -0
- package/skills/coding-agent-sessions/references/all-platforms.md +77 -0
- package/skills/coding-agent-sessions/references/claude.md +34 -0
- package/skills/coding-agent-sessions/references/codex.md +32 -0
- package/skills/coding-agent-sessions/references/opencode.md +45 -0
- package/skills/coding-agent-sessions/references/senpi.md +29 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/__init__.py +1 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py +140 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/claude.py +66 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/cli.py +283 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/codex.py +105 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/file_scanners.py +275 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/jsonio.py +55 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/kiro_scanner.py +91 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/opencode.py +289 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +104 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_optional_scanners.py +203 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_scanners.py +177 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/timeparse.py +51 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/transcript.py +149 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/types.py +57 -0
- package/skills/coding-agent-sessions/scripts/find-agent-sessions.py +19 -0
- package/skills/coding-agent-sessions/scripts/tests/test_agent_sessions.py +322 -0
- package/skills/coding-agent-sessions/scripts/tests/test_aside_scanner.py +131 -0
- package/skills/coding-agent-sessions/scripts/tests/test_cli_contract.py +126 -0
- package/skills/coding-agent-sessions/scripts/tests/test_extended_scanners.py +262 -0
- package/skills/coding-agent-sessions/scripts/tests/test_optional_sqlite_scanners.py +79 -0
- package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -0
- package/skills/debugging/SKILL.md +130 -4
- package/skills/debugging/references/logging.md +2 -0
- package/skills/debugging/references/methodology/00-setup.md +16 -62
- package/skills/debugging/references/methodology/02-investigate.md +11 -5
- package/skills/debugging/references/methodology/03-flaky-triage.md +6 -4
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +6 -16
- package/skills/debugging/references/methodology/05-escalate.md +2 -0
- package/skills/debugging/references/methodology/06-fix.md +8 -6
- package/skills/debugging/references/methodology/08-qa.md +7 -5
- package/skills/debugging/references/methodology/09-cleanup.md +16 -152
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +7 -18
- package/skills/debugging/references/runtimes/bundled-js-binary.md +3 -16
- package/skills/debugging/references/runtimes/go.md +2 -0
- package/skills/debugging/references/runtimes/native-binary.md +11 -54
- package/skills/debugging/references/runtimes/node.md +6 -15
- package/skills/debugging/references/runtimes/python.md +5 -15
- package/skills/debugging/references/runtimes/rust.md +4 -18
- package/skills/debugging/references/scripts/dap.test.mjs +539 -0
- package/skills/debugging/references/scripts/fixture-adapter.mjs +164 -0
- package/skills/debugging/references/tools/dap.md +4 -2
- package/skills/debugging/references/tools/ghidra.md +6 -15
- package/skills/debugging/references/tools/playwright-cli.md +5 -15
- package/skills/debugging/references/tools/pwndbg.md +2 -0
- package/skills/debugging/references/tools/pwntools.md +6 -16
- package/skills/dispatching-parallel-agents/SKILL.md +96 -7
- package/skills/frontend/.frontend-materialized.json +856 -0
- package/skills/frontend/ATTRIBUTION.md +37 -0
- package/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
- package/skills/frontend/LICENSE-taste-skill.txt +21 -0
- package/skills/frontend/LICENSE-ui-ux-pro-max.txt +21 -0
- package/skills/frontend/SKILL.md +145 -0
- package/skills/frontend/references/design/README.md +256 -0
- package/skills/frontend/references/design/_INDEX.md +206 -0
- package/skills/frontend/references/design/airbnb.md +393 -0
- package/skills/frontend/references/design/airtable.md +92 -0
- package/skills/frontend/references/design/apple.md +250 -0
- package/skills/frontend/references/design/aside.md +211 -0
- package/skills/frontend/references/design/binance.md +348 -0
- package/skills/frontend/references/design/bmw.md +183 -0
- package/skills/frontend/references/design/brutalist-skill.md +92 -0
- package/skills/frontend/references/design/bugatti.md +271 -0
- package/skills/frontend/references/design/cal.md +262 -0
- package/skills/frontend/references/design/claude.md +315 -0
- package/skills/frontend/references/design/clay.md +307 -0
- package/skills/frontend/references/design/clickhouse.md +284 -0
- package/skills/frontend/references/design/clone-from-url.md +69 -0
- package/skills/frontend/references/design/cohere.md +269 -0
- package/skills/frontend/references/design/coinbase.md +132 -0
- package/skills/frontend/references/design/composio.md +310 -0
- package/skills/frontend/references/design/cursor.md +312 -0
- package/skills/frontend/references/design/design-system-architecture.md +250 -0
- package/skills/frontend/references/design/elevenlabs.md +268 -0
- package/skills/frontend/references/design/expo.md +284 -0
- package/skills/frontend/references/design/ferrari.md +317 -0
- package/skills/frontend/references/design/figma.md +223 -0
- package/skills/frontend/references/design/framer.md +249 -0
- package/skills/frontend/references/design/gpt-tasteskill.md +74 -0
- package/skills/frontend/references/design/hashicorp.md +281 -0
- package/skills/frontend/references/design/ibm.md +335 -0
- package/skills/frontend/references/design/image-to-code-skill.md +1228 -0
- package/skills/frontend/references/design/imagegen-brandkit.md +798 -0
- package/skills/frontend/references/design/imagegen-frontend-mobile.md +1465 -0
- package/skills/frontend/references/design/imagegen-frontend-web.md +987 -0
- package/skills/frontend/references/design/interaction-skill.md +52 -0
- package/skills/frontend/references/design/intercom.md +149 -0
- package/skills/frontend/references/design/kraken.md +128 -0
- package/skills/frontend/references/design/lamborghini.md +291 -0
- package/skills/frontend/references/design/linear.app.md +370 -0
- package/skills/frontend/references/design/lovable.md +301 -0
- package/skills/frontend/references/design/mastercard.md +368 -0
- package/skills/frontend/references/design/meta.md +369 -0
- package/skills/frontend/references/design/minimalist-skill.md +85 -0
- package/skills/frontend/references/design/minimax.md +260 -0
- package/skills/frontend/references/design/mintlify.md +329 -0
- package/skills/frontend/references/design/miro.md +111 -0
- package/skills/frontend/references/design/mistral.ai.md +264 -0
- package/skills/frontend/references/design/mongodb.md +269 -0
- package/skills/frontend/references/design/nike.md +366 -0
- package/skills/frontend/references/design/notion.md +312 -0
- package/skills/frontend/references/design/nvidia.md +296 -0
- package/skills/frontend/references/design/ollama.md +270 -0
- package/skills/frontend/references/design/opencode.ai.md +284 -0
- package/skills/frontend/references/design/output-skill.md +49 -0
- package/skills/frontend/references/design/pinterest.md +233 -0
- package/skills/frontend/references/design/playstation.md +367 -0
- package/skills/frontend/references/design/posthog.md +259 -0
- package/skills/frontend/references/design/raycast.md +271 -0
- package/skills/frontend/references/design/react-dev-tooling-skill.md +232 -0
- package/skills/frontend/references/design/redesign-skill.md +178 -0
- package/skills/frontend/references/design/renault.md +314 -0
- package/skills/frontend/references/design/replicate.md +264 -0
- package/skills/frontend/references/design/resend.md +306 -0
- package/skills/frontend/references/design/revolut.md +188 -0
- package/skills/frontend/references/design/runwayml.md +247 -0
- package/skills/frontend/references/design/sanity.md +360 -0
- package/skills/frontend/references/design/sentry.md +265 -0
- package/skills/frontend/references/design/shopify.md +353 -0
- package/skills/frontend/references/design/soft-skill.md +98 -0
- package/skills/frontend/references/design/spacex.md +197 -0
- package/skills/frontend/references/design/spotify.md +249 -0
- package/skills/frontend/references/design/starbucks.md +583 -0
- package/skills/frontend/references/design/stitch-design-example.md +121 -0
- package/skills/frontend/references/design/stitch-skill.md +184 -0
- package/skills/frontend/references/design/stripe.md +325 -0
- package/skills/frontend/references/design/supabase.md +258 -0
- package/skills/frontend/references/design/superhuman.md +255 -0
- package/skills/frontend/references/design/taste-skill.md +1206 -0
- package/skills/frontend/references/design/tesla.md +289 -0
- package/skills/frontend/references/design/theverge.md +342 -0
- package/skills/frontend/references/design/together.ai.md +266 -0
- package/skills/frontend/references/design/uber.md +298 -0
- package/skills/frontend/references/design/vercel.md +313 -0
- package/skills/frontend/references/design/vodafone.md +426 -0
- package/skills/frontend/references/design/voltagent.md +326 -0
- package/skills/frontend/references/design/warp.md +256 -0
- package/skills/frontend/references/design/webflow.md +95 -0
- package/skills/frontend/references/design/wired.md +281 -0
- package/skills/frontend/references/design/wise.md +176 -0
- package/skills/frontend/references/design/x.ai.md +260 -0
- package/skills/frontend/references/design/zapier.md +331 -0
- package/skills/frontend/references/perfection/README.md +264 -0
- package/skills/frontend/references/perfection/react-perf-tooling.md +234 -0
- package/skills/frontend/references/ui-ux-db/README.md +659 -0
- package/skills/frontend/references/ui-ux-db/data/app-interface.csv +31 -0
- package/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
- package/skills/frontend/references/ui-ux-db/data/colors.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/google-fonts.csv +1924 -0
- package/skills/frontend/references/ui-ux-db/data/icons.csv +106 -0
- package/skills/frontend/references/ui-ux-db/data/landing.csv +35 -0
- package/skills/frontend/references/ui-ux-db/data/products.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/angular.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/laravel.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/threejs.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/skills/frontend/references/ui-ux-db/data/styles.csv +85 -0
- package/skills/frontend/references/ui-ux-db/data/typography.csv +74 -0
- package/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
- package/skills/frontend/references/ui-ux-db/scripts/core.py +262 -0
- package/skills/frontend/references/ui-ux-db/scripts/design_system.py +1148 -0
- package/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
- package/skills/frontend/scripts/perfection/lighthouse-audit.py +201 -0
- package/skills/git-master/SKILL.md +115 -0
- package/skills/git-master/agents/openai.yaml +13 -0
- package/skills/init-deep/SKILL.md +282 -0
- package/skills/receiving-code-review/SKILL.md +117 -7
- package/skills/remove-ai-slops/SKILL.md +160 -8
- package/skills/requesting-code-review/SKILL.md +98 -3
- package/skills/requesting-code-review/code-reviewer.md +59 -0
- package/skills/subagent-driven-development/SKILL.md +179 -6
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +23 -0
- package/skills/subagent-driven-development/implementer-prompt.md +87 -0
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +37 -0
- package/skills/using-git-worktrees/SKILL.md +144 -0
- package/skills/writing-plans/SKILL.md +126 -7
- package/skills/writing-plans/plan-document-reviewer-prompt.md +47 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: init-deep
|
|
3
|
+
description: "(builtin) Initialize hierarchical AGENTS.md knowledge base"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## DSH resource and authority contract
|
|
7
|
+
|
|
8
|
+
This is a full OCMM source adaptation for DSH 0.2.0-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
|
|
9
|
+
|
|
10
|
+
- Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
|
|
11
|
+
- External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
|
|
12
|
+
- Source role names are logical assignments: code-search/explore maps to role ID dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Use this Agent's observed admitted inventory: per-role topology has individual role tools (for example dsmm_plan_critic) plus dsmm_category; parameterized topology has dsmm_role and dsmm_category with their actual role/category enums. Never derive callability from generated files, names or templates. Both layouts preserve target, caller, read-only, inherited tool and depth ceilings; a missing required formal role returns to the stage owner, not a planning bypass.
|
|
13
|
+
- Templates describe assignment content, not callable schemas. Actual delegation takes description/prompt, an exposed level, a deployment-authorized exposed route, and an exposed run_in_background only. Omitted/normal retains the default; low/high/max must be configured at roleRouting.<id>.levels as a complete route or exact supported effort, never synthetic suffix roles or fixed max effort. A complete invocation route needs paired provider/model and cannot silently fall back; effort-only needs exact native preflight. Level/layout never change permissions or verification rigor. Reviewer/Oracle independence requires different observed native routes, not names.
|
|
14
|
+
- One-shot defaults foreground; permitted one-shot background is native-job-owned. A managed admitted continuable configuration defaults background; explicit run_in_background:false creates a non-reusable one-shot. Use only exposed job_output/job_list/job_kill or send_message/interrupt_agent and returned identities. Existing continuable children can receive nearest-step running messages, idle next turns or same-ID cold continuation; receipts mean inbox acceptance, not completion. Exposed native child-to-parent reporting retains exact-sender/adjacency semantics, not new parent-to-child authority. Settled one-shots never revive; reuse never reselects role/level/route or copies a parent's newer policy into the original child capture. Do not send OpenCode task_id/subagent_type/background/resume/retry or guessed control fields.
|
|
15
|
+
- Host observations alone establish lifecycle controls. Managed delivery requires explicit startup composition: disable the stock subagents row, bind the unique PUBLIC DSMM SubagentRuntime subclass and restart; never hot-replace/drain stock or add a shadow runtime. When actually wired and authorized, a user foreground handoff transfers the existing same run to native jobs without a second start; native user queue/steer follows its operator/connection/session/epoch gate. Do not announce unconnected tools/RPCs. Background enablement, capacity, ownership, depth, cancellation and provider support always gate execution. Legacy conservative evidence may permit useful proven capabilities under the same durable child ID; missing evidence denies that capability with a reason, not all legacy children and not an inheritance of current parent policy.
|
|
16
|
+
- When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not OCMM compress, and no model-facing compression call is assumed. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
|
|
17
|
+
- Follow the current user's explicit output-language request, otherwise this Agent's immutable captured DSMM locale when supplied, then applicable host/user language guidance or the current request/context. Supported configured locales are en/zh-Hans/zh-Hant/ja/ko/de/fr/es/pt-BR/ru; omission inherits, not an English default. Preserve code, identifiers, paths, commands, protocol fields and exact quotes, and pass explicit language instructions in child assignments. This resource imports no Root session preference, promises neither internal reasoning language nor UI translation, and never changes host/project locale. A later parent Apply does not rewrite a child's captured locale.
|
|
18
|
+
- Installation, package-manager bootstrap, downloads, authentication/login, credential/profile access, Git writes and destructive actions require explicit authorization for the exact action. Reference commands are not automatic operations. Worktree consent does not authorize dependency installation or later branch deletion. Read before changing an existing file; preserve unrelated user work. Never silently restore/reset a working tree to repair a failed cleanup.
|
|
19
|
+
- Browser/debug QA uses run-owned isolated state, no imported credentials or browser profile, and only already available software unless separately authorized. Keep commands in the active shell dialect. Report unverified surfaces honestly.
|
|
20
|
+
|
|
21
|
+
# /init-deep
|
|
22
|
+
|
|
23
|
+
Generate hierarchical AGENTS.md files. Root + complexity-scored subdirectories.
|
|
24
|
+
|
|
25
|
+
## Tool and Host Notes
|
|
26
|
+
|
|
27
|
+
- Follow the current callable schema for delegation and task tracking; do not assume host-specific parameter names or profiles.
|
|
28
|
+
- Use LSP for symbols, references, diagnostics, and rename. Use Grep, Read, and Glob for text and file discovery.
|
|
29
|
+
- Use ast-grep only for a specific exact syntax-tree question or deterministic codemod that the other tools cannot express reliably.
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
/init-deep # Update mode: modify existing + create new where warranted
|
|
35
|
+
/init-deep --create-new # Read existing → remove all → regenerate from scratch
|
|
36
|
+
/init-deep --max-depth=2 # Limit directory depth (default: 3)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Workflow (High-Level)
|
|
42
|
+
|
|
43
|
+
1. **Discovery + Analysis** (concurrent)
|
|
44
|
+
- Dispatch independent exploration concurrently when the parent has useful work to do
|
|
45
|
+
- Main session: structure analysis + LSP code map + read existing AGENTS.md
|
|
46
|
+
2. **Score & Decide** - Determine AGENTS.md locations from merged findings
|
|
47
|
+
3. **Generate** - Root first, then subdirs in parallel
|
|
48
|
+
4. **Review** - Deduplicate, trim, validate
|
|
49
|
+
|
|
50
|
+
<critical>
|
|
51
|
+
Track discovery, scoring, generation, and review in the host's available task-tracking surface; update each phase as it starts and completes.
|
|
52
|
+
</critical>
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Phase 1: Discovery + Analysis (Concurrent)
|
|
57
|
+
|
|
58
|
+
**Mark "discovery" as in_progress.**
|
|
59
|
+
|
|
60
|
+
### Dispatch Independent Exploration
|
|
61
|
+
|
|
62
|
+
When independent parent work remains, dispatch focused exploration concurrently through the current callable schema. Cover project structure, entry points, conventions, anti-patterns, build/CI, and test patterns; ask each child to return concrete paths and evidence. While children run, perform only non-overlapping local discovery. Keep result-gated work foreground, and let the host notify completion rather than polling.
|
|
63
|
+
|
|
64
|
+
<dynamic-agents>
|
|
65
|
+
**DYNAMIC AGENT SPAWNING**: After bash analysis, spawn ADDITIONAL explore agents based on project scale:
|
|
66
|
+
|
|
67
|
+
| Factor | Threshold | Additional Agents |
|
|
68
|
+
|--------|-----------|-------------------|
|
|
69
|
+
| **Total files** | >100 | +1 per 100 files |
|
|
70
|
+
| **Total lines** | >10k | +1 per 10k lines |
|
|
71
|
+
| **Directory depth** | ≥4 | +2 for deep exploration |
|
|
72
|
+
| **Large files (>500 lines)** | >10 files | +1 for complexity hotspots |
|
|
73
|
+
| **Monorepo** | detected | +1 per package/workspace |
|
|
74
|
+
| **Multiple languages** | >1 | +1 per language |
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# Measure project scale first
|
|
78
|
+
total_files=$(find . -type f -not -path '*/node_modules/*' -not -path '*/.git/*' | wc -l)
|
|
79
|
+
total_lines=$(find . -type f \\( -name "*.ts" -o -name "*.py" -o -name "*.go" \\) -not -path '*/node_modules/*' -exec wc -l {} + 2>/dev/null | tail -1 | awk '{print $1}')
|
|
80
|
+
large_files=$(find . -type f \\( -name "*.ts" -o -name "*.py" \\) -not -path '*/node_modules/*' -exec wc -l {} + 2>/dev/null | awk '$1 > 500 {count++} END {print count+0}')
|
|
81
|
+
max_depth=$(find . -type d -not -path '*/node_modules/*' -not -path '*/.git/*' | awk -F/ '{print NF}' | sort -rn | head -1)
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
For example, a large, deep project may justify separate exploration of large files, deep modules, and shared utilities. Use the current callable schema and only dispatch work that does not overlap another child.
|
|
85
|
+
</dynamic-agents>
|
|
86
|
+
|
|
87
|
+
### Main Session: Concurrent Analysis
|
|
88
|
+
|
|
89
|
+
**While independent exploration runs**, the main session does:
|
|
90
|
+
|
|
91
|
+
#### 1. Bash Structural Analysis
|
|
92
|
+
```bash
|
|
93
|
+
# Directory depth + file counts
|
|
94
|
+
find . -type d -not -path '*/\\.*' -not -path '*/node_modules/*' -not -path '*/venv/*' -not -path '*/dist/*' -not -path '*/build/*' | awk -F/ '{print NF-1}' | sort -n | uniq -c
|
|
95
|
+
|
|
96
|
+
# Files per directory (top 30)
|
|
97
|
+
find . -type f -not -path '*/\\.*' -not -path '*/node_modules/*' | sed 's|/[^/]*$||' | sort | uniq -c | sort -rn | head -30
|
|
98
|
+
|
|
99
|
+
# Code concentration by extension
|
|
100
|
+
find . -type f \\( -name "*.py" -o -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.go" -o -name "*.rs" \\) -not -path '*/node_modules/*' | sed 's|/[^/]*$||' | sort | uniq -c | sort -rn | head -20
|
|
101
|
+
|
|
102
|
+
# Existing AGENTS.md / CLAUDE.md
|
|
103
|
+
find . -type f \\( -name "AGENTS.md" -o -name "CLAUDE.md" \\) -not -path '*/node_modules/*' 2>/dev/null
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
#### 2. Read Existing AGENTS.md
|
|
107
|
+
```
|
|
108
|
+
For each existing file found:
|
|
109
|
+
Read the file through the currently exposed native read schema
|
|
110
|
+
Extract: key insights, conventions, anti-patterns
|
|
111
|
+
Store in EXISTING_AGENTS map
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
If `--create-new`: Read all existing first (preserve context) → then delete all → regenerate.
|
|
115
|
+
|
|
116
|
+
#### 3. Code Map - drive LSP (do NOT skip)
|
|
117
|
+
|
|
118
|
+
Highest-signal source for the CODE MAP and the Symbol/Export/Reference scoring rows. Use it alongside exploration agents.
|
|
119
|
+
|
|
120
|
+
**LSP** - check `lsp_status`; model-facing names are `lsp_status`/`lsp_symbols`/`lsp_find_references`/`lsp_goto_definition` (some harnesses drop the `lsp_` prefix):
|
|
121
|
+
- `lsp_symbols` scope="document" on each entry point -> file outline.
|
|
122
|
+
- `lsp_symbols` scope="workspace", query by kind (class/interface/function) -> symbol inventory.
|
|
123
|
+
- `lsp_find_references` on top exports (line/character from the symbols result) -> reference centrality.
|
|
124
|
+
|
|
125
|
+
If LSP is unavailable, use exploration agents plus Grep, Read, and Glob evidence and mark centrality unmeasured in the CODE MAP. Do not run ast-grep as a baseline substitute; reserve it for a later, specific exact syntax-tree question or deterministic codemod that simpler evidence cannot answer reliably.
|
|
126
|
+
|
|
127
|
+
### Collect Background Results
|
|
128
|
+
|
|
129
|
+
**After host completion notifications, merge structure analysis, LSP, existing, and exploration findings. Mark "discovery" as completed.**
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Phase 2: Scoring & Location Decision
|
|
134
|
+
|
|
135
|
+
**Mark "scoring" as in_progress.**
|
|
136
|
+
|
|
137
|
+
### Scoring Matrix
|
|
138
|
+
|
|
139
|
+
| Factor | Weight | High Threshold | Source |
|
|
140
|
+
|--------|--------|----------------|--------|
|
|
141
|
+
| File count | 3x | >20 | bash |
|
|
142
|
+
| Subdir count | 2x | >5 | bash |
|
|
143
|
+
| Code ratio | 2x | >70% | bash |
|
|
144
|
+
| Unique patterns | 1x | Has own config | explore |
|
|
145
|
+
| Module boundary | 2x | Has index.ts/__init__.py | bash |
|
|
146
|
+
| Symbol density | 2x | >30 symbols | LSP |
|
|
147
|
+
| Export count | 2x | >10 exports | LSP |
|
|
148
|
+
| Reference centrality | 3x | >20 refs | LSP |
|
|
149
|
+
|
|
150
|
+
### Decision Rules
|
|
151
|
+
|
|
152
|
+
| Score | Action |
|
|
153
|
+
|-------|--------|
|
|
154
|
+
| **Root (.)** | ALWAYS create |
|
|
155
|
+
| **>15** | Create AGENTS.md |
|
|
156
|
+
| **8-15** | Create if distinct domain |
|
|
157
|
+
| **<8** | Skip (parent covers) |
|
|
158
|
+
|
|
159
|
+
### Output
|
|
160
|
+
```
|
|
161
|
+
AGENTS_LOCATIONS = [
|
|
162
|
+
{ path: ".", type: "root" },
|
|
163
|
+
{ path: "src/hooks", score: 18, reason: "high complexity" },
|
|
164
|
+
{ path: "src/api", score: 12, reason: "distinct domain" }
|
|
165
|
+
]
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Mark "scoring" as completed.**
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Phase 3: Generate AGENTS.md
|
|
173
|
+
|
|
174
|
+
**Mark "generate" as in_progress.**
|
|
175
|
+
|
|
176
|
+
<critical>
|
|
177
|
+
**File Writing Rule**: If AGENTS.md already exists at the target path → use `Edit` tool. If it does NOT exist → use `Write` tool.
|
|
178
|
+
NEVER use Write to overwrite an existing file. ALWAYS check existence first via `Read` or discovery results.
|
|
179
|
+
</critical>
|
|
180
|
+
|
|
181
|
+
### Root AGENTS.md (Full Treatment)
|
|
182
|
+
|
|
183
|
+
```markdown
|
|
184
|
+
# PROJECT KNOWLEDGE BASE
|
|
185
|
+
|
|
186
|
+
**Generated:** {TIMESTAMP}
|
|
187
|
+
**Commit:** {SHORT_SHA}
|
|
188
|
+
**Branch:** {BRANCH}
|
|
189
|
+
|
|
190
|
+
## OVERVIEW
|
|
191
|
+
{1-2 sentences: what + core stack}
|
|
192
|
+
|
|
193
|
+
## STRUCTURE
|
|
194
|
+
```
|
|
195
|
+
{root}/
|
|
196
|
+
├── {dir}/ # {non-obvious purpose only}
|
|
197
|
+
└── {entry}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## WHERE TO LOOK
|
|
201
|
+
| Task | Location | Notes |
|
|
202
|
+
|------|----------|-------|
|
|
203
|
+
|
|
204
|
+
## CODE MAP
|
|
205
|
+
{From LSP - skip only if unavailable or project <10 files}
|
|
206
|
+
|
|
207
|
+
| Symbol | Type | Location | Refs | Role |
|
|
208
|
+
|--------|------|----------|------|------|
|
|
209
|
+
|
|
210
|
+
## CONVENTIONS
|
|
211
|
+
{ONLY deviations from standard}
|
|
212
|
+
|
|
213
|
+
## ANTI-PATTERNS (THIS PROJECT)
|
|
214
|
+
{Explicitly forbidden here}
|
|
215
|
+
|
|
216
|
+
## UNIQUE STYLES
|
|
217
|
+
{Project-specific}
|
|
218
|
+
|
|
219
|
+
## COMMANDS
|
|
220
|
+
```bash
|
|
221
|
+
{dev/test/build}
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## NOTES
|
|
225
|
+
{Gotchas}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**Quality gates**: 50-150 lines, no generic advice, no obvious info.
|
|
229
|
+
|
|
230
|
+
### Subdirectory AGENTS.md (Parallel)
|
|
231
|
+
|
|
232
|
+
For each non-root location, dispatch a documentation-capable worker through the current callable schema with its path, reason, 30–80 line limit, non-duplication constraint, and required sections.
|
|
233
|
+
|
|
234
|
+
**Wait for all. Mark "generate" as completed.**
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Phase 4: Review & Deduplicate
|
|
239
|
+
|
|
240
|
+
**Mark "review" as in_progress.**
|
|
241
|
+
|
|
242
|
+
For each generated file:
|
|
243
|
+
- Remove generic advice
|
|
244
|
+
- Remove parent duplicates
|
|
245
|
+
- Trim to size limits
|
|
246
|
+
- Verify telegraphic style
|
|
247
|
+
|
|
248
|
+
**Mark "review" as completed.**
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## Final Report
|
|
253
|
+
|
|
254
|
+
```
|
|
255
|
+
=== init-deep Complete ===
|
|
256
|
+
|
|
257
|
+
Mode: {update | create-new}
|
|
258
|
+
|
|
259
|
+
Files:
|
|
260
|
+
[OK] ./AGENTS.md (root, {N} lines)
|
|
261
|
+
[OK] ./src/hooks/AGENTS.md ({N} lines)
|
|
262
|
+
|
|
263
|
+
Dirs Analyzed: {N}
|
|
264
|
+
AGENTS.md Created: {N}
|
|
265
|
+
AGENTS.md Updated: {N}
|
|
266
|
+
|
|
267
|
+
Hierarchy:
|
|
268
|
+
./AGENTS.md
|
|
269
|
+
└── src/hooks/AGENTS.md
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## Anti-Patterns
|
|
275
|
+
|
|
276
|
+
- **Static agent count**: MUST vary agents based on project size/depth
|
|
277
|
+
- **Sequential execution**: Run independent exploration and LSP work concurrently when the host supports it
|
|
278
|
+
- **Ignoring existing**: ALWAYS read existing first, even with --create-new
|
|
279
|
+
- **Over-documenting**: Not every dir needs AGENTS.md
|
|
280
|
+
- **Redundancy**: Child never repeats parent
|
|
281
|
+
- **Generic content**: Remove anything that applies to ALL projects
|
|
282
|
+
- **Verbose style**: Telegraphic or die
|
|
@@ -1,13 +1,123 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: receiving-code-review
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## DSH resource and authority contract
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
This is a full OCMM source adaptation for DSH 0.2.0-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
- Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
|
|
11
|
+
- External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
|
|
12
|
+
- Source role names are logical assignments: code-search/explore maps to role ID dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Use this Agent's observed admitted inventory: per-role topology has individual role tools (for example dsmm_plan_critic) plus dsmm_category; parameterized topology has dsmm_role and dsmm_category with their actual role/category enums. Never derive callability from generated files, names or templates. Both layouts preserve target, caller, read-only, inherited tool and depth ceilings; a missing required formal role returns to the stage owner, not a planning bypass.
|
|
13
|
+
- Templates describe assignment content, not callable schemas. Actual delegation takes description/prompt, an exposed level, a deployment-authorized exposed route, and an exposed run_in_background only. Omitted/normal retains the default; low/high/max must be configured at roleRouting.<id>.levels as a complete route or exact supported effort, never synthetic suffix roles or fixed max effort. A complete invocation route needs paired provider/model and cannot silently fall back; effort-only needs exact native preflight. Level/layout never change permissions or verification rigor. Reviewer/Oracle independence requires different observed native routes, not names.
|
|
14
|
+
- One-shot defaults foreground; permitted one-shot background is native-job-owned. A managed admitted continuable configuration defaults background; explicit run_in_background:false creates a non-reusable one-shot. Use only exposed job_output/job_list/job_kill or send_message/interrupt_agent and returned identities. Existing continuable children can receive nearest-step running messages, idle next turns or same-ID cold continuation; receipts mean inbox acceptance, not completion. Exposed native child-to-parent reporting retains exact-sender/adjacency semantics, not new parent-to-child authority. Settled one-shots never revive; reuse never reselects role/level/route or copies a parent's newer policy into the original child capture. Do not send OpenCode task_id/subagent_type/background/resume/retry or guessed control fields.
|
|
15
|
+
- Host observations alone establish lifecycle controls. Managed delivery requires explicit startup composition: disable the stock subagents row, bind the unique PUBLIC DSMM SubagentRuntime subclass and restart; never hot-replace/drain stock or add a shadow runtime. When actually wired and authorized, a user foreground handoff transfers the existing same run to native jobs without a second start; native user queue/steer follows its operator/connection/session/epoch gate. Do not announce unconnected tools/RPCs. Background enablement, capacity, ownership, depth, cancellation and provider support always gate execution. Legacy conservative evidence may permit useful proven capabilities under the same durable child ID; missing evidence denies that capability with a reason, not all legacy children and not an inheritance of current parent policy.
|
|
16
|
+
- When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not OCMM compress, and no model-facing compression call is assumed. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
|
|
17
|
+
- Follow the current user's explicit output-language request, otherwise this Agent's immutable captured DSMM locale when supplied, then applicable host/user language guidance or the current request/context. Supported configured locales are en/zh-Hans/zh-Hant/ja/ko/de/fr/es/pt-BR/ru; omission inherits, not an English default. Preserve code, identifiers, paths, commands, protocol fields and exact quotes, and pass explicit language instructions in child assignments. This resource imports no Root session preference, promises neither internal reasoning language nor UI translation, and never changes host/project locale. A later parent Apply does not rewrite a child's captured locale.
|
|
18
|
+
- Installation, package-manager bootstrap, downloads, authentication/login, credential/profile access, Git writes and destructive actions require explicit authorization for the exact action. Reference commands are not automatic operations. Worktree consent does not authorize dependency installation or later branch deletion. Read before changing an existing file; preserve unrelated user work. Never silently restore/reset a working tree to repair a failed cleanup.
|
|
19
|
+
- Browser/debug QA uses run-owned isolated state, no imported credentials or browser profile, and only already available software unless separately authorized. Keep commands in the active shell dialect. Report unverified surfaces honestly.
|
|
20
|
+
|
|
21
|
+
<!-- Local fork of obra/superpowers/receiving-code-review v6.2.0.
|
|
22
|
+
Evidence-based technical evaluation and affected-input follow-up review.
|
|
23
|
+
Source and maintenance contract: docs/v1-maintenance.md. -->
|
|
24
|
+
|
|
25
|
+
# Code Review Reception
|
|
26
|
+
|
|
27
|
+
## Overview
|
|
28
|
+
|
|
29
|
+
Code review requires technical evaluation, not emotional performance.
|
|
30
|
+
|
|
31
|
+
**Core principle:** Verify before implementing. Preserve the approved goal and constraints. Technical correctness over social comfort.
|
|
32
|
+
|
|
33
|
+
## Evaluate the Feedback
|
|
34
|
+
|
|
35
|
+
1. Read the complete substantive feedback.
|
|
36
|
+
2. Restate or clarify the technical requirement when needed.
|
|
37
|
+
3. Verify the claim against current code, requirements, and evidence.
|
|
38
|
+
4. Classify it as a product defect, evidence gap, optional improvement, incorrect finding, or decision that changes approved intent.
|
|
39
|
+
5. Apply the smallest justified correction or push back with evidence.
|
|
40
|
+
6. Rerun only affected verification and review surfaces.
|
|
41
|
+
|
|
42
|
+
A reviewer status, verdict label, acknowledgement, or receipt-shaped response is informational. The cited code, reasoning, and evidence determine whether action is required. Reviewer approval is not a substitute for verification.
|
|
43
|
+
|
|
44
|
+
## Clarification and Escalation
|
|
45
|
+
|
|
46
|
+
Clarify an item before implementing it when ambiguity would materially change the correction. Independent clear items may proceed while clarification is pending if doing so cannot create rework or violate shared assumptions.
|
|
47
|
+
|
|
48
|
+
Escalate instead of deciding when a proposed response changes scope or acceptance, weakens security or data guarantees, changes a public API/protocol, expands permissions, requires an irreversible action, conflicts with the user's approved direction, or would otherwise be a pure guess.
|
|
49
|
+
|
|
50
|
+
For a non-material ambiguity, choose a safe reversible interpretation from repository evidence. Keep only the resulting current constraint or unresolved verification limit, not a ruling history.
|
|
51
|
+
|
|
52
|
+
## Source-Specific Handling
|
|
53
|
+
|
|
54
|
+
### From the user
|
|
55
|
+
|
|
56
|
+
- Treat the direction as authoritative after understanding its scope.
|
|
57
|
+
- Ask only when ambiguity changes the deliverable or risk.
|
|
58
|
+
- Do not expand authorization beyond the request's semantics.
|
|
59
|
+
- Skip performative agreement; act or state the technical interpretation.
|
|
60
|
+
|
|
61
|
+
### From an external reviewer
|
|
62
|
+
|
|
63
|
+
Check whether the suggestion:
|
|
64
|
+
|
|
65
|
+
- is correct for this codebase and supported platforms;
|
|
66
|
+
- breaks committed contracts or final approved acceptance criteria;
|
|
67
|
+
- overlooks why the current implementation exists;
|
|
68
|
+
- adds unused or speculative functionality;
|
|
69
|
+
- conflicts with global constraints or user decisions.
|
|
70
|
+
|
|
71
|
+
Push back with code, requirements, test results, or protocol/platform evidence when it is wrong. If evidence is unavailable and the decision is material, state the gap and escalate rather than guessing.
|
|
72
|
+
|
|
73
|
+
## Product Findings vs Evidence Findings
|
|
74
|
+
|
|
75
|
+
- **Product defect:** Correct the implementation with the smallest change that preserves approved intent.
|
|
76
|
+
- **Evidence gap:** Add or rerun the evidence needed to establish the claim; do not rewrite product behavior unless investigation reveals a real defect.
|
|
77
|
+
- **Optional improvement:** Record or defer it according to scope and value; it does not block a proven result.
|
|
78
|
+
- **Intent-changing proposal:** Return it to the decision owner rather than silently broadening scope.
|
|
79
|
+
|
|
80
|
+
Keep real security, data-loss, protocol/API, compatibility, release, and irreversible-operation safeguards intact even when a finding is inconvenient.
|
|
81
|
+
|
|
82
|
+
## Implementing Valid Findings
|
|
83
|
+
|
|
84
|
+
Group related findings when one coherent correction and evidence path covers them. Use focused deterministic tests at real regression seams, or other useful evidence such as typechecks, builds, runtime probes, and inspection where those better prove the outcome. There is no universal RED transcript, scenario count, one-review-per-finding, or full-suite requirement.
|
|
85
|
+
|
|
86
|
+
Correction workers run lightweight checks for their substantive local changes and return changes, local evidence, and material risks. The orchestrator consolidates necessary global/heavy checks at task completion or important phase boundaries. Reuse still-applicable evidence by material relevance; supplement affected or missing coverage without waiving required safety, release, pre-commit, or user checks.
|
|
87
|
+
|
|
88
|
+
Deep workers and implementers may choose a minimal evidence-based equivalent correction when it preserves the approved goal, constraints, permissions, and acceptance criteria. Report the resulting correction, current constraints, evidence, and unresolved risks. Don't preserve decision or development history.
|
|
89
|
+
|
|
90
|
+
Judge tests against final valid requirements, functionality, and external interfaces. Don't require descriptive-text locks, decision-counterexample tests, or tests asserting that deleted components are absent. Update tests when requirements change and delete tests dedicated to removed components. Uncommitted intermediate behavior needn't be preserved; existing committed contracts and API/security/data/permission authorization remain binding.
|
|
91
|
+
|
|
92
|
+
## Follow-Up Review
|
|
93
|
+
|
|
94
|
+
Rerun only the review lanes affected by substantive changes to code, new files, requirements, acceptance criteria, constraints, or relevant evidence. Do not rerun review for formatting, narration, labels, or unrelated changes.
|
|
95
|
+
|
|
96
|
+
An optional or redundant reviewer that times out, acknowledges without analysis, or adds no evidence does not block a result already established by sufficient current evidence. A review explicitly required by the user or governing process still must be completed, and substantive unresolved high-impact risks remain blockers.
|
|
97
|
+
|
|
98
|
+
## Git Boundary
|
|
99
|
+
|
|
100
|
+
Implementing a review fix does not authorize a commit. A commit request does not authorize push, tag, rebase, or release. A clear user request can authorize its exact Git operation without a redundant confirmation, but permissions never expand to another operation or repository.
|
|
101
|
+
|
|
102
|
+
## Communication
|
|
103
|
+
|
|
104
|
+
Avoid performative agreement such as "You're absolutely right" or "Great point." Prefer:
|
|
105
|
+
|
|
106
|
+
- `Fixed <specific issue> in <location>; <evidence>.`
|
|
107
|
+
- `Verified the finding against <source>; the minimal correction is <change>.`
|
|
108
|
+
- `This would conflict with <requirement/evidence>; I recommend no change because <reason>.`
|
|
109
|
+
- `I cannot verify <claim> without <missing evidence>; this is material because <impact>.`
|
|
110
|
+
|
|
111
|
+
If earlier pushback was wrong, correct it factually and proceed without a long apology.
|
|
112
|
+
|
|
113
|
+
## Common Mistakes
|
|
114
|
+
|
|
115
|
+
| Mistake | Better response |
|
|
116
|
+
|---|---|
|
|
117
|
+
| Performative agreement | State the technical interpretation or action |
|
|
118
|
+
| Blind implementation | Verify against current code and requirements |
|
|
119
|
+
| Treating a label as proof | Evaluate cited evidence and actual changes |
|
|
120
|
+
| Broadening scope | Preserve the approved goal and constraints |
|
|
121
|
+
| Repeating every review | Rerun only substantively affected review |
|
|
122
|
+
| Guessing through material risk | Escalate the decision |
|
|
123
|
+
| Treating optional review as a gate | Rely on sufficient current evidence unless review is required |
|
|
@@ -1,14 +1,166 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: remove-ai-slops
|
|
3
|
-
description:
|
|
3
|
+
description: "Remove AI-generated code slop from branch changes or an explicit file list. Establishes regression coverage for final valid requirements, then runs categorized cleanup with bounded permitted work and verifies with quality gates. Covers 10 slop categories. MUST USE when the user asks to \"remove slop\", \"clean AI code\", \"deslop\", \"clean up AI-generated code\", \"remove AI slop\", or wants to clean up AI-generated patterns."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## DSH resource and authority contract
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
This is a full OCMM source adaptation for DSH 0.2.0-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
- Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
|
|
11
|
+
- External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
|
|
12
|
+
- Source role names are logical assignments: code-search/explore maps to role ID dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Use this Agent's observed admitted inventory: per-role topology has individual role tools (for example dsmm_plan_critic) plus dsmm_category; parameterized topology has dsmm_role and dsmm_category with their actual role/category enums. Never derive callability from generated files, names or templates. Both layouts preserve target, caller, read-only, inherited tool and depth ceilings; a missing required formal role returns to the stage owner, not a planning bypass.
|
|
13
|
+
- Templates describe assignment content, not callable schemas. Actual delegation takes description/prompt, an exposed level, a deployment-authorized exposed route, and an exposed run_in_background only. Omitted/normal retains the default; low/high/max must be configured at roleRouting.<id>.levels as a complete route or exact supported effort, never synthetic suffix roles or fixed max effort. A complete invocation route needs paired provider/model and cannot silently fall back; effort-only needs exact native preflight. Level/layout never change permissions or verification rigor. Reviewer/Oracle independence requires different observed native routes, not names.
|
|
14
|
+
- One-shot defaults foreground; permitted one-shot background is native-job-owned. A managed admitted continuable configuration defaults background; explicit run_in_background:false creates a non-reusable one-shot. Use only exposed job_output/job_list/job_kill or send_message/interrupt_agent and returned identities. Existing continuable children can receive nearest-step running messages, idle next turns or same-ID cold continuation; receipts mean inbox acceptance, not completion. Exposed native child-to-parent reporting retains exact-sender/adjacency semantics, not new parent-to-child authority. Settled one-shots never revive; reuse never reselects role/level/route or copies a parent's newer policy into the original child capture. Do not send OpenCode task_id/subagent_type/background/resume/retry or guessed control fields.
|
|
15
|
+
- Host observations alone establish lifecycle controls. Managed delivery requires explicit startup composition: disable the stock subagents row, bind the unique PUBLIC DSMM SubagentRuntime subclass and restart; never hot-replace/drain stock or add a shadow runtime. When actually wired and authorized, a user foreground handoff transfers the existing same run to native jobs without a second start; native user queue/steer follows its operator/connection/session/epoch gate. Do not announce unconnected tools/RPCs. Background enablement, capacity, ownership, depth, cancellation and provider support always gate execution. Legacy conservative evidence may permit useful proven capabilities under the same durable child ID; missing evidence denies that capability with a reason, not all legacy children and not an inheritance of current parent policy.
|
|
16
|
+
- When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not OCMM compress, and no model-facing compression call is assumed. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
|
|
17
|
+
- Follow the current user's explicit output-language request, otherwise this Agent's immutable captured DSMM locale when supplied, then applicable host/user language guidance or the current request/context. Supported configured locales are en/zh-Hans/zh-Hant/ja/ko/de/fr/es/pt-BR/ru; omission inherits, not an English default. Preserve code, identifiers, paths, commands, protocol fields and exact quotes, and pass explicit language instructions in child assignments. This resource imports no Root session preference, promises neither internal reasoning language nor UI translation, and never changes host/project locale. A later parent Apply does not rewrite a child's captured locale.
|
|
18
|
+
- Installation, package-manager bootstrap, downloads, authentication/login, credential/profile access, Git writes and destructive actions require explicit authorization for the exact action. Reference commands are not automatic operations. Worktree consent does not authorize dependency installation or later branch deletion. Read before changing an existing file; preserve unrelated user work. Never silently restore/reset a working tree to repair a failed cleanup.
|
|
19
|
+
- Browser/debug QA uses run-owned isolated state, no imported credentials or browser profile, and only already available software unless separately authorized. Keep commands in the active shell dialect. Report unverified surfaces honestly.
|
|
20
|
+
|
|
21
|
+
# Remove AI Slops Skill
|
|
22
|
+
|
|
23
|
+
## Inputs
|
|
24
|
+
|
|
25
|
+
- **Default scope**: branch diff vs `merge-base main` (no arguments needed)
|
|
26
|
+
- **Optional scope**: explicit file list passed by the caller
|
|
27
|
+
|
|
28
|
+
## What this skill does
|
|
29
|
+
|
|
30
|
+
Cleans AI-generated slop from a bounded set of changed files while preserving final valid requirements and committed contracts. Establishes relevant regression coverage first, then runs a categorized multi-pass cleanup and verifies with applicable quality gates and self-review. Correct only task-owned edits when verification fails.
|
|
31
|
+
|
|
32
|
+
The safety invariant: **relevant functional and external-interface requirements have passing regression evidence before cleanup**. Don't lock uncommitted intermediate behavior or descriptive text merely because it exists. Git commits are the compatibility boundary; existing committed contracts still bind files with uncommitted edits. Public API/protocol, security, data, permission, and irreversible-operation changes require their applicable authorization.
|
|
33
|
+
|
|
34
|
+
## 10 Slop Categories
|
|
35
|
+
|
|
36
|
+
### Stylistic
|
|
37
|
+
|
|
38
|
+
1. **Obvious comments**: Comments that restate what the code does, useless TODOs, commented-out code. KEEP: current design reasons and meaningful BDD markers, not development or decision history.
|
|
39
|
+
2. **Over-defensive code** — Null checks on guaranteed values, try/catch around code that cannot throw, instanceof/type guards on statically-typed params, multi-layer redundant validation, broad catch-all (catch Exception / empty catch). REFACTOR: narrow exceptions, add type narrowing.
|
|
40
|
+
3. **Excessive complexity** — Deep nesting (>3 levels), nested ternaries, complex boolean (4+ predicates), long parameter lists (>5), god functions (>50 lines), if/elif variant chains (should be exhaustive pattern matching), `any`/`object` type annotations (should be interfaces/generics/unions).
|
|
41
|
+
|
|
42
|
+
### Structural
|
|
43
|
+
|
|
44
|
+
4. **Needless abstraction** — Pass-through wrappers, single-use helpers, speculative indirection, single-implementation interfaces, factory functions that only call constructors.
|
|
45
|
+
5. **Boundary violations** — Wrong-layer imports, responsibility leaks, hidden coupling, pure functions with side effects.
|
|
46
|
+
6. **Dead code** — Unused imports, unused private functions, unreachable branches, stale feature flags, debug leftovers (console.log, print, dbg!, console.error).
|
|
47
|
+
|
|
48
|
+
### Hidden cost
|
|
49
|
+
|
|
50
|
+
7. **Duplication** — Copy-pasted branches, redundant helpers, repeated magic numbers. KEEP: coincidental repetition where intents differ.
|
|
51
|
+
8. **Performance equivalences** — O(n²)→O(n), hoist loop-invariant computations, unnecessary intermediate collections, string concatenation in loops (use join/array push), redundant DB/API calls in loops (batch them), redundant deep copies, repeated len()/size() calls (cache). Hard rule: only apply when equivalence is obvious.
|
|
52
|
+
|
|
53
|
+
### Behavior coverage
|
|
54
|
+
|
|
55
|
+
9. **Missing tests**: Valid functional or external-interface requirements lack regression coverage. Add the narrowest meaningful test, not a lock for every changed file or intermediate behavior.
|
|
56
|
+
|
|
57
|
+
### Structural
|
|
58
|
+
|
|
59
|
+
10. **Mixed-responsibility modules** — Identify ownership/cohesion problems, not a LOC quota. Split by responsibility only when necessary for the approved cleanup; do not manufacture helpers, interfaces, comments or opt-out markers to satisfy a counter. Verify preserved behavior at the affected seam.
|
|
60
|
+
|
|
61
|
+
## 6-Phase Flow
|
|
62
|
+
|
|
63
|
+
### Phase 0: Size the work
|
|
64
|
+
|
|
65
|
+
Use session-level coordination only when it helps. An exposed native todo_write tool can track the owning Agent's complete content/status list under its actual parallel policy; otherwise use a concise response. No TodoWrite, workspace ledger or automatic plan file is assumed. Non-product routine docs or maintenance cleanup does not require planner/critic/review dispatch or a plan/report/evidence file; resolve it directly or ask/delegate a bounded task when needed. Complex product behavior implementation retains its applicable planning policy, and explicit process requirements or concrete major safety risks retain necessary verification.
|
|
66
|
+
|
|
67
|
+
### Phase 1: Determine scope
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
git diff $(git merge-base main HEAD)..HEAD --name-only
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Filter out: deleted files, binary files, generated files.
|
|
74
|
+
|
|
75
|
+
### Phase 2: Establish valid regression coverage (NON-NEGOTIABLE)
|
|
76
|
+
|
|
77
|
+
For each in-scope behavior-bearing file:
|
|
78
|
+
1. Identify final valid functional requirements and committed public/observable contracts.
|
|
79
|
+
2. Check if existing tests cover it.
|
|
80
|
+
3. If a meaningful regression seam lacks coverage, write the narrowest test for that requirement.
|
|
81
|
+
4. Tests must be GREEN before cleanup starts.
|
|
82
|
+
|
|
83
|
+
If you can't establish passing evidence for a required functional contract, stop cleanup of that behavior. Documentation-only edits use semantic review and applicable loading/delivery checks, not invented text-lock tests.
|
|
84
|
+
|
|
85
|
+
Don't add string, regex, snapshot, or parsed-content locks for documentation, commit messages, package information, or error/log wording without functional or system-boundary significance. Don't test decision counterexamples or removed components' absence. Update corresponding tests when requirements change; delete tests dedicated to removed modules, helpers, tools, or subsystems. Valid negative safety, protocol, and input-handling tests remain appropriate. Documentation and comments state the concise final design, not the cleanup history.
|
|
86
|
+
|
|
87
|
+
### Phase 3: Cleanup plan
|
|
88
|
+
|
|
89
|
+
Keep the categories, cleanup order, and material risks needed for current execution in session, not a per-file workspace ledger.
|
|
90
|
+
|
|
91
|
+
Safety order (safe → dangerous):
|
|
92
|
+
comments → dead code → defensive → duplication → complexity → abstraction/boundary → performance → tests → oversized-modules
|
|
93
|
+
|
|
94
|
+
### Phase 4: Bounded slop removal
|
|
95
|
+
|
|
96
|
+
Use direct edits for resolvable non-product docs or maintenance cleanup. Delegate independent product cleanup only when an actually callable permitted native role owns a useful bounded deliverable; respect file ownership, inherited authority and depth. Choose concurrency from actual dependencies and capacity, not a batch quota. Pass run_in_background only when the admitted schema exposes it and useful independent parent work remains; otherwise keep result-gated cleanup foreground. Integrate results before dependent work.
|
|
97
|
+
|
|
98
|
+
Each file gets a detailed prompt containing:
|
|
99
|
+
- The category checklist for that file
|
|
100
|
+
- The cleanup order
|
|
101
|
+
- Hard constraints: final valid requirements and committed contracts must be preserved; no unauthorized public API changes, no deleting type annotations, no introducing new abstractions, minimal diff. Don't preserve uncommitted transition behavior or add descriptive-text, decision-counterexample, or removed-component absence tests.
|
|
102
|
+
|
|
103
|
+
An acknowledgment, partial output or wait timeout is not completion evidence. Inspect the actual result, failed checks and unresolved blockers; do not require status tokens or invented polling APIs.
|
|
104
|
+
|
|
105
|
+
### Phase 5: Applicable quality gates + self-review
|
|
106
|
+
|
|
107
|
+
Select the meaningful available gates for the changed surface and concrete risk; reuse sufficient unchanged evidence rather than repeating all gates after each correction. Report necessary unavailable tooling/evidence instead of installing it implicitly or claiming a pass:
|
|
108
|
+
1. Regression tests still green
|
|
109
|
+
2. Lint clean
|
|
110
|
+
3. Typecheck clean
|
|
111
|
+
4. Unit + integration tests green
|
|
112
|
+
5. Static security scan clean (if applicable)
|
|
113
|
+
|
|
114
|
+
3 review checklists:
|
|
115
|
+
- **Safety**: No unauthorized contract change, no security regression, no data loss risk.
|
|
116
|
+
- **Behavior**: Final valid functional and external-interface requirements are covered; committed contracts remain intact.
|
|
117
|
+
- **Quality**: No new slop introduced, diff is minimal, naming is consistent.
|
|
118
|
+
|
|
119
|
+
### Phase 6: Fix issues
|
|
120
|
+
|
|
121
|
+
If a gate fails:
|
|
122
|
+
1. Identify the change that caused the failure.
|
|
123
|
+
2. Explain why.
|
|
124
|
+
3. Inspect the current diff and use an exposed authorized edit tool to correct only this task's problematic hunk; never discard existing user edits or perform unauthorized Git writes. A destructive Git restore requires separate exact authorization.
|
|
125
|
+
4. Direct-edit to re-apply only the provably-safe changes.
|
|
126
|
+
5. Re-run affected gates and reassess the relevant safety/behavior/quality concern, not every unchanged check.
|
|
127
|
+
|
|
128
|
+
Stop and escalate when evidence exposes a material blocker, unsafe equivalence, or an authorization decision; do not impose an arbitrary attempt quota.
|
|
129
|
+
|
|
130
|
+
## Output Format
|
|
131
|
+
|
|
132
|
+
Return this report in conversation; don't create a workspace report or evidence file unless explicitly requested as a deliverable.
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
## Scope
|
|
136
|
+
<files in scope>
|
|
137
|
+
|
|
138
|
+
## Delivered Result
|
|
139
|
+
<current implementation and changed files>
|
|
140
|
+
|
|
141
|
+
## Regression Coverage
|
|
142
|
+
<valid requirements covered, green baseline status>
|
|
143
|
+
|
|
144
|
+
## Quality Gates
|
|
145
|
+
<gates: PASS/FAIL/N/A + evidence>
|
|
146
|
+
|
|
147
|
+
## Critical Review
|
|
148
|
+
<Safety/Behavior/Quality findings>
|
|
149
|
+
|
|
150
|
+
## Remaining Risks
|
|
151
|
+
<slop noticed but out of scope, concerns>
|
|
152
|
+
|
|
153
|
+
## Final Status
|
|
154
|
+
CLEAN | ISSUES FIXED | REQUIRES ATTENTION
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Core Principles
|
|
158
|
+
|
|
159
|
+
- **Valid regression coverage first**: Protect final functional requirements and external contracts, not intermediate implementations. Phase 2 is non-negotiable.
|
|
160
|
+
- **Don't bundle unrelated refactors**: A single cleanup commit containing dead code + abstraction + performance is unreviewable and unbisectable. Stay in slop scope.
|
|
161
|
+
- **Algorithm changes are NOT slop fixes**: If equivalence requires proof, it's a refactor, not a slop fix. It belongs in a separate change.
|
|
162
|
+
- **Don't silently skip**: If a gate is N/A, say N/A and why. If it fails, say it fails.
|
|
163
|
+
- **Keep current design reasons**: Remove restating comments and development/decision histories; retain explanations needed to maintain the final design.
|
|
164
|
+
- **Don't touch out-of-scope files**: If you notice slop elsewhere, report it in Remaining Risks only.
|
|
165
|
+
- **When in doubt, SKIP**: Don't guess. Skip and report.
|
|
166
|
+
- **Useful concurrency only**: Choose concurrency from actual independence, ownership and native capacity; don't fill a batch or delegate resolvable non-product cleanup. Passing evidence protects final valid requirements and committed contracts, not uncommitted transition behavior or descriptive text.
|