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

49 lines
1.8 KiB
Markdown

---
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-03-02T20:05:03.521071+00:00"
relations:
- target: dfe48a70-b8ab-4bb5-a3d8-6116fa498168
type: RELATED_TO
direction: incoming
strength: 0.7
edge_id: c11d2aa9-e145-49a3-af6d-19d3b9ad5ad3
- target: 057d7989-0465-413d-9a59-67e186133cec
type: RELATED_TO
direction: incoming
strength: 0.83
edge_id: b94782f6-f97d-4dba-ba1a-2d18638a66e5
- target: b522690f-6e80-4e70-8c92-0ed14aded8ff
type: RELATED_TO
direction: incoming
strength: 0.78
edge_id: 6f8497bd-bcdc-48cb-98d4-d034e19f7125
- target: e6f9c92a-2964-4ffa-979c-700e7d23bed3
type: RELATED_TO
direction: incoming
strength: 0.84
edge_id: dab7d9a7-efe7-4d0c-a87c-84d3525f36da
- target: a2d02aea-07fd-4528-8158-f2f42a23a2dd
type: RELATED_TO
direction: incoming
strength: 0.73
edge_id: c52bf965-695a-457a-a950-3e824dd87c0e
- target: be0bda86-d893-4f86-97c4-0ca4e1073121
type: RELATED_TO
direction: incoming
strength: 0.81
edge_id: d1f29f3c-3be1-48f8-9ea1-aea48bbacf3a
- target: 2d98e145-1de7-4ea2-8bfb-fd89c364fbcc
type: RELATED_TO
direction: incoming
strength: 0.82
edge_id: d785be8d-9b5f-4a00-973d-b6549babdf68
---
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).