跳到正文
cccskills
免费在 GitHub 公开

commands-create-slash-command

Create reusable slash commands for Agent Zero using YAML configuration files paired with text templates or Python scripts. It helps choose project or global scope, update existing commands, and report the saved files and exact command to invoke.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Create or edit reusable Agent Zero /commands with YAML and text/Python templates.

查看安装方法

适用场景

  • Turn repeated requests into reusable slash commands
  • Create commands available only within a project
  • Create commands shared across projects
  • Update command settings, templates, or Python scripts

包含的文件(3)

  • SKILL.md2.5 KB
  • template.command.txt42 B
  • template.command.yaml190 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Commands Plugin Slash Command Authoring

Use this skill when the user wants a reusable /command for Agent Zero's built-in _commands plugin.

Source Of Truth

  • Slash commands are file-backed, not database rows.
  • Each command uses:
    • one config file: <slug>.command.yaml
    • one content file:
      • text template: <slug>.txt, or
      • python hook: <slug>.py
  • Required config keys:
    • name
    • description
    • type (text or script)
  • Optional config keys:
    • argument_hint
    • include_history (script commands)
  • Preserve unknown config keys when editing existing commands.

Scope Resolution

Choose the target folder from the requested scope:

  • Project: usr/projects/<project>/.a0proj/plugins/_commands/commands/
  • Global fallback: usr/plugins/_commands/commands/

If the user does not specify a scope, prefer the active chat scope when it is clear. Otherwise use the global scope.

File Rules

  • Config file format: <slug>.command.yaml
  • Slash command name should be lowercase and hyphenated, for example explain-code
  • For text commands, keep the .txt template concise and directly reusable
  • For script commands, implement run(payload) in the .py file
  • If the command expects trailing input, use {raw}, {args.positional.0}, or {args.flags.some_flag}

Use the bundled templates in template.command.yaml and template.command.txt when creating a new text command from scratch.

Editing Workflow

  1. Determine scope and final slash command name.
  2. Check whether a command file already exists in that scope.
  3. If it exists, load the file first and preserve unknown frontmatter keys.
  4. Update YAML config and template/script content.
  5. Save the file in the correct scope folder.
  6. Report:
    • the saved config path
    • the saved content path
    • the slash command name in /name form

Output Contract

After saving, explicitly state the final file path and the exact slash command invocation, for example:

  • Saved config: /a0/usr/plugins/_commands/commands/explain-code.command.yaml
  • Saved content: /a0/usr/plugins/_commands/commands/explain-code.txt
  • Invoke with: /explain-code

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Create specialized Agent Zero profiles by defining their roles, working methods, and delegation criteria. The skill prepares configuration files and instructions, with optional custom tools, extensions, and model preset selection when needed.

中文简介正在准备中。当前显示英语简介。

  • Create a specialist agent for data analysis
  • Define when to delegate work to an agent
  • Customize an agent's workflow and response format
agent0ai/agent-zero2万2026年10月15日 更新

Build, improve, review, or troubleshoot Agent Zero plugins for local use or community distribution. Follow plugin structure and installation rules, verify behavior in the target runtime, and prepare repository and Plugin Index contributions when requested.

中文简介正在准备中。当前显示英语简介。

  • Building an Agent Zero plugin for local use
  • Reviewing an existing plugin's structure and behavior
  • Investigating plugins that fail to load or run
agent0ai/agent-zero2万2026年10月15日 更新

Operate Agent Zero projects, chats, and tasks, or develop new tools, extensions, and API features. The skill guides work through existing APIs, relevant documentation, current source code, and checks appropriate to the change.

中文简介正在准备中。当前显示英语简介。

  • Manage Agent Zero projects and chats
  • Develop custom tools and extensions
  • Add API endpoints or WebUI features
agent0ai/agent-zero2万2026年10月15日 更新

Find Agent Zero plugins that match a task, compare candidates and their requirements, and manage installation, updates, settings, activation, and removal. It also supports security scans and checks the resulting plugin state through framework management APIs.

中文简介正在准备中。当前显示英语简介。

  • Find and compare plugins for a specific task
  • Review service, credential, and cost requirements before installation
  • Scan, install, or update a plugin
agent0ai/agent-zero2万2026年10月15日 更新

Automate web page tasks such as clicking, filling forms, uploading and downloading files, and taking screenshots. Work across tabs using a browser on the connected host machine or inside a Docker container.

中文简介正在准备中。当前显示英语简介。

  • Filling web forms and selecting options
  • Uploading or downloading files through websites
  • Capturing screenshots to inspect page appearance
agent0ai/agent-zero2万2026年10月15日 更新

Create, edit, and install extensions for Agent Zero Browser, including extensions from Chrome Web Store. It guides permission reviews and checks for suspicious behavior, with new extensions built as readable files that users can inspect.

中文简介正在准备中。当前显示英语简介。

  • Create a browser extension for a specific website
  • Modify an existing extension
  • Install an extension from Chrome Web Store
agent0ai/agent-zero2万2026年10月15日 更新

查看 agent0ai 的全部技能

报告此技能的问题