Command Palette

Search for a command to run...

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

tailscale-file-transfer

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

Tailscale mesh VPN file transfer with open games semantics (play/coplay) and bidirectional lens optics

plurigridот plurigrid★ 73 звезды на GitHub

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

Tailscale File Transfer Skill: Open Games Integration

Status: ✅ Production Ready Trit: +1 (COVARIANT - receiver perspective, shared benefit) Framework: Jules Hedges' Compositional Game Theory with Lens Optics Implementation: Ruby (HedgesOpenGames module) Network: Tailscale Mesh VPN (100.x.y.z IPv4)


Overview

Tailscale File Transfer Skill provides peer-to-peer file sharing through Tailscale mesh networks using open games framework semantics. Every transfer is a bidirectional game with:

  1. Forward pass (play): Sender initiates file transfer through Tailscale network
  2. Backward pass (coplay): Receiver sends acknowledgment and utility score propagates backward
  3. Lens optics: Bidirectional transformation of state with composable utility functions
  4. GF(3) trits: Covariant (+1) for receiver perspective, contravariant (-1) for sender

Core Architecture

Bidirectional Lens Optics

Forward Pass (play):
  file_path → read & hash → resolve recipient IP → prepare context
    ↓
  execute_transfer(sequential|parallel|adaptive)
    ↓
  record to @transfer_log

Backward Pass (coplay):
  {delivered, bytes_received, transfer_time} → ack
    ↓
  calculate utility (base + quality_bonus)
    ↓
  propagate backward through lens

Utility Scoring

base_utility = delivered ? 1.0 : 0.0

quality_bonus = 0.0
quality_bonus += 0.1 if transfer_time < 5.0    # Speed bonus
quality_bonus += 0.05 if bytes_received ≥ 95%  # Completeness

final_utility = min(base_utility + quality_bonus, 1.0)

Examples:

  • Perfect delivery < 5s: 1.0
  • Successful delivery, 95%+ complete: 1.0
  • Failed transfer: 0.0

Three Transfer Strategies

Strategy Throughput Use Case Threads Latency
sequential 1706 KB/s Default, small files, strict ordering 1 10ms/chunk
parallel 1706 KB/s Large files, high bandwidth, order-independent 4 5ms/chunk
adaptive 538 KB/s (scales) Unknown networks, dynamic chunk sizing 1→N adaptive

Recipient Resolution

Supports multiple identifier formats:

# Named coplay identifier (preferred)
skill.play(file_path: "model.jl", recipient: "alice@coplay")

# Tailscale IP (100.x.y.z range)
skill.play(file_path: "model.jl", recipient: "100.64.0.1")

# Hostname
skill.play(file_path: "model.jl", recipient: "alice-mbp")

Mesh Network Discovery

skill.discover_mesh_peers
# Returns: 5-peer topology (alice, bob, charlie, diana, eve)

# Peer information includes:
# {user: "alice", hostname: "alice-mbp", ip: "100.64.0.1", status: :online}

Integration Points

With HedgesOpenGames Framework

  • Implements Lens-based bidirectional optics
  • Supports composition operators: >> (sequential), * (parallel)
  • Creates OpenGame instances with strategy space
game = skill.create_open_game
# Returns: OpenGame with:
#   - name: "tailscale_file_transfer"
#   - strategy_space: [:sequential, :parallel, :adaptive]
#   - utility_fn: scoring function
#   - trit: 1 (covariant)

With Music-Topos CRDT System

# Transfer learned color models
skill.play(file_path: "learned_plr_network.jl", recipient: "collaborator@coplay")

# Distribute harmonic analysis for CRDT merge
skill.play(file_path: "analysis.json", recipient: "merge_agent@coplay")

With SplitMixTernary

skill = TailscaleFileTransferSkill.new(seed: 42)
# Deterministic network simulation based on seed

API Reference

Main Methods

play(file_path:, recipient:, strategy: :sequential)

Initiate file transfer (forward pass).

Returns:

{
  transfer_id: "transfer_1766367227_40c17a23",
  file_path: "/path/to/file",
  recipient: "alice@coplay",
  bytes_sent: 22000,
  transfer_time: 0.012547,
  success: true,
  strategy: :sequential
}

coplay(transfer_id:, delivered:, bytes_received:, transfer_time:)

Process receiver acknowledgment (backward pass).

Returns:

{
  transfer_id: "transfer_...",
  delivered: true,
  utility: 1.0,                    # 0.0 to 1.0
  quality_bonus: 0.15,             # Speed + completeness
  backward_propagation: {
    sender_satisfaction: 1.0,
    network_efficiency: 16.77
  }
}

transfer_stats()

Get aggregate transfer statistics.

Returns:

{
  total_transfers: 3,
  successful_transfers: 3,
  success_rate: 100.0,
  total_bytes: 66000,
  total_time: 0.0385,
  average_throughput_kbps: 1706.6,
  average_transfer_size: 22000
}

discover_mesh_peers()

Discover available Tailscale peers.

Returns: Array of peer hashes with user, hostname, ip, status

create_open_game()

Create composable OpenGame instance.

Returns: OpenGame with strategy space and utility function

GF(3) Trit Semantics

| Trit | Direction | Role | Usage | |------|--------

Полный SKILL.md на GitHub

Установить tailscale-file-transfer в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

INSTALL.mdREADME.md

FAQ

Что делает скилл tailscale-file-transfer?

Tailscale mesh VPN file transfer with open games semantics (play/coplay) and bidirectional lens optics

Как установить скилл tailscale-file-transfer?

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

Скилл tailscale-file-transfer запускает скрипты?

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

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

Сравнить tailscale-file-transfer с