@dsmm/dsmm 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -24
- package/agent-presets/dsmm-builder/agent.cordis.yml +1949 -39
- package/agent-presets/dsmm-builder/preset.yml +1 -1
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +436 -14
- package/agent-presets/dsmm-clarifier/preset.yml +1 -1
- package/agent-presets/dsmm-code-search/agent.cordis.yml +56 -14
- package/agent-presets/dsmm-code-search/preset.yml +1 -1
- package/agent-presets/dsmm-coding/agent.cordis.yml +588 -0
- package/agent-presets/dsmm-coding/preset.yml +3 -0
- package/agent-presets/dsmm-complex/agent.cordis.yml +1140 -0
- package/agent-presets/dsmm-complex/preset.yml +3 -0
- package/agent-presets/dsmm-creative/agent.cordis.yml +536 -12
- package/agent-presets/dsmm-creative/preset.yml +1 -1
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +1163 -0
- package/agent-presets/dsmm-cross-cutting/preset.yml +3 -0
- package/agent-presets/dsmm-deep/agent.cordis.yml +1173 -0
- package/agent-presets/dsmm-deep/preset.yml +3 -0
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +56 -14
- package/agent-presets/dsmm-doc-search/preset.yml +1 -1
- package/agent-presets/dsmm-documenting/agent.cordis.yml +581 -0
- package/agent-presets/dsmm-documenting/preset.yml +3 -0
- package/agent-presets/dsmm-frontend/agent.cordis.yml +580 -0
- package/agent-presets/dsmm-frontend/preset.yml +3 -0
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +572 -0
- package/agent-presets/dsmm-hard-reasoning/preset.yml +3 -0
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +56 -14
- package/agent-presets/dsmm-media-reader/preset.yml +1 -1
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +546 -0
- package/agent-presets/dsmm-normal-task/preset.yml +3 -0
- package/agent-presets/dsmm-oracle/agent.cordis.yml +421 -12
- package/agent-presets/dsmm-oracle/preset.yml +1 -1
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +421 -12
- package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +2023 -43
- package/agent-presets/dsmm-orchestrator/preset.yml +1 -1
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +416 -13
- package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +462 -13
- package/agent-presets/dsmm-planner/preset.yml +1 -1
- package/agent-presets/dsmm-quick/agent.cordis.yml +119 -0
- package/agent-presets/dsmm-quick/preset.yml +3 -0
- package/agent-presets/dsmm-research/agent.cordis.yml +141 -0
- package/agent-presets/dsmm-research/preset.yml +3 -0
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +420 -13
- package/agent-presets/dsmm-reviewer/preset.yml +1 -1
- package/cordis.patch.yml +1 -5
- package/docs/agent-presets.md +64 -15
- package/docs/compatibility.md +61 -13
- package/docs/design.md +41 -0
- package/docs/lsp.md +12 -2
- package/docs/migration-from-ocmm.md +8 -0
- package/docs/profiles.md +41 -15
- package/docs/releasing.md +78 -8
- package/docs/roadmap.md +6 -0
- package/docs/runtime-recovery.md +12 -0
- package/docs/safety-guards.md +7 -3
- package/docs/settings-status.md +148 -7
- package/docs/skill-sync.md +52 -14
- package/lib/client/DeploymentPage.d.ts +18 -0
- package/lib/client/DeploymentPage.js +120 -0
- package/lib/client/ProfilesSection.js +4 -2
- package/lib/client/deployment-controller.d.ts +50 -0
- package/lib/client/deployment-controller.js +193 -0
- package/lib/client/deployment-data.d.ts +16 -0
- package/lib/client/deployment-data.js +109 -0
- package/lib/client/deployment-locales.d.ts +66 -0
- package/lib/client/deployment-locales.js +72 -0
- package/lib/client/index.js +50 -0
- package/lib/client/locales.d.ts +4 -0
- package/lib/client/locales.js +4 -2
- package/lib/client/plugins-contract.d.ts +27 -0
- package/lib/client/plugins-contract.js +2 -0
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +16 -0
- package/lib/client.js +1048 -29
- 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/deployment-config.d.ts +37 -0
- package/lib/deployment-config.js +184 -0
- package/lib/dsh-home.d.ts +3 -0
- package/lib/dsh-home.js +10 -0
- package/lib/dsh-types.d.ts +12 -65
- package/lib/guards.d.ts +2 -1
- package/lib/guards.js +19 -2
- package/lib/index.d.ts +8 -1
- package/lib/index.js +115 -25
- package/lib/lsp.d.ts +13 -0
- package/lib/lsp.js +60 -0
- package/lib/mode.js +42 -47
- package/lib/model-routing.js +5 -2
- package/lib/modules.d.ts +27 -0
- package/lib/modules.js +21 -0
- package/lib/native-scope.d.ts +9 -0
- package/lib/native-scope.js +20 -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 +7 -4
- package/lib/preset-skills.d.ts +4 -1
- package/lib/preset-skills.js +60 -19
- package/lib/profile-remote.d.ts +14 -0
- package/lib/profile-remote.js +197 -4
- package/lib/profile-rpc.d.ts +24 -1
- package/lib/profile-rpc.js +139 -1
- package/lib/profile-runtime.d.ts +24 -0
- package/lib/profile-runtime.js +177 -33
- package/lib/profile-store.d.ts +45 -1
- package/lib/profile-store.js +236 -102
- package/lib/profile-types.d.ts +55 -0
- package/lib/prompt-content.d.ts +25 -0
- package/lib/prompt-content.js +27 -0
- package/lib/prompts.d.ts +8 -2
- package/lib/prompts.js +46 -34
- package/lib/role-policy.d.ts +51 -0
- package/lib/role-policy.js +224 -0
- package/lib/role-providers.d.ts +6 -2
- package/lib/role-providers.js +72 -39
- package/lib/role-subagents.d.ts +6 -2
- package/lib/role-subagents.js +187 -48
- package/lib/roles.d.ts +16 -4
- package/lib/roles.js +86 -186
- package/lib/runtime-recovery.js +16 -5
- package/lib/session-scope.js +2 -0
- package/lib/settings.d.ts +69 -1
- package/lib/settings.js +262 -91
- 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 +25 -0
- package/lib/status.js +47 -9
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +19 -2
- package/prompts/deepwork.md +144 -20
- package/prompts/source/agents/clarifier.md +45 -0
- package/prompts/source/agents/orchestrator.md +63 -0
- package/prompts/source/agents/plan-critic.md +25 -0
- package/prompts/source/agents/planner.md +19 -0
- package/prompts/source/agents/reviewer.md +17 -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 +38 -0
- package/prompts/source/category/cross-cutting.md +52 -0
- package/prompts/source/category/deep.md +62 -0
- package/prompts/source/category/documenting.md +62 -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 +56 -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 +129 -0
- package/prompts/source/deepwork/gemini.md +184 -0
- package/prompts/source/deepwork/glm.md +256 -0
- package/prompts/source/deepwork/gpt.md +43 -0
- package/prompts/source/deepwork/kimi-k27.md +13 -0
- package/prompts/source/deepwork/planner.md +41 -0
- package/prompts/source/deepwork/swe-2.md +13 -0
- package/prompts/source/manifest.json +3118 -0
- package/prompts/source/shared/dsh-host-contract.md +6 -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/skills/ast-grep/LICENSE +21 -0
- package/skills/ast-grep/README.md +138 -0
- package/skills/ast-grep/SKILL.md +284 -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 +102 -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 +144 -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 +125 -4
- package/skills/debugging/references/logging.md +2 -0
- package/skills/debugging/references/methodology/00-setup.md +2 -0
- package/skills/debugging/references/methodology/02-investigate.md +8 -2
- package/skills/debugging/references/methodology/03-flaky-triage.md +3 -1
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +4 -2
- package/skills/debugging/references/methodology/05-escalate.md +2 -0
- package/skills/debugging/references/methodology/06-fix.md +2 -0
- package/skills/debugging/references/methodology/08-qa.md +2 -0
- package/skills/debugging/references/methodology/09-cleanup.md +2 -0
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +4 -2
- package/skills/debugging/references/runtimes/bundled-js-binary.md +2 -0
- package/skills/debugging/references/runtimes/go.md +2 -0
- package/skills/debugging/references/runtimes/native-binary.md +2 -0
- package/skills/debugging/references/runtimes/node.md +2 -0
- package/skills/debugging/references/runtimes/python.md +2 -0
- package/skills/debugging/references/runtimes/rust.md +2 -0
- 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 +3 -1
- package/skills/debugging/references/tools/ghidra.md +2 -0
- package/skills/debugging/references/tools/playwright-cli.md +2 -0
- package/skills/debugging/references/tools/pwndbg.md +2 -0
- package/skills/debugging/references/tools/pwntools.md +2 -0
- package/skills/dispatching-parallel-agents/SKILL.md +94 -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 +142 -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 +112 -0
- package/skills/git-master/agents/openai.yaml +13 -0
- package/skills/init-deep/SKILL.md +279 -0
- package/skills/receiving-code-review/SKILL.md +112 -7
- package/skills/remove-ai-slops/SKILL.md +159 -8
- package/skills/requesting-code-review/SKILL.md +96 -3
- package/skills/requesting-code-review/code-reviewer.md +47 -0
- package/skills/subagent-driven-development/SKILL.md +176 -6
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +23 -0
- package/skills/subagent-driven-development/implementer-prompt.md +69 -0
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +32 -0
- package/skills/using-git-worktrees/SKILL.md +141 -0
- package/skills/writing-plans/SKILL.md +121 -7
- package/skills/writing-plans/plan-document-reviewer-prompt.md +38 -0
|
@@ -0,0 +1,279 @@
|
|
|
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.
|
|
12
|
+
- Source role names are logical assignments: code-search/explore maps to dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Dispatch only through the actual role-specific native subagent tool in the current catalog, within the caller's effective policy, depth and authority. No generated file, metadata row or template proves callability. A missing permitted role is a blocker for a required formal stage, not permission to invent it or bypass planning.
|
|
13
|
+
- Templates describe assignment content, not a callable argument schema. Native continuation, background, message/interrupt and result handling are used only when actually exposed and supported; do not send task_id, subagent_type or guessed timeout fields. Otherwise perform permitted direct work or return the dependency to the stage owner.
|
|
14
|
+
- Use a concise response or an authorized project plan for tracking when no native tracking tool is exposed. Compression is unavailable unless a real tool is exposed; do not simulate it. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
|
|
15
|
+
- 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.
|
|
16
|
+
- 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.
|
|
17
|
+
|
|
18
|
+
# /init-deep
|
|
19
|
+
|
|
20
|
+
Generate hierarchical AGENTS.md files. Root + complexity-scored subdirectories.
|
|
21
|
+
|
|
22
|
+
## Tool and Host Notes
|
|
23
|
+
|
|
24
|
+
- Follow the current callable schema for delegation and task tracking; do not assume host-specific parameter names or profiles.
|
|
25
|
+
- Use LSP for symbols, references, diagnostics, and rename. Use Grep, Read, and Glob for text and file discovery.
|
|
26
|
+
- Use ast-grep only for a specific exact syntax-tree question or deterministic codemod that the other tools cannot express reliably.
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
/init-deep # Update mode: modify existing + create new where warranted
|
|
32
|
+
/init-deep --create-new # Read existing → remove all → regenerate from scratch
|
|
33
|
+
/init-deep --max-depth=2 # Limit directory depth (default: 3)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Workflow (High-Level)
|
|
39
|
+
|
|
40
|
+
1. **Discovery + Analysis** (concurrent)
|
|
41
|
+
- Dispatch independent exploration concurrently when the parent has useful work to do
|
|
42
|
+
- Main session: structure analysis + LSP code map + read existing AGENTS.md
|
|
43
|
+
2. **Score & Decide** - Determine AGENTS.md locations from merged findings
|
|
44
|
+
3. **Generate** - Root first, then subdirs in parallel
|
|
45
|
+
4. **Review** - Deduplicate, trim, validate
|
|
46
|
+
|
|
47
|
+
<critical>
|
|
48
|
+
Track discovery, scoring, generation, and review in the host's available task-tracking surface; update each phase as it starts and completes.
|
|
49
|
+
</critical>
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Phase 1: Discovery + Analysis (Concurrent)
|
|
54
|
+
|
|
55
|
+
**Mark "discovery" as in_progress.**
|
|
56
|
+
|
|
57
|
+
### Dispatch Independent Exploration
|
|
58
|
+
|
|
59
|
+
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.
|
|
60
|
+
|
|
61
|
+
<dynamic-agents>
|
|
62
|
+
**DYNAMIC AGENT SPAWNING**: After bash analysis, spawn ADDITIONAL explore agents based on project scale:
|
|
63
|
+
|
|
64
|
+
| Factor | Threshold | Additional Agents |
|
|
65
|
+
|--------|-----------|-------------------|
|
|
66
|
+
| **Total files** | >100 | +1 per 100 files |
|
|
67
|
+
| **Total lines** | >10k | +1 per 10k lines |
|
|
68
|
+
| **Directory depth** | ≥4 | +2 for deep exploration |
|
|
69
|
+
| **Large files (>500 lines)** | >10 files | +1 for complexity hotspots |
|
|
70
|
+
| **Monorepo** | detected | +1 per package/workspace |
|
|
71
|
+
| **Multiple languages** | >1 | +1 per language |
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Measure project scale first
|
|
75
|
+
total_files=$(find . -type f -not -path '*/node_modules/*' -not -path '*/.git/*' | wc -l)
|
|
76
|
+
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}')
|
|
77
|
+
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}')
|
|
78
|
+
max_depth=$(find . -type d -not -path '*/node_modules/*' -not -path '*/.git/*' | awk -F/ '{print NF}' | sort -rn | head -1)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
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.
|
|
82
|
+
</dynamic-agents>
|
|
83
|
+
|
|
84
|
+
### Main Session: Concurrent Analysis
|
|
85
|
+
|
|
86
|
+
**While independent exploration runs**, the main session does:
|
|
87
|
+
|
|
88
|
+
#### 1. Bash Structural Analysis
|
|
89
|
+
```bash
|
|
90
|
+
# Directory depth + file counts
|
|
91
|
+
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
|
|
92
|
+
|
|
93
|
+
# Files per directory (top 30)
|
|
94
|
+
find . -type f -not -path '*/\\.*' -not -path '*/node_modules/*' | sed 's|/[^/]*$||' | sort | uniq -c | sort -rn | head -30
|
|
95
|
+
|
|
96
|
+
# Code concentration by extension
|
|
97
|
+
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
|
|
98
|
+
|
|
99
|
+
# Existing AGENTS.md / CLAUDE.md
|
|
100
|
+
find . -type f \\( -name "AGENTS.md" -o -name "CLAUDE.md" \\) -not -path '*/node_modules/*' 2>/dev/null
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### 2. Read Existing AGENTS.md
|
|
104
|
+
```
|
|
105
|
+
For each existing file found:
|
|
106
|
+
Read the file through the currently exposed native read schema
|
|
107
|
+
Extract: key insights, conventions, anti-patterns
|
|
108
|
+
Store in EXISTING_AGENTS map
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
If `--create-new`: Read all existing first (preserve context) → then delete all → regenerate.
|
|
112
|
+
|
|
113
|
+
#### 3. Code Map - drive LSP (do NOT skip)
|
|
114
|
+
|
|
115
|
+
Highest-signal source for the CODE MAP and the Symbol/Export/Reference scoring rows. Use it alongside exploration agents.
|
|
116
|
+
|
|
117
|
+
**LSP** - check `lsp_status`; model-facing names are `lsp_status`/`lsp_symbols`/`lsp_find_references`/`lsp_goto_definition` (some harnesses drop the `lsp_` prefix):
|
|
118
|
+
- `lsp_symbols` scope="document" on each entry point -> file outline.
|
|
119
|
+
- `lsp_symbols` scope="workspace", query by kind (class/interface/function) -> symbol inventory.
|
|
120
|
+
- `lsp_find_references` on top exports (line/character from the symbols result) -> reference centrality.
|
|
121
|
+
|
|
122
|
+
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.
|
|
123
|
+
|
|
124
|
+
### Collect Background Results
|
|
125
|
+
|
|
126
|
+
**After host completion notifications, merge structure analysis, LSP, existing, and exploration findings. Mark "discovery" as completed.**
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Phase 2: Scoring & Location Decision
|
|
131
|
+
|
|
132
|
+
**Mark "scoring" as in_progress.**
|
|
133
|
+
|
|
134
|
+
### Scoring Matrix
|
|
135
|
+
|
|
136
|
+
| Factor | Weight | High Threshold | Source |
|
|
137
|
+
|--------|--------|----------------|--------|
|
|
138
|
+
| File count | 3x | >20 | bash |
|
|
139
|
+
| Subdir count | 2x | >5 | bash |
|
|
140
|
+
| Code ratio | 2x | >70% | bash |
|
|
141
|
+
| Unique patterns | 1x | Has own config | explore |
|
|
142
|
+
| Module boundary | 2x | Has index.ts/__init__.py | bash |
|
|
143
|
+
| Symbol density | 2x | >30 symbols | LSP |
|
|
144
|
+
| Export count | 2x | >10 exports | LSP |
|
|
145
|
+
| Reference centrality | 3x | >20 refs | LSP |
|
|
146
|
+
|
|
147
|
+
### Decision Rules
|
|
148
|
+
|
|
149
|
+
| Score | Action |
|
|
150
|
+
|-------|--------|
|
|
151
|
+
| **Root (.)** | ALWAYS create |
|
|
152
|
+
| **>15** | Create AGENTS.md |
|
|
153
|
+
| **8-15** | Create if distinct domain |
|
|
154
|
+
| **<8** | Skip (parent covers) |
|
|
155
|
+
|
|
156
|
+
### Output
|
|
157
|
+
```
|
|
158
|
+
AGENTS_LOCATIONS = [
|
|
159
|
+
{ path: ".", type: "root" },
|
|
160
|
+
{ path: "src/hooks", score: 18, reason: "high complexity" },
|
|
161
|
+
{ path: "src/api", score: 12, reason: "distinct domain" }
|
|
162
|
+
]
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Mark "scoring" as completed.**
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Phase 3: Generate AGENTS.md
|
|
170
|
+
|
|
171
|
+
**Mark "generate" as in_progress.**
|
|
172
|
+
|
|
173
|
+
<critical>
|
|
174
|
+
**File Writing Rule**: If AGENTS.md already exists at the target path → use `Edit` tool. If it does NOT exist → use `Write` tool.
|
|
175
|
+
NEVER use Write to overwrite an existing file. ALWAYS check existence first via `Read` or discovery results.
|
|
176
|
+
</critical>
|
|
177
|
+
|
|
178
|
+
### Root AGENTS.md (Full Treatment)
|
|
179
|
+
|
|
180
|
+
```markdown
|
|
181
|
+
# PROJECT KNOWLEDGE BASE
|
|
182
|
+
|
|
183
|
+
**Generated:** {TIMESTAMP}
|
|
184
|
+
**Commit:** {SHORT_SHA}
|
|
185
|
+
**Branch:** {BRANCH}
|
|
186
|
+
|
|
187
|
+
## OVERVIEW
|
|
188
|
+
{1-2 sentences: what + core stack}
|
|
189
|
+
|
|
190
|
+
## STRUCTURE
|
|
191
|
+
```
|
|
192
|
+
{root}/
|
|
193
|
+
├── {dir}/ # {non-obvious purpose only}
|
|
194
|
+
└── {entry}
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## WHERE TO LOOK
|
|
198
|
+
| Task | Location | Notes |
|
|
199
|
+
|------|----------|-------|
|
|
200
|
+
|
|
201
|
+
## CODE MAP
|
|
202
|
+
{From LSP - skip only if unavailable or project <10 files}
|
|
203
|
+
|
|
204
|
+
| Symbol | Type | Location | Refs | Role |
|
|
205
|
+
|--------|------|----------|------|------|
|
|
206
|
+
|
|
207
|
+
## CONVENTIONS
|
|
208
|
+
{ONLY deviations from standard}
|
|
209
|
+
|
|
210
|
+
## ANTI-PATTERNS (THIS PROJECT)
|
|
211
|
+
{Explicitly forbidden here}
|
|
212
|
+
|
|
213
|
+
## UNIQUE STYLES
|
|
214
|
+
{Project-specific}
|
|
215
|
+
|
|
216
|
+
## COMMANDS
|
|
217
|
+
```bash
|
|
218
|
+
{dev/test/build}
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## NOTES
|
|
222
|
+
{Gotchas}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
**Quality gates**: 50-150 lines, no generic advice, no obvious info.
|
|
226
|
+
|
|
227
|
+
### Subdirectory AGENTS.md (Parallel)
|
|
228
|
+
|
|
229
|
+
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.
|
|
230
|
+
|
|
231
|
+
**Wait for all. Mark "generate" as completed.**
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Phase 4: Review & Deduplicate
|
|
236
|
+
|
|
237
|
+
**Mark "review" as in_progress.**
|
|
238
|
+
|
|
239
|
+
For each generated file:
|
|
240
|
+
- Remove generic advice
|
|
241
|
+
- Remove parent duplicates
|
|
242
|
+
- Trim to size limits
|
|
243
|
+
- Verify telegraphic style
|
|
244
|
+
|
|
245
|
+
**Mark "review" as completed.**
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## Final Report
|
|
250
|
+
|
|
251
|
+
```
|
|
252
|
+
=== init-deep Complete ===
|
|
253
|
+
|
|
254
|
+
Mode: {update | create-new}
|
|
255
|
+
|
|
256
|
+
Files:
|
|
257
|
+
[OK] ./AGENTS.md (root, {N} lines)
|
|
258
|
+
[OK] ./src/hooks/AGENTS.md ({N} lines)
|
|
259
|
+
|
|
260
|
+
Dirs Analyzed: {N}
|
|
261
|
+
AGENTS.md Created: {N}
|
|
262
|
+
AGENTS.md Updated: {N}
|
|
263
|
+
|
|
264
|
+
Hierarchy:
|
|
265
|
+
./AGENTS.md
|
|
266
|
+
└── src/hooks/AGENTS.md
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## Anti-Patterns
|
|
272
|
+
|
|
273
|
+
- **Static agent count**: MUST vary agents based on project size/depth
|
|
274
|
+
- **Sequential execution**: Run independent exploration and LSP work concurrently when the host supports it
|
|
275
|
+
- **Ignoring existing**: ALWAYS read existing first, even with --create-new
|
|
276
|
+
- **Over-documenting**: Not every dir needs AGENTS.md
|
|
277
|
+
- **Redundancy**: Child never repeats parent
|
|
278
|
+
- **Generic content**: Remove anything that applies to ALL projects
|
|
279
|
+
- **Verbose style**: Telegraphic or die
|
|
@@ -1,13 +1,118 @@
|
|
|
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.
|
|
12
|
+
- Source role names are logical assignments: code-search/explore maps to dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Dispatch only through the actual role-specific native subagent tool in the current catalog, within the caller's effective policy, depth and authority. No generated file, metadata row or template proves callability. A missing permitted role is a blocker for a required formal stage, not permission to invent it or bypass planning.
|
|
13
|
+
- Templates describe assignment content, not a callable argument schema. Native continuation, background, message/interrupt and result handling are used only when actually exposed and supported; do not send task_id, subagent_type or guessed timeout fields. Otherwise perform permitted direct work or return the dependency to the stage owner.
|
|
14
|
+
- Use a concise response or an authorized project plan for tracking when no native tracking tool is exposed. Compression is unavailable unless a real tool is exposed; do not simulate it. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
|
|
15
|
+
- 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.
|
|
16
|
+
- 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.
|
|
17
|
+
|
|
18
|
+
<!-- v1 fork of superpowers/receiving-code-review.
|
|
19
|
+
Upstream: obra/superpowers v6.2.0 (synced 2026-08-02).
|
|
20
|
+
Adjustments: self-contained technical evaluation remains; findings are
|
|
21
|
+
evidence, not fixed verdict/receipt gates, and follow-up review is limited to
|
|
22
|
+
substantively changed inputs. See docs/v1-maintenance.md for sync rules. -->
|
|
23
|
+
|
|
24
|
+
# Code Review Reception
|
|
25
|
+
|
|
26
|
+
## Overview
|
|
27
|
+
|
|
28
|
+
Code review requires technical evaluation, not emotional performance.
|
|
29
|
+
|
|
30
|
+
**Core principle:** Verify before implementing. Preserve the approved goal and constraints. Technical correctness over social comfort.
|
|
31
|
+
|
|
32
|
+
## Evaluate the Feedback
|
|
33
|
+
|
|
34
|
+
1. Read the complete substantive feedback.
|
|
35
|
+
2. Restate or clarify the technical requirement when needed.
|
|
36
|
+
3. Verify the claim against current code, requirements, and evidence.
|
|
37
|
+
4. Classify it as a product defect, evidence gap, optional improvement, incorrect finding, or decision that changes approved intent.
|
|
38
|
+
5. Apply the smallest justified correction or push back with evidence.
|
|
39
|
+
6. Rerun only affected verification and review surfaces.
|
|
40
|
+
|
|
41
|
+
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.
|
|
42
|
+
|
|
43
|
+
## Clarification and Escalation
|
|
44
|
+
|
|
45
|
+
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.
|
|
46
|
+
|
|
47
|
+
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.
|
|
48
|
+
|
|
49
|
+
For a non-material ambiguity, choose a safe reversible interpretation from repository evidence. Record a significant ruling or assumption with its reason and cost if wrong.
|
|
50
|
+
|
|
51
|
+
## Source-Specific Handling
|
|
52
|
+
|
|
53
|
+
### From the user
|
|
54
|
+
|
|
55
|
+
- Treat the direction as authoritative after understanding its scope.
|
|
56
|
+
- Ask only when ambiguity changes the deliverable or risk.
|
|
57
|
+
- Do not expand authorization beyond the request's semantics.
|
|
58
|
+
- Skip performative agreement; act or state the technical interpretation.
|
|
59
|
+
|
|
60
|
+
### From an external reviewer
|
|
61
|
+
|
|
62
|
+
Check whether the suggestion:
|
|
63
|
+
|
|
64
|
+
- is correct for this codebase and supported platforms;
|
|
65
|
+
- breaks existing behavior or approved acceptance criteria;
|
|
66
|
+
- overlooks why the current implementation exists;
|
|
67
|
+
- adds unused or speculative functionality;
|
|
68
|
+
- conflicts with global constraints or user decisions.
|
|
69
|
+
|
|
70
|
+
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.
|
|
71
|
+
|
|
72
|
+
## Product Findings vs Evidence Findings
|
|
73
|
+
|
|
74
|
+
- **Product defect:** Correct the implementation with the smallest change that preserves approved intent.
|
|
75
|
+
- **Evidence gap:** Add or rerun the evidence needed to establish the claim; do not rewrite product behavior unless investigation reveals a real defect.
|
|
76
|
+
- **Optional improvement:** Record or defer it according to scope and value; it does not block a proven result.
|
|
77
|
+
- **Intent-changing proposal:** Return it to the decision owner rather than silently broadening scope.
|
|
78
|
+
|
|
79
|
+
Keep real security, data-loss, protocol/API, compatibility, release, and irreversible-operation safeguards intact even when a finding is inconvenient.
|
|
80
|
+
|
|
81
|
+
## Implementing Valid Findings
|
|
82
|
+
|
|
83
|
+
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.
|
|
84
|
+
|
|
85
|
+
Deep workers and implementers may choose a minimal evidence-based equivalent correction when it preserves the approved goal, constraints, permissions, and acceptance criteria. Record significant rulings or assumptions, why they were made, and the cost if wrong.
|
|
86
|
+
|
|
87
|
+
## Follow-Up Review
|
|
88
|
+
|
|
89
|
+
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.
|
|
90
|
+
|
|
91
|
+
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.
|
|
92
|
+
|
|
93
|
+
## Git Boundary
|
|
94
|
+
|
|
95
|
+
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.
|
|
96
|
+
|
|
97
|
+
## Communication
|
|
98
|
+
|
|
99
|
+
Avoid performative agreement such as "You're absolutely right" or "Great point." Prefer:
|
|
100
|
+
|
|
101
|
+
- `Fixed <specific issue> in <location>; <evidence>.`
|
|
102
|
+
- `Verified the finding against <source>; the minimal correction is <change>.`
|
|
103
|
+
- `This would conflict with <requirement/evidence>; I recommend no change because <reason>.`
|
|
104
|
+
- `I cannot verify <claim> without <missing evidence>; this is material because <impact>.`
|
|
105
|
+
|
|
106
|
+
If earlier pushback was wrong, correct it factually and proceed without a long apology.
|
|
107
|
+
|
|
108
|
+
## Common Mistakes
|
|
109
|
+
|
|
110
|
+
| Mistake | Better response |
|
|
111
|
+
|---|---|
|
|
112
|
+
| Performative agreement | State the technical interpretation or action |
|
|
113
|
+
| Blind implementation | Verify against current code and requirements |
|
|
114
|
+
| Treating a label as proof | Evaluate cited evidence and actual changes |
|
|
115
|
+
| Broadening scope | Preserve the approved goal and constraints |
|
|
116
|
+
| Repeating every review | Rerun only substantively affected review |
|
|
117
|
+
| Guessing through material risk | Escalate the decision |
|
|
118
|
+
| Treating optional review as a gate | Rely on sufficient current evidence unless review is required |
|
|
@@ -1,14 +1,165 @@
|
|
|
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. Locks behavior with regression tests FIRST, then runs categorized cleanup with bounded permitted work, then 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.
|
|
12
|
+
- Source role names are logical assignments: code-search/explore maps to dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Dispatch only through the actual role-specific native subagent tool in the current catalog, within the caller's effective policy, depth and authority. No generated file, metadata row or template proves callability. A missing permitted role is a blocker for a required formal stage, not permission to invent it or bypass planning.
|
|
13
|
+
- Templates describe assignment content, not a callable argument schema. Native continuation, background, message/interrupt and result handling are used only when actually exposed and supported; do not send task_id, subagent_type or guessed timeout fields. Otherwise perform permitted direct work or return the dependency to the stage owner.
|
|
14
|
+
- Use a concise response or an authorized project plan for tracking when no native tracking tool is exposed. Compression is unavailable unless a real tool is exposed; do not simulate it. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
|
|
15
|
+
- 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.
|
|
16
|
+
- 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.
|
|
17
|
+
|
|
18
|
+
# Remove AI Slops Skill
|
|
19
|
+
|
|
20
|
+
## Inputs
|
|
21
|
+
|
|
22
|
+
- **Default scope**: branch diff vs `merge-base main` (no arguments needed)
|
|
23
|
+
- **Optional scope**: explicit file list passed by the caller
|
|
24
|
+
|
|
25
|
+
## What this skill does
|
|
26
|
+
|
|
27
|
+
Cleans AI-generated slop from a bounded set of changed files while strictly preserving behavior. Locks behavior with regression tests first, then runs a categorized multi-pass cleanup, then verifies with quality gates and a critical review. Reverts and direct-edits when verification fails.
|
|
28
|
+
|
|
29
|
+
The core safety invariant: **behavior is locked by green tests before a single line is removed**. A checklist alone is not safety; a passing regression test is.
|
|
30
|
+
|
|
31
|
+
## 10 Slop Categories
|
|
32
|
+
|
|
33
|
+
### Stylistic
|
|
34
|
+
|
|
35
|
+
1. **Obvious comments** — Comments that restate what the code does, useless TODOs, commented-out code. KEEP: comments explaining WHY, BDD markers.
|
|
36
|
+
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.
|
|
37
|
+
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).
|
|
38
|
+
|
|
39
|
+
### Structural
|
|
40
|
+
|
|
41
|
+
4. **Needless abstraction** — Pass-through wrappers, single-use helpers, speculative indirection, single-implementation interfaces, factory functions that only call constructors.
|
|
42
|
+
5. **Boundary violations** — Wrong-layer imports, responsibility leaks, hidden coupling, pure functions with side effects.
|
|
43
|
+
6. **Dead code** — Unused imports, unused private functions, unreachable branches, stale feature flags, debug leftovers (console.log, print, dbg!, console.error).
|
|
44
|
+
|
|
45
|
+
### Hidden cost
|
|
46
|
+
|
|
47
|
+
7. **Duplication** — Copy-pasted branches, redundant helpers, repeated magic numbers. KEEP: coincidental repetition where intents differ.
|
|
48
|
+
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.
|
|
49
|
+
|
|
50
|
+
### Behavior coverage
|
|
51
|
+
|
|
52
|
+
9. **Missing tests** — Changed files with behavior but no regression test locking it. Fix: ADD the narrowest test.
|
|
53
|
+
|
|
54
|
+
### Structural
|
|
55
|
+
|
|
56
|
+
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.
|
|
57
|
+
|
|
58
|
+
## 6-Phase Flow
|
|
59
|
+
|
|
60
|
+
### Phase 0: Plan
|
|
61
|
+
|
|
62
|
+
State the bounded scope and evidence plan; use an exposed native tracking tool or authorized plan artifact only when coordination needs it.
|
|
63
|
+
|
|
64
|
+
### Phase 1: Determine scope
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
git diff $(git merge-base main HEAD)..HEAD --name-only
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Filter out: deleted files, binary files, generated files.
|
|
71
|
+
|
|
72
|
+
### Phase 2: Lock behavior with regression tests (NON-NEGOTIABLE)
|
|
73
|
+
|
|
74
|
+
For each in-scope file:
|
|
75
|
+
1. Identify the public/observable behavior.
|
|
76
|
+
2. Check if existing tests cover it.
|
|
77
|
+
3. If not covered, write the narrowest regression test that locks the behavior.
|
|
78
|
+
4. Tests must be GREEN before cleanup starts.
|
|
79
|
+
|
|
80
|
+
If you cannot establish a green baseline for a file, STOP. Do not clean that file.
|
|
81
|
+
|
|
82
|
+
### Phase 3: Cleanup plan
|
|
83
|
+
|
|
84
|
+
Per file, list: categories present, cleanup order, risk level.
|
|
85
|
+
|
|
86
|
+
Safety order (safe → dangerous):
|
|
87
|
+
comments → dead code → defensive → duplication → complexity → abstraction/boundary → performance → tests → oversized-modules
|
|
88
|
+
|
|
89
|
+
### Phase 4: Bounded slop removal
|
|
90
|
+
|
|
91
|
+
Use direct edits first. Delegate independent 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. Integrate results before dependent work.
|
|
92
|
+
|
|
93
|
+
Each file gets a detailed prompt containing:
|
|
94
|
+
- The category checklist for that file
|
|
95
|
+
- The cleanup order
|
|
96
|
+
- Hard constraints: behavior must be preserved, no public API signature changes, no deleting type annotations, no introducing new abstractions, minimal diff.
|
|
97
|
+
|
|
98
|
+
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.
|
|
99
|
+
|
|
100
|
+
### Phase 5: Quality gates + critical review
|
|
101
|
+
|
|
102
|
+
Applicable quality gates (reuse unchanged passing evidence; do not duplicate equivalent checks or invent missing tooling):
|
|
103
|
+
1. Regression tests still green
|
|
104
|
+
2. Lint clean
|
|
105
|
+
3. Typecheck clean
|
|
106
|
+
4. Unit + integration tests green
|
|
107
|
+
5. Static security scan clean (if applicable)
|
|
108
|
+
|
|
109
|
+
3 review checklists:
|
|
110
|
+
- **Safety**: No behavior change, no security regression, no data loss risk.
|
|
111
|
+
- **Behavior**: All observable behavior preserved, edge cases handled identically.
|
|
112
|
+
- **Quality**: No new slop introduced, diff is minimal, naming is consistent.
|
|
113
|
+
|
|
114
|
+
### Phase 6: Fix issues
|
|
115
|
+
|
|
116
|
+
If a gate fails:
|
|
117
|
+
1. Identify the change that caused the failure.
|
|
118
|
+
2. Explain why.
|
|
119
|
+
3. Read the current diff and directly undo only your own problematic edit. A destructive Git restore requires separate explicit authorization and must never overwrite unrelated user changes.
|
|
120
|
+
4. Direct-edit to re-apply only the provably-safe changes.
|
|
121
|
+
5. Re-run gates + checklists.
|
|
122
|
+
|
|
123
|
+
Stop and escalate when evidence exposes a material blocker, unsafe equivalence, or an authorization decision; do not impose an arbitrary attempt quota.
|
|
124
|
+
|
|
125
|
+
## Output Format
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
## Scope
|
|
129
|
+
<files in scope>
|
|
130
|
+
|
|
131
|
+
## Behavior Lock
|
|
132
|
+
<tests written, green baseline status>
|
|
133
|
+
|
|
134
|
+
## Cleanup Plan
|
|
135
|
+
<per-file categories + order>
|
|
136
|
+
|
|
137
|
+
## Per-File Results
|
|
138
|
+
<file: what was removed/changed>
|
|
139
|
+
|
|
140
|
+
## Quality Gates
|
|
141
|
+
<gates: PASS/FAIL/N/A + evidence>
|
|
142
|
+
|
|
143
|
+
## Critical Review
|
|
144
|
+
<Safety/Behavior/Quality findings>
|
|
145
|
+
|
|
146
|
+
## Issues Found & Fixed
|
|
147
|
+
<problems + fixes>
|
|
148
|
+
|
|
149
|
+
## Remaining Risks
|
|
150
|
+
<slop noticed but out of scope, concerns>
|
|
151
|
+
|
|
152
|
+
## Final Status
|
|
153
|
+
CLEAN | ISSUES FIXED | REQUIRES ATTENTION
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Core Principles
|
|
157
|
+
|
|
158
|
+
- **Behavior lock first**: Regression tests ARE the safety mechanism. The checklist is a supplement, not a replacement. Phase 2 is non-negotiable.
|
|
159
|
+
- **Don't bundle unrelated refactors**: A single cleanup commit containing dead code + abstraction + performance is unreviewable and unbisectable. Stay in slop scope.
|
|
160
|
+
- **Algorithm changes are NOT slop fixes**: If equivalence requires proof, it's a refactor, not a slop fix. It belongs in a separate change.
|
|
161
|
+
- **Don't silently skip**: If a gate is N/A, say N/A and why. If it fails, say it fails.
|
|
162
|
+
- **Don't delete WHY comments**: "It's obvious from the code" is rarely true for the next reader. Only delete comments that restate WHAT.
|
|
163
|
+
- **Don't touch out-of-scope files**: If you notice slop elsewhere, report it in Remaining Risks only.
|
|
164
|
+
- **When in doubt, SKIP**: Don't guess. Skip and report.
|
|
165
|
+
- **Useful concurrency only**: No fixed agent/batch count. Do not create redundant helpers or tests; existing green regression coverage remains the behavior lock, and new coverage targets an uncovered observable regression.
|