一键导入
virtual-office
Virtual Office — VSCode extension sidebar visualization with 2D cartoon agents in office environment. Real-time 4-tier architecture visualization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Virtual Office — VSCode extension sidebar visualization with 2D cartoon agents in office environment. Real-time 4-tier architecture visualization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences. Use when: 3D website, three.js, WebGL, react three fiber, 3D experience.
Game art principles — art style, color theory, animation principles, asset pipeline
Game design principles — core loop, GDD, player psychology, difficulty balancing, progression
Orchestrator game — route to implementation skill (pxhopencode) + principle-based sub-skill (agent-skills-hub)
Mobile game principles — touch input, battery, thermal, app stores, monetization
Multiplayer game principles — networking architecture, synchronization, security, matchmaking
| name | virtual-office |
| description | Virtual Office — VSCode extension sidebar visualization with 2D cartoon agents in office environment. Real-time 4-tier architecture visualization. |
Văn phòng AI 2D trong sidebar VSCode — xem các agent làm việc trong văn phòng mở, có bàn ghế, máy tính, contract bay giữa các agent.
VSCode Extension (skills/virtual-office/extension/) cung cấp webview sidebar hiển thị 11 agent pixel-art real-time.
VSCode Extension Background Server
│ │
├── eventWatcher.js ├── server.mjs (port 2910)
│ (fs.watch _shared/ events) │ (API: /emit, /state)
│ │
├── officeViewProvider.js └── emit-event.mjs
│ (webview + postMessage bridge) (CLI emit → events log)
│
└── media/office.html
(2D cartoon canvas)
.\pxh-install-extension.bat install # VS Code Stable
.\pxh-install-extension.bat install insiders # VS Code Insiders
.\pxh-install-extension.bat uninstall # Gỡ cài đặt
Restart VS Code → Virtual Office xuất hiện ở sidebar với icon $(organization).
Extension tự động đồng bộ với workspace activity qua 2 cơ chế:
eventWatcher.js): Poll _shared/office-events.log và _shared/opencode-state.json mỗi 500msserver.mjs): Xử lý event POST từ CLI tools, ghi vào events lognode skills/virtual-office/templates/emit-event.mjs \
--type agent_status \
--from pxh-expert \
--message "Code completed"
import { emit } from './emit-event.mjs'
emit({ type: 'agent_status', from: 'pxh-expert', message: 'Code completed' })
| File | Vai trò |
|---|---|
extension/src/extension.js | Extension entry point |
extension/src/eventWatcher.js | File watcher + state poller |
extension/src/officeViewProvider.js | Webview provider + postMessage bridge |
extension/media/office.html | Webview 2D canvas UI |
extension/media/renderer-state.js | State store cho webview |
templates/server.mjs | Background API server (port 2910) |
templates/emit-event.mjs | Event emitter (CLI + module) |
templates/agent-runtime.mjs | Agent state management |
templates/hook-provider.mjs | OpenCode event normalization |
templates/messages.mjs | Message type definitions |
templates/renderer-state.js | State store (inlined vào webview) |
| Excuse | Reality |
|---|---|
| "Office chỉ là visual, lỗi không sao" | User mất niềm tin vào AI team |
| "Event sync chậm vài giây cũng được" | UX tệ, agent speech bubble lag |
| "Không cần test extension, manual là đủ" | Regression mỗi lần thêm tính năng mới |
_shared/)$(organization) "PXH Virtual Office"Ctrl+Shift+P → "PXH Office: Open Virtual Office" hoạt động