Logo von Sync Cli Skill

Sync Cli Skill

Organisation
base44
sync-cli-skill

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

Übersicht

Herausgeberbase44
Repositoryskills
Skill-Namesync-cli-skill
Sterne
92
Forks
21
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von base44 auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Sync Cli Skill in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/base44/skills/tree/main/.claude/skills/sync-cli-skill
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/base44/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/.claude/skills/sync-cli-skill .claude/skills/sync-cli-skill
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Sync Cli Skill in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Sync Cli Skill automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Sync Cli Skill nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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:

    bash
    # 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:

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

    bash
    # 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 TypeWhat to look forDocumentation Action
API/Client changesBase URLs, endpoints, headers, request/response handlingMay affect multiple commands' behavior
Config/DefaultsDefault values, environment variables, config file pathsUpdate SKILL.md config section
AuthenticationToken handling, login flow, session managementUpdate auth-related references
Global optionsCLI-wide flags like --verbose, --json, --helpUpdate SKILL.md global options
Output formattingHow results are displayed, logging behaviorNote in affected command references
Types/InterfacesShared type definitionsUsually internal, but may indicate API changes
Error handlingExit codes, error messages, validationUpdate troubleshooting section
Dependenciespackage.json changesCheck 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/defaults file)

Before:
  export const DEFAULT_TIMEOUT = 30000;
  
After:
  export const DEFAULT_TIMEOUT = 60000;

Impact: All commands now have 60s timeout instead of 30s
Action: Update SKILL.md "Configuration" or "Troubleshooting" section

Step 5: Process Each Changed Command

For each changed command file, perform the following steps:

Step 5a: Route Command to the Correct Skill

Commands are split across skills by concern. Before reading or updating a reference, determine which skill owns the command.

Known command routing:

CommandTarget SkillReason
logsskills/base44-troubleshooter/Troubleshooting / debugging concern
Everything elseskills/base44-cli/Project management concern

For new/unknown commands, reason about ownership based on the command's purpose:

ConcernTarget SkillExamples
Observability, debugging, diagnostics, monitoringskills/base44-troubleshooter/logs, monitor, status, health
Project setup, resource management, deployment, authskills/base44-cli/create, deploy, entities push, login

If a new command's purpose is ambiguous, read its source code and ask: "Would a developer use this to build/manage the app, or to investigate/debug it?" Route accordingly. When genuinely unclear, ask the user.

Use the target skill's references/ folder for reading and writing reference files, and update that skill's SKILL.md command table accordingly.

Step 5b: Read Existing Skill Reference

Read the corresponding reference file from the target skill's references/ folder:

skills/base44-cli/                      <- project management commands
├── SKILL.md
└── references/
    ├── auth-login.md      <- for <commands-path>/auth/login.ts
    ├── auth-logout.md
    ├── auth-whoami.md
    ├── create.md          <- for <commands-path>/create.ts
    ├── deploy.md
    ├── entities-create.md <- for <commands-path>/entities/create.ts
    ├── entities-push.md
    ├── functions-create.md
    ├── functions-deploy.md
    ├── rls-examples.md
    └── site-deploy.md

skills/base44-troubleshooter/           <- troubleshooting commands
├── SKILL.md
└── references/
    └── project-logs.md    <- for <commands-path>/logs.ts (or similar)

Mapping rule: <commands-path>/{parent}/{name}.ts → references/{parent}-{name}.md

If no reference file exists for a new command, note it for creation in the appropriate skill.

Step 5c: Compare Source with Documentation

Compare the CLI source code with the existing skill documentation:

Extract from Source

Parse the command file to extract:

  • Command name and aliases
  • Description/help text
  • Available options and flags (name, alias, description, default, required, type)
  • Usage examples (if present)
  • Subcommands
Detect Changes

Identify differences:

Command-Level:

  1. New commands (source exists, no reference file)
  2. Changed command descriptions

Option/Argument-Level (CRITICAL): 3. New options added 4. Removed options 5. Changed option descriptions 6. Changed option defaults 7. Changed option types (e.g., string to boolean) 8. Changed required status 9. Changed option aliases (e.g., -f to -F) 10. Option converted to positional argument (e.g., create -n my-app → create my-app) 11. Positional argument converted to option (e.g., create my-app → create -n my-app)

Detecting Option ↔ Positional Changes:

Look for these patterns in Commander.js:

  • Named option: .option('-n, --name <value>', 'description') or .requiredOption(...)
  • Positional argument: .argument('<name>', 'description') or in command definition .command('create <name>')

When an option disappears but a positional argument with similar semantics appears (or vice versa), flag this as a breaking change that affects how users invoke the command.

Document the Comparison
Command: deploy (<commands-path>/deploy.ts)

Source options:
  --force (-f): Force deployment [boolean, default: false]
  --env <name>: Target environment [string, required]

Documented options (references/deploy.md):
  --force (-f): Force deploy without confirmation [boolean, default: false]  
  --env <name>: Environment name [string, optional]

Changes detected:
  - --force: description changed
  - --env: required status changed (required vs optional)
Command: create (<commands-path>/create.ts)

Source (current):
  Positional: <name> - The app name [required]
  Options: --template (-t): Template to use [string, optional]

Documented (references/create.md):
  Options:
    -n, --name <name>: The app name [string, required]
    --template (-t): Template to use [string, optional]

Changes detected:
  - BREAKING: --name (-n) option converted to positional argument <name>
    Old syntax: npx base44 create -n my-app
    New syntax: npx base44 create my-app
Step 5d: Update Reference File

Update or create references/{command-name}.md with the following format:

markdown
# base44 {command}

{Description from source}

## Syntax

```bash
npx base44 {command} [options]

Options

OptionDescriptionRequired
-o, --option <value>{description}{yes/no}

Examples

bash
{example usage from source}

Notes

{Any important behavioral notes}


### Step 6: Update Main Skill Files (if needed)

After processing all changed commands, update the SKILL.md of each affected skill:

**For `skills/base44-cli/SKILL.md`** (project management commands):
1. Update the **Available Commands** tables if commands were added/removed
2. Update **Quick Start** if workflow changed
3. Update **Common Workflows** sections if relevant

**For `skills/base44-troubleshooter/SKILL.md`** (troubleshooting commands):
1. Update the **Available Commands** table if troubleshooting commands were added/removed
2. Update the **Troubleshooting Flow** if command behavior changed

**General rules:**
- Keep the existing structure and formatting of each skill
- Do NOT change the frontmatter description unless explicitly asked

### Step 6b: Flag base44-sandbox for review

The `skills/base44-sandbox/` skill (the cloud-sandbox flavor) is **hand-authored** and self-contained — it carries its own concise guidelines and links out to `base44-cli`'s references rather than copying them, so this sync does not edit it automatically. If this sync changed the backend-function authoring conventions in `skills/base44-cli/references/functions-create.md` (directory layout, `function.jsonc` shape, entry-point conventions, naming rules), **flag `skills/base44-sandbox/SKILL.md` for manual review** in the summary so its inline guidance can be updated to match.

### Step 7: Update CLI_VERSION and Skill Frontmatter

After successfully updating all changed commands:

1. Get the current version/commit from the CLI source:
   ```bash
   # Get latest tag, or HEAD commit if no tags
   git describe --tags --always
  1. Update CLI_VERSION in the skills repository root with the new version (e.g., v0.0.47)

  2. Update metadata.sourcePackage in skills/base44-cli/SKILL.md frontmatter. Set name to base44 (the npm package being synced) and version to the new version without the v prefix (e.g., 0.0.47). Example:

    yaml
    metadata:
      sourcePackage:
        name: base44
        version: 0.0.47

    This allows the Base44 CLI to detect when installed skills are out of date.

Step 8: Present Summary

After all updates, present a summary to the user:

## Sync Summary

### Version Updated
- Previous: v0.0.17
- Current: v0.0.20

### Changed Command Files Processed
- <commands-path>/deploy.ts
- <commands-path>/entities/push.ts

### Infrastructure Changes Reviewed
- (list infra files from git diff output)
- Example: config.ts (timeout increased to 60s)
- Example: api-client.ts (no user-facing changes)

### Files Updated
- references/deploy.md (updated options)
- references/entities-push.md (updated description)
- SKILL.md (updated command table, added timeout note)
- CLI_VERSION (v0.0.17 → v0.0.20)
- skills/base44-cli/SKILL.md frontmatter metadata.sourcePackage.version (0.0.17 → 0.0.20)

### Breaking Changes (highlight prominently)
- `create`: `-n, --name` option converted to positional argument
  - Old: `npx base44 create -n my-app`
  - New: `npx base44 create my-app`

### Option Changes
- `deploy --env`: now required (was optional)
- `entities push --dry-run`: default changed from true to false

### New Commands
- (none)

### Removed Commands  
- (none)

### Manual Review Recommended
- [List any changes that need verification]

Important Notes

  • Git-based detection: This skill relies on git tags/commits to detect changes. Ensure the CLI source folder is a valid git repository.
  • Preserve existing content: Don't remove detailed explanations, examples, or warnings unless they're outdated
  • Keep formatting consistent: Match the existing style of SKILL.md and reference files
  • Maintain progressive disclosure: Keep detailed docs in references, summaries in SKILL.md
  • Flag uncertainties: If source code is unclear, flag it for manual review
  • Respect RLS/FLS docs: The entities-create.md and rls-examples.md contain hand-written security documentation - update carefully

Troubleshooting

IssueSolution
Tag not found in CLI repoUse git tag -l to list available tags, or fall back to comparing with a commit hash
Infra changes not detectedCheck if shared code is in non-standard directories; adjust the git diff paths
Unsure if infra change affects usersLook for exports used by command files; if internal-only, note but skip documentation
Can't find command filesTry searching for .command( or program.command patterns
Options not detectedLook for .option( patterns in commander.js files
Positional args not detectedLook for .argument( or <argName> in .command('cmd <argName>') patterns
Option → positional change missedCompare old options list with new arguments list; if an option disappeared and a similar argument appeared, it's likely a conversion
Missing descriptionsCheck for description: properties or .description( calls
Subcommand structureCommands like entities push may be in entities/push.ts
Changed args not detectedCompare each option property: name, alias, description, default, required, type
No changes detected but expectedVerify the stored version in CLI_VERSION matches a valid git tag/commit

Häufig gestellte Fragen

Was macht der KI-Skill Sync Cli Skill?

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

Warum Sync Cli Skill in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Sync Cli Skill besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Sync Cli Skill in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/base44/skills/tree/main/.claude/skills/sync-cli-skill ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Sync Cli Skill nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Sync Cli Skill verwenden?

So viele Sie möchten. In TypingMind können Sie Sync Cli Skill mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Sync Cli Skill kostenlos?

Ja. Der Skill wird von base44 auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇