Skip to content
Agentmart
Submit a tool

agent-controller-api-compat

Skill by haitaopanhq

IndexedApache-2.0★ 1
Write a review

Chalk Labs

Need help deploying agent-controller-api-compat?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/haitaopanhq-agent-controller-api-compat

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The publisher has not written a description yet.

Use cases: backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
agent-controller-api-compat
Description
None
License
Apache-2.0
Instructions
51 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • missing YAML frontmatter
  • name: missing
  • description: missing

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Skill: agent-controller-api-compat

## Purpose

避免 Agent 与 Controller 因 API 路径差异导致的 404/白屏类事故。

## Trigger

出现以下任一现象时立即使用本技能:

- Agent 日志包含 `controller returned 404`(users/status)
- `/panel/agent` 页面节点异常或 client-side exception
- 新环境切换 controller 地址后节点全量离线

## Canonical Contract

- 推荐标准路径:`/api/agent-server/v1/*`
- 兼容旧路径:`/api/agent/v1/*`(仅在迁移窗口内保留)

## Mandatory Checks

1. **Controller route probe**
   - `GET /api/agent-server/v1/users`
   - `POST /api/agent-server/v1/status`
   - `GET /api/agent/v1/users`
   - `POST /api/agent/v1/status`
2. **Agent fallback behavior**
   - 首路径 404 时,自动尝试兼容路径
3. **Console payload safety**
   - 节点接口返回非数组时不崩溃,需回退为空列表并展示错误
4. **Observability**
   - 日志中区分 `404 fallback` 与 `hard failure`

## Implementation Rules

- Agent 客户端调用 controller endpoint 必须支持路径回退(至少覆盖 users/status)。
- 新增/调整路径时必须同步:
  - `docs/api/*`
  - 发布检查清单
  - E2E smoke 脚本
- 前端消费节点 API 时必须做 schema 验证,禁止直接假设数组结构。

## Release Gate (Do not bypass)

上线前必须同时满足:

- Agent 端 `go test ./...` 通过
- Console 端 `yarn typecheck` 通过
- 真实环境 smoke:`/panel/agent` 可打开且无 client exception
- Agent 日志 5 分钟内无连续 404(users/status)

From haitaopanhq/.github, Apache-2.0.

More from haitaopanhq/.github

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Feb 5, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from haitaopanhq

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get agent-controller-api-compat running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying agent-controller-api-compat?

CallGet help
Cite this page

agent-controller-api-compat skill. Agent Mart. https://agentmart.dev/skills/haitaopanhq-agent-controller-api-compat (last updated 2026-10-24)