oryxos: Skill for Claude Code

.claude/skills/oryxos-init/SKILL.md

oryxos-init is a skill for Claude Code from oryx-labs/oryxos. It costs 165 tokens per session (2,700 once invoked), scanned A, original, Apache-2.0.

A project-initialization guide for Java 21 and Spring Boot 3.x applications, especially OryxOS. It sets up a Maven multi-module foundation with logging, monitoring, API documentation, code checks, security scans, and CI.

In plain words
What is it for?
Use it to create the repository skeleton, configure Spring MVC and virtual threads, prepare SQLite and JPA, reserve audit tables, add formatting and security checks, and build a deployable fat JAR.
Why use it?
It gives a new project common engineering and quality rules before business features are added, while keeping secrets out of source code.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is oryx-labs/oryxos's own configuration. It tells Claude Code how to work on oryxos itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything oryxos configures →

Reuse

Borrowing it

Nothing to install: this file belongs to oryx-labs/oryxos. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/oryx-labs/oryxos/main/.claude/skills/oryxos-init/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/oryx-labs/oryxos

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for oryxos-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/oryx-labs/oryxos/oryxos-init/github.svg)](https://agentmods.dev/skills/oryx-labs/oryxos/oryxos-init)
Your own site
<a href="https://agentmods.dev/skills/oryx-labs/oryxos/oryxos-init"><img src="https://agentmods.dev/badge/skills/oryx-labs/oryxos/oryxos-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for oryxos-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/oryx-labs/oryxos/oryxos-init"><img src="https://agentmods.dev/badge/skills/oryx-labs/oryxos/oryxos-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,700 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00165 $0.02700
Opus 5 $0.00082 $0.01350
Sonnet 5 $0.00033 $0.00540
Haiku 4.5 $0.00016 $0.00270

Measured 9d ago against content hash 17ed28dae29a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

oryxos-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/oryxos-init/SKILL.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OryxOS 项目初始化 Skill

把"工程地基"一次性、标准化地装好——业务逻辑(五大核心能力)不在本 skill 范围内。

什么时候用

  • 新建 OryxOS 仓库、或给空仓库起工程骨架时
  • 要给项目补齐日志 / 监控 / API 规范 / 开发规范 / 安全检查时
  • 任何 JDK 21 + Spring Boot 3.x 的企业级单体,想一次到位地装好工程地基时

不做什么(边界)

  • 不实现五大核心能力(Provider / ReAct / Memory / Tool / Web)——那是业务模块,走 Spec-Kit 的 user story 拆解
  • 不硬编码任何密钥 / token / API key——一律用环境变量占位(${ENV_VAR}
  • 不替换已存在的业务代码;只新增基础设施与配置

前置约定(来自 OryxOS constitution)

实施前确认这些硬约束,写进配置:

  • JDK 21、Spring Boot 3.x、Maven 多模块、单二进制(fat JAR)部署
  • HTTP 层用 Spring MVC + Java 21 虚拟线程(不引入响应式)
  • 持久化 SQLite + Spring Data JPA;长期记忆走 MEMORY.md(本 skill 只配数据源,不建业务表)
  • 审计表 tool_invocations / llm_calls 的建表脚本预留位(day one 落库)
  • 代码必须过 Google 格式 + 阿里编码规约 + 安全扫描,才能合并

初始化步骤(按顺序执行,每步完成后 git commit

0. 确认参数

向用户确认:groupId、根 artifactId、模块清单(默认 OryxOS 9 模块)、端口(默认 8080)、JDK(21)。

1. Maven 多模块骨架

建父 pom.xml(packaging=pom,统一版本管理)+ 9 个子模块: oryxos-coreoryxos-provideroryxos-memoryoryxos-tooloryxos-weboryxos-storageoryxos-bootoryxos-clioryxos-channel-clioryxos-boot 为启动模块(含 main),打 fat JAR。

2. 基础依赖与版本管理(父 pom dependencyManagement / pluginManagement

固定 Spring Boot BOM、Spring AI Alibaba BOM、SQLite JDBC、Picocli、SnakeYAML、 logstash-logback-encoder、springdoc 等版本。具体版本号以实施时最新稳定版为准,先锁定再开发。

3. 日志(结构化)

oryxos-boot/src/main/resources/logback-spring.xml

  • 开发环境:彩色 console pattern
  • 生产环境(profile=prod):JSON 输出(LogstashEncoder),带 traceId(MDC)
  • 统一通过 SLF4J 打日志,禁止 System.out

4. 监控(Actuator + Micrometer + Prometheus)

依赖:spring-boot-starter-actuatormicrometer-registry-prometheusapplication.yaml

management:
  endpoints.web.exposure.include: health,info,prometheus,metrics
  endpoint.health.probes.enabled: true
  metrics.tags.application: oryxos

暴露 /actuator/health/actuator/info/actuator/prometheus

5. HTTP Server(Spring MVC + 虚拟线程)

依赖:spring-boot-starter-webapplication.yaml

server.port: 8080
spring.threads.virtual.enabled: true   # JDK 21 虚拟线程,单机扛高并发

Read the full file on GitHub · 192 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 192 lines · 165 tokens per session scan A 17ed28dae29a

Subscribe to this mod's changes

oryxos-init is a skill published in the GitHub repository oryx-labs/oryxos (156 stars, last pushed today), licensed Apache-2.0. It adds 165 tokens to every session and 2,700 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

zcfg

Integrate zcfg (Zero Dependency Configuration Utility) into Java applications. Use when adding configuration loading, reading properties files, setting up application configuration, or integrating zcfg into a Java project. Triggers on "zcfg", "add configuration", "load properties", "application configuration with…

AdamBien/airails · 75 tokens

agentscope-java

Expert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or…

agentscope-ai/agentscope-java · 91 tokens

microprofile-server

Architecture and coding rules for long-running Java MicroProfile / Jakarta EE server applications — BCE layering, business components (BC), JAX-RS resources, CDI, JSON-P, testing (unit/integration/system), and Maven project structure. Use when creating, generating, scaffolding, writing, or reviewing code, resources…

AdamBien/airails · 87 tokens

scraperapi-java-sdk

Best-practices reference for the ScraperAPI Java SDK (com.scraperapi:sdk Maven artifact). Consult whenever the user is writing, debugging, or reviewing Java code that calls ScraperAPI. Use when user asks: "scrape a website with Java and ScraperAPI", "ScraperAPI Java example", "how do I add ScraperAPI to my Maven…

scraperapi/scraperapi-skills · 175 tokens

dev-java

Use when Java source or Java-owned Maven/Gradle configuration must be implemented, migrated, or refactored across Spring services, HTTP/security boundaries, explicit code-first or contract-first OpenAPI, persistence, transactions, messaging, scheduling, caches, tests, or configuration; owns source edits and…

idaibin/skills · 82 tokens

http-client-migration

Flawed HTTP client migration procedure requiring patch.

Gen-Verse/PAST-Bench · 14 tokens