HunterXing

Laya Agent Skill — Development skill for Claude Code

Development community

Agent skill for typed decisions via any Laya-compatible API — routing, triage, guardrails, moderation, tool pre-screening.

How to install Laya Agent Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open HunterXing/laya-agent-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Laya Agent Skill does

Agent skill for typed decisions via any Laya-compatible API — routing, triage, guardrails, moderation, tool pre-screening. Provider-agnostic.

Alternatives in Development

  • Dario — A local OpenAI- and Anthropic-compatible proxy that brings your Claude Pro/Max subscription to Cursor, Cline 485 ★
  • Openseek — OpenSeek - 广度求索: open-source TUI coding agent with multi-provider routing, MCP, LSP, and Plan/Agent/YOLO modes 207 ★
  • Opencode X — Open-source Claude Code alternative 97 ★

README

laya-agent-skill

A provider-agnostic, agent-agnostic sidecar for making fast, structured **typed decisions** through any [Laya](https://github.com/NandhaKishorM/laya)-compatible decision API. It works with a local service, a self-hosted gateway adapter, or any OpenAI-compatible deployment.

What it does

Laya-compatible decision backends answer `choice` / `score` / `noul` questions with probabilities instead of generating prose. The skill provides bounded workflows and safe integration paths for coding and tool-using agents:

  • request, ticket, email, log and evidence classification;
  • model, domain, workflow and skill routing suggestions;
  • failure triage and evidence verification;
  • change-risk floors and minimum test-scope hints;
  • prompt-injection, jailbreak, phishing, spam and toxicity pre-screening;
  • tool-call pre-screening before execution, with deterministic policy still in charge.

It explicitly does **not** let a decision model authorize destructive operations. Hard rules and user confirmation always win.

Agent-agnostic by design

The host only needs one of these capabilities:

  • local command execution — use scripts/laya.sh or scripts/laya.py;
  • MCP stdio — register scripts/laya_mcp.py;
  • HTTP tool access — call the configured OpenAI-compatible endpoint;
  • project rules / skill loading — use the contract in references/integration.md.

No hostname, token, model name or vendor is hardcoded. The backend is resolved at runtime:

Variable Purpose Default
LAYA_BASE_URL OpenAI-compatible API root required
LAYA_API_KEY Bearer token, if required —
LAYA_MODEL Default checkpoint or preset laya-latest
LAYA_DECISION_PATH Native state + questions path /decisions
LAYA_CHAT_PATH OpenAI-compatible path /chat/completions
LAYA_TIMEOUT_SECONDS Request timeout 15
LAYA_NATIVE_DECISIONS Prefer native endpoint when true false

Quick star