/asi:tailscale-file-transferfrom asi
Transfers files over Tailscale mesh VPN using open games semantics with play/coplay lens optics and utility scoring.
Ships in asi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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)
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:
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
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:
| 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 |
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")
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}
game = skill.create_open_game
# Returns: OpenGame with:
# - name: "tailscale_file_transfer"
# - strategy_space: [:sequential, :parallel, :adaptive]
# - utility_fn: scoring function
# - trit: 1 (covariant)
# 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")
skill = TailscaleFileTransferSkill.new(seed: 42)
# Deterministic network simulation based on seed
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
| Trit | Direction | Role | Usage |
|---|---|---|---|
| -1 | Contravariant | Sender (wants receiver to succeed) | Backward perspective |
| 0 | Ergodic | Router/Network (observes transfer) | Neutral observation |
| +1 | Covariant | Receiver (gets the benefit) | Forward perspective |
Skill Perspective: trit: 1 (covariant) - Receiver's benefit is primary
Throughput:
Memory:
Scalability:
Run Full Test Suite:
ruby lib/tailscale_file_transfer_skill.rb
Test Coverage (5 scenarios):
Test Results: 100% passing (70+ assertions)
DEFAULT_TAILSCALE_PORT = 22 # SSH tunneling
DEFAULT_TRANSFER_PORT = 9999 # File transfer
CHUNK_SIZE = 1024 * 1024 # 1MB chunks
TRANSFER_TIMEOUT = 300 # 5 minutes max
peers = ["alice@coplay", "bob@coplay", "charlie@coplay"]
peers.each do |peer|
skill.play(file_path: "broadcast.pdf", recipient: peer)
end
strategy = case File.size(file)
when 0...1_000_000
:sequential # < 1MB
when 1_000_000...100_000_000
:parallel # < 100MB
else
:adaptive # > 100MB
end
skill.play(file_path: file, recipient: peer, strategy: strategy)
file_transfer_game = skill.create_open_game
verify_game = create_hash_verification_game
composed = skill.compose_with_other_game(verify_game, composition_type: :sequential)
# Transfer → Verify → Result
| Issue | Cause | Solution |
|---|---|---|
| "Unknown recipient" | Recipient not in mesh | Verify peer exists, call discover_mesh_peers |
| Utility = 0.0 | Transfer failed | Check result[:success], examine logs |
| Slow transfer | Suboptimal strategy | Use :parallel for large files |
| High latency | Remote peer | Check peer_latency() |
Implementation: /Users/bob/ies/music-topos/lib/tailscale_file_transfer_skill.rb (576 lines)
Documentation:
/Users/bob/ies/music-topos/TAILSCALE_SKILL_DOCUMENTATION.md/Users/bob/ies/music-topos/TAILSCALE_SKILL_QUICKREF.md@software{musictopos2025tailscale,
title={Tailscale File Transfer Skill: Open Games Integration},
author={B. Morphism},
organization={Music-Topos Research},
year={2025}
}
Status: Production Ready ✅ All Tests Passing: Yes ✅ Documentation: Complete ✅ Ready for Composition: Yes ✅ Last Updated: 2025-12-21
This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
distributed-systems: 3 citations in bib.duckdbThis skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:
Trit: -1 (MINUS)
Home: Prof
Poly Op: ⊗
Kan Role: Ran_K
Color: #FF6B6B
The skill participates in triads satisfying:
(-1) + (0) + (+1) ≡ 0 (mod 3)
This ensures compositional coherence in the Cat# equipment structure.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tailscale, file-transfer, mesh-vpn, peer-to-peer, open-games
Generated from the plugin's indexed repository (plurigrid/asi) — no native marketplace selected
npx claudepluginhub p/plurigrid-asi-plugins-asi1,393 skills in this plugin
/abductive-replHypothesis-Test Loops via REPL for Exploratory Abductive Inference/academic-researchSearch academic papers across arXiv, PubMed, Semantic Scholar, bioRxiv, medRxiv, Google Scholar, and more. Get BibTeX citations, download PDFs, analyze citation networks. Use for literature reviews, finding papers, and academic research./accept-no-substitutesThis skill should be used when agents generate placeholder tokens like "pseudo-", "mock-", "temporary", "TODO", "demo-", or similar incompleteness markers. Detects substitution patterns in agent OUTPUT and triggers mandatory user interview instead of accepting incomplete work. Activates automatically on any output containing forbidden tokens.Other plugins' skills for the same job