@winspan/claude-forge 8.54.4 → 9.12.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/DEVELOPMENT.md +723 -46
- package/README.md +166 -21
- package/dist/catalogs/agents.json +67 -0
- package/dist/catalogs/skills.json +306 -0
- package/dist/claudemd/claudemd-generator.d.ts +45 -45
- package/dist/claudemd/claudemd-generator.d.ts.map +1 -1
- package/dist/claudemd/claudemd-generator.js +128 -449
- package/dist/claudemd/claudemd-generator.js.map +1 -1
- package/dist/claudemd/index.d.ts +14 -4
- package/dist/claudemd/index.d.ts.map +1 -1
- package/dist/claudemd/index.js +15 -4
- package/dist/claudemd/index.js.map +1 -1
- package/dist/claudemd/resume-manager.d.ts.map +1 -1
- package/dist/claudemd/resume-manager.js +37 -9
- package/dist/claudemd/resume-manager.js.map +1 -1
- package/dist/claudemd/templates/swarm-protocol.md +35 -186
- package/dist/claudemd/violations-manager.d.ts +40 -0
- package/dist/claudemd/violations-manager.d.ts.map +1 -0
- package/dist/claudemd/violations-manager.js +106 -0
- package/dist/claudemd/violations-manager.js.map +1 -0
- package/dist/cli/commands/admin.d.ts +15 -0
- package/dist/cli/commands/admin.d.ts.map +1 -0
- package/dist/cli/commands/admin.js +177 -0
- package/dist/cli/commands/admin.js.map +1 -0
- package/dist/cli/commands/agent.d.ts +169 -0
- package/dist/cli/commands/agent.d.ts.map +1 -0
- package/dist/cli/commands/agent.js +690 -0
- package/dist/cli/commands/agent.js.map +1 -0
- package/dist/cli/commands/agents.d.ts +18 -0
- package/dist/cli/commands/agents.d.ts.map +1 -0
- package/dist/cli/commands/agents.js +160 -0
- package/dist/cli/commands/agents.js.map +1 -0
- package/dist/cli/commands/bypass.d.ts +18 -0
- package/dist/cli/commands/bypass.d.ts.map +1 -0
- package/dist/cli/commands/bypass.js +87 -0
- package/dist/cli/commands/bypass.js.map +1 -0
- package/dist/cli/commands/claudemd.d.ts +60 -0
- package/dist/cli/commands/claudemd.d.ts.map +1 -1
- package/dist/cli/commands/claudemd.js +174 -37
- package/dist/cli/commands/claudemd.js.map +1 -1
- package/dist/cli/commands/codegraph.d.ts +17 -0
- package/dist/cli/commands/codegraph.d.ts.map +1 -0
- package/dist/cli/commands/codegraph.js +263 -0
- package/dist/cli/commands/codegraph.js.map +1 -0
- package/dist/cli/commands/config.d.ts.map +1 -1
- package/dist/cli/commands/config.js +94 -1
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/daemon.d.ts +39 -0
- package/dist/cli/commands/daemon.d.ts.map +1 -1
- package/dist/cli/commands/daemon.js +167 -20
- package/dist/cli/commands/daemon.js.map +1 -1
- package/dist/cli/commands/decisions.d.ts +129 -0
- package/dist/cli/commands/decisions.d.ts.map +1 -0
- package/dist/cli/commands/decisions.js +706 -0
- package/dist/cli/commands/decisions.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +29 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +124 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/entropy.d.ts +35 -0
- package/dist/cli/commands/entropy.d.ts.map +1 -0
- package/dist/cli/commands/entropy.js +121 -0
- package/dist/cli/commands/entropy.js.map +1 -0
- package/dist/cli/commands/executions.d.ts +1 -0
- package/dist/cli/commands/executions.d.ts.map +1 -1
- package/dist/cli/commands/executions.js +12 -2
- package/dist/cli/commands/executions.js.map +1 -1
- package/dist/cli/commands/fix.d.ts +31 -0
- package/dist/cli/commands/fix.d.ts.map +1 -0
- package/dist/cli/commands/fix.js +108 -0
- package/dist/cli/commands/fix.js.map +1 -0
- package/dist/cli/commands/governance.d.ts +21 -0
- package/dist/cli/commands/governance.d.ts.map +1 -0
- package/dist/cli/commands/governance.js +60 -0
- package/dist/cli/commands/governance.js.map +1 -0
- package/dist/cli/commands/init.d.ts +27 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +158 -146
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/insights-goal-check.d.ts +54 -0
- package/dist/cli/commands/insights-goal-check.d.ts.map +1 -0
- package/dist/cli/commands/insights-goal-check.js +318 -0
- package/dist/cli/commands/insights-goal-check.js.map +1 -0
- package/dist/cli/commands/insights.d.ts +15 -0
- package/dist/cli/commands/insights.d.ts.map +1 -0
- package/dist/cli/commands/insights.js +127 -0
- package/dist/cli/commands/insights.js.map +1 -0
- package/dist/cli/commands/knowledge.d.ts +117 -0
- package/dist/cli/commands/knowledge.d.ts.map +1 -0
- package/dist/cli/commands/knowledge.js +1070 -0
- package/dist/cli/commands/knowledge.js.map +1 -0
- package/dist/cli/commands/loop.d.ts +95 -0
- package/dist/cli/commands/loop.d.ts.map +1 -0
- package/dist/cli/commands/loop.js +408 -0
- package/dist/cli/commands/loop.js.map +1 -0
- package/dist/cli/commands/maintenance.d.ts +33 -0
- package/dist/cli/commands/maintenance.d.ts.map +1 -0
- package/dist/cli/commands/maintenance.js +75 -0
- package/dist/cli/commands/maintenance.js.map +1 -0
- package/dist/cli/commands/mcp.d.ts +22 -11
- package/dist/cli/commands/mcp.d.ts.map +1 -1
- package/dist/cli/commands/mcp.js +93 -5
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/menu.d.ts.map +1 -1
- package/dist/cli/commands/menu.js +10 -184
- package/dist/cli/commands/menu.js.map +1 -1
- package/dist/cli/commands/project.d.ts +98 -0
- package/dist/cli/commands/project.d.ts.map +1 -0
- package/dist/cli/commands/project.js +382 -0
- package/dist/cli/commands/project.js.map +1 -0
- package/dist/cli/commands/skills.d.ts +131 -0
- package/dist/cli/commands/skills.d.ts.map +1 -1
- package/dist/cli/commands/skills.js +404 -118
- package/dist/cli/commands/skills.js.map +1 -1
- package/dist/cli/commands/spec.d.ts +40 -0
- package/dist/cli/commands/spec.d.ts.map +1 -0
- package/dist/cli/commands/spec.js +49 -0
- package/dist/cli/commands/spec.js.map +1 -0
- package/dist/cli/commands/stats.d.ts.map +1 -1
- package/dist/cli/commands/stats.js +11 -3
- package/dist/cli/commands/stats.js.map +1 -1
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +17 -2
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/trace.d.ts.map +1 -1
- package/dist/cli/commands/trace.js +4 -9
- package/dist/cli/commands/trace.js.map +1 -1
- package/dist/cli/commands/violations.d.ts +14 -0
- package/dist/cli/commands/violations.d.ts.map +1 -0
- package/dist/cli/commands/violations.js +43 -0
- package/dist/cli/commands/violations.js.map +1 -0
- package/dist/cli/index.js +34 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/hook-manager.d.ts +1 -1
- package/dist/cli/init/hook-manager.d.ts.map +1 -1
- package/dist/cli/init/hook-manager.js +6 -0
- package/dist/cli/init/hook-manager.js.map +1 -1
- package/dist/cli/utils/resolve-session.d.ts +32 -0
- package/dist/cli/utils/resolve-session.d.ts.map +1 -0
- package/dist/cli/utils/resolve-session.js +39 -0
- package/dist/cli/utils/resolve-session.js.map +1 -0
- package/dist/core/config.d.ts +4 -1
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +11 -23
- package/dist/core/config.js.map +1 -1
- package/dist/core/constants.d.ts +51 -13
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +63 -13
- package/dist/core/constants.js.map +1 -1
- package/dist/core/diagnostics/checks.d.ts +151 -0
- package/dist/core/diagnostics/checks.d.ts.map +1 -0
- package/dist/core/diagnostics/checks.js +766 -0
- package/dist/core/diagnostics/checks.js.map +1 -0
- package/dist/core/diagnostics/daemon-status.d.ts +77 -0
- package/dist/core/diagnostics/daemon-status.d.ts.map +1 -0
- package/dist/core/diagnostics/daemon-status.js +113 -0
- package/dist/core/diagnostics/daemon-status.js.map +1 -0
- package/dist/core/diagnostics/entropy-checks.d.ts +83 -0
- package/dist/core/diagnostics/entropy-checks.d.ts.map +1 -0
- package/dist/core/diagnostics/entropy-checks.js +400 -0
- package/dist/core/diagnostics/entropy-checks.js.map +1 -0
- package/dist/core/diagnostics/fix-runner.d.ts +54 -0
- package/dist/core/diagnostics/fix-runner.d.ts.map +1 -0
- package/dist/core/diagnostics/fix-runner.js +90 -0
- package/dist/core/diagnostics/fix-runner.js.map +1 -0
- package/dist/core/diagnostics/heartbeat-reader.d.ts +28 -0
- package/dist/core/diagnostics/heartbeat-reader.d.ts.map +1 -0
- package/dist/core/diagnostics/heartbeat-reader.js +50 -0
- package/dist/core/diagnostics/heartbeat-reader.js.map +1 -0
- package/dist/core/diagnostics/knip-runner.d.ts +49 -0
- package/dist/core/diagnostics/knip-runner.d.ts.map +1 -0
- package/dist/core/diagnostics/knip-runner.js +100 -0
- package/dist/core/diagnostics/knip-runner.js.map +1 -0
- package/dist/core/diagnostics/markers.d.ts +96 -0
- package/dist/core/diagnostics/markers.d.ts.map +1 -0
- package/dist/core/diagnostics/markers.js +153 -0
- package/dist/core/diagnostics/markers.js.map +1 -0
- package/dist/core/event-fields.d.ts +27 -0
- package/dist/core/event-fields.d.ts.map +1 -1
- package/dist/core/event-fields.js +43 -0
- package/dist/core/event-fields.js.map +1 -1
- package/dist/core/governance/global-inject.d.ts +90 -0
- package/dist/core/governance/global-inject.d.ts.map +1 -0
- package/dist/core/governance/global-inject.js +184 -0
- package/dist/core/governance/global-inject.js.map +1 -0
- package/dist/core/insights/agent-anchor-guard.d.ts +77 -0
- package/dist/core/insights/agent-anchor-guard.d.ts.map +1 -0
- package/dist/core/insights/agent-anchor-guard.js +119 -0
- package/dist/core/insights/agent-anchor-guard.js.map +1 -0
- package/dist/core/insights/agent-distill-context.d.ts +55 -0
- package/dist/core/insights/agent-distill-context.d.ts.map +1 -0
- package/dist/core/insights/agent-distill-context.js +146 -0
- package/dist/core/insights/agent-distill-context.js.map +1 -0
- package/dist/core/insights/agent-distill-spawn.d.ts +56 -0
- package/dist/core/insights/agent-distill-spawn.d.ts.map +1 -0
- package/dist/core/insights/agent-distill-spawn.js +179 -0
- package/dist/core/insights/agent-distill-spawn.js.map +1 -0
- package/dist/core/insights/agent-drift.d.ts +66 -0
- package/dist/core/insights/agent-drift.d.ts.map +1 -0
- package/dist/core/insights/agent-drift.js +109 -0
- package/dist/core/insights/agent-drift.js.map +1 -0
- package/dist/core/insights/agent-evolution-sources.d.ts +21 -0
- package/dist/core/insights/agent-evolution-sources.d.ts.map +1 -0
- package/dist/core/insights/agent-evolution-sources.js +36 -0
- package/dist/core/insights/agent-evolution-sources.js.map +1 -0
- package/dist/core/insights/agent-health.d.ts +142 -0
- package/dist/core/insights/agent-health.d.ts.map +1 -0
- package/dist/core/insights/agent-health.js +296 -0
- package/dist/core/insights/agent-health.js.map +1 -0
- package/dist/core/insights/agent-patch-apply.d.ts +45 -0
- package/dist/core/insights/agent-patch-apply.d.ts.map +1 -0
- package/dist/core/insights/agent-patch-apply.js +165 -0
- package/dist/core/insights/agent-patch-apply.js.map +1 -0
- package/dist/core/insights/agent-suggest.d.ts +128 -0
- package/dist/core/insights/agent-suggest.d.ts.map +1 -0
- package/dist/core/insights/agent-suggest.js +284 -0
- package/dist/core/insights/agent-suggest.js.map +1 -0
- package/dist/core/insights/coverage-tiers.d.ts +46 -0
- package/dist/core/insights/coverage-tiers.d.ts.map +1 -0
- package/dist/core/insights/coverage-tiers.js +95 -0
- package/dist/core/insights/coverage-tiers.js.map +1 -0
- package/dist/core/insights/experience-extractor.d.ts +60 -0
- package/dist/core/insights/experience-extractor.d.ts.map +1 -0
- package/dist/core/insights/experience-extractor.js +319 -0
- package/dist/core/insights/experience-extractor.js.map +1 -0
- package/dist/core/insights/violation-reporter.d.ts +149 -0
- package/dist/core/insights/violation-reporter.d.ts.map +1 -0
- package/dist/core/insights/violation-reporter.js +391 -0
- package/dist/core/insights/violation-reporter.js.map +1 -0
- package/dist/core/loop/loop-engine.d.ts +140 -0
- package/dist/core/loop/loop-engine.d.ts.map +1 -0
- package/dist/core/loop/loop-engine.js +266 -0
- package/dist/core/loop/loop-engine.js.map +1 -0
- package/dist/core/queue/index.d.ts +16 -3
- package/dist/core/queue/index.d.ts.map +1 -1
- package/dist/core/queue/index.js +16 -4
- package/dist/core/queue/index.js.map +1 -1
- package/dist/core/storage/base.d.ts +317 -0
- package/dist/core/storage/base.d.ts.map +1 -1
- package/dist/core/storage/base.js +1093 -0
- package/dist/core/storage/base.js.map +1 -1
- package/dist/core/storage/codec/tool-input-codec.d.ts +93 -0
- package/dist/core/storage/codec/tool-input-codec.d.ts.map +1 -0
- package/dist/core/storage/codec/tool-input-codec.js +159 -0
- package/dist/core/storage/codec/tool-input-codec.js.map +1 -0
- package/dist/core/storage/codegraph-types.d.ts +79 -0
- package/dist/core/storage/codegraph-types.d.ts.map +1 -0
- package/dist/core/storage/codegraph-types.js +14 -0
- package/dist/core/storage/codegraph-types.js.map +1 -0
- package/dist/core/storage/codegraph.d.ts +186 -0
- package/dist/core/storage/codegraph.d.ts.map +1 -0
- package/dist/core/storage/codegraph.js +452 -0
- package/dist/core/storage/codegraph.js.map +1 -0
- package/dist/core/storage/decisions.d.ts +387 -0
- package/dist/core/storage/decisions.d.ts.map +1 -0
- package/dist/core/storage/decisions.js +534 -0
- package/dist/core/storage/decisions.js.map +1 -0
- package/dist/core/storage/events.d.ts +239 -8
- package/dist/core/storage/events.d.ts.map +1 -1
- package/dist/core/storage/events.js +705 -39
- package/dist/core/storage/events.js.map +1 -1
- package/dist/core/storage/feedback.d.ts +111 -0
- package/dist/core/storage/feedback.d.ts.map +1 -0
- package/dist/core/storage/feedback.js +186 -0
- package/dist/core/storage/feedback.js.map +1 -0
- package/dist/core/storage/forge-config.d.ts +40 -0
- package/dist/core/storage/forge-config.d.ts.map +1 -0
- package/dist/core/storage/forge-config.js +65 -0
- package/dist/core/storage/forge-config.js.map +1 -0
- package/dist/core/storage/injections.d.ts +68 -0
- package/dist/core/storage/injections.d.ts.map +1 -1
- package/dist/core/storage/injections.js +131 -5
- package/dist/core/storage/injections.js.map +1 -1
- package/dist/core/storage/knowledge.d.ts +332 -0
- package/dist/core/storage/knowledge.d.ts.map +1 -0
- package/dist/core/storage/knowledge.js +589 -0
- package/dist/core/storage/knowledge.js.map +1 -0
- package/dist/core/storage/maintenance.d.ts +36 -9
- package/dist/core/storage/maintenance.d.ts.map +1 -1
- package/dist/core/storage/maintenance.js +56 -24
- package/dist/core/storage/maintenance.js.map +1 -1
- package/dist/core/storage/pipeline-rollup.d.ts +111 -0
- package/dist/core/storage/pipeline-rollup.d.ts.map +1 -0
- package/dist/core/storage/pipeline-rollup.js +432 -0
- package/dist/core/storage/pipeline-rollup.js.map +1 -0
- package/dist/core/storage/routing.d.ts +50 -3
- package/dist/core/storage/routing.d.ts.map +1 -1
- package/dist/core/storage/routing.js +131 -10
- package/dist/core/storage/routing.js.map +1 -1
- package/dist/core/storage/rows.d.ts +31 -8
- package/dist/core/storage/rows.d.ts.map +1 -1
- package/dist/core/storage/schema.sql +367 -23
- package/dist/core/storage/sessions.d.ts +136 -0
- package/dist/core/storage/sessions.d.ts.map +1 -1
- package/dist/core/storage/sessions.js +352 -15
- package/dist/core/storage/sessions.js.map +1 -1
- package/dist/core/storage/skills.d.ts +160 -0
- package/dist/core/storage/skills.d.ts.map +1 -1
- package/dist/core/storage/skills.js +368 -7
- package/dist/core/storage/skills.js.map +1 -1
- package/dist/core/storage/sqlite.d.ts +309 -20
- package/dist/core/storage/sqlite.d.ts.map +1 -1
- package/dist/core/storage/sqlite.js +523 -16
- package/dist/core/storage/sqlite.js.map +1 -1
- package/dist/core/storage/tasks.d.ts +744 -2
- package/dist/core/storage/tasks.d.ts.map +1 -1
- package/dist/core/storage/tasks.js +1691 -17
- package/dist/core/storage/tasks.js.map +1 -1
- package/dist/core/storage/tool-intercepts.d.ts +69 -0
- package/dist/core/storage/tool-intercepts.d.ts.map +1 -0
- package/dist/core/storage/tool-intercepts.js +116 -0
- package/dist/core/storage/tool-intercepts.js.map +1 -0
- package/dist/core/types.d.ts +136 -18
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +10 -0
- package/dist/core/types.js.map +1 -1
- package/dist/core/utils/backup.d.ts +81 -0
- package/dist/core/utils/backup.d.ts.map +1 -0
- package/dist/core/utils/backup.js +98 -0
- package/dist/core/utils/backup.js.map +1 -0
- package/dist/core/utils/binary-paths.d.ts +124 -0
- package/dist/core/utils/binary-paths.d.ts.map +1 -0
- package/dist/core/utils/binary-paths.js +218 -0
- package/dist/core/utils/binary-paths.js.map +1 -0
- package/dist/core/utils/bypass-token.d.ts +75 -0
- package/dist/core/utils/bypass-token.d.ts.map +1 -0
- package/dist/core/utils/bypass-token.js +133 -0
- package/dist/core/utils/bypass-token.js.map +1 -0
- package/dist/core/utils/cc-builtin-agents.d.ts +3 -0
- package/dist/core/utils/cc-builtin-agents.d.ts.map +1 -0
- package/dist/core/utils/cc-builtin-agents.js +29 -0
- package/dist/core/utils/cc-builtin-agents.js.map +1 -0
- package/dist/core/utils/claude-cli-resolver.d.ts +26 -0
- package/dist/core/utils/claude-cli-resolver.d.ts.map +1 -0
- package/dist/core/utils/claude-cli-resolver.js +115 -0
- package/dist/core/utils/claude-cli-resolver.js.map +1 -0
- package/dist/core/utils/claude-cli-spawn.d.ts +106 -0
- package/dist/core/utils/claude-cli-spawn.d.ts.map +1 -0
- package/dist/core/utils/claude-cli-spawn.js +219 -0
- package/dist/core/utils/claude-cli-spawn.js.map +1 -0
- package/dist/core/utils/forge-resume-block.d.ts.map +1 -1
- package/dist/core/utils/forge-resume-block.js +3 -2
- package/dist/core/utils/forge-resume-block.js.map +1 -1
- package/dist/core/utils/logger.d.ts +15 -3
- package/dist/core/utils/logger.d.ts.map +1 -1
- package/dist/core/utils/logger.js +20 -2
- package/dist/core/utils/logger.js.map +1 -1
- package/dist/core/utils/noise-prompt.d.ts +97 -0
- package/dist/core/utils/noise-prompt.d.ts.map +1 -0
- package/dist/core/utils/noise-prompt.js +127 -0
- package/dist/core/utils/noise-prompt.js.map +1 -0
- package/dist/core/utils/path.d.ts +0 -4
- package/dist/core/utils/path.d.ts.map +1 -1
- package/dist/core/utils/path.js +0 -7
- package/dist/core/utils/path.js.map +1 -1
- package/dist/core/utils/time.d.ts +67 -0
- package/dist/core/utils/time.d.ts.map +1 -1
- package/dist/core/utils/time.js +147 -0
- package/dist/core/utils/time.js.map +1 -1
- package/dist/daemon/agent-sync.d.ts +24 -0
- package/dist/daemon/agent-sync.d.ts.map +1 -0
- package/dist/daemon/agent-sync.js +114 -0
- package/dist/daemon/agent-sync.js.map +1 -0
- package/dist/daemon/config-store.d.ts +55 -0
- package/dist/daemon/config-store.d.ts.map +1 -0
- package/dist/daemon/config-store.js +146 -0
- package/dist/daemon/config-store.js.map +1 -0
- package/dist/daemon/event-parser.d.ts +22 -0
- package/dist/daemon/event-parser.d.ts.map +1 -1
- package/dist/daemon/event-parser.js +54 -3
- package/dist/daemon/event-parser.js.map +1 -1
- package/dist/daemon/handlers/history-exporter.d.ts.map +1 -1
- package/dist/daemon/handlers/history-exporter.js +9 -8
- package/dist/daemon/handlers/history-exporter.js.map +1 -1
- package/dist/daemon/handlers/post-tool-use.d.ts +66 -4
- package/dist/daemon/handlers/post-tool-use.d.ts.map +1 -1
- package/dist/daemon/handlers/post-tool-use.js +221 -8
- package/dist/daemon/handlers/post-tool-use.js.map +1 -1
- package/dist/daemon/handlers/pre-tool-use.d.ts +181 -0
- package/dist/daemon/handlers/pre-tool-use.d.ts.map +1 -0
- package/dist/daemon/handlers/pre-tool-use.js +618 -0
- package/dist/daemon/handlers/pre-tool-use.js.map +1 -0
- package/dist/daemon/handlers/stop.d.ts +55 -7
- package/dist/daemon/handlers/stop.d.ts.map +1 -1
- package/dist/daemon/handlers/stop.js +245 -8
- package/dist/daemon/handlers/stop.js.map +1 -1
- package/dist/daemon/handlers/user-prompt.d.ts +51 -14
- package/dist/daemon/handlers/user-prompt.d.ts.map +1 -1
- package/dist/daemon/handlers/user-prompt.js +223 -95
- package/dist/daemon/handlers/user-prompt.js.map +1 -1
- package/dist/daemon/handlers/violation-content-backfill.d.ts +76 -0
- package/dist/daemon/handlers/violation-content-backfill.d.ts.map +1 -0
- package/dist/daemon/handlers/violation-content-backfill.js +167 -0
- package/dist/daemon/handlers/violation-content-backfill.js.map +1 -0
- package/dist/daemon/hook-sync.d.ts.map +1 -1
- package/dist/daemon/hook-sync.js +2 -1
- package/dist/daemon/hook-sync.js.map +1 -1
- package/dist/daemon/index.d.ts +19 -0
- package/dist/daemon/index.d.ts.map +1 -1
- package/dist/daemon/index.js +439 -86
- package/dist/daemon/index.js.map +1 -1
- package/dist/daemon/lifecycle.d.ts +48 -1
- package/dist/daemon/lifecycle.d.ts.map +1 -1
- package/dist/daemon/lifecycle.js +98 -2
- package/dist/daemon/lifecycle.js.map +1 -1
- package/dist/daemon/router.d.ts +4 -1
- package/dist/daemon/router.d.ts.map +1 -1
- package/dist/daemon/router.js +4 -2
- package/dist/daemon/router.js.map +1 -1
- package/dist/daemon/rules/defaults.d.ts +20 -0
- package/dist/daemon/rules/defaults.d.ts.map +1 -0
- package/dist/daemon/rules/defaults.js +779 -0
- package/dist/daemon/rules/defaults.js.map +1 -0
- package/dist/daemon/rules/registry.d.ts +47 -0
- package/dist/daemon/rules/registry.d.ts.map +1 -0
- package/dist/daemon/rules/registry.js +84 -0
- package/dist/daemon/rules/registry.js.map +1 -0
- package/dist/daemon/rules/types.d.ts +176 -0
- package/dist/daemon/rules/types.d.ts.map +1 -0
- package/dist/daemon/rules/types.js +15 -0
- package/dist/daemon/rules/types.js.map +1 -0
- package/dist/daemon/rules/whitelist.d.ts +101 -0
- package/dist/daemon/rules/whitelist.d.ts.map +1 -0
- package/dist/daemon/rules/whitelist.js +210 -0
- package/dist/daemon/rules/whitelist.js.map +1 -0
- package/dist/daemon/rules/workflow-defaults.d.ts +52 -0
- package/dist/daemon/rules/workflow-defaults.d.ts.map +1 -0
- package/dist/daemon/rules/workflow-defaults.js +521 -0
- package/dist/daemon/rules/workflow-defaults.js.map +1 -0
- package/dist/daemon/server.d.ts +11 -1
- package/dist/daemon/server.d.ts.map +1 -1
- package/dist/daemon/server.js +7 -1
- package/dist/daemon/server.js.map +1 -1
- package/dist/daemon/services/codegraph-sync.d.ts +94 -0
- package/dist/daemon/services/codegraph-sync.d.ts.map +1 -0
- package/dist/daemon/services/codegraph-sync.js +159 -0
- package/dist/daemon/services/codegraph-sync.js.map +1 -0
- package/dist/daemon/services/context-injector.d.ts +34 -0
- package/dist/daemon/services/context-injector.d.ts.map +1 -0
- package/dist/daemon/services/context-injector.js +61 -0
- package/dist/daemon/services/context-injector.js.map +1 -0
- package/dist/daemon/services/decision-hint.d.ts +240 -0
- package/dist/daemon/services/decision-hint.d.ts.map +1 -0
- package/dist/daemon/services/decision-hint.js +562 -0
- package/dist/daemon/services/decision-hint.js.map +1 -0
- package/dist/daemon/services/event-ttl-sweep.d.ts +86 -0
- package/dist/daemon/services/event-ttl-sweep.d.ts.map +1 -0
- package/dist/daemon/services/event-ttl-sweep.js +124 -0
- package/dist/daemon/services/event-ttl-sweep.js.map +1 -0
- package/dist/daemon/services/feedback-aggregator.d.ts +167 -0
- package/dist/daemon/services/feedback-aggregator.d.ts.map +1 -0
- package/dist/daemon/services/feedback-aggregator.js +415 -0
- package/dist/daemon/services/feedback-aggregator.js.map +1 -0
- package/dist/daemon/services/heartbeat-writer.d.ts +46 -0
- package/dist/daemon/services/heartbeat-writer.d.ts.map +1 -0
- package/dist/daemon/services/heartbeat-writer.js +82 -0
- package/dist/daemon/services/heartbeat-writer.js.map +1 -0
- package/dist/daemon/services/idle-session-sweeper.d.ts +61 -0
- package/dist/daemon/services/idle-session-sweeper.d.ts.map +1 -0
- package/dist/daemon/services/idle-session-sweeper.js +94 -0
- package/dist/daemon/services/idle-session-sweeper.js.map +1 -0
- package/dist/daemon/services/idle-task-budget.d.ts +50 -0
- package/dist/daemon/services/idle-task-budget.d.ts.map +1 -0
- package/dist/daemon/services/idle-task-budget.js +72 -0
- package/dist/daemon/services/idle-task-budget.js.map +1 -0
- package/dist/daemon/services/intercept-revive.d.ts +60 -0
- package/dist/daemon/services/intercept-revive.d.ts.map +1 -0
- package/dist/daemon/services/intercept-revive.js +86 -0
- package/dist/daemon/services/intercept-revive.js.map +1 -0
- package/dist/daemon/services/intercept-rollback-guard.d.ts +105 -0
- package/dist/daemon/services/intercept-rollback-guard.d.ts.map +1 -0
- package/dist/daemon/services/intercept-rollback-guard.js +152 -0
- package/dist/daemon/services/intercept-rollback-guard.js.map +1 -0
- package/dist/daemon/services/intercept-timeout-sweeper.d.ts +58 -0
- package/dist/daemon/services/intercept-timeout-sweeper.d.ts.map +1 -0
- package/dist/daemon/services/intercept-timeout-sweeper.js +83 -0
- package/dist/daemon/services/intercept-timeout-sweeper.js.map +1 -0
- package/dist/daemon/services/kb-injector.d.ts +57 -0
- package/dist/daemon/services/kb-injector.d.ts.map +1 -0
- package/dist/daemon/services/kb-injector.js +148 -0
- package/dist/daemon/services/kb-injector.js.map +1 -0
- package/dist/daemon/services/kb-rebuild-scheduler.d.ts +95 -0
- package/dist/daemon/services/kb-rebuild-scheduler.d.ts.map +1 -0
- package/dist/daemon/services/kb-rebuild-scheduler.js +149 -0
- package/dist/daemon/services/kb-rebuild-scheduler.js.map +1 -0
- package/dist/daemon/services/loop-hint.d.ts +139 -0
- package/dist/daemon/services/loop-hint.d.ts.map +1 -0
- package/dist/daemon/services/loop-hint.js +272 -0
- package/dist/daemon/services/loop-hint.js.map +1 -0
- package/dist/daemon/services/outcome-classification-service.d.ts +49 -0
- package/dist/daemon/services/outcome-classification-service.d.ts.map +1 -0
- package/dist/daemon/services/outcome-classification-service.js +214 -0
- package/dist/daemon/services/outcome-classification-service.js.map +1 -0
- package/dist/daemon/services/outcome-classifier.d.ts +136 -0
- package/dist/daemon/services/outcome-classifier.d.ts.map +1 -0
- package/dist/daemon/services/outcome-classifier.js +178 -0
- package/dist/daemon/services/outcome-classifier.js.map +1 -0
- package/dist/daemon/services/outcome-nudge.d.ts +107 -0
- package/dist/daemon/services/outcome-nudge.d.ts.map +1 -0
- package/dist/daemon/services/outcome-nudge.js +242 -0
- package/dist/daemon/services/outcome-nudge.js.map +1 -0
- package/dist/daemon/services/spec-approval.d.ts +127 -0
- package/dist/daemon/services/spec-approval.d.ts.map +1 -0
- package/dist/daemon/services/spec-approval.js +216 -0
- package/dist/daemon/services/spec-approval.js.map +1 -0
- package/dist/daemon/services/spec-gate.d.ts +54 -0
- package/dist/daemon/services/spec-gate.d.ts.map +1 -0
- package/dist/daemon/services/spec-gate.js +113 -0
- package/dist/daemon/services/spec-gate.js.map +1 -0
- package/dist/daemon/services/task-boundary-classifier.d.ts +78 -0
- package/dist/daemon/services/task-boundary-classifier.d.ts.map +1 -0
- package/dist/daemon/services/task-boundary-classifier.js +202 -0
- package/dist/daemon/services/task-boundary-classifier.js.map +1 -0
- package/dist/daemon/services/task-segmenter.d.ts +230 -1
- package/dist/daemon/services/task-segmenter.d.ts.map +1 -1
- package/dist/daemon/services/task-segmenter.js +527 -17
- package/dist/daemon/services/task-segmenter.js.map +1 -1
- package/dist/daemon/skill-sync.d.ts +7 -2
- package/dist/daemon/skill-sync.d.ts.map +1 -1
- package/dist/daemon/skill-sync.js +114 -9
- package/dist/daemon/skill-sync.js.map +1 -1
- package/dist/daemon/startup/maintenance-schedulers.d.ts +68 -0
- package/dist/daemon/startup/maintenance-schedulers.d.ts.map +1 -0
- package/dist/daemon/startup/maintenance-schedulers.js +294 -0
- package/dist/daemon/startup/maintenance-schedulers.js.map +1 -0
- package/dist/daemon/templates/agents/agent-retro-distiller.md +106 -0
- package/dist/daemon/templates/agents/claudemd-writer.md +102 -0
- package/dist/daemon/templates/agents/coder.md +262 -0
- package/dist/daemon/templates/agents/decision-maker.md +546 -0
- package/dist/daemon/templates/agents/doc-reviewer.md +118 -0
- package/dist/daemon/templates/agents/harness-debug-full.md +196 -0
- package/dist/daemon/templates/agents/knowledge-builder.md +120 -0
- package/dist/daemon/templates/agents/patch-applier.md +145 -0
- package/dist/daemon/templates/agents/planner.md +217 -0
- package/dist/daemon/templates/agents/safety-net-implementer.md +278 -0
- package/dist/daemon/templates/agents/skill-distiller.md +114 -0
- package/dist/daemon/templates/agents/task-boundary-classifier.md +65 -0
- package/dist/daemon/templates/agents/verify-agent.md +259 -0
- package/dist/daemon/utils/inject-block.d.ts +39 -0
- package/dist/daemon/utils/inject-block.d.ts.map +1 -0
- package/dist/daemon/utils/inject-block.js +25 -0
- package/dist/daemon/utils/inject-block.js.map +1 -0
- package/dist/hooks/hook-lib.sh +8 -0
- package/dist/hooks/notification.sh +19 -8
- package/dist/hooks/post-tool-use.sh +41 -23
- package/dist/hooks/pre-tool-use.sh +54 -23
- package/dist/hooks/session-start.sh +68 -0
- package/dist/hooks/stop.sh +31 -11
- package/dist/hooks/user-prompt-submit.sh +37 -21
- package/dist/knowledge/adapters/go-adapter.d.ts +65 -0
- package/dist/knowledge/adapters/go-adapter.d.ts.map +1 -0
- package/dist/knowledge/adapters/go-adapter.js +294 -0
- package/dist/knowledge/adapters/go-adapter.js.map +1 -0
- package/dist/knowledge/adapters/index.d.ts +41 -0
- package/dist/knowledge/adapters/index.d.ts.map +1 -0
- package/dist/knowledge/adapters/index.js +71 -0
- package/dist/knowledge/adapters/index.js.map +1 -0
- package/dist/knowledge/adapters/java-adapter.d.ts +66 -0
- package/dist/knowledge/adapters/java-adapter.d.ts.map +1 -0
- package/dist/knowledge/adapters/java-adapter.js +260 -0
- package/dist/knowledge/adapters/java-adapter.js.map +1 -0
- package/dist/knowledge/adapters/js-vue-adapter.d.ts +56 -0
- package/dist/knowledge/adapters/js-vue-adapter.d.ts.map +1 -0
- package/dist/knowledge/adapters/js-vue-adapter.js +203 -0
- package/dist/knowledge/adapters/js-vue-adapter.js.map +1 -0
- package/dist/knowledge/adapters/kotlin-adapter.d.ts +55 -0
- package/dist/knowledge/adapters/kotlin-adapter.d.ts.map +1 -0
- package/dist/knowledge/adapters/kotlin-adapter.js +209 -0
- package/dist/knowledge/adapters/kotlin-adapter.js.map +1 -0
- package/dist/knowledge/adapters/monorepo-adapter.d.ts +77 -0
- package/dist/knowledge/adapters/monorepo-adapter.d.ts.map +1 -0
- package/dist/knowledge/adapters/monorepo-adapter.js +170 -0
- package/dist/knowledge/adapters/monorepo-adapter.js.map +1 -0
- package/dist/knowledge/adapters/python-adapter.d.ts +89 -0
- package/dist/knowledge/adapters/python-adapter.d.ts.map +1 -0
- package/dist/knowledge/adapters/python-adapter.js +358 -0
- package/dist/knowledge/adapters/python-adapter.js.map +1 -0
- package/dist/knowledge/adapters/rust-adapter.d.ts +73 -0
- package/dist/knowledge/adapters/rust-adapter.d.ts.map +1 -0
- package/dist/knowledge/adapters/rust-adapter.js +329 -0
- package/dist/knowledge/adapters/rust-adapter.js.map +1 -0
- package/dist/knowledge/adapters/types.d.ts +99 -0
- package/dist/knowledge/adapters/types.d.ts.map +1 -0
- package/dist/knowledge/adapters/types.js +17 -0
- package/dist/knowledge/adapters/types.js.map +1 -0
- package/dist/knowledge/adapters/typescript-adapter.d.ts +57 -0
- package/dist/knowledge/adapters/typescript-adapter.d.ts.map +1 -0
- package/dist/knowledge/adapters/typescript-adapter.js +171 -0
- package/dist/knowledge/adapters/typescript-adapter.js.map +1 -0
- package/dist/knowledge/audit-applier.d.ts +70 -0
- package/dist/knowledge/audit-applier.d.ts.map +1 -0
- package/dist/knowledge/audit-applier.js +251 -0
- package/dist/knowledge/audit-applier.js.map +1 -0
- package/dist/knowledge/builder.d.ts +261 -0
- package/dist/knowledge/builder.d.ts.map +1 -0
- package/dist/knowledge/builder.js +966 -0
- package/dist/knowledge/builder.js.map +1 -0
- package/dist/knowledge/cli-provider.d.ts +151 -0
- package/dist/knowledge/cli-provider.d.ts.map +1 -0
- package/dist/knowledge/cli-provider.js +313 -0
- package/dist/knowledge/cli-provider.js.map +1 -0
- package/dist/knowledge/constants.d.ts +78 -0
- package/dist/knowledge/constants.d.ts.map +1 -0
- package/dist/knowledge/constants.js +98 -0
- package/dist/knowledge/constants.js.map +1 -0
- package/dist/knowledge/cross-module.d.ts +139 -0
- package/dist/knowledge/cross-module.d.ts.map +1 -0
- package/dist/knowledge/cross-module.js +370 -0
- package/dist/knowledge/cross-module.js.map +1 -0
- package/dist/knowledge/git-hooks.d.ts +67 -0
- package/dist/knowledge/git-hooks.d.ts.map +1 -0
- package/dist/knowledge/git-hooks.js +258 -0
- package/dist/knowledge/git-hooks.js.map +1 -0
- package/dist/knowledge/graph/edge-extractor.d.ts +45 -0
- package/dist/knowledge/graph/edge-extractor.d.ts.map +1 -0
- package/dist/knowledge/graph/edge-extractor.js +242 -0
- package/dist/knowledge/graph/edge-extractor.js.map +1 -0
- package/dist/knowledge/graph/impact.d.ts +73 -0
- package/dist/knowledge/graph/impact.d.ts.map +1 -0
- package/dist/knowledge/graph/impact.js +94 -0
- package/dist/knowledge/graph/impact.js.map +1 -0
- package/dist/knowledge/graph/types.d.ts +22 -0
- package/dist/knowledge/graph/types.d.ts.map +1 -0
- package/dist/knowledge/graph/types.js +13 -0
- package/dist/knowledge/graph/types.js.map +1 -0
- package/dist/knowledge/module-hash.d.ts +88 -0
- package/dist/knowledge/module-hash.d.ts.map +1 -0
- package/dist/knowledge/module-hash.js +162 -0
- package/dist/knowledge/module-hash.js.map +1 -0
- package/dist/knowledge/project-detector.d.ts +101 -0
- package/dist/knowledge/project-detector.d.ts.map +1 -0
- package/dist/knowledge/project-detector.js +223 -0
- package/dist/knowledge/project-detector.js.map +1 -0
- package/dist/knowledge/prompt.d.ts +237 -0
- package/dist/knowledge/prompt.d.ts.map +1 -0
- package/dist/knowledge/prompt.js +416 -0
- package/dist/knowledge/prompt.js.map +1 -0
- package/dist/knowledge/query.d.ts +118 -0
- package/dist/knowledge/query.d.ts.map +1 -0
- package/dist/knowledge/query.js +438 -0
- package/dist/knowledge/query.js.map +1 -0
- package/dist/knowledge/repo-map.d.ts +97 -0
- package/dist/knowledge/repo-map.d.ts.map +1 -0
- package/dist/knowledge/repo-map.js +447 -0
- package/dist/knowledge/repo-map.js.map +1 -0
- package/dist/knowledge/tools/index.d.ts +14 -0
- package/dist/knowledge/tools/index.d.ts.map +1 -0
- package/dist/knowledge/tools/index.js +11 -0
- package/dist/knowledge/tools/index.js.map +1 -0
- package/dist/knowledge/tools/knowledge-get-page.d.ts +46 -0
- package/dist/knowledge/tools/knowledge-get-page.d.ts.map +1 -0
- package/dist/knowledge/tools/knowledge-get-page.js +101 -0
- package/dist/knowledge/tools/knowledge-get-page.js.map +1 -0
- package/dist/knowledge/tools/knowledge-query.d.ts +77 -0
- package/dist/knowledge/tools/knowledge-query.d.ts.map +1 -0
- package/dist/knowledge/tools/knowledge-query.js +104 -0
- package/dist/knowledge/tools/knowledge-query.js.map +1 -0
- package/dist/knowledge/tools/repo-map-lookup.d.ts +45 -0
- package/dist/knowledge/tools/repo-map-lookup.d.ts.map +1 -0
- package/dist/knowledge/tools/repo-map-lookup.js +82 -0
- package/dist/knowledge/tools/repo-map-lookup.js.map +1 -0
- package/dist/knowledge/types.d.ts +269 -0
- package/dist/knowledge/types.d.ts.map +1 -0
- package/dist/knowledge/types.js +10 -0
- package/dist/knowledge/types.js.map +1 -0
- package/dist/knowledge/validator.d.ts +90 -0
- package/dist/knowledge/validator.d.ts.map +1 -0
- package/dist/knowledge/validator.js +355 -0
- package/dist/knowledge/validator.js.map +1 -0
- package/dist/mcp/server.d.ts +64 -8
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +448 -12
- package/dist/mcp/server.js.map +1 -1
- package/dist/skills/builtin-skills.d.ts +35 -0
- package/dist/skills/builtin-skills.d.ts.map +1 -0
- package/dist/skills/builtin-skills.js +68 -0
- package/dist/skills/builtin-skills.js.map +1 -0
- package/dist/skills/distill/attribution.d.ts +59 -0
- package/dist/skills/distill/attribution.d.ts.map +1 -0
- package/dist/skills/distill/attribution.js +101 -0
- package/dist/skills/distill/attribution.js.map +1 -0
- package/dist/skills/distill/distiller.d.ts +161 -0
- package/dist/skills/distill/distiller.d.ts.map +1 -0
- package/dist/skills/distill/distiller.js +461 -0
- package/dist/skills/distill/distiller.js.map +1 -0
- package/dist/skills/distill/index.d.ts +223 -0
- package/dist/skills/distill/index.d.ts.map +1 -0
- package/dist/skills/distill/index.js +466 -0
- package/dist/skills/distill/index.js.map +1 -0
- package/dist/skills/distill/project-anchor-guard.d.ts +116 -0
- package/dist/skills/distill/project-anchor-guard.d.ts.map +1 -0
- package/dist/skills/distill/project-anchor-guard.js +334 -0
- package/dist/skills/distill/project-anchor-guard.js.map +1 -0
- package/dist/skills/distill/topic-deduper.d.ts +77 -0
- package/dist/skills/distill/topic-deduper.d.ts.map +1 -0
- package/dist/skills/distill/topic-deduper.js +119 -0
- package/dist/skills/distill/topic-deduper.js.map +1 -0
- package/dist/skills/distill/upstream-fetcher.d.ts +71 -0
- package/dist/skills/distill/upstream-fetcher.d.ts.map +1 -0
- package/dist/skills/distill/upstream-fetcher.js +202 -0
- package/dist/skills/distill/upstream-fetcher.js.map +1 -0
- package/dist/skills/distilled/distilled-api-design.md +495 -0
- package/dist/skills/distilled/distilled-architecture-decision.md +173 -0
- package/dist/skills/distilled/distilled-brainstorming.md +79 -0
- package/dist/skills/distilled/distilled-brand-guidelines.md +86 -0
- package/dist/skills/distilled/distilled-canvas-design.md +128 -0
- package/dist/skills/distilled/distilled-claude-api.md +185 -0
- package/dist/skills/distilled/distilled-creator.md +181 -0
- package/dist/skills/distilled/distilled-db-schema-design.md +245 -0
- package/dist/skills/distilled/distilled-dispatching-parallel-agents.md +136 -0
- package/dist/skills/distilled/distilled-doc-coauthoring.md +144 -0
- package/dist/skills/distilled/distilled-docx.md +231 -0
- package/dist/skills/distilled/distilled-executing-plans.md +148 -0
- package/dist/skills/distilled/distilled-finishing-a-development-branch.md +213 -0
- package/dist/skills/distilled/distilled-frontend-design.md +118 -0
- package/dist/skills/distilled/distilled-harness-engineering.md +242 -0
- package/dist/skills/distilled/distilled-karpathy-guidelines.md +104 -0
- package/dist/skills/distilled/distilled-performance-optimization.md +175 -0
- package/dist/skills/distilled/distilled-receiving-code-review.md +185 -0
- package/dist/skills/distilled/distilled-spec-driven-design.md +193 -0
- package/dist/skills/distilled/distilled-subagent-driven-development.md +124 -0
- package/dist/skills/distilled/distilled-systematic-debugging.md +154 -0
- package/dist/skills/distilled/distilled-test-driven-development.md +432 -0
- package/dist/skills/distilled/distilled-using-superpowers.md +134 -0
- package/dist/skills/distilled/distilled-verification-before-completion.md +213 -0
- package/dist/skills/distilled/distilled-writing-skills.md +175 -0
- package/dist/skills/registry.d.ts +55 -51
- package/dist/skills/registry.d.ts.map +1 -1
- package/dist/skills/registry.js +82 -196
- package/dist/skills/registry.js.map +1 -1
- package/dist/skills/tools/pipeline-suggest.js +14 -14
- package/dist/skills/tools/pipeline-suggest.js.map +1 -1
- package/dist/skills/tools/skill-invoke.d.ts +3 -2
- package/dist/skills/tools/skill-invoke.d.ts.map +1 -1
- package/dist/skills/tools/skill-invoke.js +4 -2
- package/dist/skills/tools/skill-invoke.js.map +1 -1
- package/dist/web/analytics/anti-pattern-detector.d.ts.map +1 -1
- package/dist/web/analytics/anti-pattern-detector.js +6 -1
- package/dist/web/analytics/anti-pattern-detector.js.map +1 -1
- package/dist/web/analytics/drift-detector.d.ts +6 -0
- package/dist/web/analytics/drift-detector.d.ts.map +1 -1
- package/dist/web/analytics/drift-detector.js +15 -8
- package/dist/web/analytics/drift-detector.js.map +1 -1
- package/dist/web/analytics/weekly-report.d.ts +13 -0
- package/dist/web/analytics/weekly-report.d.ts.map +1 -1
- package/dist/web/analytics/weekly-report.js +17 -3
- package/dist/web/analytics/weekly-report.js.map +1 -1
- package/dist/web/routes/_helpers.d.ts +31 -0
- package/dist/web/routes/_helpers.d.ts.map +1 -1
- package/dist/web/routes/_helpers.js +33 -0
- package/dist/web/routes/_helpers.js.map +1 -1
- package/dist/web/routes/agent-content.d.ts +30 -0
- package/dist/web/routes/agent-content.d.ts.map +1 -0
- package/dist/web/routes/agent-content.js +139 -0
- package/dist/web/routes/agent-content.js.map +1 -0
- package/dist/web/routes/agent-distill.d.ts +49 -0
- package/dist/web/routes/agent-distill.d.ts.map +1 -0
- package/dist/web/routes/agent-distill.js +526 -0
- package/dist/web/routes/agent-distill.js.map +1 -0
- package/dist/web/routes/config.d.ts +56 -0
- package/dist/web/routes/config.d.ts.map +1 -0
- package/dist/web/routes/config.js +243 -0
- package/dist/web/routes/config.js.map +1 -0
- package/dist/web/routes/decisions.d.ts +15 -0
- package/dist/web/routes/decisions.d.ts.map +1 -0
- package/dist/web/routes/decisions.js +181 -0
- package/dist/web/routes/decisions.js.map +1 -0
- package/dist/web/routes/diagnostics.d.ts +61 -0
- package/dist/web/routes/diagnostics.d.ts.map +1 -0
- package/dist/web/routes/diagnostics.js +203 -0
- package/dist/web/routes/diagnostics.js.map +1 -0
- package/dist/web/routes/error-handler.d.ts +0 -4
- package/dist/web/routes/error-handler.d.ts.map +1 -1
- package/dist/web/routes/error-handler.js +0 -8
- package/dist/web/routes/error-handler.js.map +1 -1
- package/dist/web/routes/events.d.ts.map +1 -1
- package/dist/web/routes/events.js +26 -1
- package/dist/web/routes/events.js.map +1 -1
- package/dist/web/routes/health.d.ts +33 -0
- package/dist/web/routes/health.d.ts.map +1 -0
- package/dist/web/routes/health.js +37 -0
- package/dist/web/routes/health.js.map +1 -0
- package/dist/web/routes/insights.d.ts +0 -5
- package/dist/web/routes/insights.d.ts.map +1 -1
- package/dist/web/routes/insights.js +0 -0
- package/dist/web/routes/insights.js.map +1 -1
- package/dist/web/routes/knowledge.d.ts +57 -0
- package/dist/web/routes/knowledge.d.ts.map +1 -0
- package/dist/web/routes/knowledge.js +772 -0
- package/dist/web/routes/knowledge.js.map +1 -0
- package/dist/web/routes/patch.d.ts +60 -1
- package/dist/web/routes/patch.d.ts.map +1 -1
- package/dist/web/routes/patch.js +170 -64
- package/dist/web/routes/patch.js.map +1 -1
- package/dist/web/routes/pipeline.d.ts +28 -0
- package/dist/web/routes/pipeline.d.ts.map +1 -0
- package/dist/web/routes/pipeline.js +145 -0
- package/dist/web/routes/pipeline.js.map +1 -0
- package/dist/web/routes/rules.d.ts.map +1 -1
- package/dist/web/routes/rules.js +26 -7
- package/dist/web/routes/rules.js.map +1 -1
- package/dist/web/routes/sessions.d.ts.map +1 -1
- package/dist/web/routes/sessions.js +17 -8
- package/dist/web/routes/sessions.js.map +1 -1
- package/dist/web/routes/skill-content.d.ts +30 -0
- package/dist/web/routes/skill-content.d.ts.map +1 -0
- package/dist/web/routes/skill-content.js +117 -0
- package/dist/web/routes/skill-content.js.map +1 -0
- package/dist/web/routes/skill-stats.d.ts.map +1 -1
- package/dist/web/routes/skill-stats.js +153 -16
- package/dist/web/routes/skill-stats.js.map +1 -1
- package/dist/web/routes/skills-distill.d.ts +29 -0
- package/dist/web/routes/skills-distill.d.ts.map +1 -0
- package/dist/web/routes/skills-distill.js +552 -0
- package/dist/web/routes/skills-distill.js.map +1 -0
- package/dist/web/routes/skills.js +7 -7
- package/dist/web/routes/skills.js.map +1 -1
- package/dist/web/routes/stats.d.ts.map +1 -1
- package/dist/web/routes/stats.js +2 -1
- package/dist/web/routes/stats.js.map +1 -1
- package/dist/web/routes/task-timeline.d.ts +178 -0
- package/dist/web/routes/task-timeline.d.ts.map +1 -0
- package/dist/web/routes/task-timeline.js +530 -0
- package/dist/web/routes/task-timeline.js.map +1 -0
- package/dist/web/routes/tasks.d.ts.map +1 -1
- package/dist/web/routes/tasks.js +377 -8
- package/dist/web/routes/tasks.js.map +1 -1
- package/dist/web/routes/trace.d.ts.map +1 -1
- package/dist/web/routes/trace.js +3 -2
- package/dist/web/routes/trace.js.map +1 -1
- package/dist/web/routes/types.d.ts +0 -4
- package/dist/web/routes/types.d.ts.map +1 -1
- package/dist/web/routes/types.js +1 -1
- package/dist/web/routes/types.js.map +1 -1
- package/dist/web/routes/violations.d.ts +14 -0
- package/dist/web/routes/violations.d.ts.map +1 -0
- package/dist/web/routes/violations.js +112 -0
- package/dist/web/routes/violations.js.map +1 -0
- package/dist/web/server.d.ts.map +1 -1
- package/dist/web/server.js +99 -19
- package/dist/web/server.js.map +1 -1
- package/dist/web/services/agent-distill-manager.d.ts +122 -0
- package/dist/web/services/agent-distill-manager.d.ts.map +1 -0
- package/dist/web/services/agent-distill-manager.js +397 -0
- package/dist/web/services/agent-distill-manager.js.map +1 -0
- package/dist/web/services/build-manager.d.ts +72 -0
- package/dist/web/services/build-manager.d.ts.map +1 -0
- package/dist/web/services/build-manager.js +189 -0
- package/dist/web/services/build-manager.js.map +1 -0
- package/dist/web/services/distill-manager.d.ts +172 -0
- package/dist/web/services/distill-manager.d.ts.map +1 -0
- package/dist/web/services/distill-manager.js +411 -0
- package/dist/web/services/distill-manager.js.map +1 -0
- package/dist/web/static/assets/AgentDetailPage-DlUeA1sX.js +2 -0
- package/dist/web/static/assets/AgentDetailPage-DlUeA1sX.js.map +1 -0
- package/dist/web/static/assets/AgentDistillRunPage-Cybo4bii.js +3 -0
- package/dist/web/static/assets/AgentDistillRunPage-Cybo4bii.js.map +1 -0
- package/dist/web/static/assets/AgentsPage-Qd9FExLG.js +2 -0
- package/dist/web/static/assets/AgentsPage-Qd9FExLG.js.map +1 -0
- package/dist/web/static/assets/DaemonHealthPage-DTSVqtrI.js +2 -0
- package/dist/web/static/assets/DaemonHealthPage-DTSVqtrI.js.map +1 -0
- package/dist/web/static/assets/DecisionDetailPage-b4BA8dhc.js +2 -0
- package/dist/web/static/assets/DecisionDetailPage-b4BA8dhc.js.map +1 -0
- package/dist/web/static/assets/DecisionsPage-a3NRo_T7.js +2 -0
- package/dist/web/static/assets/DecisionsPage-a3NRo_T7.js.map +1 -0
- package/dist/web/static/assets/DiagnosticsPage-DIVdiIQG.js +2 -0
- package/dist/web/static/assets/DiagnosticsPage-DIVdiIQG.js.map +1 -0
- package/dist/web/static/assets/DistillDetailPage-U6a3l2iP.js +4 -0
- package/dist/web/static/assets/DistillDetailPage-U6a3l2iP.js.map +1 -0
- package/dist/web/static/assets/DistillPage-O7BHtRN8.js +2 -0
- package/dist/web/static/assets/DistillPage-O7BHtRN8.js.map +1 -0
- package/dist/web/static/assets/DistillRunPage-D1JuRWWr.js +2 -0
- package/dist/web/static/assets/DistillRunPage-D1JuRWWr.js.map +1 -0
- package/dist/web/static/assets/GlobalScopeHint-Q3wTJx3F.js +2 -0
- package/dist/web/static/assets/GlobalScopeHint-Q3wTJx3F.js.map +1 -0
- package/dist/web/static/assets/IssueDetailPage-BDfrtk2C.js +2 -0
- package/dist/web/static/assets/IssueDetailPage-BDfrtk2C.js.map +1 -0
- package/dist/web/static/assets/IssuesPage-SKmhlCrw.js +2 -0
- package/dist/web/static/assets/IssuesPage-SKmhlCrw.js.map +1 -0
- package/dist/web/static/assets/KbDetailPage-Yna86Na8.js +2 -0
- package/dist/web/static/assets/KbDetailPage-Yna86Na8.js.map +1 -0
- package/dist/web/static/assets/KbHitsPage-Cljl7H9p.js +2 -0
- package/dist/web/static/assets/KbHitsPage-Cljl7H9p.js.map +1 -0
- package/dist/web/static/assets/MarkdownRenderer-DlDQNihj.js +3 -0
- package/dist/web/static/assets/MarkdownRenderer-DlDQNihj.js.map +1 -0
- package/dist/web/static/assets/NotFound-LMzbP51V.js +2 -0
- package/dist/web/static/assets/NotFound-LMzbP51V.js.map +1 -0
- package/dist/web/static/assets/SettingsPage-DzoK4PKg.js +2 -0
- package/dist/web/static/assets/SettingsPage-DzoK4PKg.js.map +1 -0
- package/dist/web/static/assets/SkillDetailPage-BuBJJ_NX.js +2 -0
- package/dist/web/static/assets/SkillDetailPage-BuBJJ_NX.js.map +1 -0
- package/dist/web/static/assets/SkillsPage-aojkJpBc.js +2 -0
- package/dist/web/static/assets/SkillsPage-aojkJpBc.js.map +1 -0
- package/dist/web/static/assets/TaskDetailPage-1ckxnGhw.js +4 -0
- package/dist/web/static/assets/TaskDetailPage-1ckxnGhw.js.map +1 -0
- package/dist/web/static/assets/TasksHubPage-C2PLh3eg.js +6 -0
- package/dist/web/static/assets/TasksHubPage-C2PLh3eg.js.map +1 -0
- package/dist/web/static/assets/WorkplacePage-DHrp5VxS.js +2 -0
- package/dist/web/static/assets/WorkplacePage-DHrp5VxS.js.map +1 -0
- package/dist/web/static/assets/arco-DFQA6dO_.css +1 -0
- package/dist/web/static/assets/arco-DV6xCLhr.js +14 -0
- package/dist/web/static/assets/arco-DV6xCLhr.js.map +1 -0
- package/dist/web/static/assets/charts-BSV4cyC4.js +37 -0
- package/dist/web/static/assets/charts-BSV4cyC4.js.map +1 -0
- package/dist/web/static/assets/date-fns-sbWH3_uq.js +2 -0
- package/dist/web/static/assets/date-fns-sbWH3_uq.js.map +1 -0
- package/dist/web/static/assets/index-B_v_MKlb.css +1 -0
- package/dist/web/static/assets/index-DileOOE4.js +4 -0
- package/dist/web/static/assets/index-DileOOE4.js.map +1 -0
- package/dist/web/static/assets/lucide-CnlPQoG8.js +72 -0
- package/dist/web/static/assets/lucide-CnlPQoG8.js.map +1 -0
- package/dist/web/static/assets/markdown-CA7ePUts.js +30 -0
- package/dist/web/static/assets/markdown-CA7ePUts.js.map +1 -0
- package/dist/web/static/assets/outcome-BKGy9azt.js +2 -0
- package/dist/web/static/assets/outcome-BKGy9azt.js.map +1 -0
- package/dist/web/static/assets/query-CgCOpYWf.js +2 -0
- package/dist/web/static/assets/{query-C99w429o.js.map → query-CgCOpYWf.js.map} +1 -1
- package/dist/web/static/assets/{react-router-r79dBVy4.js → react-router-Cxmg8RuL.js} +3 -3
- package/dist/web/static/assets/{react-router-r79dBVy4.js.map → react-router-Cxmg8RuL.js.map} +1 -1
- package/dist/web/static/assets/react-vendor-tkvCrao7.js +57 -0
- package/dist/web/static/assets/react-vendor-tkvCrao7.js.map +1 -0
- package/dist/web/static/assets/syntax-highlighter-BDYycNja.js +6 -0
- package/dist/web/static/assets/syntax-highlighter-BDYycNja.js.map +1 -0
- package/dist/web/static/assets/useAgentStats-B-uTgqBd.js +2 -0
- package/dist/web/static/assets/useAgentStats-B-uTgqBd.js.map +1 -0
- package/dist/web/static/assets/useDecisions-D-G2Ft5T.js +2 -0
- package/dist/web/static/assets/useDecisions-D-G2Ft5T.js.map +1 -0
- package/dist/web/static/assets/useDistill-21dZkXlT.js +3 -0
- package/dist/web/static/assets/useDistill-21dZkXlT.js.map +1 -0
- package/dist/web/static/assets/useEffectiveProject-DQiyX54y.js +2 -0
- package/dist/web/static/assets/useEffectiveProject-DQiyX54y.js.map +1 -0
- package/dist/web/static/assets/useIssuesFeed-CFiyQkAL.js +2 -0
- package/dist/web/static/assets/useIssuesFeed-CFiyQkAL.js.map +1 -0
- package/dist/web/static/assets/useKbHits-xKXWgqh9.js +2 -0
- package/dist/web/static/assets/useKbHits-xKXWgqh9.js.map +1 -0
- package/dist/web/static/assets/useSkillStats-B5hbIwdf.js +2 -0
- package/dist/web/static/assets/useSkillStats-B5hbIwdf.js.map +1 -0
- package/dist/web/static/assets/vendor-DS-q4Eyc.js +36 -0
- package/dist/web/static/assets/vendor-DS-q4Eyc.js.map +1 -0
- package/dist/web/static/index.html +12 -8
- package/package.json +18 -5
- package/dist/core/ai/provider.d.ts +0 -63
- package/dist/core/ai/provider.d.ts.map +0 -1
- package/dist/core/ai/provider.js +0 -241
- package/dist/core/ai/provider.js.map +0 -1
- package/dist/core/ai/types.d.ts +0 -43
- package/dist/core/ai/types.d.ts.map +0 -1
- package/dist/core/ai/types.js +0 -5
- package/dist/core/ai/types.js.map +0 -1
- package/dist/core/storage/token-usage.d.ts +0 -36
- package/dist/core/storage/token-usage.d.ts.map +0 -1
- package/dist/core/storage/token-usage.js +0 -59
- package/dist/core/storage/token-usage.js.map +0 -1
- package/dist/core/utils/token-tracker.d.ts +0 -39
- package/dist/core/utils/token-tracker.d.ts.map +0 -1
- package/dist/core/utils/token-tracker.js +0 -69
- package/dist/core/utils/token-tracker.js.map +0 -1
- package/dist/skills/index.d.ts +0 -3
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/index.js +0 -3
- package/dist/skills/index.js.map +0 -1
- package/dist/skills/matcher.d.ts +0 -26
- package/dist/skills/matcher.d.ts.map +0 -1
- package/dist/skills/matcher.js +0 -113
- package/dist/skills/matcher.js.map +0 -1
- package/dist/skills/official/code-simplifier.md +0 -52
- package/dist/skills/official/find-skills.md +0 -142
- package/dist/skills/official/official-api-design.md +0 -30
- package/dist/skills/official/official-architecture-decision.md +0 -41
- package/dist/skills/official/official-bmad.md +0 -118
- package/dist/skills/official/official-db-schema-design.md +0 -34
- package/dist/skills/official/official-debug.md +0 -25
- package/dist/skills/official/official-doc-driven.md +0 -31
- package/dist/skills/official/official-harness-engineering.md +0 -108
- package/dist/skills/official/official-openspec.md +0 -89
- package/dist/skills/official/official-performance-optimization.md +0 -30
- package/dist/skills/official/official-pr-review.md +0 -35
- package/dist/skills/official/official-release-checklist.md +0 -30
- package/dist/skills/official/official-security-hardening.md +0 -32
- package/dist/skills/official/official-spec-driven-design.md +0 -31
- package/dist/skills/official/planning-with-files.md +0 -241
- package/dist/skills/official/ui-ux-pro-max.md +0 -105
- package/dist/skills/official/webapp-testing.md +0 -96
- package/dist/skills/official-skills.d.ts +0 -26
- package/dist/skills/official-skills.d.ts.map +0 -1
- package/dist/skills/official-skills.js +0 -74
- package/dist/skills/official-skills.js.map +0 -1
- package/dist/skills/semantic-matcher.d.ts +0 -60
- package/dist/skills/semantic-matcher.d.ts.map +0 -1
- package/dist/skills/semantic-matcher.js +0 -192
- package/dist/skills/semantic-matcher.js.map +0 -1
- package/dist/skills/upgrade-engine.d.ts +0 -93
- package/dist/skills/upgrade-engine.d.ts.map +0 -1
- package/dist/skills/upgrade-engine.js +0 -447
- package/dist/skills/upgrade-engine.js.map +0 -1
- package/dist/skills/upgrade-prompt.d.ts +0 -20
- package/dist/skills/upgrade-prompt.d.ts.map +0 -1
- package/dist/skills/upgrade-prompt.js +0 -75
- package/dist/skills/upgrade-prompt.js.map +0 -1
- package/dist/web/routes/ai.d.ts +0 -10
- package/dist/web/routes/ai.d.ts.map +0 -1
- package/dist/web/routes/ai.js +0 -186
- package/dist/web/routes/ai.js.map +0 -1
- package/dist/web/routes/token-usage.d.ts +0 -7
- package/dist/web/routes/token-usage.d.ts.map +0 -1
- package/dist/web/routes/token-usage.js +0 -18
- package/dist/web/routes/token-usage.js.map +0 -1
- package/dist/web/ssrf-guard.d.ts +0 -35
- package/dist/web/ssrf-guard.d.ts.map +0 -1
- package/dist/web/ssrf-guard.js +0 -93
- package/dist/web/ssrf-guard.js.map +0 -1
- package/dist/web/static/assets/AIConfig-CdDWzJyO.js +0 -2
- package/dist/web/static/assets/AIConfig-CdDWzJyO.js.map +0 -1
- package/dist/web/static/assets/Dashboard-CoEmmIDt.js +0 -2
- package/dist/web/static/assets/Dashboard-CoEmmIDt.js.map +0 -1
- package/dist/web/static/assets/Drawer-DdRTzlLB.js +0 -2
- package/dist/web/static/assets/Drawer-DdRTzlLB.js.map +0 -1
- package/dist/web/static/assets/Events-DrIq1SUS.js +0 -2
- package/dist/web/static/assets/Events-DrIq1SUS.js.map +0 -1
- package/dist/web/static/assets/Reports-DFBM3MDK.js +0 -2
- package/dist/web/static/assets/Reports-DFBM3MDK.js.map +0 -1
- package/dist/web/static/assets/SearchInput-qCj_jAcf.js +0 -2
- package/dist/web/static/assets/SearchInput-qCj_jAcf.js.map +0 -1
- package/dist/web/static/assets/SessionDetail-CCzwdoT7.js +0 -2
- package/dist/web/static/assets/SessionDetail-CCzwdoT7.js.map +0 -1
- package/dist/web/static/assets/Sessions-FfLYkAw9.js +0 -2
- package/dist/web/static/assets/Sessions-FfLYkAw9.js.map +0 -1
- package/dist/web/static/assets/Skills-C8Gvs3Qa.js +0 -2
- package/dist/web/static/assets/Skills-C8Gvs3Qa.js.map +0 -1
- package/dist/web/static/assets/TaskDetail-BS8pYhaR.js +0 -2
- package/dist/web/static/assets/TaskDetail-BS8pYhaR.js.map +0 -1
- package/dist/web/static/assets/Tasks-CyuhizG8.js +0 -2
- package/dist/web/static/assets/Tasks-CyuhizG8.js.map +0 -1
- package/dist/web/static/assets/charts-CLrM0_uM.js +0 -37
- package/dist/web/static/assets/charts-CLrM0_uM.js.map +0 -1
- package/dist/web/static/assets/date-fns-CZ_bHujz.js +0 -2
- package/dist/web/static/assets/date-fns-CZ_bHujz.js.map +0 -1
- package/dist/web/static/assets/export-L_VBD2p1.js +0 -4
- package/dist/web/static/assets/export-L_VBD2p1.js.map +0 -1
- package/dist/web/static/assets/index-CBX47X8l.js +0 -3
- package/dist/web/static/assets/index-CBX47X8l.js.map +0 -1
- package/dist/web/static/assets/index-DjIoMdoR.css +0 -1
- package/dist/web/static/assets/lucide-Bs_edTLa.js +0 -232
- package/dist/web/static/assets/lucide-Bs_edTLa.js.map +0 -1
- package/dist/web/static/assets/query-C99w429o.js +0 -2
- package/dist/web/static/assets/react-vendor-CSp-GLFF.js +0 -49
- package/dist/web/static/assets/react-vendor-CSp-GLFF.js.map +0 -1
- package/dist/web/static/assets/syntax-highlighter-44FakypI.js +0 -9
- package/dist/web/static/assets/syntax-highlighter-44FakypI.js.map +0 -1
- package/dist/web/static/assets/time-Bxuk0M-C.js +0 -2
- package/dist/web/static/assets/time-Bxuk0M-C.js.map +0 -1
- package/dist/web/static/assets/vendor-CMMjVdZs.js +0 -64
- package/dist/web/static/assets/vendor-CMMjVdZs.js.map +0 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: distilled-using-superpowers
|
|
3
|
+
version: 0.2.0-distilled
|
|
4
|
+
description: 'Distilled IT-universal skill: using-superpowers (score 4.5/5)'
|
|
5
|
+
keywords:
|
|
6
|
+
- using
|
|
7
|
+
- superpowers
|
|
8
|
+
rubric_version: 2
|
|
9
|
+
distilled_from:
|
|
10
|
+
- upstream: https://github.com/obra/superpowers.git
|
|
11
|
+
license: MIT
|
|
12
|
+
commit: f2cbfbefebbfef77321e4c9abc9e949826bea9d7
|
|
13
|
+
paths:
|
|
14
|
+
- using-superpowers/SKILL.md
|
|
15
|
+
distilled_at: '2026-06-15T00:58:31.504Z'
|
|
16
|
+
distilled_by: claude-code skill-distiller agent
|
|
17
|
+
it_universal_score: 4.5
|
|
18
|
+
it_universal_dims:
|
|
19
|
+
d1: 1
|
|
20
|
+
d2: 0.5
|
|
21
|
+
d3: 1
|
|
22
|
+
d4: 1
|
|
23
|
+
d5: 1
|
|
24
|
+
it_universal_rationale: >-
|
|
25
|
+
Language-neutral meta-methodology for AI assistant skill invocation; platform-adaptive with no
|
|
26
|
+
repo-specific paths or project terminology; strong transferable decision flowchart and heuristics.
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# Skill-First Workflow: Invoke Relevant Skills Before Any Action
|
|
30
|
+
|
|
31
|
+
## When to use
|
|
32
|
+
- At the start of **any** conversation or task in an AI assistant (Claude Code, Copilot CLI, Gemini CLI, etc.)
|
|
33
|
+
- Before exploring a codebase, answering a question, or asking a clarifying question
|
|
34
|
+
- Whenever you are about to enter plan mode or take any substantive action
|
|
35
|
+
- When multiple skills might apply and you need to pick the right order
|
|
36
|
+
|
|
37
|
+
## Core idea
|
|
38
|
+
|
|
39
|
+
The fundamental discipline is: **check for and invoke relevant skills *before* taking any action — including before asking clarifying questions**. Even a 1% probability that a skill applies is enough to trigger an invocation. Skills describe *how* to approach a task; without checking them first, you may gather information, explore, or plan in a suboptimal or incorrect way. User instructions (project config files, direct requests) always take the highest precedence over skills, which in turn override default system behavior. When you invoke a skill and it turns out to be inapplicable to the situation, you are free to disregard it — but you must check first.
|
|
40
|
+
|
|
41
|
+
## Steps
|
|
42
|
+
|
|
43
|
+
1. **Receive user message or prepare to enter plan mode.**
|
|
44
|
+
|
|
45
|
+
2. **Ask: "Might any skill apply — even with 1% probability?"**
|
|
46
|
+
- Yes → proceed to step 3.
|
|
47
|
+
- Definitely not → respond directly.
|
|
48
|
+
|
|
49
|
+
3. **Invoke the Skill tool** (platform-specific name varies; see Platform notes below).
|
|
50
|
+
- Announce: *"Using [skill name] to [brief purpose]."*
|
|
51
|
+
|
|
52
|
+
4. **Apply skill priority order** when multiple skills could apply:
|
|
53
|
+
- **Process skills first** (brainstorming, debugging, planning) — they determine *how* to approach the task.
|
|
54
|
+
- **Implementation skills second** (patterns, code generation, domain-specific guides) — they guide execution.
|
|
55
|
+
- Example: "Let's build X" → brainstorming skill first, then implementation skill.
|
|
56
|
+
- Example: "Fix this bug" → debugging skill first, then domain-specific skill.
|
|
57
|
+
|
|
58
|
+
5. **If the invoked skill contains a checklist**, create a to-do item per checklist entry before proceeding.
|
|
59
|
+
|
|
60
|
+
6. **Follow the skill exactly** (rigid skills) or adapt its principles to context (flexible skills). The skill itself declares which type it is.
|
|
61
|
+
|
|
62
|
+
7. **Proceed with the task**, informed by the skill's guidance.
|
|
63
|
+
|
|
64
|
+
## Skill types
|
|
65
|
+
|
|
66
|
+
| Type | Examples | How to follow |
|
|
67
|
+
|---|---|---|
|
|
68
|
+
| **Rigid** | TDD, debugging protocols | Follow exactly; do not adapt away the discipline |
|
|
69
|
+
| **Flexible** | Design patterns, code style | Adapt principles to context |
|
|
70
|
+
|
|
71
|
+
The skill document itself tells you which type it is.
|
|
72
|
+
|
|
73
|
+
## Platform notes
|
|
74
|
+
|
|
75
|
+
| Platform | Tool name to invoke |
|
|
76
|
+
|---|---|
|
|
77
|
+
| Claude Code | `Skill` tool |
|
|
78
|
+
| Copilot CLI | `skill` tool |
|
|
79
|
+
| Gemini CLI | `activate_skill` tool |
|
|
80
|
+
|
|
81
|
+
Never use a file-read tool to load skill content — always use the platform's designated skill tool so that the correct version is loaded.
|
|
82
|
+
|
|
83
|
+
## Instruction precedence
|
|
84
|
+
|
|
85
|
+
1. **User's explicit instructions** (CLAUDE.md, AGENTS.md, GEMINI.md, direct requests) — highest priority
|
|
86
|
+
2. **Invoked skills** — override default system behavior
|
|
87
|
+
3. **Default system prompt** — lowest priority
|
|
88
|
+
|
|
89
|
+
If a user config file says "don't do X" and a skill says "always do X," follow the user's config.
|
|
90
|
+
|
|
91
|
+
## Anti-patterns
|
|
92
|
+
|
|
93
|
+
- **"This is just a simple question."** → Questions are tasks. Check for skills before answering.
|
|
94
|
+
- **"I need more context first."** → Skill check comes *before* clarifying questions.
|
|
95
|
+
- **"Let me explore the codebase first."** → Skills tell you *how* to explore. Check first.
|
|
96
|
+
- **"I remember this skill from before."** → Skills evolve. Always read the current version via the tool.
|
|
97
|
+
- **"This skill seems like overkill."** → Simple tasks become complex. Invoke and decide afterward.
|
|
98
|
+
- **"I'll just do this one quick thing first."** → Check *before* doing anything.
|
|
99
|
+
- **"I know what that skill says."** → Knowing the concept ≠ using the skill. Invoke it.
|
|
100
|
+
- **"This doesn't count as a real task."** → Any action = task. Check for skills.
|
|
101
|
+
|
|
102
|
+
## Decision flowchart (text form)
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
User message received
|
|
106
|
+
│
|
|
107
|
+
▼
|
|
108
|
+
Might any skill apply? (even 1%)
|
|
109
|
+
│ │
|
|
110
|
+
Yes No
|
|
111
|
+
│ └──► Respond directly
|
|
112
|
+
▼
|
|
113
|
+
Invoke Skill tool
|
|
114
|
+
│
|
|
115
|
+
▼
|
|
116
|
+
Announce: "Using [skill] to [purpose]"
|
|
117
|
+
│
|
|
118
|
+
▼
|
|
119
|
+
Skill has a checklist?
|
|
120
|
+
│ │
|
|
121
|
+
Yes No
|
|
122
|
+
│ └──► Follow skill exactly
|
|
123
|
+
▼
|
|
124
|
+
Create one todo per checklist item
|
|
125
|
+
│
|
|
126
|
+
▼
|
|
127
|
+
Follow skill exactly
|
|
128
|
+
│
|
|
129
|
+
▼
|
|
130
|
+
Respond / act
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## References
|
|
134
|
+
- Upstream: https://github.com/obra/superpowers.git
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: distilled-verification-before-completion
|
|
3
|
+
version: 0.2.0-distilled
|
|
4
|
+
description: 'Distilled IT-universal skill: verification-before-completion (score 5/5)'
|
|
5
|
+
keywords:
|
|
6
|
+
- verification
|
|
7
|
+
- before
|
|
8
|
+
- completion
|
|
9
|
+
rubric_version: 2
|
|
10
|
+
distilled_from:
|
|
11
|
+
- upstream: https://github.com/obra/superpowers.git
|
|
12
|
+
license: MIT
|
|
13
|
+
commit: f2cbfbefebbfef77321e4c9abc9e949826bea9d7
|
|
14
|
+
paths:
|
|
15
|
+
- verification-before-completion/SKILL.md
|
|
16
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
17
|
+
license: MIT
|
|
18
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
19
|
+
paths:
|
|
20
|
+
- django-verification/SKILL.md
|
|
21
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
22
|
+
license: MIT
|
|
23
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
24
|
+
paths:
|
|
25
|
+
- laravel-verification/SKILL.md
|
|
26
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
27
|
+
license: MIT
|
|
28
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
29
|
+
paths:
|
|
30
|
+
- quarkus-verification/SKILL.md
|
|
31
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
32
|
+
license: MIT
|
|
33
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
34
|
+
paths:
|
|
35
|
+
- springboot-verification/SKILL.md
|
|
36
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
37
|
+
license: MIT
|
|
38
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
39
|
+
paths:
|
|
40
|
+
- verification-loop/SKILL.md
|
|
41
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
42
|
+
license: MIT
|
|
43
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
44
|
+
paths:
|
|
45
|
+
- verification-loop/SKILL.md
|
|
46
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
47
|
+
license: MIT
|
|
48
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
49
|
+
paths:
|
|
50
|
+
- laravel-verification/SKILL.md
|
|
51
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
52
|
+
license: MIT
|
|
53
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
54
|
+
paths:
|
|
55
|
+
- quarkus-verification/SKILL.md
|
|
56
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
57
|
+
license: MIT
|
|
58
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
59
|
+
paths:
|
|
60
|
+
- springboot-verification/SKILL.md
|
|
61
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
62
|
+
license: MIT
|
|
63
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
64
|
+
paths:
|
|
65
|
+
- verification-loop/SKILL.md
|
|
66
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
67
|
+
license: MIT
|
|
68
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
69
|
+
paths:
|
|
70
|
+
- django-verification/SKILL.md
|
|
71
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
72
|
+
license: MIT
|
|
73
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
74
|
+
paths:
|
|
75
|
+
- laravel-verification/SKILL.md
|
|
76
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
77
|
+
license: MIT
|
|
78
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
79
|
+
paths:
|
|
80
|
+
- springboot-verification/SKILL.md
|
|
81
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
82
|
+
license: MIT
|
|
83
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
84
|
+
paths:
|
|
85
|
+
- verification-loop/SKILL.md
|
|
86
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
87
|
+
license: MIT
|
|
88
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
89
|
+
paths:
|
|
90
|
+
- verification-loop/SKILL.md
|
|
91
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
92
|
+
license: MIT
|
|
93
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
94
|
+
paths:
|
|
95
|
+
- django-verification/SKILL.md
|
|
96
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
97
|
+
license: MIT
|
|
98
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
99
|
+
paths:
|
|
100
|
+
- laravel-verification/SKILL.md
|
|
101
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
102
|
+
license: MIT
|
|
103
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
104
|
+
paths:
|
|
105
|
+
- quarkus-verification/SKILL.md
|
|
106
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
107
|
+
license: MIT
|
|
108
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
109
|
+
paths:
|
|
110
|
+
- springboot-verification/SKILL.md
|
|
111
|
+
- upstream: https://github.com/affaan-m/ECC.git
|
|
112
|
+
license: MIT
|
|
113
|
+
commit: 928076cc08cbb31e8549cea2883b4f51811de1c8
|
|
114
|
+
paths:
|
|
115
|
+
- verification-loop/SKILL.md
|
|
116
|
+
distilled_at: '2026-06-15T00:59:08.307Z'
|
|
117
|
+
distilled_by: claude-code skill-distiller agent
|
|
118
|
+
it_universal_score: 5
|
|
119
|
+
it_universal_dims:
|
|
120
|
+
d1: 1
|
|
121
|
+
d2: 1
|
|
122
|
+
d3: 1
|
|
123
|
+
d4: 1
|
|
124
|
+
d5: 1
|
|
125
|
+
it_universal_rationale: >-
|
|
126
|
+
Language-neutral, tool-chain-neutral verification discipline with zero repo-specific references;
|
|
127
|
+
the Gate Function and rationalization tables transfer directly to any codebase or workflow.
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
# Verification Before Completion
|
|
131
|
+
|
|
132
|
+
## When to use
|
|
133
|
+
- Before claiming "tests pass", "build succeeds", "bug is fixed", or "done"
|
|
134
|
+
- Before committing, opening a PR, or marking a task complete
|
|
135
|
+
- Before expressing any satisfaction or moving to the next task
|
|
136
|
+
- After delegating work to a sub-agent that reports success
|
|
137
|
+
|
|
138
|
+
## Core idea
|
|
139
|
+
|
|
140
|
+
Claiming work is complete without fresh evidence is dishonesty, not efficiency. The only valid basis for a success claim is the **actual output of the relevant command run in the current context**. Prior runs, agent self-reports, confidence, and partial checks are not substitutes. Every rationalization for skipping verification is a known failure mode; name it, then reject it.
|
|
141
|
+
|
|
142
|
+
The rule applies to exact phrases, paraphrases, and any implication of success — spirit over letter.
|
|
143
|
+
|
|
144
|
+
## The Gate Function
|
|
145
|
+
|
|
146
|
+
Before making **any** status claim or completion statement, execute all five steps:
|
|
147
|
+
|
|
148
|
+
1. **IDENTIFY** — What command produces evidence for this claim?
|
|
149
|
+
2. **RUN** — Execute it fully (no cached output, no partial scope)
|
|
150
|
+
3. **READ** — Examine the complete output; check exit code; count failures
|
|
151
|
+
4. **VERIFY** — Does the output confirm the claim?
|
|
152
|
+
- If NO → state actual status with the evidence
|
|
153
|
+
- If YES → state the claim *with* the evidence attached
|
|
154
|
+
5. **THEN** — Only now make the claim
|
|
155
|
+
|
|
156
|
+
Skipping any step = asserting without evidence.
|
|
157
|
+
|
|
158
|
+
## Common Claim → Required Evidence
|
|
159
|
+
|
|
160
|
+
| Claim | What actually proves it | What does NOT prove it |
|
|
161
|
+
|---|---|---|
|
|
162
|
+
| Tests pass | Test runner: 0 failures, 0 errors | Previous run; "should pass" |
|
|
163
|
+
| Linter clean | Linter output: 0 issues | Partial file check |
|
|
164
|
+
| Build succeeds | Build command exits 0 | Linter passing; logs look fine |
|
|
165
|
+
| Bug fixed | Original symptom reproduced and passes | Code changed; assumed fixed |
|
|
166
|
+
| Regression test valid | Red → Green cycle verified | Test written but not inverted |
|
|
167
|
+
| Agent completed task | VCS diff shows expected changes | Agent reports "success" |
|
|
168
|
+
| Requirements met | Line-by-line checklist verified | All tests passing |
|
|
169
|
+
|
|
170
|
+
## Red Flags — Stop Immediately
|
|
171
|
+
|
|
172
|
+
- Hedging words: "should", "probably", "seems to", "I think"
|
|
173
|
+
- Expressing satisfaction before running verification ("Great!", "Done!", "Perfect!")
|
|
174
|
+
- About to commit or push without having run the check
|
|
175
|
+
- Trusting a delegated agent's self-report without inspecting artifacts
|
|
176
|
+
- Reasoning "partial check is sufficient"
|
|
177
|
+
- Feeling tired and wanting the work to be over
|
|
178
|
+
|
|
179
|
+
## Rationalization Table
|
|
180
|
+
|
|
181
|
+
| Excuse heard | Correct response |
|
|
182
|
+
|---|---|
|
|
183
|
+
| "Should work now" | RUN the command |
|
|
184
|
+
| "I'm confident" | Confidence ≠ evidence |
|
|
185
|
+
| "Just this once" | No exceptions |
|
|
186
|
+
| "Linter passed" | Linter ≠ compiler |
|
|
187
|
+
| "Agent said success" | Verify independently via VCS diff |
|
|
188
|
+
| "Partial check is enough" | Partial proves nothing |
|
|
189
|
+
| "Different words, rule doesn't apply" | Spirit over letter |
|
|
190
|
+
|
|
191
|
+
## Steps (TDD Red-Green Pattern)
|
|
192
|
+
|
|
193
|
+
When writing a regression test, full verification requires a **red-green cycle**:
|
|
194
|
+
|
|
195
|
+
1. Write the test
|
|
196
|
+
2. Run → must **pass** (green, with fix in place)
|
|
197
|
+
3. Temporarily revert the fix
|
|
198
|
+
4. Run → must **fail** (red — confirms test is meaningful)
|
|
199
|
+
5. Restore fix
|
|
200
|
+
6. Run → must **pass** again
|
|
201
|
+
|
|
202
|
+
Skipping the red phase means the test may not actually catch the bug.
|
|
203
|
+
|
|
204
|
+
## Anti-patterns
|
|
205
|
+
|
|
206
|
+
- Claiming success based on a run from an earlier message or session
|
|
207
|
+
- Saying "looks good" after reading code without executing it
|
|
208
|
+
- Committing in the same step as implementation without a separate verify step
|
|
209
|
+
- Conflating "agent reports done" with "work is verified done"
|
|
210
|
+
- Using softer phrasing ("it appears to be working") to sidestep the rule — the spirit still applies
|
|
211
|
+
|
|
212
|
+
## References
|
|
213
|
+
- Upstream: https://github.com/obra/superpowers.git
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: distilled-writing-skills
|
|
3
|
+
version: 0.2.0-distilled
|
|
4
|
+
description: 'Distilled IT-universal skill: writing-skills (score 4/5)'
|
|
5
|
+
keywords:
|
|
6
|
+
- writing
|
|
7
|
+
- skills
|
|
8
|
+
rubric_version: 2
|
|
9
|
+
distilled_from:
|
|
10
|
+
- upstream: https://github.com/obra/superpowers.git
|
|
11
|
+
license: MIT
|
|
12
|
+
commit: f2cbfbefebbfef77321e4c9abc9e949826bea9d7
|
|
13
|
+
paths:
|
|
14
|
+
- writing-skills/SKILL.md
|
|
15
|
+
distilled_at: '2026-06-15T01:00:38.805Z'
|
|
16
|
+
distilled_by: claude-code skill-distiller agent
|
|
17
|
+
it_universal_score: 4
|
|
18
|
+
it_universal_dims:
|
|
19
|
+
d1: 1
|
|
20
|
+
d2: 0.5
|
|
21
|
+
d3: 1
|
|
22
|
+
d4: 0.5
|
|
23
|
+
d5: 1
|
|
24
|
+
it_universal_rationale: >-
|
|
25
|
+
TDD-for-documentation methodology and description-field optimization (CSO) are language-neutral
|
|
26
|
+
and applicable to any AI agent skill authoring workflow, regardless of codebase or toolchain.
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# Writing Agent Skills (TDD for Process Documentation)
|
|
30
|
+
|
|
31
|
+
## When to use
|
|
32
|
+
- Creating a new skill document for an AI agent
|
|
33
|
+
- Editing or refactoring an existing skill that agents seem to ignore
|
|
34
|
+
- Verifying a skill actually changes agent behavior before deploying it
|
|
35
|
+
- Debugging why an agent skips or misreads a skill (description optimization)
|
|
36
|
+
- Deciding whether something belongs in a skill vs. a repo-level convention file
|
|
37
|
+
|
|
38
|
+
## Core idea
|
|
39
|
+
|
|
40
|
+
Writing skills is **TDD applied to process documentation**. Like software TDD, you first run
|
|
41
|
+
a baseline scenario (RED: watch the agent violate the rule *without* the skill), then write
|
|
42
|
+
the skill (GREEN: agent now complies), then close loopholes found through additional tests
|
|
43
|
+
(REFACTOR). If you skipped the baseline, you don't know whether the skill targets the real
|
|
44
|
+
failure mode. The key artifact is a `SKILL.md` with two critical elements: a precise
|
|
45
|
+
frontmatter `description` that drives **discovery**, and a concise body that drives
|
|
46
|
+
**compliance**. Both must be correct; a great body behind a misleading description is never
|
|
47
|
+
loaded.
|
|
48
|
+
|
|
49
|
+
## Steps
|
|
50
|
+
|
|
51
|
+
### 1. RED — establish baseline
|
|
52
|
+
Before writing anything, run a pressure scenario with a subagent. Document the exact
|
|
53
|
+
rationalizations the agent uses to justify the violation. These become the specific failure
|
|
54
|
+
modes the skill must address.
|
|
55
|
+
|
|
56
|
+
### 2. Write the skill
|
|
57
|
+
|
|
58
|
+
Create `skills/<skill-name>/SKILL.md` (flat namespace; all skills live in one searchable
|
|
59
|
+
directory):
|
|
60
|
+
|
|
61
|
+
```markdown
|
|
62
|
+
---
|
|
63
|
+
name: Skill-Name-With-Hyphens
|
|
64
|
+
description: Use when [specific triggering conditions, symptoms, situations]
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
# Skill Name
|
|
68
|
+
|
|
69
|
+
## Overview
|
|
70
|
+
Core principle in 1-2 sentences.
|
|
71
|
+
|
|
72
|
+
## When to Use
|
|
73
|
+
- Symptom A
|
|
74
|
+
- Symptom B
|
|
75
|
+
- NOT when: [counter-indicators]
|
|
76
|
+
|
|
77
|
+
## Core Pattern
|
|
78
|
+
Before/after comparison or concrete steps.
|
|
79
|
+
|
|
80
|
+
## Common Mistakes
|
|
81
|
+
What goes wrong + fixes.
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**Frontmatter rules:**
|
|
85
|
+
- `name`: letters, numbers, hyphens only (no parentheses or special chars)
|
|
86
|
+
- `description`: **triggering conditions only** — see §Description Anti-patterns below
|
|
87
|
+
- Total frontmatter ≤ 1 024 characters
|
|
88
|
+
|
|
89
|
+
### 3. GREEN — verify compliance
|
|
90
|
+
Re-run the same pressure scenario with the skill present. Agent should comply. If it still
|
|
91
|
+
violates, sharpen the `description` or tighten the body.
|
|
92
|
+
|
|
93
|
+
### 4. REFACTOR — close loopholes
|
|
94
|
+
Observe new rationalizations the agent invents. Plug each one. Repeat until no new failure
|
|
95
|
+
modes emerge.
|
|
96
|
+
|
|
97
|
+
## Description Anti-patterns — CSO Critical
|
|
98
|
+
|
|
99
|
+
The `description` field is how an agent decides *whether to load* the skill at all. A bad
|
|
100
|
+
description is the #1 reason skills are ignored.
|
|
101
|
+
|
|
102
|
+
> **Rule: Description = When to Use. NOT What the Skill Does.**
|
|
103
|
+
|
|
104
|
+
If the description summarises the skill's workflow, the agent may follow that summary
|
|
105
|
+
*instead of* reading the full body. Observed failure: description said "code review between
|
|
106
|
+
tasks" → agent did ONE review and never consulted the two-stage flowchart in the body.
|
|
107
|
+
|
|
108
|
+
```yaml
|
|
109
|
+
# ❌ BAD: summarises workflow — agent skips body
|
|
110
|
+
description: Use when executing plans - dispatches subagent per task with review between tasks
|
|
111
|
+
|
|
112
|
+
# ❌ BAD: too much process detail
|
|
113
|
+
description: Use for TDD — write test first, watch it fail, write minimal code, refactor
|
|
114
|
+
|
|
115
|
+
# ✅ GOOD: triggering conditions only, no workflow
|
|
116
|
+
description: Use when executing implementation plans with independent tasks
|
|
117
|
+
|
|
118
|
+
# ✅ GOOD: problem-focused triggers
|
|
119
|
+
description: Use when tests have race conditions, timing dependencies, or pass/fail inconsistently
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Additional description rules:
|
|
123
|
+
- Start with `Use when…`
|
|
124
|
+
- Write in third person (injected into system prompts)
|
|
125
|
+
- Describe the *problem* (race conditions, inconsistent state), not language-specific
|
|
126
|
+
symptoms (unless the skill itself is tech-specific — then be explicit)
|
|
127
|
+
- Under 500 characters if possible
|
|
128
|
+
|
|
129
|
+
## When NOT to create a skill
|
|
130
|
+
|
|
131
|
+
| Situation | Better home |
|
|
132
|
+
|---|---|
|
|
133
|
+
| One-off solution for a single task | Session notes / inline comment |
|
|
134
|
+
| Standard practice documented elsewhere | Link to that source |
|
|
135
|
+
| Repo-specific conventions | Your repo's convention file (e.g., `CLAUDE.md`, `AGENTS.md`) |
|
|
136
|
+
| Mechanical constraint enforceable by linting/CI | Automate it — save skills for judgment calls |
|
|
137
|
+
|
|
138
|
+
## Token efficiency
|
|
139
|
+
|
|
140
|
+
Always-loaded skills consume context in **every conversation**. Keep them tight:
|
|
141
|
+
|
|
142
|
+
- Always-loaded / getting-started skills: < 150 words each
|
|
143
|
+
- Other frequently-loaded skills: < 500 words
|
|
144
|
+
- Move exhaustive flag lists to `--help`; reference the command rather than duplicating it
|
|
145
|
+
- Cross-reference other skills by name instead of repeating their content
|
|
146
|
+
- One excellent code example beats several mediocre ones
|
|
147
|
+
|
|
148
|
+
## Naming conventions
|
|
149
|
+
|
|
150
|
+
Prefer **verb-first gerunds** — active, describes the action being taken:
|
|
151
|
+
|
|
152
|
+
| ✅ Good | ❌ Bad |
|
|
153
|
+
|---|---|
|
|
154
|
+
| `condition-based-waiting` | `async-test-helpers` |
|
|
155
|
+
| `root-cause-tracing` | `debugging-techniques` |
|
|
156
|
+
| `flatten-with-flags` | `data-structure-refactoring` |
|
|
157
|
+
| `creating-skills` | `skill-creation` |
|
|
158
|
+
|
|
159
|
+
## Anti-patterns
|
|
160
|
+
|
|
161
|
+
- **Skipping baseline** — writing a skill without watching the agent fail first means you
|
|
162
|
+
don't know what failure mode you're actually solving
|
|
163
|
+
- **Workflow summary in description** — causes agent to follow the description shortcut
|
|
164
|
+
instead of reading the body
|
|
165
|
+
- **Over-documenting** — bloated skills inflate context cost and reduce compliance; every
|
|
166
|
+
word in a frequently-loaded skill has a runtime price
|
|
167
|
+
- **Project-specific content in skills** — repo paths, local tool names, environment
|
|
168
|
+
variables; these belong in your repo's convention file, not a reusable skill
|
|
169
|
+
- **Force-loading via direct file links (`@file`)** — burns context before it's needed;
|
|
170
|
+
reference skill names instead and let the agent decide when to load
|
|
171
|
+
- **Flowcharts for linear instructions** — use numbered lists; reserve flowcharts for
|
|
172
|
+
non-obvious decision branches where early exit is the common error
|
|
173
|
+
|
|
174
|
+
## References
|
|
175
|
+
- Upstream: https://github.com/obra/superpowers.git
|
|
@@ -4,72 +4,76 @@ export interface Skill {
|
|
|
4
4
|
keywords: string[];
|
|
5
5
|
content: string;
|
|
6
6
|
path: string;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Marks claude-forge-shipped built-in skills (currently the
|
|
9
|
+
* `src/skills/distilled/*.md` set). Historically called "official";
|
|
10
|
+
* semantics simplified to "built-in" after the official-purge spec
|
|
11
|
+
* (2026-05-27, 1110).
|
|
12
|
+
*/
|
|
13
|
+
isBuiltin?: boolean;
|
|
8
14
|
description?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Phase 7 — Skill ↔ Agent pairing (frontmatter field, parse-only).
|
|
17
|
+
* The push-injection path that consumed this (skill_pairing directive +
|
|
18
|
+
* workflow_recommendations write) was deleted with spec 1200 / decision
|
|
19
|
+
* fe6f98cd; the field is still parsed so frontmatter round-trips cleanly.
|
|
20
|
+
*/
|
|
21
|
+
spawn_agent?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Optional template body sent as the spawned agent's prompt. Reserved for
|
|
24
|
+
* future use — current Phase 7 wiring injects a fixed directive built from
|
|
25
|
+
* the original prompt. Stored here so frontmatter parsing round-trips
|
|
26
|
+
* cleanly when the field IS supplied.
|
|
27
|
+
*/
|
|
28
|
+
spawn_agent_prompt?: string;
|
|
9
29
|
}
|
|
10
30
|
/**
|
|
11
31
|
* Simple skill registry that scans ~/.claude/skills/*.md
|
|
12
|
-
* and matches by keywords in frontmatter
|
|
32
|
+
* and matches by keywords in frontmatter.
|
|
33
|
+
*
|
|
34
|
+
* D R-B (2026-05-29, spec 0902 §2.4.4 / decision f5a5b030 Option B): the
|
|
35
|
+
* Anthropic-SDK-backed `SemanticSkillMatcher` was deleted. The registry is
|
|
36
|
+
* now **keyword-only**. Constructor accepts no args; callers that used to
|
|
37
|
+
* pass `(apiKey, model, baseURL)` should drop those — they were silently
|
|
38
|
+
* ignored in R-A and are gone entirely now. Schema field
|
|
39
|
+
* `config.skill_matching.api_key` was removed from the `ForgeConfig` JSON
|
|
40
|
+
* schema in D R-D; daemon still grep-warns the raw yaml on startup.
|
|
41
|
+
*
|
|
42
|
+
* Dead-code removal (2026-06-10, decision ed98c8e8): the keyword-matching
|
|
43
|
+
* API (`match` / `matchWithConfidence` / `matchWithDetails` / private
|
|
44
|
+
* `matchKeywords`) and the keyword scoring helper file were deleted — the
|
|
45
|
+
* skill push route is gone; skills are now pull-only via MCP
|
|
46
|
+
* (`skill-list` / `skill-invoke`), which only need `getAll` / `get` /
|
|
47
|
+
* `getManifest` / `reload`.
|
|
13
48
|
*/
|
|
14
49
|
export declare class SkillRegistry {
|
|
15
50
|
private skills;
|
|
16
|
-
|
|
17
|
-
constructor(apiKey?: string, model?: string, baseURL?: string);
|
|
51
|
+
constructor();
|
|
18
52
|
/**
|
|
19
|
-
* Resolve the directory containing
|
|
20
|
-
* Uses import.meta.url for ESM compatibility (
|
|
53
|
+
* Resolve the directory containing built-in distilled skill .md files.
|
|
54
|
+
* Uses import.meta.url for ESM compatibility (dev + npm-installed).
|
|
21
55
|
*/
|
|
22
|
-
private
|
|
56
|
+
private resolveDistilledDir;
|
|
23
57
|
/**
|
|
24
|
-
* Scan ~/.claude/skills/ for
|
|
25
|
-
*
|
|
58
|
+
* Scan claude-forge built-in distilled skills + ~/.claude/skills/ for
|
|
59
|
+
* user skills. Built-in skills load first; user skills load second and
|
|
60
|
+
* can override by id.
|
|
26
61
|
*
|
|
27
|
-
*
|
|
28
|
-
* 1. Flat
|
|
29
|
-
* 2. Directory
|
|
62
|
+
* User-skill formats supported:
|
|
63
|
+
* 1. Flat: ~/.claude/skills/skill-name.md
|
|
64
|
+
* 2. Directory: ~/.claude/skills/skill-name/SKILL.md (agent-skills format)
|
|
30
65
|
*/
|
|
31
66
|
private scan;
|
|
32
|
-
/**
|
|
33
|
-
* Match a prompt against skill keywords with hybrid approach:
|
|
34
|
-
* 1. Try semantic matching (AI-powered) if available
|
|
35
|
-
* 2. Fall back to keyword matching if semantic fails or not configured
|
|
36
|
-
*/
|
|
37
|
-
match(prompt: string, keywords?: string[], context?: {
|
|
38
|
-
recentFiles?: string[];
|
|
39
|
-
}): Promise<Skill | null>;
|
|
40
|
-
/**
|
|
41
|
-
* Like match(), but also returns the confidence score (0-100) so callers
|
|
42
|
-
* can compare across alternatives (e.g. agent vs skill routing).
|
|
43
|
-
*/
|
|
44
|
-
matchWithConfidence(prompt: string, keywords?: string[], context?: {
|
|
45
|
-
recentFiles?: string[];
|
|
46
|
-
}): Promise<{
|
|
47
|
-
skill: Skill;
|
|
48
|
-
confidence: number;
|
|
49
|
-
source: 'semantic' | 'keyword';
|
|
50
|
-
} | null>;
|
|
51
|
-
/**
|
|
52
|
-
* Keyword-based matching (fallback method)
|
|
53
|
-
* Supports fallback to description-based substring matching when keywords are empty
|
|
54
|
-
*/
|
|
55
|
-
private matchKeywords;
|
|
56
|
-
/**
|
|
57
|
-
* Flexible keyword matching with word boundary for English, substring for Chinese
|
|
58
|
-
*/
|
|
59
|
-
private matchKeywordFlexible;
|
|
60
|
-
/**
|
|
61
|
-
* Match with full result details (for debugging/logging)
|
|
62
|
-
*/
|
|
63
|
-
matchWithDetails(prompt: string, keywords?: string[], context?: {
|
|
64
|
-
recentFiles?: string[];
|
|
65
|
-
}): Promise<{
|
|
66
|
-
skill: Skill;
|
|
67
|
-
confidence: number;
|
|
68
|
-
matchedKeywords: string[];
|
|
69
|
-
}[]>;
|
|
70
67
|
/** Return all loaded skills */
|
|
71
68
|
getAll(): Skill[];
|
|
72
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* Get a skill by ID. Returns `undefined` for unknown ids.
|
|
71
|
+
*
|
|
72
|
+
* The legacy `official-*` → `distilled-*` alias fallback was removed by
|
|
73
|
+
* the official-purge spec (2026-05-27, 1110). Old `official-*` ids no
|
|
74
|
+
* longer resolve; historical rows in `skill_invocations` with those ids
|
|
75
|
+
* are not migrated (user-accepted residue).
|
|
76
|
+
*/
|
|
73
77
|
get(id: string): Skill | undefined;
|
|
74
78
|
/**
|
|
75
79
|
* Get skill manifest (id + description + keywords) for Agent pre-declaration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/skills/registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/skills/registry.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAiC;;IAO/C;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAK3B;;;;;;;;OAQG;IACH,OAAO,CAAC,IAAI;IA6HZ,+BAA+B;IAC/B,MAAM,IAAI,KAAK,EAAE;IAIjB;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS;IAIlC;;OAEG;IACH,WAAW,IAAI,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAS3F,mCAAmC;IACnC,MAAM,IAAI,IAAI;CAIf"}
|