claude-memory/graph/code-patterns/global-slash-commands-are-md-files-in-claudecommands-e9e6a1.md

662 B

id type title tags importance confidence created updated
e9e6a15a-bec3-4b62-98c9-4a70a5165348 code_pattern Global slash commands are .md files in ~/.claude/commands/
claude-code
pattern
slash-commands
config
0.6 0.8 2026-02-13T20:07:31.742736+00:00 2026-02-13T20:07:31.742736+00:00

Claude Code global slash commands live in ~/.claude/commands/.md. The filename (minus .md) becomes the command name (e.g., sync-config.md → /sync-config). The markdown content is the prompt that gets executed when the command is invoked. Created /sync-config to commit and push ~/.claude config to its Gitea repo (homelab remote, main branch).