Index of every page on this site: llms.txt
All skills
superstone-han avatar

/claude-code-command-author

@f5f9792
Run it yourself

Claude Codeのカスタムslash command(Commands)を設計・生成・更新する。 「/コマンドを作りたい」「この作業を毎回同じ手順でやりたいのでコマンド化したい」「.claude/commandsにテンプレを追加したい」 「Claude Codeのcommands作って」「スラッシュコマンド作成」「引数付きコマンド」「allowed-toolsを設定したい」などの依頼で発動する。 プロジェクト用(.claude/commands)・個人用(~/.claude/commands)・サブディレクトリ(namespacing)・引数($ARGUMENTS/$1..)・bash事前実行(!)・ファイル参照(@)・context:fork などに対応する。

Use this Skill: https://skilld.dev/gh/superstone-han/dotfiles/claude-code-command-author

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

templatesgit-context.md

≈550 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Git Context Command Template

git status/diff/log を事前に埋め込むコマンドテンプレート。 コミットメッセージ生成、差分レビューなどに最適。

Template

---
description: <短い説明>
allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*)
argument-hint: [optional-args]
---

# <Command Title>

## Context
- status: !`git status`
- diff: !`git diff HEAD`
- recent commits: !`git log --oneline -10`

## Your task
<このコンテキストを使ってやること>

## Constraints
- Do not run destructive git commands (push, reset --hard, etc.)
- If changes are unclear, ask for clarification

## Output
- <出力形式>

allowed-tools の調整

最小限(status のみ)

allowed-tools: Bash(git status:*)

標準(status + diff)

allowed-tools: Bash(git status:*), Bash(git diff:*)

フル(status + diff + log)

allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*)

Example: Commit Message Generator

---
description: Generate commit message from staged changes
allowed-tools: Bash(git status:*), Bash(git diff:*)
---

# Generate Commit Message

## Context
- status: !`git status`
- staged diff: !`git diff --cached`

## Your task
- Analyze the staged changes
- Generate a concise, conventional commit message
- Follow the format: type(scope): description

## Constraints
- Do not actually commit (only generate the message)
- Keep the message under 72 characters for the first line

## Output
- Suggested commit message in a code block
- Brief explanation of why this message fits

Example: Diff Review

---
description: Review uncommitted changes
allowed-tools: Bash(git status:*), Bash(git diff:*)
---

# Review Changes

## Context
- status: !`git status`
- all changes: !`git diff HEAD`

## Your task
- Review all uncommitted changes
- Check for: bugs, security issues, incomplete code
- Identify files that might need more attention

## Constraints
- Do not edit files
- Focus on potential issues, not style

## Output
- Summary of changes by file
- List of concerns (if any)
- Recommendation: ready to commit / needs work

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning8mo3 checks · Risk SAFE
  • Gen Agent Trust Hub8mo

    This skill is a utility designed to help users create custom slash commands for Claude Code. It provides structured templates and clear instructions that emphasize security best practices, such as using 'allowed-tools' to restrict shell command execution to a safe white-list and explicitly forbidding the use of networking or destructive tools like curl and rm.

  • Socket8mo

    1 alert: gptSecurity

  • Snyk8mo

    Risk: LOW · No issues

Signed by skilld at f5f9792. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 10 months ago

README badge

README badge for superstone-han/dotfiles/claude-code-command-author