sync-cli-skill
БесплатноБез исполняемых скриптовНе проверенSynchronize the base44-cli skill with the latest CLI source code from the Base44 CLI repository
от 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:
- 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:
- Reads the locally stored version from
CLI_VERSION(e.g.,v0.0.17) - Compares against the CLI source repository to find changed command files
- 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-clior/Users/me/base44-cli)
If the user provided this in the initial prompt, use that value.
Step 2: Validate Source Folder and Discover Structure
- Check that the provided path exists and is a git repository (
.git/directory exists) - Check for
package.jsonwith CLI-related content - 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(orprogram.commandpatterns
- Common patterns:
- 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
Read the stored version from
CLI_VERSIONin the skills repository root (e.g.,v0.0.17)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>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>"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.tsIf 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
- Read each changed infra file to understand what changed
- 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
- 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic