24 lines
998 B
Markdown
24 lines
998 B
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-01T14:16:37.828133+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
|
|
---
|
|
|
|
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).
|