OpenProgram Docs

Slash-command references

Checkouts live in references/. OpenProgram's own design: Slash commands.

Feature matrix

Featureclaude-codeopencodeopenclawhermespi-mono
Filesystem scanrecursive, symlink-safeglobnonesingle directorynone
Frontmatter fields15+5n/aabout 60
$ARGUMENTSyesyesnoyesno
$0..$9yesyesnonono
Named $nameyesnononono
${ENV_VAR}yesnonoyesno
!`shell`yesnonoyes, timeoutno
@filenonononono
Conditional pathsyesnononono
context: forkyessubtasknonono
effortyesnononono
MCP auto-slashyesnononono
Embedded hooksyesnononono
Multi-directory overrideyesnononono
realpath dedupyesnononono
i18nnonoyesnono
Provider routingnonoyesnono
Platform filternononoyesno
Dependency checknonorequires, installnono
Hot reloadyesnononono

All five have a description field. Three or more have name, description and body template, frontmatter parsing, and distinct execution modes.

What OpenProgram takes

ProjectTaken
claude-codeDesign wholesale: context: fork, paths, hooks, effort, realpath dedup, MCP auto-slash
opencode$0-9 and arguments[]
openclawrequires as its own field, install hints; descriptions i18n noted as borrowable
hermesTimeout on ! shell blocks, platform filter idea
pi-monoHardcoding only for type: local builtins; otherwise a counterexample

Per project

claude-code

Public skills documentation

AspectDetail
LocationsEnterprise, personal ~/.claude/skills/, project .claude/skills/, nested, --add-dir, plugin
On a name clashEnterprise beats personal, personal beats project; .claude/commands/ loses to a skill
Symlinks, reloadSeveral locations pointing at one target load once. Skill directories are watched; changes apply in the running session
Body$ARGUMENTS, $N, $name, ${CLAUDE_SKILL_DIR}, ${CLAUDE_SESSION_ID}, ${CLAUDE_PROJECT_DIR}, ${CLAUDE_EFFORT}, !`cmd` and ```! blocks. A failing command aborts the invocation
ArgumentsQuotes keep a multi-word argument whole. Arguments no placeholder receives are appended as ARGUMENTS: <value>
ModesInline; context: fork runs in a subagent
Frontmattername, description, when_to_use, argument-hint, arguments, disable-model-invocation, user-invocable, allowed-tools, disallowed-tools, model, effort, context, agent, background, hooks, paths, shell
opencode

references/opencode/packages/opencode/src/config/command.ts

AspectDetail
SourceGlob {command,commands}/**/*.md, absolute paths. Effect Schema validates and merges with content. No dedup, watch or conditional activation
Frontmattertemplate (required), description, agent, model (ConfigModelID), subtask (boolean)
TemplatesPlain expansion, $ARGUMENTS, $0-9; arguments: declares the list
DistinctiveStrongest type safety of the five; subtask: true is a simplified fork; MCP skills return a lazy Promise
openclaw

references/openclaw/src/auto-reply/commands-registry.*

AspectDetail
SourceData-driven hardcoded registry, no filesystem scan, provider-specific mapping (Slack, Mattermost)
ChatCommandDefinitionkey, nativeName, nativeAliases?, description, descriptionLocalizations?, scope (text or native), args?, acceptsArgs
DistinctiveresolveNativeName and the pluginProvider hook; i18n; argument choice menus (CommandArgChoiceContext), like a Discord dropdown
SkillsSKILL.md frontmatter with emoji, requires.anyBins, requires.config, install[]
hermes-agent

references/hermes-agent/tools/skills_tool.py, agent/skill_commands.py, agent/skill_preprocessing.py

AspectDetail
SourceSingle ~/.hermes/skills/: bundled, hub-installed and edited entries coexist; get_external_skills_dirs() extends. trusted_roots with traversal protection
Frontmattermetadata.hermes.config (variables), platforms; metadata.hermes.* beats top-level fields
Body_substitute_template_vars, _expand_inline_shell (timeout), [Skill config: ...] injection
DistinctivePlatform filter, 134 prompt-injection patterns, _secret_capture_callback
pi-mono

references/pi-ai/packages/coding-agent/src/core/slash-commands.ts

Hardcoded builtins (settings, model, export, import, fork, clone), no scan. SlashCommandSource has extension, prompt and skill, but only builtin is used. The trade-off of no extension mechanism at all.

Syncing

  1. cd references && git pull, for example each quarter.
  2. Diff each project against the tables above. Decide on new fields, template syntax, modes and security constraints for Slash commands.
  3. Update this page.
Last updated · 2026-11-25