← 返回
开发者工具 中文

repo runner

Bootstrap and run a GitHub project by following its docs (README/docs), with safeguards for untrusted install/run steps. Use when the user gives a GitHub rep...
根据文档引导启动并运行 GitHub 项目,对非可信操作步骤采取安全防护。适用于用户提供 GitHub 仓库的情况。
zyl-hub zyl-hub 来源
开发者工具 clawhub v1.0.2 1 版本 99876.2 Key: 无需
★ 1
Stars
📥 787
下载
💾 9
安装
1
版本
#latest

概述

Repo Runner (run a GitHub project)

Goal: given a GitHub URL or a downloaded folder, get the project running as its docs intend, without guessing dangerously.

Inputs to ask for

  • Repo source: GitHub URL (preferred) or local path
  • Target: dev (local dev server) / build / test
  • Constraints: allow installing deps? allow running postinstall scripts? allow Docker?

Safety rules (must follow)

  • Treat repo code as untrusted.
  • Before running npm/pnpm/yarn install (or any curl | bash), ask for confirmation.
  • Never paste or store secrets. If .env is needed, ask user to provide values out-of-band.

Workflow

  1. Clone / prepare workspace
    • Clone to /projects/ (create projects/ if missing)
    • Typical workspace path is $HOME/.openclaw/workspace, but don’t assume.
    • If already exists, ask before git pull or deleting anything.
  1. Find the canonical docs
    • Prefer README.md + docs/ + CONTRIBUTING.md
    • Extract: prerequisites (Node/Python/Docker/Go/Rust), install steps, env vars, run command(s), ports.
  1. Detect project type(s)
    • From the repo-runner skill directory (typically /skills/repo-runner), run: bash scripts/detect_project.sh
    • A repo can match multiple types (e.g. type=node + type=docker). Use docs to choose the canonical path.
  1. Set up prerequisites
    • Verify required runtimes exist (Node/pnpm/yarn, Python, Docker, Go, Rust)
    • If missing, propose options (install locally, use Docker, or switch to a supported env)
  1. Configure env
    • If .env.example exists, copy to .env only after confirmation
    • Ask user to fill required keys
  1. Install dependencies (after confirmation, based on project type)
  • Node (when package.json exists)
  • Prefer lockfile-safe commands:
  • pnpm install --frozen-lockfile (if pnpm-lock.yaml)
  • yarn install --frozen-lockfile (if yarn.lock)
  • npm ci (if package-lock.json)
  • If unsure, run: bash scripts/suggest_node_commands.sh
  • Python (when pyproject.toml / requirements.txt exists)
  • Create and use a virtualenv (don’t install into system Python).
  • Typical patterns (follow docs first):
  • python -m venv .venv && source .venv/bin/activate
  • pip install -r requirements.txt
  • If pyproject.toml: use the tool specified by docs (commonly poetry install or pip install -e .).
  • Rust (when Cargo.toml exists)
  • cargo build / cargo test / cargo run (follow docs for features/flags)
  • Go (when go.mod exists)
  • go test ./...
  • go run . or go build ./... (follow docs for main package path)
  • Docker (when docker-compose.yml / Dockerfile exists)
  • Prefer the documented compose path when present:
  • docker compose up (or docker-compose up depending on docs)
  1. Run
    • Use the docs’ recommended run target (dev server, CLI, compose stack, etc.)
    • Capture logs, detect common failures, iterate

Common outputs to report back

  • Exact commands run (copy/paste friendly)
  • URL/port to open
  • Next steps (build/test) and known caveats

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-30 02:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,353
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,791
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,702