building-typer-clis
БесплатноБез исполняемых скриптовНе проверенDeprecated internal reference for building, extending, packaging, migrating, or testing Python CLIs with Typer, including command grammar, typed parameters…
от narumiruna★ 19 звёзд на GitHubОб этом скилле
Building Typer CLIs (Deprecated Reference)
This workflow is excluded from active discovery but retained for repository reference and explicit local compatibility. Preserve the public invocation grammar while keeping Typer commands as thin adapters between typed terminal input and ordinary Python functions.
Load Focused Guidance
| Need | Read |
|---|---|
| Single versus multiple commands, callbacks, context, groups, or help | references/application-architecture.md |
typing.Annotated, defaults, parameter types, prompts, validation, exits, or value completion |
references/parameters-and-runtime.md |
CliRunner, input, streams, files, errors, help, or entry-point tests |
references/testing.md |
Dependency choice, installed commands, python -m, wheels, shell completion, or Typer migration |
references/packaging-and-completion.md |
Workflow
- Inspect
pyproject.toml, the declared Typer version and Python range, existing invocation examples, entry points, app/callback structure, tests, and repository commands. Do not silently upgrade Typer or redesign the CLI. - Preserve command shape deliberately. Typer promotes one registered command to the root grammar,
PROGRAM [ARGS]...; adding a second command, registering a sub-app withapp.add_typer(...), or adding an application callback changes it toPROGRAM COMMAND [ARGS].... Treat that transition, command renames, option renames, and moved root options as public-interface changes. - Use one explicit root
typer.Typer()app. Compose domain groups with explicitapp.add_typer(sub_app, name="...")names and use an application callback only for genuine root options, initialization, documentation, or a deliberate default action. - Prefer
typing.Annotatedwithtyper.Argument()andtyper.Option(). Put static defaults in Python assignments, usedefault_factory=for dynamic defaults, and let Typer perform supported type conversion and boundary validation. - Keep command bodies thin. Use
typer.BadParameterfor parameter-specific validation,typer.Exitfor deliberate termination and exit status, andtyper.Abortfor an aborted interaction. Translate domain failures at the CLI boundary without exposing tracebacks by default. - Keep parameter callbacks and autocompletion fast, side-effect-free, and silent on stdout. When callback work must be skipped during completion, check
ctx.resilient_parsingbefore validation or output. - Wire only the invocation modes the project supports: a guarded
app()for direct scripts,[project.scripts]for installed commands, and package__main__.pyforpython -m package. Exercise the actual installed command when packaging or shell completion is in scope. - Test the current public grammar, typed parsing, success, validation failure, deliberate exits, prompts, stable help fragments, and any filesystem or environment boundary with
typer.testing.CliRunner; test business logic directly.
Constraints
- Add plain
typerthrough the repository's uv workflow only when missing; do not introduce obsolete Typer packages or extras. - Preserve non-interactive use when adding prompts. Keep secrets out of argv where practical, and distinguish value re-entry from affirmative consent for a destructive action.
- Mock or inject external, destructive, costly, or nondeterministic effects in CLI tests.
- Inspect release notes before relying on Click integration, exact Rich help rendering, runner internals, or another version-sensitive surface.
Finish with the supported invocation forms exercised, behavior and exit codes covered, packaging checked when applicable, and exact validation evidence reported.
Установить building-typer-clis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл building-typer-clis?
Deprecated internal reference for building, extending, packaging, migrating, or testing Python CLIs with Typer, including command grammar, typed parameters, callbacks, completion, entry points, and CliRunner behavior.
Как установить скилл building-typer-clis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл building-typer-clis запускает скрипты?
Нет, скилл состоит только из инструкций (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