Skip to content

docs(skills): add explicit API reference to agent-message and agent-observe - #920

Open
Xsidz wants to merge 3 commits into
PrimeIntellect-ai:mainfrom
Xsidz:fix/skill-api-reference
Open

docs(skills): add explicit API reference to agent-message and agent-observe#920
Xsidz wants to merge 3 commits into
PrimeIntellect-ai:mainfrom
Xsidz:fix/skill-api-reference

Conversation

@Xsidz

@Xsidz Xsidz commented Aug 8, 2026

Copy link
Copy Markdown

Summary

Adds explicit API reference sections to both agent-message and agent-observe skill docs so agents can discover the full API without running dir() + inspect.signature().

agent-message:

  • Added ## Import block with correct import statement.
  • Added typed function signatures for list_agents() and send() in Python code blocks.
  • Fixed broadcast documentation: the old prose described send("all", message) as positional, but the implementation raises TypeError for that form. Correct usage is send("all", broadcast_message="...").
  • Added explicit list of non-existent functions (list_messages(), observe()) to prevent incorrect calls.

agent-observe:

  • Added ## Import block.
  • Added typed function signatures for list_agents(), get_agent(), and recent_messages() with parameter constraints (limit 1–50, max_chars 80–2000).
  • Added explicit list of non-existent functions (observe(), list_messages()).

No code changes — doc-only.

Test plan

  • npm run check passes (biome, tsgo, installer render, browser smoke)
  • All signatures verified against __init__.py implementations

Fixes #762

Note

Add explicit API reference sections to agent-message and agent-observe skill docs

  • Rewrites the API sections in agent-message/SKILL.md and agent-observe/SKILL.md to include typed function signatures, import patterns, and structured parameter/return field documentation.
  • Documents broadcast syntax for agent_message.send() and clarifies constraints on receiver_role/receiver_name for direct vs. broadcast messages.
  • Adds explicit "non-existent functions" sections to both skill docs (e.g. agent_message.list_messages(), agent_observe.observe()) to prevent common misuse.

Macroscope summarized cd90604.

Siddhesh Kabra added 2 commits August 8, 2026 15:17
Adds typed function signatures, import pattern, correct broadcast
syntax (broadcast_message kwarg, not positional), and explicit
list of non-existent functions to prevent agent confusion.

Part of fixes PrimeIntellect-ai#762
Adds typed function signatures, import pattern, and explicit list of
non-existent functions (observe(), list_messages()) to prevent agents
from calling them.

fixes PrimeIntellect-ai#762
Copilot AI lite review requested due to automatic review settings August 8, 2026 09:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds explicit API reference sections to the agent-message and agent-observe skill docs so agents can discover the callable surface (imports + signatures) without runtime introspection, and records the doc update in the coding-agent changelog.

Changes:

  • Added ## Import + ## API Reference sections with typed signatures to agent-message and agent-observe skill docs.
  • Documented broadcast usage and called out common non-existent function mistakes to reduce incorrect tool calls.
  • Added an [Unreleased] changelog entry for the documentation update.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/coding-agent/skills/agent-observe/SKILL.md Adds import + API reference signatures for observation helpers and documents common non-existent calls.
packages/coding-agent/skills/agent-message/SKILL.md Adds import + API reference signatures for messaging helpers, documents broadcast usage, and common non-existent calls.
packages/coding-agent/CHANGELOG.md Records the doc update under [Unreleased].

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/coding-agent/skills/agent-message/SKILL.md Outdated
Replace string-literal union "parent" | "sibling" | "child" | None
with str | None plus inline comment listing valid values — the union
form is not valid Python and would confuse agents copying the snippet.

@Xsidz Xsidz left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in cd906048 — replaced the invalid "parent" | "sibling" | "child" | None union with str | None and moved the allowed values to an inline comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[coding-agent] agent_message and agent_observe skill API surface not discoverable

2 participants