返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
m

mlscp

Parse and generate MLSCP (Micro LLM Swarm Communication Protocol) commands. Use when communicating with other agents efficiently, parsing compressed commands, or generating token-efficient instructions. Reduces token usage by 70-80% compared to natural language.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
1,836
下载量
0
收藏
概述
安装方式
版本历史

mlscp

# MLSCP Skill MLSCP (Micro LLM Swarm Communication Protocol) is a token-efficient command language for agent-to-agent communication. This skill lets you parse, validate, and generate MLSCP commands without any LLM overhead. ## Why Use MLSCP? | Natural Language | MLSCP | Savings | |-----------------|-------|---------| | "Please modify the file src/chain_orchestrator.py by adding retry logic at line 47" | `F+ s/co > ln47 + 'retry logic'` | ~75% | | "Read the contents of utils/file_manager.py from lines 10 to 50" | `F? u/fm > ln10-50` | ~80% | | "Delete the variable 'temp_cache' from config.py" | `V- c/c > 'temp_cache'` | ~70% | ## Quick Start ### Parse a Command ```bash ./scripts/mlscp.sh parse "F+ s/co > ln47 + 'retry logic'" ``` ### Validate Syntax ```bash ./scripts/mlscp.sh validate "F+ s/co > ln47 + 'retry logic'" ``` ### Generate Vocabulary ```bash ./scripts/mlscp.sh vocab /path/to/project ``` ### Compress Natural Language ```bash ./scripts/mlscp.sh compress "Add error handling to the main function in app.py" ``` ## Command Reference ### Operations | Code | Meaning | Example | |------|---------|---------| | `F+` | File add/insert | `F+ s/app > ln10 + 'new code'` | | `F~` | File modify | `F~ s/app > ln10-20 ~ 'updated code'` | | `F-` | File delete | `F- s/app > ln10-15` | | `F?` | File query/read | `F? s/app > ln1-100` | | `V+` | Variable add | `V+ s/app + 'new_var = 42'` | | `V~` | Variable modify | `V~ s/app > 'old_var' ~ 'new_value'` | | `V-` | Variable delete | `V- s/app > 'temp_var'` | | `V?` | Variable query | `V? s/app > 'config_*'` | ### Location Specifiers - `ln47` - Single line - `ln10-50` - Line range - `fn:main` - Function name - `cls:MyClass` - Class name ### Context Blocks ``` CTX{"intent":"resilience","priority":"high","confidence":0.9} ``` ## Scripts - `mlscp.sh` - Main CLI tool - `vocab.py` - Vocabulary generator (Python) ## Integration ### With Other Agents When receiving commands from MLSCP-enabled agents: ```bash ./scripts/mlscp.sh parse "$INCOMING_COMMAND" ``` ### Sending Commands Generate compact commands for other agents: ```bash ./scripts/mlscp.sh compress "Your natural language instruction" ``` ## API (Python) ```python from mlscp import parse, MLSCPParser # Quick parse cmd = parse("F+ s/co > ln47 + 'retry logic'") print(cmd.operation) # OperationType.FILE_ADD print(cmd.target) # "s/co" # With vocabulary parser = MLSCPParser(vocab_lookup) cmd = parser.parse("F+ s/co > ln47 + 'code'") full_path = vocab_lookup.get("s/co") # "src/chain_orchestrator.py" ``` ## Resources - GitHub: https://github.com/sirkrouph-dev/mlcp - Grammar Spec: See `references/grammar.abnf` - Protocol Definition: See `references/protocol.md`

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mlscp-1776375289 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mlscp-1776375289 技能

通过命令行安装

skillhub install mlscp-1776375289

下载 Zip 包

⬇ 下载 mlscp v0.1.0

文件大小: 1.88 KB | 发布时间: 2026-4-17 14:10

v0.1.0 最新 2026-4-17 14:10
- Initial release of the mlscp skill for the Micro LLM Swarm Communication Protocol (MLSCP)
- Provides parsing, validation, and generation of MLSCP commands for efficient agent-to-agent communication
- CLI scripts included for command parsing, validation, vocabulary generation, and natural language compression
- Comprehensive command and syntax reference for MLSCP operations
- Python API for parsing and integrating MLSCP commands into projects
- Significant reduction in token usage (70–80%) compared to natural language instructions

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部