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

1.3 KiB

id type title tags importance confidence created updated relations
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-03-01T16:43:47.102663+00:00
target type direction strength edge_id
dfe48a70-b8ab-4bb5-a3d8-6116fa498168 RELATED_TO incoming 0.7 c11d2aa9-e145-49a3-af6d-19d3b9ad5ad3
target type direction strength edge_id
057d7989-0465-413d-9a59-67e186133cec RELATED_TO incoming 0.83 b94782f6-f97d-4dba-ba1a-2d18638a66e5
target type direction strength edge_id
b522690f-6e80-4e70-8c92-0ed14aded8ff RELATED_TO incoming 0.78 6f8497bd-bcdc-48cb-98d4-d034e19f7125
target type direction strength edge_id
e6f9c92a-2964-4ffa-979c-700e7d23bed3 RELATED_TO incoming 0.84 dab7d9a7-efe7-4d0c-a87c-84d3525f36da

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).