agent-md-refactor
Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow…
This skill should be used when creating a Claude Code slash command. Use when users ask to "create a command", "make a slash command", "add a command", or want to document a workflow as a reusable command. Essential for creating optimized, agent-executable slash commands with
$ npx -y skills add softaworks/agent-toolkit --skill command-creator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/command-creatorContext preview
The summary Claude sees to decide when to auto-load this skill.
This skill should be used when creating a Claude Code slash command. Use when users ask to "create a command", "make a slash command", "add a command", or want to document a workflow as a reusable command. Essential for creating optimized, agent-executable slash commands with
name: command-creator description: This skill should be used when creating a Claude Code slash command. Use when users ask to "create a command", "make a slash command", "add a command", or want to document a workflow as a reusable command. Essential for creating optimized, agent-executable slash commands with proper structure and best practices.
This skill guides the creation of Claude Code slash commands - reusable workflows that can be invoked with `/command-name` in Claude Code conversations.
Slash commands are markdown files stored in `.claude/commands/` (project-level) or `~/.claude/commands/` (global/user-level) that get expanded into prompts when invoked. They're ideal for:
Invoke this skill when users:
This skill includes reference documentation for detailed guidance:
Load these references as needed when creating commands to understand patterns, see examples, or ensure quality.
Every slash command is a markdown file with:
--- description: Brief description shown in /help (required) argument-hint: <placeholder> (optional, if command takes arguments) --- # Command Title [Detailed instructions for the agent to execute autonomously]
**Auto-detect the appropriate location:**
1. Check git repository status: `git rev-parse --is-inside-work-tree 2>/dev/null` 2. Default location:
3. Allow user override:
Report the chosen location to the user before proceeding.
Help the user understand different command types. Load **references/patterns.md** to see available patterns:
Ask the user: "Which pattern is closest to what you want to create?" This helps frame the conversation.
Ask the user for key information:
Ask:
Guidelines:
Ask:
If command takes arguments:
Ask:
Gather details about:
Ask:
Create the command file with agent-optimized instructions. Load **references/best-practices.md** for:
Key principles:
1. Determine full file path:
2. Ensure directory exists:
mkdir -p [directory-path]
3. Write the command file using the Write tool
4. Confirm with user:
If the user wants to test:
1. Suggest testing: `You can test this command by running: /command-name [arguments]` 2. Be ready to iterate based on feedback 3. Update the file with improvements as needed
**For detailed guidance, load the bundled references:**
Opinionated skills shared by @leonardocouy for improving daily work efficiency with Claude Code. Skills are packaged instructions and scripts that extend agent capabilities across development, documentation, planning, and professional workflows.
Repo: softaworks/agent-toolkit
Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow…
Create API handoff documentation for frontend developers. Use when backend work is complete…
Generate architecture documentation using C4 model Mermaid diagrams. Use when asked to create…
Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex…
Create high-quality git commits: review/stage intended changes, split into logical commits,…
Use when writing or improving README files. Not all READMEs are the same — provides templates…