Логотип Design Cli

Design Cli

Спільнота
mzbac
design-cli

Design or review agent-friendly command-line interfaces for tools, wrappers, and internal platforms. Use when Codex needs to create a new CLI, simplify an existing one, map real workflows to commands and flags, improve `--help` and error behavior, define stdout/stderr and file output contracts, add safety rails for destructive actions, or turn an API/service/browser workflow into a shell-first interface that humans and agents can drive reliably.

Огляд

Видавецьmzbac
Репозиторійskills
Назва навичкиdesign-cli
Зірки
27
Форки
1
Файли в пакеті
2
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 2

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем mzbac. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Design Cli у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/mzbac/skills/tree/main/skills/design-cli
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mzbac/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/design-cli .claude/skills/design-cli
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Design Cli в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Design Cli, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Design Cli не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Design CLI

Design the interface around the operator's real work, not the system's internal nouns.

Start from repeated tasks, decisions, artifacts, and risks. Create the smallest command surface that makes those paths obvious and safe, then leave an escape hatch to the shell, files, or existing tools for everything else.

Default Deliverable

Unless the user asks for code only, work through these outputs:

  1. Operator model: who runs the command and what success looks like
  2. Proposed command surface: verbs, nouns, flags, stdin/files, examples
  3. Help contract: what --help teaches on the happy path
  4. Output contract: stdout, stderr, exit codes, files, JSON if needed
  5. Safety model: dry run, confirmation, overwrite, rollback
  6. Implementation notes: parser changes, tests, docs/help updates

If the user asks for implementation, turn the design into code and tests in the repo's existing CLI framework.

Workflow

1. Model the job

  • Name the operator: human, agent, automation, or mixed.
  • State the desire path as a short sentence: "take X and produce Y safely."
  • Separate control inputs from payloads:
    • Use flags for control knobs.
    • Use stdin or files for larger content.
    • Use stdout for the primary result.
    • Use stderr for progress and diagnostics.
  • Identify irreversible or high-cost actions early.

2. Choose the command shape

  • Prefer a few obvious verbs over a tree that mirrors backend tables or REST endpoints.
  • Keep the happy path short. Push rare configuration into flags or deeper subcommands.
  • Use names that describe intent, such as plan, check, diff, apply, cancel, resume, or export.
  • Support non-interactive execution when the workflow will be agent-driven.
  • Keep naming and flag semantics consistent across sibling commands.
  • Do not map internal nouns 1:1 into commands unless they already match operator language.

3. Design progressive help

  • Make the first help line say exactly what the command does.
  • Show 3-5 copy/pasteable examples before the exhaustive flag list.
  • Put required inputs, defaults, and file/output behavior near the top.
  • Make --help sufficient for the common path.

4. Make errors corrective

  • Print failures to stderr.
  • Include what failed, why it likely failed, and the exact next step to recover.
  • Use non-zero exit codes for failures. Split user error from system error when that distinction matters.
  • Do not hide failure inside conversational prose while still exiting 0.

5. Design the output contract

  • Use stable plain text by default when humans or LLMs will read the result directly.
  • Use JSON only when structured interchange is actually needed.
  • For large outputs, write files and print a short summary plus the artifact path.
  • Keep stdout parseable. Do not mix logs, banners, and primary results.
  • Add quiet or verbose modes only when they solve a real problem.

6. Add safety rails

  • Prefer check, diff, or plan before apply.
  • Add --dry-run for commands with side effects.
  • Require explicit confirmation flags for destructive or high-cost actions.
  • Make overwrite or replace behavior explicit.
  • Expose undo or rollback directly when feasible.

7. Iterate from real use

  • Start with terminal, browser, and file-system workflows when the domain is still fuzzy.
  • Watch what the operator repeats, where it hesitates, and what it gets wrong.
  • Convert only the stable repeated patterns into CLI affordances.
  • Keep the CLI narrow enough that it reduces choices instead of recreating the whole product surface.

Review Heuristics

When reviewing an existing CLI, look for:

  • Backend-shaped command trees that do not match user intent
  • Help text that lists flags but does not teach the happy path
  • Commands that interleave logs and results on stdout
  • Errors that lack a concrete fix
  • Missing --dry-run, confirmation, or idempotency
  • Large blobs printed inline instead of saved to files
  • Interactive prompts in workflows that should be scriptable
  • State hidden in memory instead of inspectable files or commands

Implementation Notes

  • Match the repo's existing CLI library and help conventions.
  • Update parser definitions, help text/examples, and tests together.
  • Add tests for help text, exit codes, stdout/stderr separation, dry-run behavior, and destructive confirmation paths.

Use the Reference

Read agent-cli-principles.md when you need a deeper checklist, example command reshapes, or source-derived guidance on help, errors, output, and iterative CLI design.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Design Cli?

Design or review agent-friendly command-line interfaces for tools, wrappers, and internal platforms. Use when Codex needs to create a new CLI, simplify an existing one, map real workflows to commands and flags, improve `--help` and error behavior, define stdout/stderr and file output contracts, add safety rails for destructive actions, or turn an API/service/browser workflow into a shell-first interface that humans and agents can drive reliably.

Навіщо використовувати Design Cli у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Design Cli — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Design Cli у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/mzbac/skills/tree/main/skills/design-cli. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Design Cli?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Design Cli?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Design Cli — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Design Cli?

Навичку опубліковано на GitHub: mzbac. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇