openclaw-node-harness 2.0.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/LICENSE +21 -0
- package/README.md +184 -0
- package/bin/discord-read.js +228 -0
- package/bin/fleet-deploy.js +365 -0
- package/bin/lane-watchdog.js +232 -0
- package/bin/mesh-agent.js +714 -0
- package/bin/mesh-bridge.js +535 -0
- package/bin/mesh-deploy-listener.js +322 -0
- package/bin/mesh-deploy.js +1048 -0
- package/bin/mesh-health-publisher.js +247 -0
- package/bin/mesh-task-daemon.js +451 -0
- package/bin/mesh-tool-discord.js +293 -0
- package/bin/mesh.js +649 -0
- package/boot/manifest.yaml +187 -0
- package/cli.js +35 -0
- package/config/daemon.json.template +16 -0
- package/config/obsidian-sync.json.template +39 -0
- package/config/openclaw.json.template +124 -0
- package/config/transcript-sources.json.template +22 -0
- package/identity/AGENTS.md +201 -0
- package/identity/CLAUDE.md +64 -0
- package/identity/DELEGATION.md +304 -0
- package/identity/HEARTBEAT.md +163 -0
- package/identity/MEMORY_SPEC.md +368 -0
- package/identity/PRINCIPLES.md +81 -0
- package/identity/SOUL.md +48 -0
- package/identity/TOOLS.md +47 -0
- package/install.sh +895 -0
- package/lib/agent-activity.js +390 -0
- package/lib/kanban-io.js +352 -0
- package/lib/mesh-registry.js +194 -0
- package/lib/mesh-roles.js +13 -0
- package/lib/mesh-tasks.js +306 -0
- package/lib/nats-resolve.js +108 -0
- package/mission-control/README.md +36 -0
- package/mission-control/drizzle/0000_simple_silhouette.sql +62 -0
- package/mission-control/drizzle/meta/0000_snapshot.json +413 -0
- package/mission-control/drizzle/meta/_journal.json +13 -0
- package/mission-control/drizzle.config.ts +13 -0
- package/mission-control/eslint.config.mjs +18 -0
- package/mission-control/next.config.ts +7 -0
- package/mission-control/package-lock.json +10518 -0
- package/mission-control/package.json +49 -0
- package/mission-control/postcss.config.mjs +7 -0
- package/mission-control/public/file.svg +1 -0
- package/mission-control/public/globe.svg +1 -0
- package/mission-control/public/next.svg +1 -0
- package/mission-control/public/vercel.svg +1 -0
- package/mission-control/public/window.svg +1 -0
- package/mission-control/scripts/enrich-descriptions.js +193 -0
- package/mission-control/scripts/gen-chronology.js +102 -0
- package/mission-control/scripts/import-pipeline-v2.js +523 -0
- package/mission-control/scripts/import-pipeline.js +295 -0
- package/mission-control/src/app/api/activity/live/route.ts +27 -0
- package/mission-control/src/app/api/activity/route.ts +47 -0
- package/mission-control/src/app/api/burndown/route.ts +112 -0
- package/mission-control/src/app/api/critical-path/route.ts +159 -0
- package/mission-control/src/app/api/dependencies/route.ts +176 -0
- package/mission-control/src/app/api/memory/categories/route.ts +93 -0
- package/mission-control/src/app/api/memory/consolidate/route.ts +107 -0
- package/mission-control/src/app/api/memory/doc/route.ts +89 -0
- package/mission-control/src/app/api/memory/flush/route.ts +129 -0
- package/mission-control/src/app/api/memory/graph/route.ts +105 -0
- package/mission-control/src/app/api/memory/items/route.ts +86 -0
- package/mission-control/src/app/api/memory/list/route.ts +48 -0
- package/mission-control/src/app/api/memory/retrieve/route.ts +51 -0
- package/mission-control/src/app/api/memory/search/route.ts +143 -0
- package/mission-control/src/app/api/memory/sync/route.ts +23 -0
- package/mission-control/src/app/api/memory/wikilinks/route.ts +75 -0
- package/mission-control/src/app/api/mesh/events/route.ts +67 -0
- package/mission-control/src/app/api/mesh/nodes/route.ts +221 -0
- package/mission-control/src/app/api/mesh/tokens/route.ts +133 -0
- package/mission-control/src/app/api/projects/route.ts +102 -0
- package/mission-control/src/app/api/resolve-path/route.ts +92 -0
- package/mission-control/src/app/api/scheduler/tick/route.ts +38 -0
- package/mission-control/src/app/api/scheduler/waves/route.ts +54 -0
- package/mission-control/src/app/api/screenshot/route.ts +127 -0
- package/mission-control/src/app/api/settings/gateway/route.ts +92 -0
- package/mission-control/src/app/api/skills/[id]/health/route.ts +57 -0
- package/mission-control/src/app/api/skills/list/route.ts +41 -0
- package/mission-control/src/app/api/souls/[id]/evolution/route.ts +253 -0
- package/mission-control/src/app/api/souls/[id]/prompt/route.ts +205 -0
- package/mission-control/src/app/api/souls/[id]/propagate/route.ts +146 -0
- package/mission-control/src/app/api/souls/route.ts +174 -0
- package/mission-control/src/app/api/tasks/[id]/handoff/route.ts +115 -0
- package/mission-control/src/app/api/tasks/[id]/route.ts +266 -0
- package/mission-control/src/app/api/tasks/[id]/tree/route.ts +94 -0
- package/mission-control/src/app/api/tasks/route.ts +253 -0
- package/mission-control/src/app/api/tts/route.ts +47 -0
- package/mission-control/src/app/api/workspace/files/route.ts +88 -0
- package/mission-control/src/app/api/workspace/read/route.ts +73 -0
- package/mission-control/src/app/burndown/page.tsx +309 -0
- package/mission-control/src/app/calendar/page.tsx +839 -0
- package/mission-control/src/app/favicon.ico +0 -0
- package/mission-control/src/app/globals.css +67 -0
- package/mission-control/src/app/graph/page.tsx +352 -0
- package/mission-control/src/app/layout.tsx +35 -0
- package/mission-control/src/app/live/page.tsx +232 -0
- package/mission-control/src/app/memory/page.tsx +154 -0
- package/mission-control/src/app/mesh/page.tsx +457 -0
- package/mission-control/src/app/obsidian/page.tsx +252 -0
- package/mission-control/src/app/page.tsx +70 -0
- package/mission-control/src/app/roadmap/page.tsx +1757 -0
- package/mission-control/src/app/settings/page.tsx +260 -0
- package/mission-control/src/app/souls/page.tsx +573 -0
- package/mission-control/src/components/board/activity-timeline.tsx +96 -0
- package/mission-control/src/components/board/daily-board.tsx +373 -0
- package/mission-control/src/components/board/kanban-board.tsx +364 -0
- package/mission-control/src/components/board/kanban-column.tsx +105 -0
- package/mission-control/src/components/board/live-stream.tsx +116 -0
- package/mission-control/src/components/board/skill-health-card.tsx +128 -0
- package/mission-control/src/components/board/status-banner.tsx +124 -0
- package/mission-control/src/components/board/task-card.tsx +454 -0
- package/mission-control/src/components/board/unified-task-dialog.tsx +1043 -0
- package/mission-control/src/components/layout/resizable-layout.tsx +68 -0
- package/mission-control/src/components/layout/sidebar.tsx +90 -0
- package/mission-control/src/components/live/audio-spectrum.tsx +106 -0
- package/mission-control/src/components/live/chat-bubble.tsx +52 -0
- package/mission-control/src/components/live/chat-input.tsx +92 -0
- package/mission-control/src/components/memory/doc-reader.tsx +172 -0
- package/mission-control/src/components/memory/memory-list.tsx +169 -0
- package/mission-control/src/components/memory/search-bar.tsx +67 -0
- package/mission-control/src/components/memory/search-results.tsx +149 -0
- package/mission-control/src/components/obsidian/backlinks-panel.tsx +52 -0
- package/mission-control/src/components/obsidian/file-tree.tsx +186 -0
- package/mission-control/src/components/obsidian/local-graph.tsx +107 -0
- package/mission-control/src/components/obsidian/obsidian-graph.tsx +192 -0
- package/mission-control/src/components/obsidian/obsidian-reader.tsx +246 -0
- package/mission-control/src/lib/activity.ts +29 -0
- package/mission-control/src/lib/config.ts +21 -0
- package/mission-control/src/lib/db/index.ts +429 -0
- package/mission-control/src/lib/db/schema.ts +218 -0
- package/mission-control/src/lib/gateway-notify.ts +113 -0
- package/mission-control/src/lib/hooks.ts +536 -0
- package/mission-control/src/lib/memory/categories.ts +125 -0
- package/mission-control/src/lib/memory/entities.ts +482 -0
- package/mission-control/src/lib/memory/extract.ts +369 -0
- package/mission-control/src/lib/memory/retrieval.ts +281 -0
- package/mission-control/src/lib/memory/wikilinks.ts +147 -0
- package/mission-control/src/lib/nats.ts +126 -0
- package/mission-control/src/lib/parsers/clawvault-doc.ts +98 -0
- package/mission-control/src/lib/parsers/daily-log.ts +73 -0
- package/mission-control/src/lib/parsers/memory-md.ts +81 -0
- package/mission-control/src/lib/parsers/task-markdown.ts +459 -0
- package/mission-control/src/lib/parsers/transcript.ts +209 -0
- package/mission-control/src/lib/scheduler.ts +394 -0
- package/mission-control/src/lib/speech/use-speech-pipeline.ts +176 -0
- package/mission-control/src/lib/sync/memory.ts +224 -0
- package/mission-control/src/lib/sync/tasks.ts +271 -0
- package/mission-control/src/lib/tts/edge.ts +31 -0
- package/mission-control/src/lib/tts/google.ts +78 -0
- package/mission-control/src/lib/tts/index.ts +39 -0
- package/mission-control/src/lib/tts/types.ts +18 -0
- package/mission-control/tsconfig.json +42 -0
- package/obsidian-vault/.obsidian/app.json +10 -0
- package/obsidian-vault/.obsidian/community-plugins.json +8 -0
- package/obsidian-vault/.obsidian/graph.json +40 -0
- package/obsidian-vault/.obsidian/plugins/obsidian-local-rest-api/main.js +58769 -0
- package/obsidian-vault/.obsidian/plugins/obsidian-local-rest-api/manifest.json +10 -0
- package/obsidian-vault/.obsidian/plugins/obsidian-local-rest-api/styles.css +47 -0
- package/obsidian-vault/00-meta/.gitkeep +0 -0
- package/obsidian-vault/01-architecture/.gitkeep +0 -0
- package/obsidian-vault/02-smart-contracts/.gitkeep +0 -0
- package/obsidian-vault/03-backend/.gitkeep +0 -0
- package/obsidian-vault/04-mobile/.gitkeep +0 -0
- package/obsidian-vault/05-ar-mapping/.gitkeep +0 -0
- package/obsidian-vault/06-3d-assets/.gitkeep +0 -0
- package/obsidian-vault/07-sound-music/.gitkeep +0 -0
- package/obsidian-vault/08-lore/.gitkeep +0 -0
- package/obsidian-vault/09-quests-playthrough/.gitkeep +0 -0
- package/obsidian-vault/10-economy/.gitkeep +0 -0
- package/obsidian-vault/11-nft-assets/.gitkeep +0 -0
- package/obsidian-vault/12-nft-mechanics/.gitkeep +0 -0
- package/obsidian-vault/13-dao-guild-social/.gitkeep +0 -0
- package/obsidian-vault/14-game-progression/.gitkeep +0 -0
- package/obsidian-vault/15-analytics/.gitkeep +0 -0
- package/obsidian-vault/16-security/.gitkeep +0 -0
- package/obsidian-vault/17-devops/.gitkeep +0 -0
- package/obsidian-vault/18-marketplace/.gitkeep +0 -0
- package/obsidian-vault/19-decisions/.gitkeep +0 -0
- package/obsidian-vault/20-business-strategy/.gitkeep +0 -0
- package/obsidian-vault/21-legal-regulatory/.gitkeep +0 -0
- package/obsidian-vault/nodes/.gitkeep +0 -0
- package/openclaw.env.example +17 -0
- package/package.json +45 -0
- package/services/launchd/ai.openclaw.gateway.plist +59 -0
- package/services/launchd/ai.openclaw.lane-watchdog.plist +32 -0
- package/services/launchd/ai.openclaw.log-rotate.plist +28 -0
- package/services/launchd/ai.openclaw.memory-daemon.plist +36 -0
- package/services/launchd/ai.openclaw.mesh-agent.plist +38 -0
- package/services/launchd/ai.openclaw.mesh-bridge.plist +36 -0
- package/services/launchd/ai.openclaw.mesh-deploy-listener.plist +33 -0
- package/services/launchd/ai.openclaw.mesh-health-publisher.plist +29 -0
- package/services/launchd/ai.openclaw.mesh-task-daemon.plist +36 -0
- package/services/launchd/ai.openclaw.mesh-tool-discord.plist +36 -0
- package/services/launchd/ai.openclaw.mission-control.plist +41 -0
- package/services/service-manifest.json +13 -0
- package/services/systemd/openclaw-gateway.service +21 -0
- package/services/systemd/openclaw-lane-watchdog.service +21 -0
- package/services/systemd/openclaw-log-rotate.service +13 -0
- package/services/systemd/openclaw-log-rotate.timer +9 -0
- package/services/systemd/openclaw-memory-daemon.service +21 -0
- package/services/systemd/openclaw-mesh-agent.service +19 -0
- package/services/systemd/openclaw-mesh-bridge.service +21 -0
- package/services/systemd/openclaw-mesh-deploy-listener.service +23 -0
- package/services/systemd/openclaw-mesh-health-publisher.service +21 -0
- package/services/systemd/openclaw-mesh-task-daemon.service +21 -0
- package/services/systemd/openclaw-mesh-tool-discord.service +21 -0
- package/services/systemd/openclaw-mission-control.service +22 -0
- package/skills/1password/.clawhub/origin.json +7 -0
- package/skills/1password/SKILL.md +63 -0
- package/skills/1password/references/cli-examples.md +29 -0
- package/skills/1password/references/get-started.md +17 -0
- package/skills/acquisition-channel-advisor/SKILL.md +643 -0
- package/skills/acquisition-channel-advisor/examples/conversation-flow.md +531 -0
- package/skills/agent-browser/.clawhub/origin.json +7 -0
- package/skills/agent-browser/CONTRIBUTING.md +63 -0
- package/skills/agent-browser/SKILL.md +338 -0
- package/skills/agentic-compass/.clawhub/origin.json +7 -0
- package/skills/agentic-compass/README.md +96 -0
- package/skills/agentic-compass/SKILL.md +112 -0
- package/skills/agentic-compass/references/README.md +5 -0
- package/skills/agentic-compass/scripts/agentic-compass.py +196 -0
- package/skills/arcane-dev-ops/SKILL.md +61 -0
- package/skills/arcane-dev-ops/references/checklist.md +22 -0
- package/skills/arcane-dev-ops/references/validation-cases.md +11 -0
- package/skills/arcane-dev-ops/scripts/prepush_check.sh +41 -0
- package/skills/auto-updater/.clawhub/origin.json +7 -0
- package/skills/auto-updater/SKILL.md +158 -0
- package/skills/auto-updater/references/agent-guide.md +152 -0
- package/skills/auto-updater/references/summary-examples.md +109 -0
- package/skills/business-health-diagnostic/SKILL.md +782 -0
- package/skills/byterover/.clawhub/origin.json +7 -0
- package/skills/byterover/SKILL.md +105 -0
- package/skills/byterover/TROUBLESHOOTING.md +50 -0
- package/skills/byterover/WORKFLOWS.md +229 -0
- package/skills/capability-evolver/.clawhub/origin.json +7 -0
- package/skills/capability-evolver/CONTRIBUTING.md +11 -0
- package/skills/capability-evolver/README.md +157 -0
- package/skills/capability-evolver/README.zh-CN.md +112 -0
- package/skills/capability-evolver/SKILL.md +93 -0
- package/skills/capability-evolver/assets/gep/capsules.json +5 -0
- package/skills/capability-evolver/assets/gep/genes.json +104 -0
- package/skills/capability-evolver/index.js +59 -0
- package/skills/capability-evolver/package.json +22 -0
- package/skills/capability-evolver/scripts/analyze_by_skill.js +121 -0
- package/skills/capability-evolver/scripts/build_public.js +350 -0
- package/skills/capability-evolver/scripts/export_history.js +98 -0
- package/skills/capability-evolver/scripts/extract_log.js +85 -0
- package/skills/capability-evolver/scripts/generate_history.js +75 -0
- package/skills/capability-evolver/scripts/human_report.js +147 -0
- package/skills/capability-evolver/scripts/publish_public.js +516 -0
- package/skills/capability-evolver/scripts/suggest_version.js +89 -0
- package/skills/capability-evolver/src/evolve.js +594 -0
- package/skills/capability-evolver/src/gep/assetStore.js +204 -0
- package/skills/capability-evolver/src/gep/candidates.js +134 -0
- package/skills/capability-evolver/src/gep/paths.js +23 -0
- package/skills/capability-evolver/src/gep/prompt.js +254 -0
- package/skills/capability-evolver/src/gep/selector.js +89 -0
- package/skills/capability-evolver/src/gep/signals.js +27 -0
- package/skills/cc-godmode/.clawhub/origin.json +7 -0
- package/skills/cc-godmode/CHANGELOG.md +66 -0
- package/skills/cc-godmode/README.md +293 -0
- package/skills/cc-godmode/SKILL.md +242 -0
- package/skills/cc-godmode/docs/AGENTS.md +332 -0
- package/skills/cc-godmode/docs/MIGRATION.md +206 -0
- package/skills/cc-godmode/docs/TROUBLESHOOTING.md +357 -0
- package/skills/cc-godmode/docs/WORKFLOWS.md +329 -0
- package/skills/cc-godmode/references/agents.md +433 -0
- package/skills/cc-godmode/scripts/build-skill.js +232 -0
- package/skills/clawdbot-filesystem/.clawhub/origin.json +7 -0
- package/skills/clawdbot-filesystem/LICENSE.md +21 -0
- package/skills/clawdbot-filesystem/README.md +322 -0
- package/skills/clawdbot-filesystem/SKILL.md +219 -0
- package/skills/clawdbot-filesystem/config.json +41 -0
- package/skills/clawdbot-filesystem/package.json +69 -0
- package/skills/clawdbot-security-check/.clawhub/origin.json +7 -0
- package/skills/clawdbot-security-check/README.md +168 -0
- package/skills/clawdbot-security-check/SKILL.md +145 -0
- package/skills/clawdbot-security-check/references/audit-checks.md +521 -0
- package/skills/clawdbot-security-check/skill.json +42 -0
- package/skills/clawddocs/.clawhub/origin.json +7 -0
- package/skills/clawddocs/SKILL.md +176 -0
- package/skills/clawddocs/package.json +9 -0
- package/skills/clawddocs/scripts/build-index.sh +17 -0
- package/skills/clawddocs/scripts/cache.sh +13 -0
- package/skills/clawddocs/scripts/fetch-doc.sh +7 -0
- package/skills/clawddocs/scripts/recent.sh +5 -0
- package/skills/clawddocs/scripts/search.sh +8 -0
- package/skills/clawddocs/scripts/sitemap.sh +23 -0
- package/skills/clawddocs/scripts/track-changes.sh +16 -0
- package/skills/clawddocs/snippets/common-configs.md +69 -0
- package/skills/clawguard/.clawhub/origin.json +7 -0
- package/skills/clawguard/SKILL.md +137 -0
- package/skills/company-research/SKILL.md +393 -0
- package/skills/company-research/examples/sample.md +164 -0
- package/skills/company-research/template.md +60 -0
- package/skills/crypto-price/.clawhub/origin.json +7 -0
- package/skills/crypto-price/ARCHITECTURE.md +437 -0
- package/skills/crypto-price/README.md +194 -0
- package/skills/crypto-price/SKILL.md +61 -0
- package/skills/crypto-price/requirements.txt +1 -0
- package/skills/crypto-price/scripts/get_price_chart.py +988 -0
- package/skills/customer-journey-map/SKILL.md +343 -0
- package/skills/customer-journey-map/examples/sample.md +33 -0
- package/skills/customer-journey-map/template.md +28 -0
- package/skills/customer-journey-mapping-workshop/SKILL.md +522 -0
- package/skills/deep-research/.clawhub/origin.json +7 -0
- package/skills/deep-research/SKILL.md +93 -0
- package/skills/deep-research/rules/logic.md +32 -0
- package/skills/discord-telegram-triage/SKILL.md +59 -0
- package/skills/discord-telegram-triage/references/discord-runbook.md +28 -0
- package/skills/discord-telegram-triage/references/validation-cases.md +11 -0
- package/skills/discord-telegram-triage/scripts/triage_snapshot.sh +23 -0
- package/skills/discovery-interview-prep/SKILL.md +408 -0
- package/skills/discovery-process/SKILL.md +503 -0
- package/skills/discovery-process/examples/sample.md +60 -0
- package/skills/discovery-process/template.md +39 -0
- package/skills/dist/arcane-dev-ops.skill +0 -0
- package/skills/dist/discord-telegram-triage.skill +0 -0
- package/skills/dist/founder-brief-summarizer.skill +0 -0
- package/skills/epic-breakdown-advisor/SKILL.md +664 -0
- package/skills/epic-hypothesis/SKILL.md +285 -0
- package/skills/epic-hypothesis/examples/sample.md +104 -0
- package/skills/epic-hypothesis/template.md +30 -0
- package/skills/excel/.clawhub/origin.json +7 -0
- package/skills/excel/SKILL.md +332 -0
- package/skills/excel/scripts/excel.py +1120 -0
- package/skills/fast-browser-use/.clawhub/origin.json +7 -0
- package/skills/fast-browser-use/CODEBUDDY.md +142 -0
- package/skills/fast-browser-use/Cargo.toml +77 -0
- package/skills/fast-browser-use/README.md +62 -0
- package/skills/fast-browser-use/SKILL.md +217 -0
- package/skills/fast-browser-use/package-lock.json +28 -0
- package/skills/fast-browser-use/package.json +8 -0
- package/skills/fast-browser-use/rustfmt.toml +10 -0
- package/skills/fast-browser-use/src/bin/cli.rs +373 -0
- package/skills/fast-browser-use/src/bin/mcp_server.rs +203 -0
- package/skills/fast-browser-use/src/browser/config.rs +136 -0
- package/skills/fast-browser-use/src/browser/debug.rs +16 -0
- package/skills/fast-browser-use/src/browser/mod.rs +61 -0
- package/skills/fast-browser-use/src/browser/session.rs +478 -0
- package/skills/fast-browser-use/src/dom/element.rs +442 -0
- package/skills/fast-browser-use/src/dom/extract_dom.js +849 -0
- package/skills/fast-browser-use/src/dom/mod.rs +14 -0
- package/skills/fast-browser-use/src/dom/tree.rs +296 -0
- package/skills/fast-browser-use/src/dom/yaml.rs +149 -0
- package/skills/fast-browser-use/src/error.rs +115 -0
- package/skills/fast-browser-use/src/lib.rs +17 -0
- package/skills/fast-browser-use/src/mcp/handler.rs +63 -0
- package/skills/fast-browser-use/src/mcp/mod.rs +81 -0
- package/skills/fast-browser-use/src/tools/Readability.min.js +1480 -0
- package/skills/fast-browser-use/src/tools/annotate.rs +165 -0
- package/skills/fast-browser-use/src/tools/click.rs +84 -0
- package/skills/fast-browser-use/src/tools/close.rs +35 -0
- package/skills/fast-browser-use/src/tools/close_tab.rs +45 -0
- package/skills/fast-browser-use/src/tools/convert_to_markdown.js +117 -0
- package/skills/fast-browser-use/src/tools/cookies.rs +58 -0
- package/skills/fast-browser-use/src/tools/debug.rs +44 -0
- package/skills/fast-browser-use/src/tools/evaluate.rs +40 -0
- package/skills/fast-browser-use/src/tools/extract.rs +66 -0
- package/skills/fast-browser-use/src/tools/go_back.rs +35 -0
- package/skills/fast-browser-use/src/tools/go_forward.rs +35 -0
- package/skills/fast-browser-use/src/tools/hover.js +33 -0
- package/skills/fast-browser-use/src/tools/hover.rs +97 -0
- package/skills/fast-browser-use/src/tools/html_to_markdown.rs +99 -0
- package/skills/fast-browser-use/src/tools/input.rs +93 -0
- package/skills/fast-browser-use/src/tools/local_storage.rs +159 -0
- package/skills/fast-browser-use/src/tools/markdown.rs +181 -0
- package/skills/fast-browser-use/src/tools/mod.rs +326 -0
- package/skills/fast-browser-use/src/tools/navigate.rs +55 -0
- package/skills/fast-browser-use/src/tools/new_tab.rs +60 -0
- package/skills/fast-browser-use/src/tools/press_key.rs +78 -0
- package/skills/fast-browser-use/src/tools/read_links.rs +59 -0
- package/skills/fast-browser-use/src/tools/readability_script.rs +8 -0
- package/skills/fast-browser-use/src/tools/screenshot.rs +47 -0
- package/skills/fast-browser-use/src/tools/scroll.js +22 -0
- package/skills/fast-browser-use/src/tools/scroll.rs +95 -0
- package/skills/fast-browser-use/src/tools/select.js +23 -0
- package/skills/fast-browser-use/src/tools/select.rs +129 -0
- package/skills/fast-browser-use/src/tools/sitemap.rs +426 -0
- package/skills/fast-browser-use/src/tools/snapshot.rs +324 -0
- package/skills/fast-browser-use/src/tools/switch_tab.rs +69 -0
- package/skills/fast-browser-use/src/tools/tab_list.rs +76 -0
- package/skills/fast-browser-use/src/tools/utils.rs +92 -0
- package/skills/fast-browser-use/src/tools/wait.rs +53 -0
- package/skills/fast-browser-use/test_auth.json +3 -0
- package/skills/fast-browser-use/test_state.json +6 -0
- package/skills/fast-browser-use/tests/browser_tools_integration.rs +233 -0
- package/skills/fast-browser-use/tests/cli_recipes_integration.rs +112 -0
- package/skills/fast-browser-use/tests/cookies_integration.rs +56 -0
- package/skills/fast-browser-use/tests/debug_integration.rs +83 -0
- package/skills/fast-browser-use/tests/dom_integration.rs +170 -0
- package/skills/fast-browser-use/tests/local_storage_integration.rs +75 -0
- package/skills/fast-browser-use/tests/markdown_integration.rs +448 -0
- package/skills/fast-browser-use/tests/navigation_integration.rs +241 -0
- package/skills/fast-browser-use/tests/sitemap_integration.rs +326 -0
- package/skills/fast-browser-use/tests/tab_management_integration.rs +300 -0
- package/skills/feature-investment-advisor/SKILL.md +639 -0
- package/skills/feature-investment-advisor/examples/conversation-flow.md +538 -0
- package/skills/finance-based-pricing-advisor/SKILL.md +763 -0
- package/skills/finance-metrics-quickref/SKILL.md +309 -0
- package/skills/find-skills/.clawhub/origin.json +7 -0
- package/skills/find-skills/SKILL.md +143 -0
- package/skills/flavor-text-writer/SKILL.md +27 -0
- package/skills/founder-brief-summarizer/SKILL.md +52 -0
- package/skills/founder-brief-summarizer/references/response-templates.md +15 -0
- package/skills/founder-brief-summarizer/references/validation-cases.md +11 -0
- package/skills/founder-brief-summarizer/scripts/brief_template.sh +28 -0
- package/skills/frontend-design/.clawhub/origin.json +7 -0
- package/skills/frontend-design/LICENSE.txt +190 -0
- package/skills/frontend-design/SKILL.md +53 -0
- package/skills/gemini/.clawhub/origin.json +7 -0
- package/skills/gemini/SKILL.md +33 -0
- package/skills/gemini-deep-research/.clawhub/origin.json +7 -0
- package/skills/gemini-deep-research/SKILL.md +78 -0
- package/skills/gemini-deep-research/scripts/deep_research.py +176 -0
- package/skills/git-essentials/.clawhub/origin.json +7 -0
- package/skills/git-essentials/SKILL.md +239 -0
- package/skills/git-essentials/references/advanced.md +211 -0
- package/skills/github/.clawhub/origin.json +7 -0
- package/skills/github/SKILL.md +57 -0
- package/skills/google-drive/.clawhub/origin.json +7 -0
- package/skills/google-drive/LICENSE.txt +21 -0
- package/skills/google-drive/SKILL.md +320 -0
- package/skills/growth-loop/SKILL.md +270 -0
- package/skills/growth-loop/_meta.json +9 -0
- package/skills/growth-loop/references/diagnosis-framework.md +84 -0
- package/skills/growth-loop/references/platform-benchmarks.md +79 -0
- package/skills/growth-loop/scripts/init-campaign.sh +274 -0
- package/skills/humanize-ai-text/.clawhub/origin.json +7 -0
- package/skills/humanize-ai-text/SKILL.md +192 -0
- package/skills/humanize-ai-text/scripts/compare.py +58 -0
- package/skills/humanize-ai-text/scripts/detect.py +160 -0
- package/skills/humanize-ai-text/scripts/patterns.json +191 -0
- package/skills/humanize-ai-text/scripts/transform.py +127 -0
- package/skills/humanizer/.clawhub/origin.json +7 -0
- package/skills/humanizer/README.md +82 -0
- package/skills/humanizer/SKILL.md +443 -0
- package/skills/jobs-to-be-done/SKILL.md +378 -0
- package/skills/jobs-to-be-done/examples/sample.md +80 -0
- package/skills/jobs-to-be-done/template.md +65 -0
- package/skills/lean-ux-canvas/SKILL.md +561 -0
- package/skills/lean-ux-canvas/examples/sample.md +88 -0
- package/skills/lean-ux-canvas/template.md +32 -0
- package/skills/markdown-formatter/.clawhub/origin.json +7 -0
- package/skills/markdown-formatter/README.md +137 -0
- package/skills/markdown-formatter/SKILL.md +369 -0
- package/skills/markdown-formatter/config.json +20 -0
- package/skills/markdown-formatter/index.js +439 -0
- package/skills/markdown-formatter/package.json +23 -0
- package/skills/markdown-formatter/test.js +23 -0
- package/skills/marketing-mode/.clawhub/origin.json +7 -0
- package/skills/marketing-mode/README.md +49 -0
- package/skills/marketing-mode/SKILL.md +703 -0
- package/skills/marketing-mode/mode-prompt.md +39 -0
- package/skills/marketing-mode/skill.json +51 -0
- package/skills/memory-hygiene/.clawhub/origin.json +7 -0
- package/skills/memory-hygiene/SKILL.md +91 -0
- package/skills/memory-setup/.clawhub/origin.json +7 -0
- package/skills/memory-setup/SKILL.md +180 -0
- package/skills/memorylayer/.clawhub/origin.json +7 -0
- package/skills/memorylayer/README.md +197 -0
- package/skills/memorylayer/SKILL.md +227 -0
- package/skills/memorylayer/examples/agent-integration.js +145 -0
- package/skills/memorylayer/examples/basic-usage.js +87 -0
- package/skills/memorylayer/examples/token-savings-demo.js +183 -0
- package/skills/memorylayer/index.js +115 -0
- package/skills/memorylayer/package-lock.json +295 -0
- package/skills/memorylayer/package.json +27 -0
- package/skills/memorylayer/python/memorylayer_skill.py +230 -0
- package/skills/memorylayer/python/requirements.txt +7 -0
- package/skills/mesh/SKILL.md +184 -0
- package/skills/model-usage/.clawhub/origin.json +7 -0
- package/skills/model-usage/SKILL.md +54 -0
- package/skills/model-usage/references/codexbar-cli.md +28 -0
- package/skills/model-usage/scripts/model_usage.py +310 -0
- package/skills/moltbook-interact/.clawhub/origin.json +7 -0
- package/skills/moltbook-interact/INSTALL.md +139 -0
- package/skills/moltbook-interact/README.md +198 -0
- package/skills/moltbook-interact/SKILL.md +72 -0
- package/skills/moltbook-interact/references/api.md +106 -0
- package/skills/moltbook-interact/scripts/moltbook.sh +142 -0
- package/skills/moltbook-registry/.clawhub/origin.json +7 -0
- package/skills/moltbook-registry/README.md +26 -0
- package/skills/moltbook-registry/SKILL.md +82 -0
- package/skills/moltbook-registry/index.js +180 -0
- package/skills/moltbook-registry/package.json +11 -0
- package/skills/mythril-scanner/SKILL.md +27 -0
- package/skills/n8n/.clawhub/origin.json +7 -0
- package/skills/n8n/SKILL.md +141 -0
- package/skills/n8n/references/api.md +156 -0
- package/skills/n8n/scripts/n8n_api.py +158 -0
- package/skills/n8n-workflow-automation/.clawhub/origin.json +7 -0
- package/skills/n8n-workflow-automation/SKILL.md +103 -0
- package/skills/n8n-workflow-automation/assets/runbook-template.md +32 -0
- package/skills/narrative-designer/SKILL.md +27 -0
- package/skills/ontology/.clawhub/origin.json +7 -0
- package/skills/ontology/SKILL.md +236 -0
- package/skills/ontology/references/queries.md +211 -0
- package/skills/ontology/references/schema.md +322 -0
- package/skills/ontology/scripts/ontology.py +374 -0
- package/skills/openai-image-gen/.clawhub/origin.json +7 -0
- package/skills/openai-image-gen/SKILL.md +45 -0
- package/skills/openai-image-gen/scripts/gen.py +227 -0
- package/skills/openclaw-agent-optimize/.clawhub/origin.json +7 -0
- package/skills/openclaw-agent-optimize/SKILL.md +33 -0
- package/skills/openclaw-agent-optimize/references/agent-orchestration.md +20 -0
- package/skills/openclaw-agent-optimize/references/context-management.md +15 -0
- package/skills/openclaw-agent-optimize/references/continuous-learning.md +14 -0
- package/skills/openclaw-agent-optimize/references/cron-optimization.md +16 -0
- package/skills/openclaw-agent-optimize/references/memory-patterns.md +14 -0
- package/skills/openclaw-agent-optimize/references/model-selection.md +18 -0
- package/skills/openclaw-skill-scanner/.clawhub/origin.json +7 -0
- package/skills/openclaw-skill-scanner/SKILL.md +88 -0
- package/skills/openclaw-skill-scanner/install-hook.sh +294 -0
- package/skills/openclaw-skill-scanner/report-template.md +53 -0
- package/skills/openclaw-skill-scanner/scanner.py +929 -0
- package/skills/openclaw-skill-scanner/whitelist.json +18 -0
- package/skills/opportunity-solution-tree/SKILL.md +428 -0
- package/skills/opportunity-solution-tree/examples/sample.md +104 -0
- package/skills/opportunity-solution-tree/template.md +33 -0
- package/skills/pdf/.clawhub/origin.json +7 -0
- package/skills/pdf/SKILL.md +304 -0
- package/skills/pestel-analysis/SKILL.md +384 -0
- package/skills/pestel-analysis/examples/sample.md +143 -0
- package/skills/pestel-analysis/template.md +53 -0
- package/skills/pol-probe/SKILL.md +217 -0
- package/skills/pol-probe/examples/sample.md +136 -0
- package/skills/pol-probe/template.md +59 -0
- package/skills/pol-probe-advisor/SKILL.md +492 -0
- package/skills/positioning-statement/SKILL.md +229 -0
- package/skills/positioning-statement/examples/sample.md +51 -0
- package/skills/positioning-statement/template.md +25 -0
- package/skills/positioning-workshop/SKILL.md +424 -0
- package/skills/prd-development/SKILL.md +654 -0
- package/skills/prd-development/examples/sample.md +43 -0
- package/skills/prd-development/template.md +55 -0
- package/skills/press-release/SKILL.md +277 -0
- package/skills/press-release/examples/sample.md +73 -0
- package/skills/press-release/template.md +39 -0
- package/skills/prioritization-advisor/SKILL.md +451 -0
- package/skills/proactive-messages/.clawhub/origin.json +7 -0
- package/skills/proactive-messages/SKILL.md +91 -0
- package/skills/problem-framing-canvas/SKILL.md +466 -0
- package/skills/problem-framing-canvas/examples/sample.md +58 -0
- package/skills/problem-framing-canvas/template.md +22 -0
- package/skills/problem-statement/SKILL.md +255 -0
- package/skills/problem-statement/examples/sample.md +82 -0
- package/skills/problem-statement/template.md +37 -0
- package/skills/product-strategy-session/SKILL.md +434 -0
- package/skills/product-strategy-session/examples/sample.md +67 -0
- package/skills/product-strategy-session/template.md +38 -0
- package/skills/prompt-guard/.clawhub/origin.json +7 -0
- package/skills/prompt-guard/ARCHITECTURE.md +364 -0
- package/skills/prompt-guard/CHANGELOG.md +200 -0
- package/skills/prompt-guard/README.md +215 -0
- package/skills/prompt-guard/SECURITY.md +66 -0
- package/skills/prompt-guard/SKILL.md +174 -0
- package/skills/prompt-guard/blog/how-i-secured-my-ai-agent.md +185 -0
- package/skills/prompt-guard/config.example.yaml +56 -0
- package/skills/prompt-guard/references/detection-patterns.md +298 -0
- package/skills/prompt-guard/requirements.txt +1 -0
- package/skills/prompt-guard/scripts/analyze_log.py +224 -0
- package/skills/prompt-guard/scripts/audit.py +344 -0
- package/skills/prompt-guard/scripts/detect.py +1587 -0
- package/skills/prompt-guard/scripts/hivefence.py +345 -0
- package/skills/proto-persona/SKILL.md +336 -0
- package/skills/proto-persona/examples/sample.md +97 -0
- package/skills/proto-persona/template.md +45 -0
- package/skills/recommendation-canvas/SKILL.md +382 -0
- package/skills/recommendation-canvas/examples/sample.md +94 -0
- package/skills/recommendation-canvas/template.md +86 -0
- package/skills/refactor-suggest/.clawhub/origin.json +7 -0
- package/skills/refactor-suggest/SKILL.md +94 -0
- package/skills/roadmap-planning/SKILL.md +506 -0
- package/skills/roadmap-planning/examples/sample.md +62 -0
- package/skills/roadmap-planning/template.md +30 -0
- package/skills/saas-economics-efficiency-metrics/SKILL.md +694 -0
- package/skills/saas-economics-efficiency-metrics/examples/cash-trap.md +365 -0
- package/skills/saas-economics-efficiency-metrics/examples/healthy-unit-economics.md +279 -0
- package/skills/saas-economics-efficiency-metrics/template.md +263 -0
- package/skills/saas-revenue-growth-metrics/SKILL.md +629 -0
- package/skills/saas-revenue-growth-metrics/examples/healthy-saas.md +131 -0
- package/skills/saas-revenue-growth-metrics/examples/warning-signs.md +229 -0
- package/skills/saas-revenue-growth-metrics/template.md +192 -0
- package/skills/save-money/.clawhub/origin.json +7 -0
- package/skills/save-money/SKILL.md +173 -0
- package/skills/scripts/golden_skills_v3.sh +32 -0
- package/skills/search/.clawhub/origin.json +7 -0
- package/skills/search/SKILL.md +18 -0
- package/skills/search/skill.json +1 -0
- package/skills/second-brain/.clawhub/origin.json +7 -0
- package/skills/second-brain/SKILL.md +278 -0
- package/skills/second-brain/scripts/ensue-api.sh +37 -0
- package/skills/self-improving-agent/.clawhub/origin.json +7 -0
- package/skills/self-improving-agent/.learnings/ERRORS.md +5 -0
- package/skills/self-improving-agent/.learnings/FEATURE_REQUESTS.md +5 -0
- package/skills/self-improving-agent/.learnings/LEARNINGS.md +5 -0
- package/skills/self-improving-agent/SKILL.md +130 -0
- package/skills/self-improving-agent/assets/LEARNINGS.md +45 -0
- package/skills/self-improving-agent/assets/SKILL-TEMPLATE.md +177 -0
- package/skills/self-improving-agent/hooks/openclaw/HOOK.md +23 -0
- package/skills/self-improving-agent/hooks/openclaw/handler.js +56 -0
- package/skills/self-improving-agent/hooks/openclaw/handler.ts +62 -0
- package/skills/self-improving-agent/references/examples.md +374 -0
- package/skills/self-improving-agent/references/hooks-setup.md +223 -0
- package/skills/self-improving-agent/references/openclaw-integration.md +248 -0
- package/skills/self-improving-agent/references/templates.md +480 -0
- package/skills/self-improving-agent/scripts/activator.sh +20 -0
- package/skills/self-improving-agent/scripts/error-detector.sh +55 -0
- package/skills/self-improving-agent/scripts/extract-skill.sh +203 -0
- package/skills/self-improving-agent-1-0-2/.clawhub/origin.json +7 -0
- package/skills/self-improving-agent-1-0-2/SKILL.md +562 -0
- package/skills/self-improving-agent-1-0-2/assets/LEARNINGS.md +45 -0
- package/skills/self-improving-agent-1-0-2/assets/SKILL-TEMPLATE.md +182 -0
- package/skills/self-improving-agent-1-0-2/references/clawdbot-integration.md +311 -0
- package/skills/self-improving-agent-1-0-2/references/examples.md +374 -0
- package/skills/self-improving-agent-1-0-2/references/hooks-setup.md +223 -0
- package/skills/self-improving-agent-1-0-2/scripts/activator.sh +20 -0
- package/skills/self-improving-agent-1-0-2/scripts/error-detector.sh +55 -0
- package/skills/self-improving-agent-1-0-2/scripts/extract-skill.sh +203 -0
- package/skills/self-love-confidence/.clawhub/origin.json +7 -0
- package/skills/self-love-confidence/SKILL.md +79 -0
- package/skills/self-reflection/.clawhub/origin.json +7 -0
- package/skills/self-reflection/README.md +292 -0
- package/skills/self-reflection/SKILL.md +110 -0
- package/skills/self-reflection/self-reflection.example.json +6 -0
- package/skills/slither-analyzer/SKILL.md +27 -0
- package/skills/solidity-audit/SKILL.md +27 -0
- package/skills/soulcraft/.clawhub/origin.json +7 -0
- package/skills/soulcraft/README.md +123 -0
- package/skills/soulcraft/SKILL.md +340 -0
- package/skills/soulcraft/references/question-bank.md +154 -0
- package/skills/soulcraft/references/soul-examples.md +207 -0
- package/skills/soulcraft/research/RESEARCH_REPORT.md +317 -0
- package/skills/spotify-player/.clawhub/origin.json +7 -0
- package/skills/spotify-player/SKILL.md +44 -0
- package/skills/storyboard/SKILL.md +259 -0
- package/skills/storyboard/examples/sample.md +71 -0
- package/skills/storyboard/template.md +41 -0
- package/skills/summarize/.clawhub/origin.json +7 -0
- package/skills/summarize/SKILL.md +59 -0
- package/skills/superdesign/.clawhub/origin.json +7 -0
- package/skills/superdesign/SKILL.md +224 -0
- package/skills/tam-sam-som-calculator/SKILL.md +399 -0
- package/skills/tam-sam-som-calculator/examples/sample.md +142 -0
- package/skills/tam-sam-som-calculator/scripts/market-sizing.py +95 -0
- package/skills/tam-sam-som-calculator/template.md +35 -0
- package/skills/tavily-search/.clawhub/origin.json +7 -0
- package/skills/tavily-search/SKILL.md +49 -0
- package/skills/tavily-search/scripts/extract.mjs +59 -0
- package/skills/tavily-search/scripts/search.mjs +101 -0
- package/skills/twitter/SKILL.md +74 -0
- package/skills/twitter/_meta.json +9 -0
- package/skills/twitter/references/validation-cases.md +53 -0
- package/skills/twitter/scripts/twitter.sh +421 -0
- package/skills/ui-ux-pro-max/.clawhub/origin.json +7 -0
- package/skills/ui-ux-pro-max/SKILL.md +54 -0
- package/skills/ui-ux-pro-max/assets/data/charts.csv +26 -0
- package/skills/ui-ux-pro-max/assets/data/colors.csv +97 -0
- package/skills/ui-ux-pro-max/assets/data/icons.csv +101 -0
- package/skills/ui-ux-pro-max/assets/data/landing.csv +31 -0
- package/skills/ui-ux-pro-max/assets/data/products.csv +97 -0
- package/skills/ui-ux-pro-max/assets/data/react-performance.csv +45 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/astro.csv +54 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/flutter.csv +53 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/html-tailwind.csv +56 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/jetpack-compose.csv +53 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/nextjs.csv +53 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/nuxt-ui.csv +51 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/nuxtjs.csv +59 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/react-native.csv +52 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/react.csv +54 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/shadcn.csv +61 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/svelte.csv +54 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/swiftui.csv +51 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/vue.csv +50 -0
- package/skills/ui-ux-pro-max/assets/data/styles.csv +68 -0
- package/skills/ui-ux-pro-max/assets/data/typography.csv +58 -0
- package/skills/ui-ux-pro-max/assets/data/ui-reasoning.csv +101 -0
- package/skills/ui-ux-pro-max/assets/data/ux-guidelines.csv +100 -0
- package/skills/ui-ux-pro-max/assets/data/web-interface.csv +31 -0
- package/skills/ui-ux-pro-max/references/upstream-README.md +488 -0
- package/skills/ui-ux-pro-max/references/upstream-skill-content.md +288 -0
- package/skills/ui-ux-pro-max/scripts/__init__.py +0 -0
- package/skills/ui-ux-pro-max/scripts/core.py +253 -0
- package/skills/ui-ux-pro-max/scripts/design_system.py +1071 -0
- package/skills/ui-ux-pro-max/scripts/search.py +111 -0
- package/skills/user-story/SKILL.md +272 -0
- package/skills/user-story/examples/sample.md +110 -0
- package/skills/user-story/scripts/user-story-template.py +65 -0
- package/skills/user-story/template.md +32 -0
- package/skills/user-story-mapping/SKILL.md +296 -0
- package/skills/user-story-mapping/examples/sample.md +77 -0
- package/skills/user-story-mapping/template.md +41 -0
- package/skills/user-story-mapping-workshop/SKILL.md +485 -0
- package/skills/user-story-mapping-workshop/template.md +28 -0
- package/skills/user-story-splitting/SKILL.md +313 -0
- package/skills/user-story-splitting/examples/sample.md +147 -0
- package/skills/user-story-splitting/template.md +37 -0
- package/skills/wacli/.clawhub/origin.json +7 -0
- package/skills/wacli/SKILL.md +53 -0
- package/skills/web-search/.clawhub/origin.json +7 -0
- package/skills/web-search/SKILL.md +151 -0
- package/skills/web-search/references/api-details.md +207 -0
- package/skills/web-search/scripts/search.py +576 -0
- package/skills/workshop-facilitation/SKILL.md +88 -0
- package/skills/world-builder/SKILL.md +27 -0
- package/souls/blockchain-auditor/PRINCIPLES.md +75 -0
- package/souls/blockchain-auditor/SOUL.md +56 -0
- package/souls/blockchain-auditor/capabilities.json +33 -0
- package/souls/blockchain-auditor/evolution/capsules.json +4 -0
- package/souls/blockchain-auditor/evolution/events.jsonl +1 -0
- package/souls/blockchain-auditor/evolution/genes.json +62 -0
- package/souls/daedalus/PRINCIPLES.md +78 -0
- package/souls/daedalus/SOUL.md +48 -0
- package/souls/daedalus/capabilities.json +46 -0
- package/souls/identity-architect/PRINCIPLES.md +83 -0
- package/souls/identity-architect/SOUL.md +66 -0
- package/souls/identity-architect/capabilities.json +38 -0
- package/souls/identity-architect/evolution/capsules.json +4 -0
- package/souls/identity-architect/evolution/events.jsonl +0 -0
- package/souls/identity-architect/evolution/genes.json +4 -0
- package/souls/infra-ops/PRINCIPLES.md +77 -0
- package/souls/infra-ops/SOUL.md +56 -0
- package/souls/infra-ops/capabilities.json +33 -0
- package/souls/infra-ops/evolution/capsules.json +4 -0
- package/souls/infra-ops/evolution/events.jsonl +0 -0
- package/souls/infra-ops/evolution/genes.json +4 -0
- package/souls/lore-writer/PRINCIPLES.md +74 -0
- package/souls/lore-writer/SOUL.md +54 -0
- package/souls/lore-writer/capabilities.json +37 -0
- package/souls/lore-writer/evolution/capsules.json +4 -0
- package/souls/lore-writer/evolution/events.jsonl +0 -0
- package/souls/lore-writer/evolution/genes.json +4 -0
- package/souls/qa-evidence/PRINCIPLES.md +97 -0
- package/souls/qa-evidence/SOUL.md +66 -0
- package/souls/qa-evidence/capabilities.json +32 -0
- package/souls/qa-evidence/evolution/capsules.json +4 -0
- package/souls/qa-evidence/evolution/events.jsonl +0 -0
- package/souls/qa-evidence/evolution/genes.json +4 -0
- package/souls/registry.json +211 -0
- package/souls/sync-registry.js +65 -0
- package/uninstall.sh +102 -0
- package/workspace-bin/auto-checkpoint +60 -0
- package/workspace-bin/clawvault-access-control +65 -0
- package/workspace-bin/clawvault-local +28 -0
- package/workspace-bin/compile-boot +494 -0
- package/workspace-bin/daily-log-writer.mjs +251 -0
- package/workspace-bin/evolve +540 -0
- package/workspace-bin/fitness_score.py +395 -0
- package/workspace-bin/hooks/pre-commit +80 -0
- package/workspace-bin/install-daemon +299 -0
- package/workspace-bin/lane-watchdog.js +232 -0
- package/workspace-bin/lib/__init__.py +0 -0
- package/workspace-bin/lib/frontmatter.py +114 -0
- package/workspace-bin/memory-daemon.mjs +879 -0
- package/workspace-bin/memory-maintenance.mjs +531 -0
- package/workspace-bin/mesh-bridge.mjs +154 -0
- package/workspace-bin/multi-review +130 -0
- package/workspace-bin/obsidian +125 -0
- package/workspace-bin/obsidian-sync.mjs +888 -0
- package/workspace-bin/openclaw-register-source +102 -0
- package/workspace-bin/proactive-scan +147 -0
- package/workspace-bin/quality-gate +175 -0
- package/workspace-bin/screenshot +96 -0
- package/workspace-bin/session-recap +453 -0
- package/workspace-bin/skill-audit +494 -0
- package/workspace-bin/skill-quality-check +134 -0
- package/workspace-bin/skill-routing-eval +599 -0
- package/workspace-bin/soul-prompt +251 -0
- package/workspace-bin/subagent-audit.mjs +267 -0
- package/workspace-bin/test-multi-soul-workflow +130 -0
- package/workspace-bin/trust-registry +465 -0
- package/workspace-docs/AGENTS.md +201 -0
- package/workspace-docs/CLAUDE.md +64 -0
- package/workspace-docs/PRINCIPLES.md +81 -0
- package/workspace-docs/SOUL.md +48 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
# OpenClaw Integration
|
|
2
|
+
|
|
3
|
+
Complete setup and usage guide for integrating the self-improvement skill with OpenClaw.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
OpenClaw uses workspace-based prompt injection combined with event-driven hooks. Context is injected from workspace files at session start, and hooks can trigger on lifecycle events.
|
|
8
|
+
|
|
9
|
+
## Workspace Structure
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
~/.openclaw/
|
|
13
|
+
├── workspace/ # Working directory
|
|
14
|
+
│ ├── AGENTS.md # Multi-agent coordination patterns
|
|
15
|
+
│ ├── SOUL.md # Behavioral guidelines and personality
|
|
16
|
+
│ ├── TOOLS.md # Tool capabilities and gotchas
|
|
17
|
+
│ ├── MEMORY.md # Long-term memory (main session only)
|
|
18
|
+
│ └── memory/ # Daily memory files
|
|
19
|
+
│ └── YYYY-MM-DD.md
|
|
20
|
+
├── skills/ # Installed skills
|
|
21
|
+
│ └── <skill-name>/
|
|
22
|
+
│ └── SKILL.md
|
|
23
|
+
└── hooks/ # Custom hooks
|
|
24
|
+
└── <hook-name>/
|
|
25
|
+
├── HOOK.md
|
|
26
|
+
└── handler.ts
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Quick Setup
|
|
30
|
+
|
|
31
|
+
### 1. Install the Skill
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
clawdhub install self-improving-agent
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Or copy manually:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
cp -r self-improving-agent ~/.openclaw/skills/
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### 2. Install the Hook (Optional)
|
|
44
|
+
|
|
45
|
+
Copy the hook to OpenClaw's hooks directory:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
cp -r hooks/openclaw ~/.openclaw/hooks/self-improvement
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Enable the hook:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
openclaw hooks enable self-improvement
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### 3. Create Learning Files
|
|
58
|
+
|
|
59
|
+
Create the `.learnings/` directory in your workspace:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
mkdir -p ~/.openclaw/workspace/.learnings
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Or in the skill directory:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
mkdir -p ~/.openclaw/skills/self-improving-agent/.learnings
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Injected Prompt Files
|
|
72
|
+
|
|
73
|
+
### AGENTS.md
|
|
74
|
+
|
|
75
|
+
Purpose: Multi-agent workflows and delegation patterns.
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
# Agent Coordination
|
|
79
|
+
|
|
80
|
+
## Delegation Rules
|
|
81
|
+
- Use explore agent for open-ended codebase questions
|
|
82
|
+
- Spawn sub-agents for long-running tasks
|
|
83
|
+
- Use sessions_send for cross-session communication
|
|
84
|
+
|
|
85
|
+
## Session Handoff
|
|
86
|
+
When delegating to another session:
|
|
87
|
+
1. Provide full context in the handoff message
|
|
88
|
+
2. Include relevant file paths
|
|
89
|
+
3. Specify expected output format
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### SOUL.md
|
|
93
|
+
|
|
94
|
+
Purpose: Behavioral guidelines and communication style.
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
# Behavioral Guidelines
|
|
98
|
+
|
|
99
|
+
## Communication Style
|
|
100
|
+
- Be direct and concise
|
|
101
|
+
- Avoid unnecessary caveats and disclaimers
|
|
102
|
+
- Use technical language appropriate to context
|
|
103
|
+
|
|
104
|
+
## Error Handling
|
|
105
|
+
- Admit mistakes promptly
|
|
106
|
+
- Provide corrected information immediately
|
|
107
|
+
- Log significant errors to learnings
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### TOOLS.md
|
|
111
|
+
|
|
112
|
+
Purpose: Tool capabilities, integration gotchas, local configuration.
|
|
113
|
+
|
|
114
|
+
```markdown
|
|
115
|
+
# Tool Knowledge
|
|
116
|
+
|
|
117
|
+
## Self-Improvement Skill
|
|
118
|
+
Log learnings to `.learnings/` for continuous improvement.
|
|
119
|
+
|
|
120
|
+
## Local Tools
|
|
121
|
+
- Document tool-specific gotchas here
|
|
122
|
+
- Note authentication requirements
|
|
123
|
+
- Track integration quirks
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Learning Workflow
|
|
127
|
+
|
|
128
|
+
### Capturing Learnings
|
|
129
|
+
|
|
130
|
+
1. **In-session**: Log to `.learnings/` as usual
|
|
131
|
+
2. **Cross-session**: Promote to workspace files
|
|
132
|
+
|
|
133
|
+
### Promotion Decision Tree
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
Is the learning project-specific?
|
|
137
|
+
├── Yes → Keep in .learnings/
|
|
138
|
+
└── No → Is it behavioral/style-related?
|
|
139
|
+
├── Yes → Promote to SOUL.md
|
|
140
|
+
└── No → Is it tool-related?
|
|
141
|
+
├── Yes → Promote to TOOLS.md
|
|
142
|
+
└── No → Promote to AGENTS.md (workflow)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Promotion Format Examples
|
|
146
|
+
|
|
147
|
+
**From learning:**
|
|
148
|
+
> Git push to GitHub fails without auth configured - triggers desktop prompt
|
|
149
|
+
|
|
150
|
+
**To TOOLS.md:**
|
|
151
|
+
```markdown
|
|
152
|
+
## Git
|
|
153
|
+
- Don't push without confirming auth is configured
|
|
154
|
+
- Use `gh auth status` to check GitHub CLI auth
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Inter-Agent Communication
|
|
158
|
+
|
|
159
|
+
OpenClaw provides tools for cross-session communication:
|
|
160
|
+
|
|
161
|
+
### sessions_list
|
|
162
|
+
|
|
163
|
+
View active and recent sessions:
|
|
164
|
+
```
|
|
165
|
+
sessions_list(activeMinutes=30, messageLimit=3)
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### sessions_history
|
|
169
|
+
|
|
170
|
+
Read transcript from another session:
|
|
171
|
+
```
|
|
172
|
+
sessions_history(sessionKey="session-id", limit=50)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### sessions_send
|
|
176
|
+
|
|
177
|
+
Send message to another session:
|
|
178
|
+
```
|
|
179
|
+
sessions_send(sessionKey="session-id", message="Learning: API requires X-Custom-Header")
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### sessions_spawn
|
|
183
|
+
|
|
184
|
+
Spawn a background sub-agent:
|
|
185
|
+
```
|
|
186
|
+
sessions_spawn(task="Research X and report back", label="research")
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Available Hook Events
|
|
190
|
+
|
|
191
|
+
| Event | When It Fires |
|
|
192
|
+
|-------|---------------|
|
|
193
|
+
| `agent:bootstrap` | Before workspace files inject |
|
|
194
|
+
| `command:new` | When `/new` command issued |
|
|
195
|
+
| `command:reset` | When `/reset` command issued |
|
|
196
|
+
| `command:stop` | When `/stop` command issued |
|
|
197
|
+
| `gateway:startup` | When gateway starts |
|
|
198
|
+
|
|
199
|
+
## Detection Triggers
|
|
200
|
+
|
|
201
|
+
### Standard Triggers
|
|
202
|
+
- User corrections ("No, that's wrong...")
|
|
203
|
+
- Command failures (non-zero exit codes)
|
|
204
|
+
- API errors
|
|
205
|
+
- Knowledge gaps
|
|
206
|
+
|
|
207
|
+
### OpenClaw-Specific Triggers
|
|
208
|
+
|
|
209
|
+
| Trigger | Action |
|
|
210
|
+
|---------|--------|
|
|
211
|
+
| Tool call error | Log to TOOLS.md with tool name |
|
|
212
|
+
| Session handoff confusion | Log to AGENTS.md with delegation pattern |
|
|
213
|
+
| Model behavior surprise | Log to SOUL.md with expected vs actual |
|
|
214
|
+
| Skill issue | Log to .learnings/ or report upstream |
|
|
215
|
+
|
|
216
|
+
## Verification
|
|
217
|
+
|
|
218
|
+
Check hook is registered:
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
openclaw hooks list
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Check skill is loaded:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
openclaw status
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
## Troubleshooting
|
|
231
|
+
|
|
232
|
+
### Hook not firing
|
|
233
|
+
|
|
234
|
+
1. Ensure hooks enabled in config
|
|
235
|
+
2. Restart gateway after config changes
|
|
236
|
+
3. Check gateway logs for errors
|
|
237
|
+
|
|
238
|
+
### Learnings not persisting
|
|
239
|
+
|
|
240
|
+
1. Verify `.learnings/` directory exists
|
|
241
|
+
2. Check file permissions
|
|
242
|
+
3. Ensure workspace path is configured correctly
|
|
243
|
+
|
|
244
|
+
### Skill not loading
|
|
245
|
+
|
|
246
|
+
1. Check skill is in skills directory
|
|
247
|
+
2. Verify SKILL.md has correct frontmatter
|
|
248
|
+
3. Run `openclaw status` to see loaded skills
|
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
# Self-Improvement Templates & Detailed Examples
|
|
2
|
+
|
|
3
|
+
Extracted from SKILL.md for reference. See the main SKILL.md for overview and quick reference.
|
|
4
|
+
|
|
5
|
+
## Logging Format
|
|
6
|
+
|
|
7
|
+
### Learning Entry
|
|
8
|
+
|
|
9
|
+
Append to `.learnings/LEARNINGS.md`:
|
|
10
|
+
|
|
11
|
+
```markdown
|
|
12
|
+
## [LRN-YYYYMMDD-XXX] category
|
|
13
|
+
|
|
14
|
+
**Logged**: ISO-8601 timestamp
|
|
15
|
+
**Priority**: low | medium | high | critical
|
|
16
|
+
**Status**: pending
|
|
17
|
+
**Area**: frontend | backend | infra | tests | docs | config
|
|
18
|
+
|
|
19
|
+
### Summary
|
|
20
|
+
One-line description of what was learned
|
|
21
|
+
|
|
22
|
+
### Details
|
|
23
|
+
Full context: what happened, what was wrong, what's correct
|
|
24
|
+
|
|
25
|
+
### Suggested Action
|
|
26
|
+
Specific fix or improvement to make
|
|
27
|
+
|
|
28
|
+
### Metadata
|
|
29
|
+
- Source: conversation | error | user_feedback
|
|
30
|
+
- Related Files: path/to/file.ext
|
|
31
|
+
- Tags: tag1, tag2
|
|
32
|
+
- See Also: LRN-20250110-001 (if related to existing entry)
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Error Entry
|
|
38
|
+
|
|
39
|
+
Append to `.learnings/ERRORS.md`:
|
|
40
|
+
|
|
41
|
+
```markdown
|
|
42
|
+
## [ERR-YYYYMMDD-XXX] skill_or_command_name
|
|
43
|
+
|
|
44
|
+
**Logged**: ISO-8601 timestamp
|
|
45
|
+
**Priority**: high
|
|
46
|
+
**Status**: pending
|
|
47
|
+
**Area**: frontend | backend | infra | tests | docs | config
|
|
48
|
+
|
|
49
|
+
### Summary
|
|
50
|
+
Brief description of what failed
|
|
51
|
+
|
|
52
|
+
### Error
|
|
53
|
+
```
|
|
54
|
+
Actual error message or output
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Context
|
|
58
|
+
- Command/operation attempted
|
|
59
|
+
- Input or parameters used
|
|
60
|
+
- Environment details if relevant
|
|
61
|
+
|
|
62
|
+
### Suggested Fix
|
|
63
|
+
If identifiable, what might resolve this
|
|
64
|
+
|
|
65
|
+
### Metadata
|
|
66
|
+
- Reproducible: yes | no | unknown
|
|
67
|
+
- Related Files: path/to/file.ext
|
|
68
|
+
- See Also: ERR-20250110-001 (if recurring)
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Feature Request Entry
|
|
74
|
+
|
|
75
|
+
Append to `.learnings/FEATURE_REQUESTS.md`:
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
## [FEAT-YYYYMMDD-XXX] capability_name
|
|
79
|
+
|
|
80
|
+
**Logged**: ISO-8601 timestamp
|
|
81
|
+
**Priority**: medium
|
|
82
|
+
**Status**: pending
|
|
83
|
+
**Area**: frontend | backend | infra | tests | docs | config
|
|
84
|
+
|
|
85
|
+
### Requested Capability
|
|
86
|
+
What the user wanted to do
|
|
87
|
+
|
|
88
|
+
### User Context
|
|
89
|
+
Why they needed it, what problem they're solving
|
|
90
|
+
|
|
91
|
+
### Complexity Estimate
|
|
92
|
+
simple | medium | complex
|
|
93
|
+
|
|
94
|
+
### Suggested Implementation
|
|
95
|
+
How this could be built, what it might extend
|
|
96
|
+
|
|
97
|
+
### Metadata
|
|
98
|
+
- Frequency: first_time | recurring
|
|
99
|
+
- Related Features: existing_feature_name
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## ID Generation
|
|
105
|
+
|
|
106
|
+
Format: `TYPE-YYYYMMDD-XXX`
|
|
107
|
+
- TYPE: `LRN` (learning), `ERR` (error), `FEAT` (feature)
|
|
108
|
+
- YYYYMMDD: Current date
|
|
109
|
+
- XXX: Sequential number or random 3 chars (e.g., `001`, `A7B`)
|
|
110
|
+
|
|
111
|
+
Examples: `LRN-20250115-001`, `ERR-20250115-A3F`, `FEAT-20250115-002`
|
|
112
|
+
|
|
113
|
+
## Resolving Entries
|
|
114
|
+
|
|
115
|
+
When an issue is fixed, update the entry:
|
|
116
|
+
|
|
117
|
+
1. Change `**Status**: pending` to `**Status**: resolved`
|
|
118
|
+
2. Add resolution block after Metadata:
|
|
119
|
+
|
|
120
|
+
```markdown
|
|
121
|
+
### Resolution
|
|
122
|
+
- **Resolved**: 2025-01-16T09:00:00Z
|
|
123
|
+
- **Commit/PR**: abc123 or #42
|
|
124
|
+
- **Notes**: Brief description of what was done
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Other status values:
|
|
128
|
+
- `in_progress` - Actively being worked on
|
|
129
|
+
- `wont_fix` - Decided not to address (add reason in Resolution notes)
|
|
130
|
+
- `promoted` - Elevated to CLAUDE.md, AGENTS.md, or .github/copilot-instructions.md
|
|
131
|
+
|
|
132
|
+
## Promoting to Project Memory
|
|
133
|
+
|
|
134
|
+
When a learning is broadly applicable (not a one-off fix), promote it to permanent project memory.
|
|
135
|
+
|
|
136
|
+
### When to Promote
|
|
137
|
+
|
|
138
|
+
- Learning applies across multiple files/features
|
|
139
|
+
- Knowledge any contributor (human or AI) should know
|
|
140
|
+
- Prevents recurring mistakes
|
|
141
|
+
- Documents project-specific conventions
|
|
142
|
+
|
|
143
|
+
### Promotion Targets
|
|
144
|
+
|
|
145
|
+
| Target | What Belongs There |
|
|
146
|
+
|--------|-------------------|
|
|
147
|
+
| `CLAUDE.md` | Project facts, conventions, gotchas for all Claude interactions |
|
|
148
|
+
| `AGENTS.md` | Agent-specific workflows, tool usage patterns, automation rules |
|
|
149
|
+
| `.github/copilot-instructions.md` | Project context and conventions for GitHub Copilot |
|
|
150
|
+
| `SOUL.md` | Behavioral guidelines, communication style, principles (OpenClaw workspace) |
|
|
151
|
+
| `TOOLS.md` | Tool capabilities, usage patterns, integration gotchas (OpenClaw workspace) |
|
|
152
|
+
|
|
153
|
+
### How to Promote
|
|
154
|
+
|
|
155
|
+
1. **Distill** the learning into a concise rule or fact
|
|
156
|
+
2. **Add** to appropriate section in target file (create file if needed)
|
|
157
|
+
3. **Update** original entry:
|
|
158
|
+
- Change `**Status**: pending` to `**Status**: promoted`
|
|
159
|
+
- Add `**Promoted**: CLAUDE.md`, `AGENTS.md`, or `.github/copilot-instructions.md`
|
|
160
|
+
|
|
161
|
+
### Promotion Examples
|
|
162
|
+
|
|
163
|
+
**Learning** (verbose):
|
|
164
|
+
> Project uses pnpm workspaces. Attempted `npm install` but failed.
|
|
165
|
+
> Lock file is `pnpm-lock.yaml`. Must use `pnpm install`.
|
|
166
|
+
|
|
167
|
+
**In CLAUDE.md** (concise):
|
|
168
|
+
```markdown
|
|
169
|
+
## Build & Dependencies
|
|
170
|
+
- Package manager: pnpm (not npm) - use `pnpm install`
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Learning** (verbose):
|
|
174
|
+
> When modifying API endpoints, must regenerate TypeScript client.
|
|
175
|
+
> Forgetting this causes type mismatches at runtime.
|
|
176
|
+
|
|
177
|
+
**In AGENTS.md** (actionable):
|
|
178
|
+
```markdown
|
|
179
|
+
## After API Changes
|
|
180
|
+
1. Regenerate client: `pnpm run generate:api`
|
|
181
|
+
2. Check for type errors: `pnpm tsc --noEmit`
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## Recurring Pattern Detection
|
|
185
|
+
|
|
186
|
+
If logging something similar to an existing entry:
|
|
187
|
+
|
|
188
|
+
1. **Search first**: `grep -r "keyword" .learnings/`
|
|
189
|
+
2. **Link entries**: Add `**See Also**: ERR-20250110-001` in Metadata
|
|
190
|
+
3. **Bump priority** if issue keeps recurring
|
|
191
|
+
4. **Consider systemic fix**: Recurring issues often indicate:
|
|
192
|
+
- Missing documentation (promote to CLAUDE.md or .github/copilot-instructions.md)
|
|
193
|
+
- Missing automation (add to AGENTS.md)
|
|
194
|
+
- Architectural problem (create tech debt ticket)
|
|
195
|
+
|
|
196
|
+
## Periodic Review
|
|
197
|
+
|
|
198
|
+
Review `.learnings/` at natural breakpoints:
|
|
199
|
+
|
|
200
|
+
### When to Review
|
|
201
|
+
- Before starting a new major task
|
|
202
|
+
- After completing a feature
|
|
203
|
+
- When working in an area with past learnings
|
|
204
|
+
- Weekly during active development
|
|
205
|
+
|
|
206
|
+
### Quick Status Check
|
|
207
|
+
```bash
|
|
208
|
+
# Count pending items
|
|
209
|
+
grep -h "Status\*\*: pending" .learnings/*.md | wc -l
|
|
210
|
+
|
|
211
|
+
# List pending high-priority items
|
|
212
|
+
grep -B5 "Priority\*\*: high" .learnings/*.md | grep "^## \["
|
|
213
|
+
|
|
214
|
+
# Find learnings for a specific area
|
|
215
|
+
grep -l "Area\*\*: backend" .learnings/*.md
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Review Actions
|
|
219
|
+
- Resolve fixed items
|
|
220
|
+
- Promote applicable learnings
|
|
221
|
+
- Link related entries
|
|
222
|
+
- Escalate recurring issues
|
|
223
|
+
|
|
224
|
+
## Detection Triggers
|
|
225
|
+
|
|
226
|
+
Automatically log when you notice:
|
|
227
|
+
|
|
228
|
+
**Corrections** (learning with `correction` category):
|
|
229
|
+
- "No, that's not right..."
|
|
230
|
+
- "Actually, it should be..."
|
|
231
|
+
- "You're wrong about..."
|
|
232
|
+
- "That's outdated..."
|
|
233
|
+
|
|
234
|
+
**Feature Requests** (feature request):
|
|
235
|
+
- "Can you also..."
|
|
236
|
+
- "I wish you could..."
|
|
237
|
+
- "Is there a way to..."
|
|
238
|
+
- "Why can't you..."
|
|
239
|
+
|
|
240
|
+
**Knowledge Gaps** (learning with `knowledge_gap` category):
|
|
241
|
+
- User provides information you didn't know
|
|
242
|
+
- Documentation you referenced is outdated
|
|
243
|
+
- API behavior differs from your understanding
|
|
244
|
+
|
|
245
|
+
**Errors** (error entry):
|
|
246
|
+
- Command returns non-zero exit code
|
|
247
|
+
- Exception or stack trace
|
|
248
|
+
- Unexpected output or behavior
|
|
249
|
+
- Timeout or connection failure
|
|
250
|
+
|
|
251
|
+
## Priority Guidelines
|
|
252
|
+
|
|
253
|
+
| Priority | When to Use |
|
|
254
|
+
|----------|-------------|
|
|
255
|
+
| `critical` | Blocks core functionality, data loss risk, security issue |
|
|
256
|
+
| `high` | Significant impact, affects common workflows, recurring issue |
|
|
257
|
+
| `medium` | Moderate impact, workaround exists |
|
|
258
|
+
| `low` | Minor inconvenience, edge case, nice-to-have |
|
|
259
|
+
|
|
260
|
+
## Area Tags
|
|
261
|
+
|
|
262
|
+
Use to filter learnings by codebase region:
|
|
263
|
+
|
|
264
|
+
| Area | Scope |
|
|
265
|
+
|------|-------|
|
|
266
|
+
| `frontend` | UI, components, client-side code |
|
|
267
|
+
| `backend` | API, services, server-side code |
|
|
268
|
+
| `infra` | CI/CD, deployment, Docker, cloud |
|
|
269
|
+
| `tests` | Test files, testing utilities, coverage |
|
|
270
|
+
| `docs` | Documentation, comments, READMEs |
|
|
271
|
+
| `config` | Configuration files, environment, settings |
|
|
272
|
+
|
|
273
|
+
## Best Practices
|
|
274
|
+
|
|
275
|
+
1. **Log immediately** - context is freshest right after the issue
|
|
276
|
+
2. **Be specific** - future agents need to understand quickly
|
|
277
|
+
3. **Include reproduction steps** - especially for errors
|
|
278
|
+
4. **Link related files** - makes fixes easier
|
|
279
|
+
5. **Suggest concrete fixes** - not just "investigate"
|
|
280
|
+
6. **Use consistent categories** - enables filtering
|
|
281
|
+
7. **Promote aggressively** - if in doubt, add to CLAUDE.md or .github/copilot-instructions.md
|
|
282
|
+
8. **Review regularly** - stale learnings lose value
|
|
283
|
+
|
|
284
|
+
## Gitignore Options
|
|
285
|
+
|
|
286
|
+
**Keep learnings local** (per-developer):
|
|
287
|
+
```gitignore
|
|
288
|
+
.learnings/
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
**Track learnings in repo** (team-wide):
|
|
292
|
+
Don't add to .gitignore - learnings become shared knowledge.
|
|
293
|
+
|
|
294
|
+
**Hybrid** (track templates, ignore entries):
|
|
295
|
+
```gitignore
|
|
296
|
+
.learnings/*.md
|
|
297
|
+
!.learnings/.gitkeep
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
## Hook Integration
|
|
301
|
+
|
|
302
|
+
Enable automatic reminders through agent hooks. This is **opt-in** - you must explicitly configure hooks.
|
|
303
|
+
|
|
304
|
+
### Quick Setup (Claude Code / Codex)
|
|
305
|
+
|
|
306
|
+
Create `.claude/settings.json` in your project:
|
|
307
|
+
|
|
308
|
+
```json
|
|
309
|
+
{
|
|
310
|
+
"hooks": {
|
|
311
|
+
"UserPromptSubmit": [{
|
|
312
|
+
"matcher": "",
|
|
313
|
+
"hooks": [{
|
|
314
|
+
"type": "command",
|
|
315
|
+
"command": "./skills/self-improvement/scripts/activator.sh"
|
|
316
|
+
}]
|
|
317
|
+
}]
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
This injects a learning evaluation reminder after each prompt (~50-100 tokens overhead).
|
|
323
|
+
|
|
324
|
+
### Full Setup (With Error Detection)
|
|
325
|
+
|
|
326
|
+
```json
|
|
327
|
+
{
|
|
328
|
+
"hooks": {
|
|
329
|
+
"UserPromptSubmit": [{
|
|
330
|
+
"matcher": "",
|
|
331
|
+
"hooks": [{
|
|
332
|
+
"type": "command",
|
|
333
|
+
"command": "./skills/self-improvement/scripts/activator.sh"
|
|
334
|
+
}]
|
|
335
|
+
}],
|
|
336
|
+
"PostToolUse": [{
|
|
337
|
+
"matcher": "Bash",
|
|
338
|
+
"hooks": [{
|
|
339
|
+
"type": "command",
|
|
340
|
+
"command": "./skills/self-improvement/scripts/error-detector.sh"
|
|
341
|
+
}]
|
|
342
|
+
}]
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### Available Hook Scripts
|
|
348
|
+
|
|
349
|
+
| Script | Hook Type | Purpose |
|
|
350
|
+
|--------|-----------|---------|
|
|
351
|
+
| `scripts/activator.sh` | UserPromptSubmit | Reminds to evaluate learnings after tasks |
|
|
352
|
+
| `scripts/error-detector.sh` | PostToolUse (Bash) | Triggers on command errors |
|
|
353
|
+
|
|
354
|
+
See `references/hooks-setup.md` for detailed configuration and troubleshooting.
|
|
355
|
+
|
|
356
|
+
## Automatic Skill Extraction
|
|
357
|
+
|
|
358
|
+
When a learning is valuable enough to become a reusable skill, extract it using the provided helper.
|
|
359
|
+
|
|
360
|
+
### Skill Extraction Criteria
|
|
361
|
+
|
|
362
|
+
A learning qualifies for skill extraction when ANY of these apply:
|
|
363
|
+
|
|
364
|
+
| Criterion | Description |
|
|
365
|
+
|-----------|-------------|
|
|
366
|
+
| **Recurring** | Has `See Also` links to 2+ similar issues |
|
|
367
|
+
| **Verified** | Status is `resolved` with working fix |
|
|
368
|
+
| **Non-obvious** | Required actual debugging/investigation to discover |
|
|
369
|
+
| **Broadly applicable** | Not project-specific; useful across codebases |
|
|
370
|
+
| **User-flagged** | User says "save this as a skill" or similar |
|
|
371
|
+
|
|
372
|
+
### Extraction Workflow
|
|
373
|
+
|
|
374
|
+
1. **Identify candidate**: Learning meets extraction criteria
|
|
375
|
+
2. **Run helper** (or create manually):
|
|
376
|
+
```bash
|
|
377
|
+
./skills/self-improvement/scripts/extract-skill.sh skill-name --dry-run
|
|
378
|
+
./skills/self-improvement/scripts/extract-skill.sh skill-name
|
|
379
|
+
```
|
|
380
|
+
3. **Customize SKILL.md**: Fill in template with learning content
|
|
381
|
+
4. **Update learning**: Set status to `promoted_to_skill`, add `Skill-Path`
|
|
382
|
+
5. **Verify**: Read skill in fresh session to ensure it's self-contained
|
|
383
|
+
|
|
384
|
+
### Manual Extraction
|
|
385
|
+
|
|
386
|
+
If you prefer manual creation:
|
|
387
|
+
|
|
388
|
+
1. Create `skills/<skill-name>/SKILL.md`
|
|
389
|
+
2. Use template from `assets/SKILL-TEMPLATE.md`
|
|
390
|
+
3. Follow [Agent Skills spec](https://agentskills.io/specification):
|
|
391
|
+
- YAML frontmatter with `name` and `description`
|
|
392
|
+
- Name must match folder name
|
|
393
|
+
- No README.md inside skill folder
|
|
394
|
+
|
|
395
|
+
### Extraction Detection Triggers
|
|
396
|
+
|
|
397
|
+
Watch for these signals that a learning should become a skill:
|
|
398
|
+
|
|
399
|
+
**In conversation:**
|
|
400
|
+
- "Save this as a skill"
|
|
401
|
+
- "I keep running into this"
|
|
402
|
+
- "This would be useful for other projects"
|
|
403
|
+
- "Remember this pattern"
|
|
404
|
+
|
|
405
|
+
**In learning entries:**
|
|
406
|
+
- Multiple `See Also` links (recurring issue)
|
|
407
|
+
- High priority + resolved status
|
|
408
|
+
- Category: `best_practice` with broad applicability
|
|
409
|
+
- User feedback praising the solution
|
|
410
|
+
|
|
411
|
+
### Skill Quality Gates
|
|
412
|
+
|
|
413
|
+
Before extraction, verify:
|
|
414
|
+
|
|
415
|
+
- [ ] Solution is tested and working
|
|
416
|
+
- [ ] Description is clear without original context
|
|
417
|
+
- [ ] Code examples are self-contained
|
|
418
|
+
- [ ] No project-specific hardcoded values
|
|
419
|
+
- [ ] Follows skill naming conventions (lowercase, hyphens)
|
|
420
|
+
|
|
421
|
+
## Multi-Agent Support
|
|
422
|
+
|
|
423
|
+
This skill works across different AI coding agents with agent-specific activation.
|
|
424
|
+
|
|
425
|
+
### Claude Code
|
|
426
|
+
|
|
427
|
+
**Activation**: Hooks (UserPromptSubmit, PostToolUse)
|
|
428
|
+
**Setup**: `.claude/settings.json` with hook configuration
|
|
429
|
+
**Detection**: Automatic via hook scripts
|
|
430
|
+
|
|
431
|
+
### Codex CLI
|
|
432
|
+
|
|
433
|
+
**Activation**: Hooks (same pattern as Claude Code)
|
|
434
|
+
**Setup**: `.codex/settings.json` with hook configuration
|
|
435
|
+
**Detection**: Automatic via hook scripts
|
|
436
|
+
|
|
437
|
+
### GitHub Copilot
|
|
438
|
+
|
|
439
|
+
**Activation**: Manual (no hook support)
|
|
440
|
+
**Setup**: Add to `.github/copilot-instructions.md`:
|
|
441
|
+
|
|
442
|
+
```markdown
|
|
443
|
+
## Self-Improvement
|
|
444
|
+
|
|
445
|
+
After solving non-obvious issues, consider logging to `.learnings/`:
|
|
446
|
+
1. Use format from self-improvement skill
|
|
447
|
+
2. Link related entries with See Also
|
|
448
|
+
3. Promote high-value learnings to skills
|
|
449
|
+
|
|
450
|
+
Ask in chat: "Should I log this as a learning?"
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
**Detection**: Manual review at session end
|
|
454
|
+
|
|
455
|
+
### OpenClaw
|
|
456
|
+
|
|
457
|
+
**Activation**: Workspace injection + inter-agent messaging
|
|
458
|
+
**Setup**: See "OpenClaw Setup" section in SKILL.md
|
|
459
|
+
**Detection**: Via session tools and workspace files
|
|
460
|
+
|
|
461
|
+
### Agent-Agnostic Guidance
|
|
462
|
+
|
|
463
|
+
Regardless of agent, apply self-improvement when you:
|
|
464
|
+
|
|
465
|
+
1. **Discover something non-obvious** - solution wasn't immediate
|
|
466
|
+
2. **Correct yourself** - initial approach was wrong
|
|
467
|
+
3. **Learn project conventions** - discovered undocumented patterns
|
|
468
|
+
4. **Hit unexpected errors** - especially if diagnosis was difficult
|
|
469
|
+
5. **Find better approaches** - improved on your original solution
|
|
470
|
+
|
|
471
|
+
### Copilot Chat Integration
|
|
472
|
+
|
|
473
|
+
For Copilot users, add this to your prompts when relevant:
|
|
474
|
+
|
|
475
|
+
> After completing this task, evaluate if any learnings should be logged to `.learnings/` using the self-improvement skill format.
|
|
476
|
+
|
|
477
|
+
Or use quick prompts:
|
|
478
|
+
- "Log this to learnings"
|
|
479
|
+
- "Create a skill from this solution"
|
|
480
|
+
- "Check .learnings/ for related issues"
|