13 lines
662 B
Markdown
13 lines
662 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-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).
|