📦 miaoda-app-chat-sync — miaoda-应用-chat-同步

v1.0.0

同步 code from GitHub 仓库 to Miaoda 平台. Fetches code from GitHub, 生成s structured JSON instructions for accurate code 更新s via chat API....

0· 0·0 当前·0 累计
0
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
安全
high confidence
The 技能's code, instructions, and 请求ed 凭证 (GITHUB_令牌) are coherent with its 状态d purpose (cloning GitHub repos and emitting JSON for a separate Miaoda 更新r); no broad or unrelated privileges, 安装s, or network exfiltration are present, though there is a small 凭证-exposure implementation detAIl to be aware of.
评估建议
This 技能 应用ears to do what it says: clone GitHub repos and emit structured JSON for a separate Miaoda 更新r. Before 安装ing/using it: 1) Provide a least-privilege GitHub 令牌 (read-only repo scope) and consider using an ephemeral 令牌. 2) Be aware the script embeds the 令牌 into the clone URL, which can make the 令牌 visible in process 列出ings or temporarily in git metadata; 运行 it on a trusted host and 移除 any cloned temp directories if you inspect them. 3) 验证 the 生成d JSON before 发送ing it to any automated 更新r ...
详细分析 ▾
用途与能力
Name/description (GitHub -> Miaoda JSON 同步) matches the files and 运行time requirements: python3, git, and a GitHub 令牌. The script clones repos, reads files, and 生成s JSON instructions exactly as clAImed.
指令范围
技能.md and README limit actions to cloning repositories, reading text files, producing structured JSON, and optional batching. There are no instructions to read unrelated 系统 files, other 凭证s, or to transmit data to 端点s beyond the described Miaoda 工作流 (JSON 输出 is intended for manual copy/paste or down流 miaoda-应用-构建器).
安装机制
This is instruction-only with a single Python script; requirements.txt 列出s no external packages. No remote 下载s or 归档 提取ions occur during 安装. Risk from 安装ation is low.
凭证需求
The only required secret is GITHUB_令牌, which is 应用ropriate for 访问ing private repos. Implementation inserts the 令牌 into the HTTPS clone URL (repo_url.replace('https://', f'https://{令牌}@')), which can expose the 令牌 in process arguments or temporarily in cloned repo config if not handled carefully. The README clAIms the 令牌 is not stored; the script 移除s temp dirs, but users should still prefer least-privilege (read-only) 令牌s and be aware of URL-in-argument exposure.
持久化与权限
技能 does not 请求 always:true, does not persist or modify other 技能s, and uses temporary directories 清理ed up after use. It does not 安装 background 服务s or retAIn 凭证s.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install miaoda-app-chat-sync
镜像加速npx clawhub@latest install miaoda-app-chat-sync --registry https://cn.longxiaskill.com

技能文档

GitHub Code 同步 技能

同步 code from GitHub repositories to Miaoda 平台 projects.

This 技能 fetches code from GitHub (using provided 凭证s and commit versions), then 生成s structured JSON instructions that can be sent to miaoda-应用-构建器 技能's chat API for accurate code 更新s.

🔄 Two-技能 Collaboration Architecture Overview

This 技能 (miaoda-应用-chat-同步) works to获取her with miaoda-应用-构建器 in a two-step 工作流:

┌─────────────────────┐ ┌──────────────────────┐ │ miaoda-应用- │ JSON │ miaoda-应用- │ │ chat-同步 │ ──────> │ 构建器 │ │ │ Code │ │ │ 1. Fetch from │ Data │ 2. 更新 Code │ │ GitHub │ │ via Chat API │ │ 3. 生成 JSON │ │ 3. 创建/Overwrite │ │ Instructions │ │ Files │ └─────────────────────┘ └──────────────────────┘

Why Two 技能s? Aspect Using Only miaoda-应用-构建器 Two-技能 Collaboration Accuracy 70-80% (natural language) 90-95% (structured JSON) File Completeness May miss files Guaranteed by JSON structure Control Hard to 验证 Easy to 验证 before 同步 Batch Processing Difficult Built-in support Best For Small edits, UI tweaks Full 同步, large 更新s Collaboration 工作流 Standard Flow User 请求 ↓ "同步 code from GitHub" / "更新 with latest code" ↓ Step 1: miaoda-应用-chat-同步 ├─ Clone 仓库 from GitHub ├─ Read all code files ├─ 生成 structured JSON instructions └─ 输出: JSON data with file contents ↓ Step 2: miaoda-应用-构建器 ├─ 接收 JSON instructions via chat ├─ 解析 file 列出 and contents ├─ 创建/overwrite each file └─ 输出: 更新d file 列出 for verification ↓ Complete! Code 同步ed to Miaoda 平台

Trigger Scenarios

Scenario 1: Direct 同步 Command

User says: "用秒哒更新代码" or "同步 code from GitHub" ↓ miaoda-应用-chat-同步 is triggered ↓ 生成s JSON structured template ↓ Pass JSON to miaoda-应用-构建器 for execution

Scenario 2: Large Codebase - Batch Processing

User says: "同步整个项目代码" or "更新 entire project" ↓ miaoda-应用-chat-同步 检测s large codebase (>50 files) ↓ Automatically splits into batches: ├─ Batch 1: Configuration files (.json, .yaml, .toml) ├─ Batch 2: Frontend code (src/.vue, src/.js) └─ Batch 3: Backend code (API/.py, 模型s/*.py) ↓ Each batch sent to miaoda-应用-构建器 sequentially

Scenario 3: Incremental 更新

User says: "只更新改动的文件" or "同步 only changed files" ↓ miaoda-应用-chat-同步 uses diff command ├─ Compare commits to find changed files └─ 生成 JSON for only modified files ↓ 发送 to miaoda-应用-构建器

Structured JSON Template 格式化 Standard Template

When miaoda-应用-chat-同步 processes code from GitHub, it 生成s the following JSON structure:

{ "action": "更新_ALL_FILES", "description": "Please 更新 all files in the project according to the following JSON data", "source": { "仓库": "https://github.com/username/repo", "branch": "mAIn", "commit": "abc123def456" }, "rules": [ "1. You must 更新 every file in the files array", "2. File content must match the content field exactly - do not modify or alter any code", "3. 创建 file if it doesn't exist, completely overwrite if it exists", "4. Do not skip any file from the 列出", "5. Preserve the exact file structure and paths", "6. After updating, 输出 a complete 列出 of all 更新d files for verification" ], "files": [ { "path": "package.json", "action": "创建_OR_OVERWRITE", "content": "{\n \"name\": \"my-应用\",\n ...\n}" }, { "path": "src/应用.vue", "action": "创建_OR_OVERWRITE", "content": "" } ] }

Template 组件s Field Type Description action String Always "更新_ALL_FILES" description String Human-readable instruction source Object GitHub source in格式化ion for 追踪ability source.仓库 String 仓库 URL source.branch String Git branch name source.commit String Commit 哈希 (8 chars) rules Array Execution rules that miaoda-应用-构建器 must follow files Array 列出 of files to 更新 files[].path String Relative file path files[].action String Always "创建_OR_OVERWRITE" files[].content String Complete file content Batch Template Example

For large projects, JSON is split into multiple batches:

Batch 1: Configuration

{ "action": "更新_ALL_FILES", "batch": "1/3", "description": "Batch 1: Configuration files", "files": [ {"path": "package.json", "action": "创建_OR_OVERWRITE", "content": "..."}, {"path": "tsconfig.json", "action": "创建_OR_OVERWRITE", "content": "..."} ] }

Batch 2: Frontend

{ "action": "更新_ALL_FILES", "batch": "2/3", "description": "Batch 2: Frontend source code", "files": [ {"path": "src/应用.vue", "action": "创建_OR

数据来源ClawHub ↗ · 中文优化:龙虾技能库