返回顶部
m

mlscpMLSCP解析生成

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,846
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

mlscp

MLSCP 技能

MLSCP(微型大语言模型群通信协议)是一种面向智能体间通信的高效令牌命令语言。该技能使您能够在不产生任何大语言模型开销的情况下解析、验证和生成MLSCP命令。

为何使用MLSCP?

自然语言MLSCP节省量
请在文件 src/chainorchestrator.py 的第47行添加重试逻辑F+ s/co > ln47 + retry logic~75%
读取 utils/filemanager.py 第10至50行的内容
F? u/fm > ln10-50 | ~80% | | 从 config.py 中删除变量 tempcache | V- c/c > tempcache | ~70% |

快速入门

解析命令

bash ./scripts/mlscp.sh parse F+ s/co > ln47 + retry logic

验证语法

bash ./scripts/mlscp.sh validate F+ s/co > ln47 + retry logic

生成词汇表

bash ./scripts/mlscp.sh vocab /path/to/project

压缩自然语言

bash ./scripts/mlscp.sh compress 在 app.py 的主函数中添加错误处理

命令参考

操作指令
代码含义示例
F+文件添加/插入F+ s/app > ln10 + new code
F~
文件修改 | F~ s/app > ln10-20 ~ updated code |

| F- | 文件删除 | F- s/app > ln10-15 | | F? | 文件查询/读取 | F? s/app > ln1-100 | | V+ | 变量添加 | V+ s/app + new_var = 42 | | V~ | 变量修改 | V~ s/app > oldvar ~ newvalue | | V- | 变量删除 | V- s/app > temp_var | | V? | 变量查询 | V? s/app > config_* |

位置指定符

  • - ln47 - 单行
  • ln10-50 - 行范围
  • fn:main - 函数名称
  • cls:MyClass - 类名称

上下文块

CTX{intent:resilience,priority:high,confidence:0.9}

脚本工具

  • - mlscp.sh - 主命令行工具
  • vocab.py - 词汇表生成器(Python)

集成方式

与其他智能体通信

接收来自启用MLSCP的智能体的命令时: bash ./scripts/mlscp.sh parse $INCOMING_COMMAND

发送命令

为其他智能体生成紧凑命令: bash ./scripts/mlscp.sh compress 您的自然语言指令

API(Python)

python
from mlscp import parse, MLSCPParser

快速解析

cmd = parse(F+ s/co > ln47 + retry logic) print(cmd.operation) # OperationType.FILE_ADD print(cmd.target) # s/co

使用词汇表

parser = MLSCPParser(vocab_lookup) cmd = parser.parse(F+ s/co > ln47 + code) fullpath = vocablookup.get(s/co) # src/chain_orchestrator.py

资源

  • - GitHub:https://github.com/sirkrouph-dev/mlcp
  • 语法规范:参见 references/grammar.abnf
  • 协议定义:参见 references/protocol.md

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mlscp-1776375289 技能

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

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

通过命令行安装

skillhub install mlscp-1776375289

下载

⬇ 下载 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
返回顶部