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

agent-messagingAgent 消息传递

Agent Skill

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

总安装

318

周安装

13

GitHub Stars

24

下载量

102
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/noobygains/godmode --skill agent-messaging

简介

agent-messaging 用于查找、检索和筛选相关信息,适合在关键词搜索或线索定位任务中使用。

  • 适用于 Codex、Claude、Cursor 和 Gemini CLI,支持快速定位候选结果以辅助决策。
  • 可通过 GitHub 仓库和原始 README 进一步核验具体用法和功能边界。
  • 安装前应确认权限范围、维护状态及是否触发联网或文件读写操作。
  • 建议在受控环境中测试后再用于关键任务,避免意外副作用。

SKILL.md

Agent Messaging

Overview

Defective inter-agent communication is the root cause of most multi-agent breakdowns: bloated context drowns focus, imprecise prompts yield incorrect results, and sloppy handoffs lose critical data.

Core principle: Supply agents with exactly the context they require — nothing more, nothing less. Structure every message for the recipient, not the sender.

The Prime Directive

NO AGENT DISPATCH WITHOUT A STRUCTURED BRIEF

If you have not organized the context, the agent will burn tokens deciphering your intent.

When to Use

Apply to:

  • Composing prompts for subagents (Agent tool dispatches)
  • Sending messages to team members (SendMessage)
  • Structuring reports back to callers or team leads
  • Handing off work between agents (implementer to reviewer, researcher to lead)
  • Deciding what context to include or exclude

Complements:

  • godmode:delegated-execution — Prompt design for implementer/reviewer subagents
  • godmode:parallel-execution — Prompt design for concurrent investigations
  • godmode:team-orchestration — Message design for team coordination

The Entry Protocol

BEFORE dispatching any agent or sending any message:

1. RECIPIENT: Who receives this? (subagent, teammate, team lead)
2. OBJECTIVE: What must they DO? (implement, investigate, review, report)
3. CONTEXT: What must they KNOW? (only what is relevant to their task)
4. DELIVERABLE: What must they RETURN? (format, content, detail level)
5. CONSTRAINTS: What must they NOT do? (scope limits, file restrictions)

Skip any step = unfocused agent, wasted tokens

Subagent Prompt Design

The Lean Context Principle

Subagents get distracted by irrelevant context. More context is not better context.

digraph context_decision {
    "Task follows existing pattern?" [shape=diamond];
    "Task depends on other tasks?" [shape=diamond];
    "Lean context" [shape=box style=filled fillcolor=lightgreen];
    "Full context" [shape=box];

    "Task follows existing pattern?" -> "Lean context" [label="yes - supply pattern ref"];
    "Task follows existing pattern?" -> "Task depends on other tasks?" [label="no"];
    "Task depends on other tasks?" -> "Full context" [label="yes"];
    "Task depends on other tasks?" -> "Lean context" [label="no - standalone"];
}

Lean context (default for independent tasks):

You are implementing: [1-2 sentence description]

File to modify: [exact path]
Pattern to follow: [reference to existing function/test]
What to implement: [specific requirement]
Verification: [exact command to run]

Full context (for dependent or complex tasks):

You are implementing Task N: [task name]

## Task Description
[FULL TEXT of task - paste it, do not make the subagent read a file]

## Context
[Where this fits, what preceded it, architectural decisions]

Never make a subagent read a plan file. Paste the relevant content directly. Reading files wastes tokens and attention on irrelevant sections.

Subagent Brief Template

Every subagent brief should contain these sections:

SectionPurposeRequired
RoleWhat the agent is doingYes
TaskSpecific work to performYes
ContextOnly what is needed to understand the taskYes
FilesExact paths to work withYes
ConstraintsWhat NOT to do, scope boundariesYes
VerificationHow to confirm successYes
Deliverable formatWhat to report backYes
QuestionsPermission to ask before startingRecommended

Effective vs Ineffective Briefs

Ineffective — too vague, no structure:

Fix the tests in the auth module. They're failing.

Ineffective — too much context:

[Paste entire 500-line plan file]
Your task is Task 7, which is about auth tests.

Effective — structured and focused:

You are resolving 3 failing tests in src/auth/session.test.ts.

Failures:
1. "should reject expired sessions" - expects 401, gets 200
2. "should renew valid sessions" - timeout after 5s
3. "should handle concurrent sessions" - race condition

Context: Session management was refactored in commit def456.
The validateSession() function now returns a Promise instead of sync.

Files:
- Fix: src/auth/session.test.ts
- Reference: src/auth/session-manager.ts (the refactored code)
- Do NOT modify: src/auth/session.ts (production code is correct)

Verification: npm test -- --testPathPattern=session.test

Report: Root cause per test, what you changed, test results.

Team Message Design

Peer-to-Peer Messages

Use SendMessage with type "message" for direct coordination.

Structure messages as:

[WHAT] - One line summary of the point
[DETAIL] - Supporting information (if needed)
[ACTION] - What you need from the recipient (if anything)

Effective:

SendMessage -> backend teammate:
"The profile API needs a PUT /profile/preferences endpoint.
Frontend needs to update preferences without replacing the full profile.
Can you add this to the contract before implementing?"

Ineffective:

SendMessage -> backend teammate:
"Hey, I was working on the frontend and I noticed we need
some changes. The profile page has this preferences feature where
users can update without replacing everything and I think we need
a new endpoint for that. What do you think? Also I noticed..."

Broadcast vs Direct Message

digraph message_type {
    "Who needs this information?" [shape=diamond];
    "Entire team?" [shape=diamond];
    "broadcast (expensive)" [shape=box];
    "SendMessage to specific teammate" [shape=box style=filled fillcolor=lightgreen];

    "Who needs this information?" -> "Entire team?";
    "Entire team?" -> "broadcast (expensive)" [label="yes - convention change, critical blocker"];
    "Entire team?" -> "SendMessage to specific teammate" [label="no - most cases"];
}

Broadcast only when:

  • Convention or pattern change that affects every teammate
  • Critical blocker that halts all progress
  • Shared resource conflict

Direct message for everything else (status reports, questions, findings, coordination).

Reporting to Team Lead

When completing a task, report:

COMPLETED: [task name]
RESULT: [one-line summary]
FILES CHANGED: [list]
FINDINGS: [anything the lead or other teammates should know]
CONCERNS: [anything that might affect other tasks]

Handoff Formats

Implementer to Reviewer

## What Was Built
[Summary - what changed and why]

## Files Changed
[Exact paths, one per line]

## Test Results
[Pass/fail counts, any notable results]

## Self-Review Notes
[Issues found and resolved during self-review]
[Remaining concerns]

## Verification Command
[Exact command to run]

Reviewer to Implementer (Fix Request)

## Issues Identified
[List each issue with file:line reference]

## Priority
- Blocking: [must resolve before approval]
- Important: [should resolve]
- Suggestion: [consider for improvement]

## Scope Boundaries
[Do not refactor while fixing — stay focused]

Investigator to Lead (Debug/Research)

## Hypothesis Under Test
[What was being investigated]

## Evidence
- Supporting: [evidence favoring the hypothesis]
- Contradicting: [evidence against the hypothesis]

## Confidence
[High/Medium/Low with reasoning]

## Recommendation
[Next steps based on findings]

## Cross-Cutting Discoveries
[Anything that affects other investigations]

Context Management

What to Include

  • Exact file paths (always absolute, never approximate)
  • Error messages verbatim (do not paraphrase)
  • Relevant code snippets (not entire files)
  • Specific line numbers for references
  • Verification commands ready to copy-paste
  • Dependencies and prerequisites

What to Exclude

  • Complete plan files (paste only the relevant task)
  • Completed task details (unless they are dependencies)
  • Project history irrelevant to the task
  • Alternative approaches that were rejected
  • Verbose explanations of obvious patterns

The Context Budget Guideline

Agent TypeTarget ContextRationale
ImplementerTask + pattern + filesFocus on building
ReviewerSpec + diff + checklistFocus on verifying
InvestigatorHypothesis + evidence locationsFocus on discovering
Teammate messageAction needed + minimal contextRespect their context window

Error Escalation

When an agent encounters an unresolvable problem:

digraph escalation {
    "Agent hits obstacle" [shape=box];
    "Can resolve independently?" [shape=diamond];
    "Resolve it" [shape=box];
    "Affects only own task?" [shape=diamond];
    "Report to lead at task completion" [shape=box];
    "Message lead immediately" [shape=box];
    "Affects other teammates?" [shape=diamond];
    "Message affected teammates" [shape=box];

    "Agent hits obstacle" -> "Can resolve independently?";
    "Can resolve independently?" -> "Resolve it" [label="yes"];
    "Can resolve independently?" -> "Affects only own task?" [label="no"];
    "Affects only own task?" -> "Report to lead at task completion" [label="yes"];
    "Affects only own task?" -> "Affects other teammates?" [label="no - blocks others"];
    "Affects other teammates?" -> "Message affected teammates" [label="yes"];
    "Affects other teammates?" -> "Message lead immediately" [label="no - requires lead decision"];
}

Escalation message format:

BLOCKED: [what is blocked]
CAUSE: [why it is blocked]
ATTEMPTED: [what was tried]
NEED: [what would unblock - decision, information, or fix]

Cognitive Traps

RationalizationTruth
"More context is always helpful"More context = more distraction. Lean context produces better results for independent tasks.
"They can figure out what's relevant"Agents waste tokens parsing irrelevant content. Curate context for them.
"Just read the plan file"Plan files contain all tasks. The agent gets distracted by other tasks. Paste only the relevant portion.
"I'll explain informally, no structure needed"Unstructured prompts produce unstructured results. Use the template.
"Short messages seem curt"Concise messages respect the recipient's context window.
"I'll report everything I found"Report what is actionable. Filter noise before sending.

Guardrails

Prohibited:

  • Making subagents read plan files (paste content instead)
  • Sending unstructured prompts ("fix the tests")
  • Including irrelevant context ("here's the full history...")
  • Using broadcast for routine updates
  • Omitting the deliverable format section (agents will not know what to report)
  • Escalating without stating what was already attempted

Mandatory:

  • Structure every prompt with role, task, context, constraints, deliverable
  • Paste content directly instead of referencing files
  • Include verification commands in implementation prompts
  • Use direct messages over broadcast
  • Include file paths in every handoff
  • Report cross-cutting discoveries to affected parties

Integration

Consumed by:

  • godmode:delegated-execution — Implementer and reviewer prompts
  • godmode:parallel-execution — Concurrent agent prompts
  • godmode:team-orchestration — Team communication patterns

Complements:

  • godmode:fault-diagnosis — Structure for debug investigation reports
  • godmode:quality-gate — Structure for review requests
  • godmode:completion-gate — Structure for completion reports

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.03%
按下载量换算37

Claude

29.38%
按下载量换算30

Cursor

18%
按下载量换算18

Gemini CLI

8.3%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills