Skip to content
cccskills
FreePublished on 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.

OriginalShow the original description

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

See how to install

Good for

  • 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

Files included (3)

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

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

a0-create-agent

FreeSummary

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-zero19.5KUpdated Oct 15, 2026

a0-create-plugin

FreeSummary

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-zero19.5KUpdated Oct 15, 2026

a0-development

FreeSummary

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-zero19.5KUpdated Oct 15, 2026

a0-manage-plugin

FreeSummary

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-zero19.5KUpdated Oct 15, 2026

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-zero19.5KUpdated Oct 15, 2026

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-zero19.5KUpdated Oct 15, 2026

See all skills by agent0ai

Report a problem with this skill