一键导入
remote-control-builder
Build remote control system for Claude Code using multi-agent team. Use when Codex should run the converted remote-control-builder workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build remote control system for Claude Code using multi-agent team. Use when Codex should run the converted remote-control-builder workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Project management database for tracking specs, jobs, tasks, and execution. Use when Codex should run the converted pm-db workflow. Inputs: command.
Mode 2 - Structured execution with quality gates (Part 1-5) with pm-db tracking. Use when Codex should run the converted start-phase-execute workflow. Inputs: task_list_file, extra_instructions, spec_id.
Converted Claude skill for architecture-quality-assess. Use when Codex should run the converted architecture-quality-assess workflow.
Complete feature workflow - from planning to execution with PM-DB tracking. Use when Codex should run the converted feature-new workflow. Inputs: feature_description.
Use this agent when you need to design API contracts BEFORE implementation. This agent enforces contract-first API design, creates OpenAPI specifications, and defines three-tier architecture for Next.js backend APIs. Invoke in these scenarios:. Use when Codex needs this specialist perspective or review style.
Deep analysis of codebase for code duplication. Detects exact, structural, and pattern-level duplicates, generates comprehensive reports with refactoring suggestions and metrics.. Use when Codex should run the converted code-duplication workflow.
| name | remote-control-builder |
| description | Build remote control system for Claude Code using multi-agent team. Use when Codex should run the converted remote-control-builder workflow. |
Converted Claude skill workflow for Codex/OpenAI use.
Converted from skills/remote-control-builder/SKILL.md.
Supporting files copied from the Claude source:
references/INTEGRATION_GUIDE.mdreferences/TEAMS_EXAMPLE.mdThe content below was adapted from the Claude source. Rewrite tool and runtime assumptions as needed when they refer to Claude-only features.
Purpose: Orchestrate a multi-agent team to build a complete remote control system for Codex sessions (PTY server + browser client + agent API).
User invokes with: $remote-control-builder
You are the Team Lead for building a remote control system. Your job is to:
TeamCreate({
team_name: "remote-control-builder",
description: "Build remote control system for Codex",
agent_type: "general-purpose"
});
Creates:
~/.codex/teams$remote-control-builder/config.json~/.codex/tasks$remote-control-builder/Use TaskCreate to define all work items:
// Task 1: PTY Server (backend)
TaskCreate({
subject: "Build Node.js PTY server with WebSocket support",
description: `
Create a TypeScript server that:
- Spawns Codex process via node-pty
- Exposes WebSocket endpoint for terminal I/O
- Handles multiple concurrent sessions
- Implements session management (create, attach, list)
- Supports terminal resize events
Dependencies:
- node-pty
- ws (WebSocket library)
- express
Output: src/server/pty-server.ts
`,
activeForm: "Building PTY server"
});
// Task 2: Browser Client (frontend)
TaskCreate({
subject: "Build xterm.js browser client",
description: `
Create a TypeScript browser client that:
- Renders terminal in browser using xterm.js
- Connects to PTY server via WebSocket
- Handles user input (keyboard, paste)
- Implements terminal resize
- Shows connection status
Dependencies:
- xterm
- xterm-addon-fit
Output: src/client/terminal-client.ts
`,
activeForm: "Building browser client"
});
// Task 3: Agent API (automation interface)
TaskCreate({
subject: "Build agent control API",
description: `
Create a TypeScript API that allows agents to:
- Send commands programmatically
- Read terminal output
- Create/destroy sessions
- List active sessions
- Get session metadata
Output: src/agent/controller.ts
`,
activeForm: "Building agent API"
});
// Task 4: Integration Tests
TaskCreate({
subject: "Write integration tests",
description: `
Test the complete system:
- Server starts and accepts connections
- Client connects and renders terminal
- Commands execute in Codex
- Agent API can control sessions
Use: Playwright for browser tests, Jest for unit tests
Output: tests/integration/
`,
activeForm: "Writing integration tests"
});
// Task 5: Documentation
TaskCreate({
subject: "Write README and deployment guide",
description: `
Document:
- Architecture overview
- Setup instructions
- API reference
- Security considerations
- Deployment guide
Output: README.md, docs/
`,
activeForm: "Writing documentation"
});
// Backend developer for PTY server
Task({
subagent_type: "nextjs-backend-developer", // Has Node.js expertise
team_name: "remote-control-builder",
name: "backend-dev",
prompt: `
You are responsible for Task 1: Build PTY server.
Read the task details:
TaskGet({ taskId: "1" })
Claim the task:
TaskUpdate({ taskId: "1", owner: "backend-dev", status: "in_progress" })
Build the server, then mark complete:
TaskUpdate({ taskId: "1", status: "completed" })
Check for your next task:
TaskList()
`,
description: "Build PTY server"
});
// Frontend developer for browser client
Task({
subagent_type: "frontend-developer",
team_name: "remote-control-builder",
name: "frontend-dev",
prompt: `
You are responsible for Task 2: Build browser client.
Read task details, claim it, build it, mark complete.
Then check TaskList() for Task 4 (integration tests).
`,
description: "Build browser client"
});
// API developer for agent interface
Task({
subagent_type: "general-purpose",
team_name: "remote-control-builder",
name: "api-dev",
prompt: `
You are responsible for Task 3: Build agent API.
This API will be used by autonomous agents to control Codex sessions.
Coordinate with backend-dev to understand the session management interface.
`,
description: "Build agent API"
});
// QA engineer for testing
Task({
subagent_type: "qa-engineer",
team_name: "remote-control-builder",
name: "qa-engineer",
prompt: `
You are responsible for Task 4: Integration tests.
Wait for Tasks 1, 2, 3 to complete (check TaskList periodically).
When ready, write comprehensive tests that verify:
- PTY server works
- Browser client connects
- Agent API controls sessions
`,
description: "Write integration tests"
});
// Technical writer for docs
Task({
subagent_type: "technical-writer",
team_name: "remote-control-builder",
name: "tech-writer",
prompt: `
You are responsible for Task 5: Documentation.
Coordinate with other teammates to understand the architecture.
Use SendMessage to ask questions about implementation details.
`,
description: "Write documentation"
});
As Team Lead, periodically check task status:
// Check what's completed
TaskList();
// View specific task details
TaskGet({ taskId: "1" });
// Check if any teammate is idle or blocked
// Teammates automatically send notifications when they go idle
Facilitate communication between teammates:
// Example: frontend-dev asks backend-dev a question
// (This happens automatically via SendMessage)
// You receive a notification:
// "frontend-dev → backend-dev: What's the WebSocket URL format?"
// backend-dev responds automatically:
// "backend-dev → frontend-dev: ws://localhost:8080?session={sessionId}"
// You don't need to intervene unless there's a blocker
After all tasks complete:
// Check that all files exist
Read({ file_path: "./src/server/pty-server.ts" });
Read({ file_path: "./src/client/terminal-client.ts" });
Read({ file_path: "./src/agent/controller.ts" });
Read({ file_path: "./tests/integration/remote-control.test.ts" });
Read({ file_path: "./README.md" });
// Run integration tests
Bash({ command: "npm test" });
// Verify build passes
Bash({ command: "npm run build" });
// Request shutdown for all teammates
const teammates = ["backend-dev", "frontend-dev", "api-dev", "qa-engineer", "tech-writer"];
for (const teammate of teammates) {
SendMessage({
type: "shutdown_request",
recipient: teammate,
content: "All tasks complete, shutting down team"
});
}
// Wait for confirmations, then clean up
TeamDelete();
Use addBlockedBy to enforce order:
TaskUpdate({
taskId: "4", // Integration tests
addBlockedBy: ["1", "2", "3"] // Must wait for server, client, API
});
Tasks 1, 2, 3 can run in parallel (no dependencies). Task 4 must wait for all three. Task 5 can run in parallel with 4.
Teammates communicate directly via SendMessage:
// frontend-dev asks backend-dev
SendMessage({
type: "message",
recipient: "backend-dev",
content: "What's the session ID format?",
summary: "Question about session IDs"
});
// You (team lead) see a summary in idle notification
// but don't need to relay the message
IMPORTANT: Teammates go idle after every turn. This is NORMAL.
You don't need to check for messages manually.
✅ All 5 tasks completed ✅ Integration tests pass ✅ Build succeeds ✅ README.md exists and is comprehensive ✅ All teammates shut down cleanly ✅ Team directory cleaned up
After completion, provide:
src/server/pty-server.tssrc/client/terminal-client.tssrc/agent/controller.tstests/integration/README.mdnpm install to install dependenciesnpm run dev to start serverhttp://localhost:3000 in browserClaudeCodeAgent class for programmatic control