plugins/_commands/skills/commands-create-slash-command/SKILL.md
Use this skill when the user wants a reusable /command for Agent Zero's built-in _commands plugin.
<slug>.command.yaml<slug>.txt, or<slug>.pynamedescriptiontype (text or script)argument_hintinclude_history (script commands)Choose the target folder from the requested scope:
usr/projects/<project>/.a0proj/plugins/_commands/commands/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.
<slug>.command.yamlexplain-code.txt template concise and directly reusablerun(payload) in the .py file{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.
/name formAfter 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.yamlSaved content: /a0/usr/plugins/_commands/commands/explain-code.txtInvoke with: /explain-code