Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

gastown-rig-setup盖斯敦钻机设置

Agent Skill

gastown-rig-setup 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

225

周安装

9

GitHub Stars

14

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gastown-rig-setup(盖斯敦钻机设置)
来源仓库:https://github.com/xexr/marketplace
仓库路径:skills/gastown-rig-setup
安装命令:
npx skills add https://github.com/xexr/marketplace --skill gastown-rig-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/xexr/marketplace --skill gastown-rig-setup

简介

播种.beads/

  • 使用正确的metadata.json
  • 不仅仅是一个首选项——它是 bd init --server 错误的解决方法
  • 写入 dolt_database:“beads_<前缀>”
  • 这与名为 <rigName> 的集中式 Dolt 数据库冲突
  • 。无需播种,bd
  • 连接到一个不存在的数据库。
  • 快速参考
  • # 添加带有前缀“mr”的装备“myrig”的完整序列,来自 git@github.com:Org/repo.git
  • # 1. 克隆和种子
  • cd ~/projects && git clone git@github.com:Org/repo.git repo-dir
  • # 创建 .beads/ 文件(参见上面的步骤 2)
  • cd ~/projects/repo-dir && git add .beads/ && git commit -m "feat: add .beads/" && git Push
  • # 2. 添加 rig + init dolt
  • gt rig add myrig git@github.com:Org/repo.git --prefix mr
  • gt dolt 初始化-rig myrig
  • gt 停止 && gt 启动
  • gt dolt list # 验证“myrig”是否出现
  • # 3.配置远程
  • mkdir -p ~/dolt-remotes/myrig
  • cd ~/gt/.dolt-data/myrig && dolt 远程添加源文件:///home/xexr/dolt-remotes/myrig
  • cd ~/gt/.dolt-data/myrig && dolt Push origin main
  • # 4. 验证
  • cd ~/gt/myrig/mayor/rig && BD 医生
  • gt医生
  • 每周安装量
  • 9
  • 存储库
  • xexr/市场
  • GitHub 之星
  • 14
  • 第一次看到
  • 2026 年 2 月 23 日
  • 安全审计
  • Gen Agent Trust Hub 通行证
  • 套接字通行证
  • 斯尼克警告

SKILL.md

Gas Town Rig Setup

Overview

Add a Git repository as a Gas Town rig with Dolt-native beads integration. The process requires seeding .beads/ in the upstream repo first, then adding the rig, initializing Dolt, and configuring remotes.

Why seed .beads/ first? gt rig add behaves differently depending on whether the cloned repo has a tracked .beads/ directory. Seeding ensures the correct code path runs. See "Why Seeding Matters" below for the technical details.

When to Use

  • Adding a new repository as a Gas Town rig
  • User says "add a rig", "set up a rig", "onboard this repo"

When NOT to Use

  • Setting up beads in a standalone repo (use beads-setup skill)
  • Migrating an existing rig from SQLite to Dolt (see MEMORY.md migration notes)

Prerequisites

Before starting, confirm with the user:

  1. Rig name - Short, single-word, no hyphens (hyphens cause SQL quoting issues). E.g., toolkit not gt-toolkit.
  2. Beads prefix - 2-3 letter abbreviation. E.g., tk. Must not conflict with existing prefixes in ~/gt/.beads/routes.jsonl.
  3. Git remote URL - SSH (git@github.com:Org/repo.git) or HTTPS (https://github.com/Org/repo.git). Both work with gt rig add.

Check existing prefixes:

cat ~/gt/.beads/routes.jsonl

Steps

1. Clone repo into ~/projects/

cd ~/projects && git clone <SSH_URL> <repo-dir-name>

2. Seed minimal.beads/ in the clone

Create four files using an existing rig as template (e.g., ~/projects/onyx/.beads/):

.beads/.gitignore — Copy from template rig verbatim.

.beads/config.yaml:

sync.mode: "dolt-native"

.beads/metadata.json — Set dolt_database to the rig name:

{
  "backend": "dolt",
  "database": "dolt",
  "dolt_database": "<RIG_NAME>",
  "dolt_mode": "server",
  "dolt_server_port": 3307
}

.beads/README.md — Copy from template rig verbatim.

3. Commit and push.beads/

cd ~/projects/<repo-dir>
git add .beads/
git commit -m "feat: add minimal .beads/ for Gastown rig integration"
git push

4. Add the rig

gt rig add <RIG_NAME> <SSH_URL> --prefix <PREFIX>

This creates ~/gt/<RIG_NAME>/ with the full rig structure (mayor/rig, crew/, refinery/, witness/, polecats/).

5. Initialize the Dolt database

gt dolt init-rig <RIG_NAME>

Creates ~/gt/.dolt-data/<RIG_NAME>/.

6. Restart Dolt server

gt dolt stop && gt dolt start

Verify the new database appears:

gt dolt list

STOP if the rig database doesn't appear. Investigate before proceeding.

7. Configure Dolt remote

mkdir -p ~/dolt-remotes/<RIG_NAME>
cd ~/gt/.dolt-data/<RIG_NAME> && dolt remote add origin file:///home/xexr/dolt-remotes/<RIG_NAME>
cd ~/gt/.dolt-data/<RIG_NAME> && dolt push origin main

8. Verify configuration

Check these files have correct values:

FileKey fields
~/gt/<RIG_NAME>/config.jsongit_url, prefix
~/gt/<RIG_NAME>/.beads/redirectPoints to mayor/rig/.beads
~/gt/<RIG_NAME>/mayor/rig/.beads/metadata.jsondolt_database: "<RIG_NAME>", dolt_mode: "server", dolt_server_port: 3307

9. Run diagnostics

cd ~/gt/<RIG_NAME>/mayor/rig && bd doctor
gt doctor

Investigate and fix any issues before declaring complete.

Known false positive: bd doctor reports ✖ Database: No dolt database found in server mode. This is cosmetic — it checks for a local .beads/dolt/ directory which doesn't exist when using the centralized Dolt server at .dolt-data/. Verify actual connectivity with bd list instead; if that returns results, the database is working.

Verification Checklist

[ ] gt rig list — shows new rig
[ ] gt dolt list — shows new database
[ ] bd list — returns results (from within rig's mayor/rig/)
[ ] gt doctor — passes (marketplace-related checks)
[ ] ~/dolt-remotes/<RIG_NAME>/ — has data after push
[ ] cat ~/gt/.dolt-data/<RIG_NAME>/.dolt/repo_state.json — shows origin remote

Common Mistakes

MistakeFix
Hyphen in rig name (gt-toolkit)Use single word (toolkit). Hyphens require SQL backtick quoting everywhere.
Skipping .beads/ seedingWithout seeding, bd init writes dolt_database: "beads_<prefix>" which mismatches the actual database name. See "Why Seeding Matters".
Forgetting to restart DoltNew database won't be visible until gt dolt stop && gt dolt start.
Prefix conflictsCheck routes.jsonl before choosing. Conflicts cause routing errors.
Not pushing .beads/ before gt rig addThe clones created by gt rig add pull from remote. If .beads/ isn't pushed, they won't have it.
Treating bd doctor "No dolt database found" as realFalse positive in server mode — checks for local .beads/dolt/ not the centralized server. Use bd list to verify connectivity instead.

Why Seeding Matters

gt rig add (internal/rig/manager.go:AddRig) takes two different code paths depending on whether the cloned repo has a tracked .beads/ directory. The unseeded path has a database naming bug that breaks Dolt connectivity.

The bug in the unseeded path

When .beads/ is NOT in the repo, the following sequence creates a name mismatch:

  1. doltserver.InitRig(townRoot, "toolkit") at manager.go:485 creates a Dolt database named toolkit
  2. InitBeads at manager.go:765 runs bd init --prefix tk --server (no existing .beads/ to redirect to)
  3. bd init at init.go:457 writes dolt_database: "beads_tk" to metadata.json — this is bd's own naming convention ("beads_" + prefix)
  4. EnsureMetadata at doltserver.go:1570 checks if dolt_database == nil || == "" — it's "beads_tk", so it does not override
  5. Result: metadata.json says dolt_database: "beads_tk" but the actual database is "toolkit". bd cannot connect.

How seeding prevents this

When .beads/ IS in the repo (with the correct dolt_database: "<RIG_NAME>" in metadata.json):

  1. After cloning into mayor/rig/, the code detects .beads/ at manager.go:419
  2. doltserver.InitRig at manager.go:485 creates database "toolkit" and calls EnsureMetadata — which finds mayor/rig/.beads/metadata.json already has the correct dolt_database: "toolkit" and leaves it alone
  3. InitBeads at manager.go:734 sees mayor/rig/.beads exists → creates a redirect file at <rig>/.beads/redirectmayor/rig/.beads → returns early without running bd init (so the correct dolt_database is never overwritten)
  4. Route registration at manager.go:644 sets the route path to <name>/mayor/rig
  5. EnsureMetadata at manager.go:503 confirms dolt_mode: "server", dolt_database: "toolkit" — all correct

Result: mayor/rig/.beads/ is the canonical beads location (tracked in git). The rig-level .beads/redirect points all agents there. The database name matches. Config persists across clones.

Summary

Seeding .beads/ with the correct metadata.json is not just a preference — it's a workaround for a bug where bd init --server writes dolt_database: "beads_<prefix>" which conflicts with the centralized Dolt database named <rigName>. Without seeding, bd connects to a non-existent database.

Quick Reference

# Full sequence for adding rig "myrig" with prefix "mr" from git@github.com:Org/repo.git

# 1. Clone and seed
cd ~/projects && git clone git@github.com:Org/repo.git repo-dir
# Create .beads/ files (see Step 2 above)
cd ~/projects/repo-dir && git add .beads/ && git commit -m "feat: add .beads/" && git push

# 2. Add rig + init dolt
gt rig add myrig git@github.com:Org/repo.git --prefix mr
gt dolt init-rig myrig
gt dolt stop && gt dolt start
gt dolt list  # verify "myrig" appears

# 3. Configure remote
mkdir -p ~/dolt-remotes/myrig
cd ~/gt/.dolt-data/myrig && dolt remote add origin file:///home/xexr/dolt-remotes/myrig
cd ~/gt/.dolt-data/myrig && dolt push origin main

# 4. Verify
cd ~/gt/myrig/mayor/rig && bd doctor
gt doctor

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.03%
按下载量换算28

Claude

28.04%
按下载量换算20

Cursor

17.16%
按下载量换算13

Gemini CLI

8.55%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills