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

1.8 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-02T20:05:03.521071+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
target type direction strength edge_id
a2d02aea-07fd-4528-8158-f2f42a23a2dd RELATED_TO incoming 0.73 c52bf965-695a-457a-a950-3e824dd87c0e
target type direction strength edge_id
be0bda86-d893-4f86-97c4-0ca4e1073121 RELATED_TO incoming 0.81 d1f29f3c-3be1-48f8-9ea1-aea48bbacf3a
target type direction strength edge_id
2d98e145-1de7-4ea2-8bfb-fd89c364fbcc RELATED_TO incoming 0.82 d785be8d-9b5f-4a00-973d-b6549babdf68

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