Token导航 LogoToken导航TokenDH.com
前端设计执行命令github未标认证来源可访问许可证需确认审计通过

config配置

Agent Skill

config 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

441

周安装

18

GitHub Stars

24

下载量

141
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/colonyops/hive --skill config

简介

config 用于配置 Hive 开发工作流,支持规则匹配、窗口命令绑定和终端集成定制。

  • 它允许按仓库 URL 模式定义自动化行为,例如为特定项目自动打开 Claude 会话。
  • 配置文件采用 YAML 格式,默认位于 ~/.config/hive/config.yaml,支持版本迁移。
  • 使用前需确认本地环境是否支持 YAML 编辑及终端命令执行权限。
  • config 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Config - Configure Hive for Your Workflow

Set up and customize hive to match development workflows with rules, spawn commands, keybindings, and terminal integration.

Configuration File

Location: ~/.config/hive/config.yaml

Current version: 0.2.5

cat ~/.config/hive/config.yaml   # View config
$EDITOR ~/.config/hive/config.yaml  # Edit config
hive doc migrate                  # Check version and migrate

Minimal Config

version: 0.2.5

rules:
  - pattern: ""  # Matches all repos
    windows:
      - name: claude
        command: "claude"
        focus: true
      - name: shell

Rules System

Rules match repository URLs with regex patterns and define behavior.

Rule Structure

rules:
  - pattern: ".*github\\.com/org-name/.*"  # Regex pattern
    max_recycled: 3                         # Max recycled sessions
    windows:                                # Declarative tmux windows (recommended)
      - name: claude
        command: "claude"
        focus: true
      - name: shell
    recycle: []                             # Commands when recycling
    commands: []                            # Setup commands after clone
    copy: []                                # Files to copy from original

Rule precedence: Last matching rule with spawn/windows config wins.

Window Config Fields

FieldTypeRequiredDescription
namestringyesWindow name (supports templates)
commandstringnoCommand to run (empty = default shell)
dirstringnoWorking directory override
focusboolnoSelect this window after creation

windows is mutually exclusive with spawn/batch_spawn. If neither is set, the default layout (agent window + shell) is used.

Pattern Examples

- pattern: ""                                    # Match all repos
- pattern: ".*github\\.com/my-org/.*"           # Match specific org
- pattern: ".*github\\.com/my-org/my-repo"      # Match specific repo
- pattern: ".*(my-org|other-org)/.*"             # Match multiple orgs

Template Variables

Commands support Go templates with {{.Variable}} syntax.

ContextVariables
windows, spawn, batch_spawn.Path, .Name, .Slug, .ContextDir, .Owner, .Repo
batch_spawn, windows (batch).Prompt
recycle.DefaultBranch
usercommands.*.sh.Path, .Name, .Remote, .ID, .Tool, .TmuxWindow, .Args, .Form.*

Use {{.Variable | shq}} for safe shell quoting.

Terminal Integration

Tmux

tmux:
  poll_interval: 1.5s
  preview_window_matcher: ["claude", "aider", "codex"]

Status indicators:

  • [●] Green - Agent actively working
  • [!] Yellow - Agent needs approval
  • [>] Cyan - Agent ready for input
  • [?] Dim - Terminal not found
  • [○] Gray - Session recycled

User Commands

Define custom commands accessible via : command palette or keybindings.

usercommands:
  name:
    sh: "command template"     # Shell command
    help: "Description"        # Help text
    confirm: "Are you sure?"   # Optional confirmation
    silent: true               # Skip loading popup
    exit: "true"               # Exit TUI after command

Examples

usercommands:
  tidy:
    sh: "send-claude {{ .Name }} /tidy"
    help: "Run /tidy in Claude session"
    confirm: "Commit and push changes?"
    silent: true

  vscode:
    sh: "code {{ .Path }}"
    help: "Open session in VS Code"
    silent: true
    exit: "true"

  msg:
    sh: 'hive msg pub -t agent.{{ .ID }}.inbox "{{ range .Args }}{{ . }} {{ end }}"'
    help: "Send message to session inbox"

Keybindings

Map keys to user commands in the TUI.

keybindings:
  r:
    cmd: Recycle
    confirm: "Recycle this session?"
  d:
    cmd: Delete
  o:
    cmd: vscode
  enter:
    cmd: attach

Reserved keys: ?, :, v, j/k/↑/↓, /, n

Additional Resources

For detailed configuration examples, spawn command patterns for different terminals, and migration guides, see:

  • references/spawn-patterns.md - Terminal-specific spawn command examples (tmux, WezTerm, Kitty, iTerm2, Alacritty)
  • references/workflow-examples.md - Complete workflow configurations for common setups
  • references/troubleshooting.md - Common configuration issues and solutions

Related Skills

  • /hive:inbox - Check inter-agent messages
  • /hive:publish - Send messages between sessions
  • /hive:session-info - Get current session details

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.95%
按下载量换算48

Claude

29.61%
按下载量换算42

Cursor

20.76%
按下载量换算29

Gemini CLI

8.96%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/colonyops/hive --skill config 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills