Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

agentbusagentbus 命令行

Agent Skill

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

总安装

196

周安装

8

GitHub Stars

公开资料未说明

下载量

63
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/zentik-ai/zentik-agentbus --skill agentbus

简介

agentbus 用于跨微服务功能规划,解决“开发者作为传话人”问题。

  • 适合需要协调多个服务变更(如迁移同步调用为异步事件)的场景。
  • 支持特性理解、一致性验证、API 重构和数据模型调整。
  • 安装命令:npx skills add https://github.com/zentik-ai/zentik-agentbus --skill agentbus。
  • 不涉及单服务变更或简单代码探索,避免误用。

SKILL.md

AgentBus Skills

Cross-service planning system that eliminates the "developer as messenger" problem when planning features that span multiple microservices.

When to Use

Use AgentBus when you need to:

  • Plan a feature that touches 2+ services (e.g., "migrate sync calls to async events")
  • Understand how a feature works across services
  • Verify cross-service consistency before implementation
  • Refactor APIs or data models that affect multiple services

Don't use AgentBus for:

  • Single-service changes → Use gsd or spec-kit instead
  • Simple code exploration → Use map-codebase directly

Core Philosophy: Evidence Over Communication

Instead of passing data through responses, AgentBus writes artifacts at each stage:

Wave 1:   Service Mapping         →  AGENTS/ (5 docs per service)
Wave 2:   Plan Refinement         →  PLAN.md (per service)
Wave 2.5: Plan Alignment          →  Cross-service consistency check
Wave 3:   Implementation          →  Modified code + CHANGES.md
Wave 3.5: Contract Validation     →  Deep implementation check (optional)
Wave 4:   Verification            →  TEST-RESULTS.md
Wave 4b:  Adjustments (opt)       →  Minor fixes + clarifications
Wave 5:   Wrap-up (opt)           →  Git commits

Benefits:

  • Context efficiency: Orchestrator reads only what it needs
  • Auditability: Complete history in version-controlled files
  • Resumability: Failed waves can be retried independently
  • Reusability: AGENTS/ serves as living service documentation

Quick Start Commands

Step 1: Load the Skill (Required)

First, you must initialize the AgentBus skill so the LLM understands the system:

/agentbus

This provides context about the 7-wave model, routing, and conventions.

Step 2: Local Service Repositories (Required)

All services to modify must be:

  • Cloned locally in your workspace
  • Listed in ~/.agentbus/services.json

The orchestrator needs local file access — it cannot work with remote repos.

Step 3: Initialize a New Plan

/agentbus orchestrator "remove deprecated field from Tool model in tools and bot"

The orchestrator:

  1. Detects services from your prompt ("tools" → exitus-agent-tools)
  2. Suggests next plan ID (scans existing plans for sequential numbering)
  3. Creates:

- agentbus-orchestrator/004-feature/status.json - agentbus-orchestrator/004-feature/SEED-PLAN.md

Continue Waves

/agentbus orchestrator --continue 004-feature

Runs the next wave based on status.json.

Review Cross-Service Consistency

/agentbus review --feature-slug "004-feature"

Wave Execution Model

Wave 1: Service Mapping

Purpose: Create/update AGENTS/ documentation in each service

What happens:

  • Orchestrator spawns parallel subagents (one per service)
  • Each subagent maps codebase: stack, architecture, APIs, DB, testing
  • Writes 5 documents to {service}/.agentbus/AGENTS/:

- STACK.md — Technology stack - ARCHITECTURE.md — Patterns and data flow - STRUCTURE.md — Directory layout - CONVENTIONS.md — Implementation patterns (CRITICAL) - CONCERNS.md — Tech debt and risks

  • Writes summary JSON to orchestrator workspace

Output: {service}/.agentbus/AGENTS/*.md

Wave 2a: Plan Refinement

Purpose: Create detailed implementation plan per service

What happens:

  • Subagents read AGENTS/ documents (especially CONVENTIONS.md)
  • Read SEED-PLAN.md for context
  • Explore relevant code files
  • Write PLAN.md with specific changes

Output: {service}/.agentbus-plans/{plan-id}/PLAN.md

Wave 2b: Context Queries (Optional)

Purpose: Get information from adjacent services without mapping them

What happens:

  • Service agent detects need for external info (e.g., "what does users-api return?")
  • Reports status: "needs_context"
  • Orchestrator spawns query-only agents in target services
  • Re-runs service agent with answers
  • Completes PLAN.md

Output: Answers integrated into PLAN.md

Wave 3: Implementation

⚠️ Destructive — Modifies source code but does NOT commit

Purpose: Execute the plan

What happens:

  • Subagents read PLAN.md
  • Modify code files
  • Run tests locally
  • Write CHANGES.md log

Output: Modified code + {service}/.agentbus-plans/{plan-id}/CHANGES.md

Wave 4: Verification

Purpose: Verify implementation works

What happens:

  • Subagents read CHANGES.md
  • Run full test suite
  • Check cross-service compatibility
  • Write TEST-RESULTS.md

Output: {service}/.agentbus-plans/{plan-id}/TEST-RESULTS.md

Wave 4b: Adjustments & Clarifications (Optional)

Purpose: Minor fixes and explanations after verification

Modes:

  • Explain: Answer questions ("Why does this test fail?")
  • Quick Fix: Small adjustments (fix mocks, typos, validations)

What happens:

  • User asks questions or requests small fixes
  • Service agent investigates or makes minor changes
  • Appends to CHANGES.md
  • Re-runs affected tests

Not for: Major architectural changes (needs new plan)

Wave 5: Wrap-up (Optional)

Purpose: Create git commits

⚠️ Only after user confirmation

What happens:

  • Subagents stage changes
  • Create commits with descriptive messages
  • Write COMMITS.md log

Output: Git commits + {service}/.agentbus-plans/{plan-id}/COMMITS.md

Available Skills

SkillPurposeInvocation
agentbus-orchestratorCoordinates waves, spawns subagents/agentbus-orchestrator "feature"
agentbus service agentPer-service specialistVia Task tool only
agentbus-reviewVerifies cross-service consistency/agentbus-review --feature-slug "xxx"

Workspace Structure

workspace/                          # parent folder of all repos
├── agentbus-orchestrator/          # orchestrator workspace (not a git repo)
│   └── 004-feature-slug/
│       ├── status.json             # wave tracking, resume/retry
│       ├── SEED-PLAN.md            # initial vision
│       ├── PLAN.md                 # consolidated view (final)
│       ├── TEST-PLAN.md            # cross-service tests
│       ├── DEPLOY-ORDER.md         # rollout sequence
│       └── service-outputs/        # subagent summaries
│           └── {service}.json
│
├── payments-service/               # service repo
│   └── .agentbus/
│       └── AGENTS/                 # ← Wave 1: 5 service documents
│   └── .agentbus-plans/
│       └── 004-feature/            # ← Wave 2-5: plan folder
│           ├── PLAN.md             # ← Wave 2: refined plan
│           ├── CHANGES.md          # ← Wave 3: implementation log
│           ├── TEST-RESULTS.md     # ← Wave 4: test results
│           └── COMMITS.md          # ← Wave 5: commit log (optional)
│
└── notifications-service/
    └── ... (same structure)

Service Registry

Global registry file: ~/.agentbus/services.json

{
  "payments-service": "/home/user/workspace/payments-service",
  "notifications-service": "/home/user/workspace/notifications-service"
}

To register a service: Read ~/.agentbus/services.json, add entry, write back.

To list services: Read ~/.agentbus/services.json and parse.

Typical Workflow

1. Initialize Plan

User: "We need to add audit logging to user actions"

You: Initialize planning
/agentbus-orchestrator "add audit logging to user actions" auth payments notifications

This creates the orchestrator workspace with sequential plan ID.

2. Run Wave 1 (Mapping)

You: Start mapping
/agentbus-orchestrator --continue 004-audit-logging

This spawns parallel subagents to create AGENTS/ documents in each service.
Wait for completion.

3. Run Wave 2a (Refinement)

You: Refine plans
/agentbus-orchestrator --continue 004-audit-logging

This spawns subagents to write PLAN.md in each service.

4. Wave 2b (Context Queries - if needed)

If a service agent needs info from adjacent services:

Orchestrator: cronjob-api needs context from users-api
¿Ejecutar context queries? (yes/no): yes

This queries users-api without adding it to the plan.

5. Run Wave 3 (Implementation)

You: Implement changes
/agentbus-orchestrator --continue 004-audit-logging

⚠️ This modifies source code but does NOT commit.

6. Run Wave 4 (Verification)

You: Verify implementation
/agentbus-orchestrator --continue 004-audit-logging

This runs tests and creates TEST-RESULTS.md.

7. Wave 4b (Adjustments - if needed)

Orchestrator: 2 tests failed in cronjob-api
¿Ajustes o preguntas? (yes/no): yes

You: "Fix the mock in test_validation_email"
→ Quick fix applied
→ Tests re-run
→ ✅ PASS

8. Wave 5 (Wrap-up)

You: Create commits
/agentbus-orchestrator --continue 004-audit-logging

⚠️ Only after confirming everything looks good.

Error Handling & Recovery

Subagent Fails

  1. Check status.json for error details
  2. Fix underlying issue
  3. Re-run: /agentbus-orchestrator --continue {plan-id}
  4. Failed subagent re-runs, others unchanged

Add Service Mid-Flight

  1. Update status.json to add service
  2. Re-run current wave
  3. New service gets processed, existing ones unchanged

Resume After Interruption

  1. Read status.json to see current wave
  2. Run: /agentbus-orchestrator --continue {plan-id}
  3. Continues from where it left off

Key Concepts

AGENTS/ (5 Documents)

Living service documentation written by Wave 1. Located at {service}/.agentbus/AGENTS/:

DocumentContentPurpose
STACK.mdTechnology stackKnow what technologies to use
ARCHITECTURE.mdPatterns, layers, data flowStructure changes correctly
STRUCTURE.mdDirectory layoutKnow where to place files
CONVENTIONS.mdImplementation patternsChoose the right approach
CONCERNS.mdTech debt, risksAvoid pitfalls

Reusable: AGENTS/ is updated on each Wave 1, serving as documentation for future features.

CRITICAL: Always read CONVENTIONS.md first — it contains decision patterns for choosing approaches.

PLAN.md

Feature-specific implementation plan written by Wave 2. Includes:

  • Overview of changes in this service
  • Specific files to modify
  • Testing strategy
  • Dependencies on other services
  • Rollback plan

CHANGES.md

Log of files modified during Wave 3. Used for:

  • Tracking what changed
  • Creating commits in Wave 5
  • Audit trail

TEST-RESULTS.md

Test results from Wave 4. Includes:

  • Test summary (passed/failed)
  • Coverage metrics
  • Cross-service compatibility checks

status.json

Tracking file that enables resume/retry. Contains:

  • Current wave
  • Service statuses
  • Artifact paths (not content)
  • Retry counts

Anti-Patterns to Avoid

Don't: Run all waves in one session (context exhaustion) ✅ Do: Run one wave at a time, review, then continue

Don't: Modify AGENTS/ documents manually during planning ✅ Do: Let Wave 1 subagent update them

Don't: Skip Wave 4 (verification) ✅ Do: Always verify before committing

Don't: Add too many services (>5) without user confirmation ✅ Do: Propose list, let user confirm/adjust

Don't: Use Wave 4b for major architectural changes ✅ Do: Create new plan if architecture needs to change

Getting Help

  • Orchestrator protocol: @skills/agentbus-orchestrator/SKILL.md
  • Service agent protocol: @skills/agentbus-service-agent/SKILL.md
  • Review protocol: @skills/agentbus-review/SKILL.md

Version

AgentBus Skills v1.0.0 — Evidence-Based Wave Model

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.72%
按下载量换算22

Claude

27.68%
按下载量换算17

Cursor

20.99%
按下载量换算13

Gemini CLI

9%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills