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.

templatesfile-reference.md

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

File Reference Command Template

@path でファイルを参照するコマンドテンプレート。 ファイル分析、説明、リファクタ提案などに最適。

Template

---
description: <短い説明>
argument-hint: [file-path]
---

# <Command Title>

## Target
@$ARGUMENTS

## Your task
<ファイルに対してやること>

## Constraints
- <制約>

## Output
- <出力形式>

@ 参照の書き方

固定ファイル

Review the config: @src/config.ts

引数で受け取り

Review the file: @$ARGUMENTS

複数ファイル

Compare these files:
- @$1
- @$2

Example: File Explainer

---
description: Explain what a file does
argument-hint: [file-path]
---

# Explain File

## Target
@$ARGUMENTS

## Your task
- Read and understand the file
- Explain its purpose and functionality
- Describe key functions/classes

## Constraints
- Do not edit the file
- Keep explanation concise (under 500 words)

## Output
- Purpose (1-2 sentences)
- Key components (bullet list)
- How it fits in the codebase

Example: Refactor Suggester

---
description: Suggest refactoring for a file
argument-hint: [file-path]
---

# Suggest Refactoring

## Target
@$ARGUMENTS

## Your task
- Analyze the file structure and code quality
- Identify refactoring opportunities
- Provide concrete suggestions with code examples

## Constraints
- Do not edit the file (suggestions only)
- Focus on high-impact improvements

## Output
- Current issues (bullet list)
- Suggested refactorings with:
  - What to change
  - Why it improves the code
  - Example code snippet

Example: Compare Files

---
description: Compare two files
argument-hint: [file1] [file2]
---

# Compare Files

## Files
- File 1: @$1
- File 2: @$2

## Your task
- Compare the two files
- Identify similarities and differences
- Suggest if they can be unified or refactored

## Constraints
- Do not edit files
- Be objective in comparison

## Output
- Similarities (bullet list)
- Differences (bullet list)
- Recommendation

注意点

  • @ 参照はコンテキストを消費する
  • 大きなファイルは避けるか、必要な部分だけ参照
  • 存在しないファイルを参照するとエラーになる

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