@tencent-ai/agent-sdk 0.3.98 → 0.3.100
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/cli/CHANGELOG.md +50 -0
- package/cli/dist/codebuddy-headless.js +137 -108
- package/cli/dist/web-ui/assets/index-BoMlEqUE.js +439 -0
- package/cli/dist/web-ui/assets/index-Dt1puyHn.css +32 -0
- package/cli/dist/web-ui/docs/cn/cli/acp.md +152 -0
- package/cli/dist/web-ui/docs/cn/cli/agent-teams.md +327 -0
- package/cli/dist/web-ui/docs/cn/cli/bash-sandboxing.md +290 -0
- package/cli/dist/web-ui/docs/cn/cli/best-practices.md +554 -0
- package/cli/dist/web-ui/docs/cn/cli/channels-reference.md +293 -0
- package/cli/dist/web-ui/docs/cn/cli/channels.md +215 -0
- package/cli/dist/web-ui/docs/cn/cli/checkpointing.md +51 -0
- package/cli/dist/web-ui/docs/cn/cli/cli-reference.md +187 -0
- package/cli/dist/web-ui/docs/cn/cli/common-workflows.md +1013 -0
- package/cli/dist/web-ui/docs/cn/cli/costs.md +174 -0
- package/cli/dist/web-ui/docs/cn/cli/devcontainer.md +553 -0
- package/cli/dist/web-ui/docs/cn/cli/env-vars.md +326 -0
- package/cli/dist/web-ui/docs/cn/cli/gitlab-ci-cd.md +357 -0
- package/cli/dist/web-ui/docs/cn/cli/headless.md +258 -0
- package/cli/dist/web-ui/docs/cn/cli/hooks-guide.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/hooks.md +805 -0
- package/cli/dist/web-ui/docs/cn/cli/iam.md +530 -0
- package/cli/dist/web-ui/docs/cn/cli/ide-integrations.md +92 -0
- package/cli/dist/web-ui/docs/cn/cli/installation.md +291 -0
- package/cli/dist/web-ui/docs/cn/cli/interactive-mode.md +233 -0
- package/cli/dist/web-ui/docs/cn/cli/mcp.md +739 -0
- package/cli/dist/web-ui/docs/cn/cli/memory.md +436 -0
- package/cli/dist/web-ui/docs/cn/cli/models.md +356 -0
- package/cli/dist/web-ui/docs/cn/cli/overview.md +100 -0
- package/cli/dist/web-ui/docs/cn/cli/plugin-marketplaces.md +533 -0
- package/cli/dist/web-ui/docs/cn/cli/plugins-reference.md +774 -0
- package/cli/dist/web-ui/docs/cn/cli/plugins.md +689 -0
- package/cli/dist/web-ui/docs/cn/cli/quickstart.md +249 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/README.md +199 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.10.0.md +23 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.10.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.11.0.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.12.0.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.13.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.14.0.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.14.1.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.15.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.15.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.16.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.17.0.md +29 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.18.0.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.0.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.1.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.2.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.20.0.md +23 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.20.1.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.21.0.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.22.0.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.3.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.4.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.5.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.24.0.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.25.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.25.1.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.26.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.0.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.1.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.2.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.3.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.28.0.md +26 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.28.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.29.0.md +35 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.3.1.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.30.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.30.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.0.md +51 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.2.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.32.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.33.0.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.33.1.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.36.3.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.0.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.1.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.10.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.11.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.12.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.13.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.14.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.15.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.16.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.17.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.18.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.19.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.2.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.20.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.3.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.4.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.5.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.6.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.7.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.8.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.9.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.0.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.2.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.39.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.4.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.40.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.40.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.0.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.3.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.4.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.5.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.6.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.7.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.8.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.0.md +39 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.1.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.3.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.43.0.md +27 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.43.1.md +27 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.44.0.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.44.1.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.45.0.md +34 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.45.1.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.46.0.md +12 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.47.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.48.0.md +32 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.48.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.0.md +26 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.1.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.2.md +39 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.3.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.5.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.6.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.7.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.5.0.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.0.md +25 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.1.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.2.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.3.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.4.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.5.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.6.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.7.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.0.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.1.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.0.md +30 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.1.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.2.md +12 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.3.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.4.md +27 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.5.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.6.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.53.0.md +29 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.54.0.md +26 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.55.0.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.55.1.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.56.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.56.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.57.0.md +32 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.57.1.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.58.0.md +34 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.59.0.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.6.0.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.6.1.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.60.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.0.md +29 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.2.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.3.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.62.0.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.62.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.2.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.3.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.4.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.5.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.0.md +37 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.2.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.65.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.65.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.0.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.1.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.67.0.md +33 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.7.0.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.1.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.3.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.4.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.5.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.6.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.9.0.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/remote-control.md +247 -0
- package/cli/dist/web-ui/docs/cn/cli/sandboxing.md +316 -0
- package/cli/dist/web-ui/docs/cn/cli/scheduled-tasks.md +161 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-custom-tools.md +1195 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-demos.md +347 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-hooks.md +803 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-mcp.md +643 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-permissions.md +501 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-python.md +783 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-sessions.md +332 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-typescript.md +759 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk.md +1105 -0
- package/cli/dist/web-ui/docs/cn/cli/security.md +387 -0
- package/cli/dist/web-ui/docs/cn/cli/settings.md +602 -0
- package/cli/dist/web-ui/docs/cn/cli/skills.md +448 -0
- package/cli/dist/web-ui/docs/cn/cli/slash-commands.md +397 -0
- package/cli/dist/web-ui/docs/cn/cli/statusline.md +525 -0
- package/cli/dist/web-ui/docs/cn/cli/sub-agents.md +634 -0
- package/cli/dist/web-ui/docs/cn/cli/terminal-config.md +77 -0
- package/cli/dist/web-ui/docs/cn/cli/tools-reference.md +99 -0
- package/cli/dist/web-ui/docs/cn/cli/troubleshooting.md +190 -0
- package/cli/dist/web-ui/docs/cn/cli/web-ui.md +164 -0
- package/cli/dist/web-ui/docs/cn/cli/wecom-bot-setup.md +274 -0
- package/cli/dist/web-ui/docs/cn/cli/worktree.md +660 -0
- package/cli/dist/web-ui/docs/en/cli/acp.md +126 -0
- package/cli/dist/web-ui/docs/en/cli/agent-teams.md +327 -0
- package/cli/dist/web-ui/docs/en/cli/bash-sandboxing.md +357 -0
- package/cli/dist/web-ui/docs/en/cli/best-practices.md +554 -0
- package/cli/dist/web-ui/docs/en/cli/channels-reference.md +293 -0
- package/cli/dist/web-ui/docs/en/cli/channels.md +215 -0
- package/cli/dist/web-ui/docs/en/cli/checkpointing.md +53 -0
- package/cli/dist/web-ui/docs/en/cli/cli-reference.md +187 -0
- package/cli/dist/web-ui/docs/en/cli/common-workflows.md +1011 -0
- package/cli/dist/web-ui/docs/en/cli/costs.md +174 -0
- package/cli/dist/web-ui/docs/en/cli/devcontainer.md +553 -0
- package/cli/dist/web-ui/docs/en/cli/env-vars.md +326 -0
- package/cli/dist/web-ui/docs/en/cli/gitlab-ci-cd.md +357 -0
- package/cli/dist/web-ui/docs/en/cli/headless.md +258 -0
- package/cli/dist/web-ui/docs/en/cli/hooks-guide.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/hooks.md +801 -0
- package/cli/dist/web-ui/docs/en/cli/iam.md +526 -0
- package/cli/dist/web-ui/docs/en/cli/ide-integrations.md +92 -0
- package/cli/dist/web-ui/docs/en/cli/installation.md +266 -0
- package/cli/dist/web-ui/docs/en/cli/interactive-mode.md +233 -0
- package/cli/dist/web-ui/docs/en/cli/mcp.md +739 -0
- package/cli/dist/web-ui/docs/en/cli/memory.md +436 -0
- package/cli/dist/web-ui/docs/en/cli/models.md +355 -0
- package/cli/dist/web-ui/docs/en/cli/overview.md +100 -0
- package/cli/dist/web-ui/docs/en/cli/plugin-marketplaces.md +534 -0
- package/cli/dist/web-ui/docs/en/cli/plugins-reference.md +774 -0
- package/cli/dist/web-ui/docs/en/cli/plugins.md +688 -0
- package/cli/dist/web-ui/docs/en/cli/quickstart.md +249 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/README.md +193 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.10.0.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.10.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.11.0.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.12.0.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.13.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.14.0.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.14.1.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.15.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.15.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.16.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.17.0.md +29 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.18.0.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.0.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.1.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.2.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.20.0.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.20.1.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.21.0.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.22.0.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.0.md +41 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.3.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.4.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.5.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.24.0.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.25.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.25.1.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.26.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.0.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.1.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.2.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.3.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.28.0.md +26 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.28.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.29.0.md +35 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.3.1.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.30.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.30.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.0.md +51 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.2.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.32.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.33.0.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.33.1.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.34.0.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.34.1.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.35.0.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.0.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.2.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.3.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.0.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.1.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.10.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.11.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.12.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.13.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.14.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.15.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.16.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.17.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.18.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.19.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.2.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.20.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.3.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.4.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.5.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.6.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.7.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.8.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.9.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.0.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.2.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.39.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.4.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.40.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.40.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.0.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.3.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.4.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.5.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.6.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.7.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.8.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.0.md +39 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.1.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.3.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.43.0.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.43.1.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.44.0.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.44.1.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.45.0.md +34 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.45.1.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.46.0.md +12 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.47.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.48.0.md +32 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.48.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.0.md +26 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.1.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.2.md +39 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.3.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.5.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.6.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.7.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.5.0.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.0.md +25 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.1.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.2.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.3.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.4.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.5.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.6.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.7.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.0.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.1.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.0.md +30 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.1.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.2.md +12 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.3.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.4.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.5.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.6.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.53.0.md +29 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.54.0.md +26 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.55.0.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.55.1.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.56.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.56.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.57.0.md +32 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.57.1.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.58.0.md +34 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.59.0.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.6.0.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.6.1.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.60.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.0.md +29 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.2.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.3.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.62.0.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.62.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.2.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.3.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.4.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.5.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.0.md +37 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.2.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.65.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.65.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.0.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.1.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.67.0.md +33 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.7.0.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.1.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.3.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.4.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.5.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.6.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.9.0.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/remote-control.md +247 -0
- package/cli/dist/web-ui/docs/en/cli/sandboxing.md +316 -0
- package/cli/dist/web-ui/docs/en/cli/scheduled-tasks.md +160 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-custom-tools.md +1131 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-demos.md +347 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-hooks.md +813 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-mcp.md +645 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-permissions.md +461 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-python.md +797 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-sessions.md +340 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-typescript.md +770 -0
- package/cli/dist/web-ui/docs/en/cli/sdk.md +1103 -0
- package/cli/dist/web-ui/docs/en/cli/security.md +388 -0
- package/cli/dist/web-ui/docs/en/cli/settings.md +602 -0
- package/cli/dist/web-ui/docs/en/cli/skills.md +448 -0
- package/cli/dist/web-ui/docs/en/cli/slash-commands.md +397 -0
- package/cli/dist/web-ui/docs/en/cli/statusline.md +525 -0
- package/cli/dist/web-ui/docs/en/cli/sub-agents.md +621 -0
- package/cli/dist/web-ui/docs/en/cli/terminal-config.md +77 -0
- package/cli/dist/web-ui/docs/en/cli/tools-reference.md +99 -0
- package/cli/dist/web-ui/docs/en/cli/troubleshooting.md +190 -0
- package/cli/dist/web-ui/docs/en/cli/web-ui.md +164 -0
- package/cli/dist/web-ui/docs/en/cli/wecom-bot-setup.md +274 -0
- package/cli/dist/web-ui/docs/en/cli/worktree.md +660 -0
- package/cli/dist/web-ui/docs/search-index-en.json +1 -0
- package/cli/dist/web-ui/docs/search-index-zh.json +1 -0
- package/cli/dist/web-ui/docs/sidebar-en.json +1 -0
- package/cli/dist/web-ui/docs/sidebar-zh.json +1 -0
- package/cli/dist/web-ui/index.html +2 -2
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +4 -3
- package/cli/product.internal.json +4 -3
- package/cli/product.ioa.json +4 -3
- package/cli/product.json +13 -6
- package/cli/product.selfhosted.json +4 -3
- package/package.json +1 -1
- package/cli/dist/web-ui/assets/index-4SCgPWnj.css +0 -32
- package/cli/dist/web-ui/assets/index-BijmmKDe.js +0 -391
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
# CodeBuddy Code Skills (技能系统)
|
|
2
|
+
|
|
3
|
+
Skills 是 CodeBuddy Code 的扩展能力系统,允许您创建专业的领域知识和工作流模板,让 AI 助手能够更专业地处理特定类型的任务。
|
|
4
|
+
|
|
5
|
+
## 什么是 Skills
|
|
6
|
+
|
|
7
|
+
Skills 类似于为 AI 助手提供的"专业培训"。通过 Skill,您可以:
|
|
8
|
+
|
|
9
|
+
- **封装专业知识**:将特定领域的最佳实践和操作流程封装成可复用的技能
|
|
10
|
+
- **提供工作流模板**:定义标准化的任务处理流程,提高工作效率
|
|
11
|
+
- **扩展 AI 能力**:让 AI 助手能够处理更专业、更复杂的任务
|
|
12
|
+
- **团队协作共享**:项目级 Skills 可以在团队成员间共享专业知识
|
|
13
|
+
|
|
14
|
+
## Skills vs Slash Commands
|
|
15
|
+
|
|
16
|
+
| 特性 | Skills | Slash Commands |
|
|
17
|
+
|-----|--------|----------------|
|
|
18
|
+
| **触发方式** | AI 模型自动识别并调用 | 用户手动输入命令 |
|
|
19
|
+
| **使用场景** | 专业领域任务处理 | 快捷操作和工作流 |
|
|
20
|
+
| **权限控制** | 支持工具白名单限制 | 无特殊权限控制 |
|
|
21
|
+
| **工作目录** | 支持自定义基础目录 | 使用当前工作目录 |
|
|
22
|
+
| **可见性** | 对用户透明,AI 自动决策 | 用户主动发起 |
|
|
23
|
+
|
|
24
|
+
**简单来说**:
|
|
25
|
+
- **Slash Commands** 是用户主动调用的快捷方式
|
|
26
|
+
- **Skills** 是 AI 根据任务需求自动选择的专业能力
|
|
27
|
+
|
|
28
|
+
## 创建 Skills
|
|
29
|
+
|
|
30
|
+
### 目录结构
|
|
31
|
+
|
|
32
|
+
Skills 通过在特定目录中创建 `SKILL.md` 文件来定义:
|
|
33
|
+
|
|
34
|
+
1. **项目级 Skills**:`.codebuddy/skills/`(项目根目录下)
|
|
35
|
+
2. **用户级 Skills**:`~/.codebuddy/skills/`(用户主目录下)
|
|
36
|
+
|
|
37
|
+
每个 Skill 一个独立的目录,包含 `SKILL.md` 文件:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
.codebuddy/skills/
|
|
41
|
+
├── pdf/
|
|
42
|
+
│ └── SKILL.md
|
|
43
|
+
├── data-analysis/
|
|
44
|
+
│ └── SKILL.md
|
|
45
|
+
└── code-review/
|
|
46
|
+
└── SKILL.md
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### SKILL.md 格式
|
|
50
|
+
|
|
51
|
+
Skill 文件使用 Markdown 格式,支持 YAML Frontmatter 定义元数据:
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
|
|
55
|
+
你是一个 PDF 文档处理专家,擅长:
|
|
56
|
+
- 解析和提取 PDF 内容
|
|
57
|
+
- 转换 PDF 为其他格式
|
|
58
|
+
- 生成 PDF 报告
|
|
59
|
+
|
|
60
|
+
当用户需要处理 PDF 相关任务时,请使用以下工作流:
|
|
61
|
+
1. 首先检查 PDF 文件是否存在
|
|
62
|
+
2. 使用适当的工具提取内容
|
|
63
|
+
3. 根据需求进行处理
|
|
64
|
+
4. 生成结果报告
|
|
65
|
+
|
|
66
|
+
可用工具:
|
|
67
|
+
- pdftotext:提取文本内容
|
|
68
|
+
- pdfinfo:获取 PDF 信息
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Frontmatter 字段
|
|
72
|
+
|
|
73
|
+
| 字段 | 必填 | 说明 | 示例 |
|
|
74
|
+
|-----|------|------|------|
|
|
75
|
+
| `name` | 否 | Skill 名称,未指定时使用目录名 | `pdf` |
|
|
76
|
+
| `description` | 否 | Skill 描述,帮助 AI 理解何时使用 | `PDF 文档处理专家 (project)` |
|
|
77
|
+
| `allowed-tools` | 否 | 允许使用的工具白名单,逗号分隔 | `Read, Write, Bash` |
|
|
78
|
+
| `disable-model-invocation` | 否 | 设置为 `true` 时,Skill 不会出现在 Skill 工具中,只能通过 `/skill-name` 手动触发 | `true` |
|
|
79
|
+
| `user-invocable` | 否 | 设置为 `false` 时,Skill 从 `/` 菜单中隐藏,仅供 AI 内部调用或其他 Skill 引用,默认 `true` | `false` |
|
|
80
|
+
| `context` | 否 | 设置为 `fork` 时,Skill 在独立的 subagent 上下文中执行 | `fork` |
|
|
81
|
+
| `agent` | 否 | 指定 subagent 类型,仅在 `context: fork` 时有效 | `Explore` |
|
|
82
|
+
|
|
83
|
+
## 执行 Shell 命令
|
|
84
|
+
|
|
85
|
+
与[斜杠命令](slash-commands.md)一样,Skills 也支持在 SKILL.md 中使用 `!`command`` 语法内联执行 Shell 命令。当 Skill 被触发时(无论是 AI 自动调用还是用户通过 `/skill-name` 手动触发),这些命令会被执行,输出结果会替换到 Skill 内容中,供 AI 后续分析。
|
|
86
|
+
|
|
87
|
+
**示例**:
|
|
88
|
+
|
|
89
|
+
```markdown
|
|
90
|
+
---
|
|
91
|
+
description: 项目状态分析
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
### 当前工作目录
|
|
95
|
+
|
|
96
|
+
!`echo "CWD=$(pwd)"`
|
|
97
|
+
|
|
98
|
+
### Git 状态
|
|
99
|
+
|
|
100
|
+
!`git status --short`
|
|
101
|
+
|
|
102
|
+
### 最近提交
|
|
103
|
+
|
|
104
|
+
!`git log --oneline -5`
|
|
105
|
+
|
|
106
|
+
请基于以上信息分析项目当前状态。
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 支持的特性
|
|
110
|
+
|
|
111
|
+
- **`$ARGUMENTS` 参数替换**:在 Shell 命令执行前,`$ARGUMENTS` 会被替换为用户传入的参数
|
|
112
|
+
- **`@file` 文件引用**:Shell 命令执行后,`@file` 引用会被处理并注入文件内容
|
|
113
|
+
- **错误隔离**:单个命令执行失败不会影响其他命令,失败的命令会被替换为空字符串
|
|
114
|
+
|
|
115
|
+
> 💡 **处理管道**:`$ARGUMENTS` 替换 → `!`command`` 执行 → `@file` 引用处理,与斜杠命令的处理顺序一致。
|
|
116
|
+
|
|
117
|
+
## Context Fork
|
|
118
|
+
|
|
119
|
+
`context: fork` 使 Skill 在隔离的子代理上下文中运行,不访问对话历史。
|
|
120
|
+
|
|
121
|
+
```yaml
|
|
122
|
+
---
|
|
123
|
+
name: deep-research
|
|
124
|
+
description: 深入研究某个主题
|
|
125
|
+
context: fork
|
|
126
|
+
agent: Explore
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
研究 $ARGUMENTS:
|
|
130
|
+
1. 使用 Glob 和 Grep 查找相关文件
|
|
131
|
+
2. 读取并分析代码
|
|
132
|
+
3. 总结发现并附加具体文件引用
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### 可用 Agent 类型
|
|
136
|
+
|
|
137
|
+
| 类型 | 说明 |
|
|
138
|
+
|-----|------|
|
|
139
|
+
| `general-purpose` | 通用(默认) |
|
|
140
|
+
| `Explore` | 只读工具,优化代码库探索 |
|
|
141
|
+
| `Plan` | 规划和分析 |
|
|
142
|
+
| 自定义 | `.codebuddy/agents/` 中定义的 agent |
|
|
143
|
+
|
|
144
|
+
### 隐藏 Skill(user-invocable)
|
|
145
|
+
|
|
146
|
+
`user-invocable: false` 使 Skill 从 `/` 菜单中隐藏,适用于:
|
|
147
|
+
- 背景知识类 Skill(如项目规范、编码标准)
|
|
148
|
+
- 仅供其他 Skill 或 AI 内部引用的辅助 Skill
|
|
149
|
+
|
|
150
|
+
```yaml
|
|
151
|
+
---
|
|
152
|
+
name: project-guidelines
|
|
153
|
+
description: 项目编码规范和最佳实践
|
|
154
|
+
user-invocable: false
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
# 项目编码规范
|
|
158
|
+
|
|
159
|
+
本项目遵循以下编码标准:
|
|
160
|
+
- 使用 TypeScript 严格模式
|
|
161
|
+
- 函数命名使用 camelCase
|
|
162
|
+
- 组件命名使用 PascalCase
|
|
163
|
+
...
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
这类 Skill 会被加载到 AI 的上下文中,但用户无法通过 `/` 菜单直接调用。
|
|
167
|
+
|
|
168
|
+
### 执行流程
|
|
169
|
+
|
|
170
|
+
1. 创建新的隔离上下文
|
|
171
|
+
2. 子代理接收 Skill 内容作为提示
|
|
172
|
+
3. `agent` 字段决定执行环境
|
|
173
|
+
4. 结果返回主对话
|
|
174
|
+
|
|
175
|
+
> **注意**:`context: fork` 只适用于包含明确任务的 Skill。仅有指导方针没有具体任务时,不会产生有意义的输出。
|
|
176
|
+
|
|
177
|
+
## 使用示例
|
|
178
|
+
|
|
179
|
+
### 示例 1:PDF 处理 Skill
|
|
180
|
+
|
|
181
|
+
**文件**:`.codebuddy/skills/pdf/SKILL.md`
|
|
182
|
+
|
|
183
|
+
```markdown
|
|
184
|
+
---
|
|
185
|
+
name: pdf
|
|
186
|
+
description: PDF 文档处理和转换专家
|
|
187
|
+
allowed-tools: Read, Write, Bash, WebFetch
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
# PDF 处理专家
|
|
191
|
+
|
|
192
|
+
你是一个专业的 PDF 文档处理专家。
|
|
193
|
+
|
|
194
|
+
## 核心能力
|
|
195
|
+
- 提取 PDF 文本内容
|
|
196
|
+
- 转换 PDF 为 Markdown、HTML 等格式
|
|
197
|
+
- 合并和拆分 PDF 文件
|
|
198
|
+
- 提取 PDF 元数据和书签
|
|
199
|
+
|
|
200
|
+
## 工作流程
|
|
201
|
+
1. 检查 PDF 文件是否存在并可访问
|
|
202
|
+
2. 使用 pdftotext 或 pdfinfo 获取基本信息
|
|
203
|
+
3. 根据任务类型选择合适的处理工具
|
|
204
|
+
4. 验证输出结果的完整性
|
|
205
|
+
|
|
206
|
+
## 可用工具
|
|
207
|
+
- pdftotext:提取纯文本
|
|
208
|
+
- pdfinfo:获取文档信息
|
|
209
|
+
- pdftk:合并拆分操作
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**使用**:当用户询问 "帮我提取这个 PDF 的内容" 时,AI 会自动识别需要 PDF 处理能力并调用该 Skill。
|
|
213
|
+
|
|
214
|
+
### 示例 2:数据分析 Skill
|
|
215
|
+
|
|
216
|
+
**文件**:`~/.codebuddy/skills/data-analysis/SKILL.md`
|
|
217
|
+
|
|
218
|
+
```markdown
|
|
219
|
+
---
|
|
220
|
+
name: data-analysis
|
|
221
|
+
description:数据分析和可视化专家
|
|
222
|
+
allowed-tools: Read, Write, Bash, WebFetch, NotebookEdit
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
# 数据分析专家
|
|
226
|
+
|
|
227
|
+
你是一个专业的数据分析师,擅长使用 Python 和相关工具进行数据分析。
|
|
228
|
+
|
|
229
|
+
## 核心能力
|
|
230
|
+
- 数据清洗和预处理
|
|
231
|
+
- 统计分析和建模
|
|
232
|
+
- 数据可视化
|
|
233
|
+
- 生成分析报告
|
|
234
|
+
|
|
235
|
+
## 分析流程
|
|
236
|
+
1. 理解数据结构和质量
|
|
237
|
+
2. 清洗和预处理数据
|
|
238
|
+
3. 执行统计分析
|
|
239
|
+
4. 创建可视化图表
|
|
240
|
+
5. 生成分析结论
|
|
241
|
+
|
|
242
|
+
## 工具库
|
|
243
|
+
- pandas:数据处理
|
|
244
|
+
- numpy:数值计算
|
|
245
|
+
- matplotlib/seaborn:可视化
|
|
246
|
+
- scikit-learn:机器学习
|
|
247
|
+
|
|
248
|
+
## 最佳实践
|
|
249
|
+
- 始终先探索数据质量
|
|
250
|
+
- 使用 Jupyter Notebook 进行交互式分析
|
|
251
|
+
- 保存中间结果避免重复计算
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### 示例 3:代码审查 Skill
|
|
255
|
+
|
|
256
|
+
**文件**:`.codebuddy/skills/code-review/SKILL.md`
|
|
257
|
+
|
|
258
|
+
```markdown
|
|
259
|
+
---
|
|
260
|
+
name: code-review
|
|
261
|
+
description:代码审查和质量检查专家
|
|
262
|
+
allowed-tools: Read, Grep, Bash, Edit
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
# 代码审查专家
|
|
266
|
+
|
|
267
|
+
你是一个经验丰富的代码审查者,遵循业界最佳实践。
|
|
268
|
+
|
|
269
|
+
## 审查重点
|
|
270
|
+
1. **代码质量**
|
|
271
|
+
- 命名规范
|
|
272
|
+
- 代码复杂度
|
|
273
|
+
- 重复代码
|
|
274
|
+
|
|
275
|
+
2. **安全性**
|
|
276
|
+
- SQL 注入风险
|
|
277
|
+
- XSS 漏洞
|
|
278
|
+
- 认证授权问题
|
|
279
|
+
|
|
280
|
+
3. **性能**
|
|
281
|
+
- 算法效率
|
|
282
|
+
- 资源使用
|
|
283
|
+
- 缓存策略
|
|
284
|
+
|
|
285
|
+
4. **可维护性**
|
|
286
|
+
- 代码注释
|
|
287
|
+
- 模块化设计
|
|
288
|
+
- 测试覆盖
|
|
289
|
+
|
|
290
|
+
## 审查流程
|
|
291
|
+
1. 理解代码变更的目的
|
|
292
|
+
2. 检查代码风格和规范
|
|
293
|
+
3. 分析潜在的 Bug 和性能问题
|
|
294
|
+
4. 验证安全性
|
|
295
|
+
5. 提供建设性的改进建议
|
|
296
|
+
|
|
297
|
+
## 输出格式
|
|
298
|
+
- ✅ 优点:列出做得好的地方
|
|
299
|
+
- ⚠️ 问题:指出需要改进的地方
|
|
300
|
+
- 💡 建议:提供具体的改进方案
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
## AI 如何选择 Skills
|
|
304
|
+
|
|
305
|
+
AI 根据以下因素决定是否调用 Skill:
|
|
306
|
+
|
|
307
|
+
1. **任务匹配度**:任务描述与 Skill description 的相关性
|
|
308
|
+
2. **工具需求**:任务所需工具是否在 allowed-tools 范围内
|
|
309
|
+
3. **上下文相关性**:当前对话上下文是否适合使用该 Skill
|
|
310
|
+
4. **Skill 来源**:项目级 Skills 优先于用户级 Skills
|
|
311
|
+
|
|
312
|
+
## 权限控制
|
|
313
|
+
|
|
314
|
+
### allowed-tools 白名单
|
|
315
|
+
|
|
316
|
+
通过 `allowed-tools` 字段限制 Skill 可以使用的工具:
|
|
317
|
+
|
|
318
|
+
```yaml
|
|
319
|
+
allowed-tools: Read, Write, Bash(git:*), Grep
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
支持的工具模式匹配:
|
|
323
|
+
- `Bash(git:*)` - 只允许 git 相关命令
|
|
324
|
+
- `Edit(src/**/*.ts)` - 只允许编辑特定路径文件
|
|
325
|
+
|
|
326
|
+
### 工作目录限制
|
|
327
|
+
|
|
328
|
+
每个 Skill 都有自己的 `baseDirectory`(SKILL.md 所在目录),可以在 Skill 指令中引用:
|
|
329
|
+
|
|
330
|
+
```markdown
|
|
331
|
+
当处理文件时,优先在 {baseDirectory} 目录下查找相关资源。
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
## 最佳实践
|
|
335
|
+
|
|
336
|
+
### 1. 清晰的 Skill 描述
|
|
337
|
+
|
|
338
|
+
```yaml
|
|
339
|
+
# ❌ 不好
|
|
340
|
+
description:处理文件
|
|
341
|
+
|
|
342
|
+
# ✅ 好
|
|
343
|
+
description: PDF 文档解析和转换专家,支持文本提取和格式转换 (project)
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
### 2. 详细的指令内容
|
|
347
|
+
|
|
348
|
+
提供详细的:
|
|
349
|
+
- 核心能力说明
|
|
350
|
+
- 标准工作流程
|
|
351
|
+
- 可用工具列表
|
|
352
|
+
- 常见场景处理方法
|
|
353
|
+
- 输出格式要求
|
|
354
|
+
|
|
355
|
+
### 3. 合理的工具权限
|
|
356
|
+
|
|
357
|
+
只授予必需的工具权限:
|
|
358
|
+
|
|
359
|
+
```yaml
|
|
360
|
+
# ❌ 权限过大
|
|
361
|
+
allowed-tools: Bash
|
|
362
|
+
|
|
363
|
+
# ✅ 精确控制
|
|
364
|
+
allowed-tools: Read, Write, Bash(git:status,git:diff), Grep
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
### 4. 组织 Skill 目录
|
|
368
|
+
|
|
369
|
+
按功能领域组织 Skills:
|
|
370
|
+
|
|
371
|
+
```
|
|
372
|
+
.codebuddy/skills/
|
|
373
|
+
├── document/
|
|
374
|
+
│ ├── pdf/SKILL.md
|
|
375
|
+
│ └── markdown/SKILL.md
|
|
376
|
+
├── data/
|
|
377
|
+
│ ├── analysis/SKILL.md
|
|
378
|
+
│ └── visualization/SKILL.md
|
|
379
|
+
└── code/
|
|
380
|
+
├── review/SKILL.md
|
|
381
|
+
└── refactor/SKILL.md
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
## 调试 Skills
|
|
385
|
+
|
|
386
|
+
### 查看已加载的 Skills
|
|
387
|
+
|
|
388
|
+
使用 `/skills` 命令查看当前已加载的所有 Skills:
|
|
389
|
+
|
|
390
|
+
```
|
|
391
|
+
/skills
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
Skills 面板会显示:
|
|
395
|
+
- **User skills**:用户级 Skills(`~/.codebuddy/skills/`)
|
|
396
|
+
- **Project skills**:项目级 Skills(`.codebuddy/skills/`)
|
|
397
|
+
- **Plugin skills**:插件提供的 Skills
|
|
398
|
+
|
|
399
|
+
每个 Skill 会显示名称和预估的 token 数量。
|
|
400
|
+
|
|
401
|
+
### 常见问题
|
|
402
|
+
|
|
403
|
+
**Q: Skill 没有被触发?**
|
|
404
|
+
- 检查 description 是否清晰描述了 Skill 的功能
|
|
405
|
+
- 确认任务描述与 Skill 能力匹配
|
|
406
|
+
- 验证 allowed-tools 是否包含所需工具
|
|
407
|
+
|
|
408
|
+
**Q: Skill 权限不足?**
|
|
409
|
+
- 检查 allowed-tools 配置
|
|
410
|
+
- 确认工具名称拼写正确
|
|
411
|
+
- 使用模式匹配精确控制权限
|
|
412
|
+
|
|
413
|
+
**Q:项目级和用户级 Skill 冲突?**
|
|
414
|
+
- 项目级 Skills 优先级更高
|
|
415
|
+
- 使用不同的 name 避免冲突
|
|
416
|
+
|
|
417
|
+
## 与其他功能的配合
|
|
418
|
+
|
|
419
|
+
### Skills + Memory
|
|
420
|
+
|
|
421
|
+
Skills 可以访问 Memory 系统存储的信息:
|
|
422
|
+
|
|
423
|
+
```markdown
|
|
424
|
+
在执行数据分析时,参考 Memory 中保存的数据模式和业务规则。
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Skills + Slash Commands
|
|
428
|
+
|
|
429
|
+
Slash Commands 可以引用 Skills:
|
|
430
|
+
|
|
431
|
+
```markdown
|
|
432
|
+
<!-- .codebuddy/commands/analyze-data.md -->
|
|
433
|
+
请使用 data-analysis skill 分析文件:$1
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
### Skills + MCP
|
|
437
|
+
|
|
438
|
+
Skills 可以调用 MCP 提供的外部工具(如果在 allowed-tools 中)。
|
|
439
|
+
|
|
440
|
+
## 下一步
|
|
441
|
+
|
|
442
|
+
- [斜杠命令](slash-commands.md) - 了解用户主动命令
|
|
443
|
+
- [设置配置](settings.md) - 配置工具权限
|
|
444
|
+
- [MCP 集成](mcp.md) - 扩展外部工具能力
|
|
445
|
+
|
|
446
|
+
---
|
|
447
|
+
|
|
448
|
+
*Skills - 让 AI 成为领域专家*
|