arxdsilva/agent-office / .claude/skills/protocol-change
protocol-change
VerifiedChange agent-office's public contracts — AgentEvent fields, inbox/reply/messages HTTP APIs, the IPC contract (AgentOfficeApi, ServerMessage), or the hook's output. Use whenever packages/shared/src/{protocol,desktop-api,ipc-channels}.ts or an /api route's request/response shape changes.
Change a public contract (additive only)
External agents and installed hooks depend on these shapes. See ARCHITECTURE.md.
- Red — add a case to
packages/shared/src/index.test.tsfor the new field/shape. The compatibility guard ({agentId}alone parses; unknown fields ignored) must stay green. - Green — add the field as optional in the zod schema / type. Never rename, remove, retype, or make a field required.
- Core — if it's agent state: merge logic + tests in
packages/core/src/domain/agent.ts(applyEventmerges only defined fields; add it to the visible fields if it should trigger an upsert). - Adapters — HTTP route +
packages/adapters/src/http/http-api.test.ts(400 for invalid input, success path); IPC handler +packages/desktop/src/main/ipc-api.test.tsand the preload bridge. - Renderer — reducer (
web/src/app/state.ts) and view-model tests, then rendering (adapters/three/avatar.ts,adapters/dom/*) withtextContentonly. - E2E — extend the relevant
packages/adapters/test/e2e.*.test.ts; for IPC, a spec inpackages/desktop/e2e/. - Docs — README schema tables and examples.
make checkandmake build test-ui.
A breaking change is only allowed with an explicit major-version note in the README and the user's agreement.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 466k | Updated | Claude CodeCodex | Verified | Install |
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 466k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |