Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sync-cli-skill

БесплатноБез исполняемых скриптовНе проверен

Synchronize the base44-cli skill with the latest CLI source code from the Base44 CLI repository

base44от base44★ 96 звёзд на GitHub

Об этом скилле

Sync CLI Skill

Synchronize the skills/base44-cli/ skill with the latest CLI source code from the Base44 CLI repository using git-based change detection.

Usage

When activated, this skill will ask for:

  1. CLI source folder path (required) - The local path to the Base44 CLI source code (must be a git repository)

How It Works

This skill uses git to efficiently detect changes:

  1. Reads the locally stored version from CLI_VERSION (e.g., v0.0.17)
  2. Compares against the CLI source repository to find changed command files
  3. Only processes commands that have actually changed

Steps

Step 1: Gather Input

Ask the user for the CLI source folder path using the AskQuestion tool if available, otherwise ask conversationally:

Required:

  • CLI source folder path (e.g., ~/projects/base44-cli or /Users/me/base44-cli)

If the user provided this in the initial prompt, use that value.

Step 2: Validate Source Folder and Discover Structure

  1. Check that the provided path exists and is a git repository (.git/ directory exists)
  2. Check for package.json with CLI-related content
  3. Discover the commands directory - look for directories containing command files:
    • Common patterns: src/cli/commands/, src/commands/, commands/, lib/commands/
    • Look for files with .command( or program.command patterns
  4. Identify the CLI source root - the parent directory containing both commands and shared code

Store these discovered paths for use in subsequent steps:

  • <commands-path>: Path to commands directory (e.g., src/cli/commands)
  • <cli-root>: Path to CLI source root (e.g., src/cli)

If validation fails or structure is unclear, ask the user to clarify.

Step 3: Read Local Version and Detect Changes

  1. Read the stored version from CLI_VERSION in the skills repository root (e.g., v0.0.17)

  2. Get changed command files using git in the CLI source folder:

    # From the CLI source folder, list command files changed since the stored version
    git diff --name-only <stored-version> HEAD -- <commands-path>
    

    If the stored version tag doesn't exist, fall back to:

    # List all command files if tag is missing
    git ls-files <commands-path>
    
  3. Get infrastructure changes (CLI source root excluding commands):

    # From the CLI source folder, list infra files changed since the stored version
    git diff --name-only <stored-version> HEAD -- <cli-root> | grep -v "<commands-path>"
    
  4. Present findings to the user before proceeding:

    Found X changed command files since vX.X.X:
    - <commands-path>/deploy.ts
    - <commands-path>/entities/push.ts
    - <commands-path>/auth/login.ts
    
    Found Y infrastructure changes (may affect all commands):
    - <cli-root>/utils/api-client.ts
    - <cli-root>/config/defaults.ts
    
  5. If no changes detected (neither commands nor infra): Report "No changes since version X" and exit

Step 4: Check Infrastructure Changes

Before processing individual commands, review any infrastructure changes that may affect all commands:

What to Look For

Review each changed non-command file and categorize by impact type:

Impact Type What to look for Documentation Action
API/Client changes Base URLs, endpoints, headers, request/response handling May affect multiple commands' behavior
Config/Defaults Default values, environment variables, config file paths Update SKILL.md config section
Authentication Token handling, login flow, session management Update auth-related references
Global options CLI-wide flags like --verbose, --json, --help Update SKILL.md global options
Output formatting How results are displayed, logging behavior Note in affected command references
Types/Interfaces Shared type definitions Usually internal, but may indicate API changes
Error handling Exit codes, error messages, validation Update troubleshooting section
Dependencies package.json changes Check for behavior-affecting updates

Note: The actual file structure varies by CLI. Discover the structure by examining the git diff output rather than assuming specific paths.

How to Handle Infra Changes

  1. Read each changed infra file to understand what changed
  2. Identify cross-cutting impacts:
    • New global options → Update SKILL.md "Global Options" section
    • Changed defaults → Note in affected command references
    • Auth flow changes → Update auth-related references
    • New environment variables → Document in SKILL.md
    • API endpoint changes → May affect multiple commands
  3. Flag for SKILL.md update if the change affects:
    • How users configure the CLI
    • Prerequisites or setup steps
    • Error messages users might see
    • Output format

Example Infrastructure Change

Changed file: (some config/default
Полный SKILL.md на GitHub

Установить sync-cli-skill в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл sync-cli-skill?

Synchronize the base44-cli skill with the latest CLI source code from the Base44 CLI repository

Как установить скилл sync-cli-skill?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sync-cli-skill запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sync-cli-skill с