From 73152be28723232405c5b5f066f550b3c0a3a5ab Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Fri, 13 Feb 2026 14:07:31 -0600 Subject: [PATCH] store: Global slash commands are .md files in ~/.claude/commands/ --- ...commands-are-md-files-in-claudecommands-e9e6a1.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 graph/code-patterns/global-slash-commands-are-md-files-in-claudecommands-e9e6a1.md diff --git a/graph/code-patterns/global-slash-commands-are-md-files-in-claudecommands-e9e6a1.md b/graph/code-patterns/global-slash-commands-are-md-files-in-claudecommands-e9e6a1.md new file mode 100644 index 00000000000..7442dba1560 --- /dev/null +++ b/graph/code-patterns/global-slash-commands-are-md-files-in-claudecommands-e9e6a1.md @@ -0,0 +1,12 @@ +--- +id: e9e6a15a-bec3-4b62-98c9-4a70a5165348 +type: code_pattern +title: "Global slash commands are .md files in ~/.claude/commands/" +tags: [claude-code, pattern, slash-commands, config] +importance: 0.6 +confidence: 0.8 +created: "2026-02-13T20:07:31.742736+00:00" +updated: "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).