Agent Skills › o8-run/o8 › o8-code

o8-code

GitHub

指导代码审查与修改,涵盖Next.js/React应用、Tauri壳及API路由配置。强调使用运行时注册表而非硬编码,遵循严格TypeScript规范与安全中间件策略,确保架构契约合规。

.agents/skills/o8-code/SKILL.md o8-run/o8

Trigger Scenarios

检查或修改应用程序代码 调整API行为或路由 验证模型调用逻辑 审查持久层或架构契约

Install

npx skills add o8-run/o8 --skill o8-code -g -y
More Options

Non-standard path

npx skills add https://github.com/o8-run/o8/tree/main/.agents/skills/o8-code -g -y

Use without installing

npx skills use o8-run/o8@o8-code

指定 Agent (Claude Code)

npx skills add o8-run/o8 --skill o8-code -a claude-code -g -y

安装 repo 全部 skill

npx skills add o8-run/o8 --all -g -y

预览 repo 内 skill

npx skills add o8-run/o8 --list

SKILL.md

Frontmatter
{
    "name": "o8-code",
    "description": "Inspect or change application code, API behavior, routing, model calls, persistence, or architecture contracts."
}

Code and architecture

  • o8 is a Next.js 16 and React 19 app in a Tauri v2 shell. Desktop and mobile are separate surfaces. Orchestrator backends in src/lib/lane/orchestrator-backends/ and worker adapters in src/lib/runtimes/ are separate systems. Inspect the current registries before changing routing.

  • Runtime code is the source of truth for ports, routes, commands, and registrations. Never hardcode API or WebSocket ports, user home paths, or stale inventory counts. Use the existing resolvers and registries.

  • API middleware is default-deny for /api/*. Public routes require deliberate narrow allowlisting; externally reachable self-authenticating routes must verify their own credentials. Return structured route errors rather than throwing to the framework.

  • TypeScript is strict. Use the existing two-space, single-quote, semicolon style and @/ imports. The default file ceiling is 800 lines; existing waivers do not authorize new ones.

  • Ad-hoc model calls use the existing proxy and routing layer. The sanctioned AI SDK import boundary is src/lib/chat/gateway-client.ts. Strict-mode MCP schemas keep a plain top-level object; validate conditional relationships in the handler.

  • Architecture and extension contracts: docs/internals/system-architecture.md, docs/internals/runtime-adapter-contract.md, and the implementation named above. Historical inventories in docs are orientation, not runtime truth.

Version History

  • 648cab6 Current 2026-11-14 00:27

Same Skill Collection

.agents/skills/o8-checks/SKILL.md
.agents/skills/o8-contribute/SKILL.md
.agents/skills/o8-delegate/SKILL.md
.agents/skills/o8-release/SKILL.md
.agents/skills/o8-ui/SKILL.md
.agents/skills/ship/SKILL.md
.claude/skills/o8-dev/SKILL.md
.claude/skills/reports/SKILL.md
.claude/skills/ship/SKILL.md
plugins/o8/skills/check-status/SKILL.md
plugins/o8/skills/connected-o8/SKILL.md
plugins/o8/skills/hand-off-work/SKILL.md

Metadata

Files
0
Version
8c2d8bd
Hash
8c0db14d
Indexed
2026-11-14 00:27

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-14 23:30
浙ICP备14020137号-1