xray-orchestrator
Main orchestration skill for xray agents. Provides commands to coordinate agent work and invoke xray APIs through the local HTTP API server.
- License 许可
- MIT
- 所属仓库
- 0xRayAI/xray
- 最近更新
- 2026-11-13
- Stars
- ★ 2
- Forks
- 3
01 前言 Front Matter
- name
- xray-orchestrator
- metadata
- { "tags": [ "ai", "orchestration", "agent" ], "author": "xray", "openclaw": { "emoji": "🤖", "primaryEnv": "XRAY_API_KEY" } }
- description
- Main orchestration skill for xray agents. Provides commands to coordinate agent work and invoke xray APIs through the local HTTP API server.
- user-invocable
- true
02 资源文件 1
- 脚本index.ts6.8 KB
03 SKILL.md 正文
xray Orchestrator Commands
/xray
Display xray status and available commands.
Usage: /xray
Example:
/xray
/xray-status
Get detailed status of xray integration including connection status.
Usage: /xray-status
Example:
/xray-status
/xray-analyze
Analyze code using xray code analysis capabilities.
Usage: /xray-analyze <file-path>
Arguments:
file-path: Path to file to analyze (required)
Example:
/xray-analyze src/index.ts
/xray-code
Perform code review on a file.
Usage: /xray-code <file-path> [options]
Arguments:
file-path: Path to file to review (required)--fix: Attempt to fix issues automatically (optional)
Example:
/xray-code src/utils/helper.ts
/xray-code src/utils/helper.ts --fix
/xray-file
Read file using xray file tools.
Usage: /xray-file <file-path> [line-start:line-end]
Arguments:
file-path: Path to file to read (required)line-start:line-end: Line range to read (optional)
Example:
/xray-file src/index.ts
/xray-file src/index.ts 1:50
/xray-exec
Execute arbitrary xray command or script.
Usage: /xray-exec <command>
Arguments:
command: Command to execute (required)
Example:
/xray-exec list files src/
/xray-help
Show this help message.
Usage: /xray-help [command]
Arguments:
command: Specific command to get help for (optional)
Example:
/xray-help
/xray-help xray-analyze
Implementation Notes
This skill acts as the main interface between OpenClaw channels and xray agents. It processes user commands and forwards them to the xray API server running on localhost:18431.
API Endpoints
POST /api/agent/invoke- Invoke xray agentGET /api/agent/status- Get agent statusGET /health- Health check
Authentication
The skill reads the XRAY_API_KEY environment variable for authentication.
Error Handling
All errors are caught and formatted as user-friendly messages. Detailed error information is logged for debugging.
Dependencies
- xray API server running on localhost:18431
- XRAY_API_KEY environment variable
04 同仓库更多 Skills
ui-ux-design
User interface and user experience design with mobile-first approach, cognitive simplicity, and accessibility-first principles
testing-strategy
Design comprehensive testing strategies and optimize test coverage
testing-best-practices
Testing best practices and quality assurance
tech-writer
Documentation writer for API docs, READMEs, ADRs, changelogs, and developer experience
strategist
Strategic guidance and complex problem-solving with architectural decision-making and risk analysis
storyteller
Write deep narrative reflections, sagas, journeys, and technical stories using the current session's full context