define-usage
БесплатноБез исполняемых скриптовНе проверенDefines or updates usage help for built-in commands. Use when adding help documentation to commands that don't have it, or fixing inaccurate help text.
Об этом скилле
Define Usage Skill
Step-by-step process for adding or updating usage help documentation for built-in commands in feather.
When to Use This Skill
- Adding usage help to a command that doesn't have it
- Fixing inaccurate or outdated help text
- Ensuring help text matches Feather's actual capabilities (not TCL's)
Working Process
1. Check Current Help Status
Test if the command already has usage help:
echo "usage help <command>" | ./bin/feather-tester
If no help exists, you'll see:
no usage defined for "<command>"
2. Review the Command Implementation
Read the command's implementation to understand what it actually does:
# Read the builtin implementation
cat src/builtin_<command>.c
Key things to identify:
- What arguments does it accept?
- What does it return?
- What are the error cases?
- Are there any Feather-specific limitations vs TCL?
3. Check TCL Documentation (If Applicable)
If implementing a TCL command, use the view-manual skill to check the reference manual:
man -P cat n <command>
The TCL manpage provides the authoritative format for help output. Key elements to adapt:
- Subcommand signatures: Show the full signature like
namespace children ?namespace? ?pattern? - Detailed descriptions: Each subcommand should have 1-2 paragraphs explaining its behavior
- Paragraph breaks: Use
\n\nto separate distinct concepts within descriptions
IMPORTANT: Do not copy TCL documentation verbatim. Feather has important differences:
- No array support - Array syntax like
myArray(key)is not supported - Limited standard library - Many TCL commands may not exist
- Cross-references must point to commands that exist in Feather
4. Identify Feather-Specific Constraints
Key differences from TCL to document:
Arrays: Feather does not support TCL-style arrays per CLAUDE.md. If TCL docs mention array functionality, explicitly state arrays are not supported.
Cross-references: Only reference commands that have (or will have) usage help in Feather:
- Keep references if the command will be documented later
- Remove references to standard TCL commands not in Feather
- Use judgment: namespace, global, variable, upvar are core and will be added
5. Write the Usage Registration Function
The usage registration function follows this pattern:
void feather_register_<command>_usage(const FeatherHostOps *ops, FeatherInterp interp) {
FeatherObj spec = feather_usage_spec(ops, interp);
// Command description (for NAME and DESCRIPTION sections)
FeatherObj e = feather_usage_about(ops, interp,
"Brief one-line description",
"Detailed description paragraph 1.\n\n"
"Detailed description paragraph 2.\n\n"
"Note about Feather-specific behavior if needed.");
spec = feather_usage_add(ops, interp, spec, e);
// Required arguments
e = feather_usage_arg(ops, interp, "<argName>");
e = feather_usage_help(ops, interp, e, "Description of argument");
spec = feather_usage_add(ops, interp, spec, e);
// Optional arguments
e = feather_usage_arg(ops, interp, "?optionalArg?");
e = feather_usage_help(ops, interp, e, "Description of optional argument");
spec = feather_usage_add(ops, interp, spec, e);
// Examples
e = feather_usage_example(ops, interp,
"command arg1 arg2",
"Description of what this example does",
NULL);
spec = feather_usage_add(ops, interp, spec, e);
feather_usage_register(ops, interp, "<command>", spec);
}
6. Add Declaration and Registration
Add to src/internal.h:
void feather_register_<command>_usage(const FeatherHostOps *ops, FeatherInterp interp);
Add call in src/interp.c in the feather_register_usage() function:
feather_register_<command>_usage(ops, interp);
7. Build and Test
# Build the project
mise build
# View the generated help
echo "usage help <command>" | ./bin/feather-tester
Review the output carefully:
- Is the SYNOPSIS correct?
- Does the DESCRIPTION match Feather's behavior?
- Are Feather-specific notes clear?
- Are examples helpful and accurate?
- Do cross-references point to real/future commands?
8. Verify Formatting
The help output should follow Unix manpage format:
command(1) General Commands Manual command(1)
NAME
command - Brief description
SYNOPSIS
command <required> ?optional?
DESCRIPTION
Detailed description with proper paragraph breaks.
Second paragraph if needed.
ARGUMENTS
<required>
Description of required arg
?optional?
Description of optional arg
EXAMPLES
Description of example:
command example code
9. Commit Changes
Use the commit skill or create a descriptive commit:
git add -A
git commit -m "Add usage help for <command> command
Implemented comprehensive usage documentation including:
- NAME and SYNOPSIS sections
- Det
Установить define-usage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл define-usage?
Defines or updates usage help for built-in commands. Use when adding help documentation to commands that don't have it, or fixing inaccurate help text.
Как установить скилл define-usage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл define-usage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic