Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:AMAP ML SkillClaw Skill Synchronization

From Leeroopedia
Knowledge Sources
Domains Skill_Sharing, Synchronization, Object_Storage
Last Updated 2026-10-22 00:00 GMT

Overview

A bidirectional skill synchronization pattern that pushes local skills to shared storage and pulls remote skills to local directories, with quality gating, incremental transfers, backup-rollback safety, and multi-backend support.

Description

Skill synchronization addresses the problem of sharing skills across a team of SkillClaw users. The push direction uploads new/changed local skills to shared object storage, with an optional quality gate that filters out low-effectiveness skills. The pull direction mirrors remote skills to the local directory: before any destructive change (overwrite or delete), local skills are backed up to a temporary directory. If the pull fails partway, the backup is automatically restored, preventing data loss. The `mirror` flag controls whether stale local skills (not in remote) are deleted; incremental mode only adds/updates without deletion. Multi-backend support (local, S3, OSS, Nacos) is provided via the `build_object_store` abstraction.

Usage

Use this principle when designing systems that need:

  • Bidirectional sync between local and shared storage
  • Quality-gated uploads (filter by effectiveness)
  • Backup-rollback safety for destructive operations
  • Multi-backend storage abstraction

Theoretical Basis

The synchronization combines push (local → remote) and pull (remote → local):

# Abstract algorithm (NOT real implementation)
def push_skills(local_dir, storage, quality_gate=None):
    for skill in scan_local_skills(local_dir):
        if quality_gate and not passes_gate(skill, quality_gate):
            continue
        if content_hash_changed(skill, remote_manifest):
            upload_to_storage(skill)

def pull_skills(local_dir, storage, mirror=True):
    remote_manifest = load_manifest(storage)
    backup = backup_local_skills(local_dir)
    try:
        for skill_name in remote_manifest:
            download_and_write(skill_name, local_dir)
        if mirror:
            delete_stale_local_skills(local_dir, remote_manifest)
    except Failure:
        restore_from_backup(backup, local_dir)

Related Pages

Implemented By

Uses Heuristic

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment