store: Global slash commands are .md files in ~/.claude/commands/

This commit is contained in:
Cal Corum 2026-02-13 14:07:31 -06:00
parent 7dfe83c090
commit 73152be287

View File

@ -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/<name>.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).