Agent skill

Oryxos Init

by oryx-labs in oryx-labs/oryxos

初始化 OryxOS(或同类 JDK 21 + Spring Boot 3.x 企业级单体)的工程地基:Maven 多模块骨架、 结构化日志、Actuator + Prometheus 监控、Spring MVC + 虚拟线程、springdoc OpenAPI、 统一响应体与全局异常/错误码、Google 格式 + 阿里编码规约(Spotless + 阿里 P3C +…

Apache-2.0Auto-check passedBackend & APIs

Install Oryxos Init

skills CLI
$ npx skills add oryx-labs/oryxos --skill oryxos-init -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install oryx-labs/oryxos oryxos-init --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/oryx-labs/oryxos.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/oryxos-init .claude/skills/oryxos-init && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
oryxos-init
GitHub stars
186
Token cost
~1.6k tokens
SKILL.md length
342 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
Apache-2.0

At a glance

初始化 OryxOS(或同类 JDK 21 + Spring Boot 3.x 企业级单体)的工程地基:Maven 多模块骨架、 结构化日志、Actuator + Prometheus 监控、Spring MVC + 虚拟线程、springdoc OpenAPI、 统一响应体与全局异常/错误码、Google 格式 + 阿里编码规约(Spotless + 阿里 P3C +…

  • Works in 11 steps: 确认参数 → Maven 多模块骨架 → 基础依赖与版本管理(父 pom dependencyManagement /… → …
  • Tasks that involve OpenAPI specifications
  • SKILL.md covers 什么时候用, 不做什么(边界), 前置约定(来自 OryxOS constitution) and 初始化步骤(按顺序执行,每步完成后 git commit), plus 2 more sections
  • Calls mvn and git

What it does

Oryxos Init is an agent skill from oryx-labs/oryxos. 初始化 OryxOS(或同类 JDK 21 + Spring Boot 3.x 企业级单体)的工程地基:Maven 多模块骨架、 结构化日志、Actuator + Prometheus 监控、Spring MVC + 虚拟线程、springdoc OpenAPI、 统一响应体与全局异常/错误码、Google 格式 + 阿里编码规约(Spotless + 阿里 P3C + Checkstyle)、 代码安全检查(SpotBugs + Find Security Bugs + PMD + OWASP Dependency-Check),以及 CI 与 pre-commit。 当用户要「初始化项目 / 搭工程骨架 / 起脚手架 / 加日志监控 / 加开发规范 / 加代码安全检查」时使用。

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering OpenAPI specifications, Monitoring and alerting and Backend development. It works with OpenAPI, Java, Prometheus and Spring Boot. The repository describes itself as: OryxOS is an open-source Distributed AI Agent OS. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve OpenAPI specifications
  • Tasks that involve Monitoring and alerting
  • Tasks that involve Backend development

Example prompts

  • “/oryxos-init”

Workflow steps

11 steps, taken from the step headings in SKILL.md.

  1. 确认参数
  2. Maven 多模块骨架
  3. 基础依赖与版本管理(父 pom dependencyManagement / pluginManagement)
  4. 日志(结构化)
  5. 监控(Actuator + Micrometer + Prometheus)
  6. HTTP Server(Spring MVC + 虚拟线程)
  7. API 规范(OpenAPI + 统一响应 / 错误码)
  8. 开发规范(Google 格式 + 阿里编码规约,两层互补)
  9. 代码安全检查
  10. CI + pre-commit
  11. 验证

What it can do on your machine

Read from SKILL.md and the folder at commit 6f86810. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • mvn
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Oryxos Init loads about 1.6k tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 342 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from oryx-labs/oryxos at commit 6f86810, republished under its Apache-2.0 licence (© oryx-labs). 342 words, ~1,612 tokens.

Download SKILL.mdSave it as .claude/skills/oryxos-init/SKILL.md (or your agent's skills folder).
name
oryxos-init
description
初始化 OryxOS(或同类 JDK 21 + Spring Boot 3.x 企业级单体)的工程地基:Maven 多模块骨架、 结构化日志、Actuator + Prometheus 监控、Spring MVC + 虚拟线程、springdoc OpenAPI、 统一响应体与全局异常/错误码、Google 格式 + 阿里编码规约(Spotless + 阿里 P3C + Checkstyle)、 代码安全检查(SpotBugs + Find Security Bugs + PMD + OWASP Dependency-Check),以及 CI 与 pre-commit。 当用户要「初始化项目 / 搭工程骨架 / 起脚手架 / 加日志监控 / 加开发规范 / 加代码安全检查」时使用。

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-core、oryxos-provider、oryxos-memory、oryxos-tool、oryxos-web、 oryxos-storage、oryxos-boot、oryxos-cli、oryxos-channel-cli。 oryxos-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-actuator、micrometer-registry-prometheus。 application.yaml:

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-web。application.yaml:

yaml
server.port: 8080
spring.threads.virtual.enabled: true   # JDK 21 虚拟线程,单机扛高并发
6. API 规范(OpenAPI + 统一响应 / 错误码)
  • 依赖:springdoc-openapi-starter-webmvc-ui(Swagger UI 在 /swagger-ui.html,spec 在 /v3/api-docs)
  • 在 oryxos-web 建:
    • ApiResponse<T>:统一响应体(code / message / data / timestamp)
    • GlobalExceptionHandler(@RestControllerAdvice):异常 → 标准 JSON 错误(errorCode / message / timestamp),覆盖 400 / 404 / 500 / 503
    • REST 约定:资源名词复数、/api/v1 前缀、合理 HTTP 状态码
7. 开发规范(Google 格式 + 阿里编码规约,两层互补)

职责分开,互不冲突:

  • 格式层 — Google:Spotless + google-java-format,管缩进、import 顺序、空白、换行——apply 一键自动修。
  • 编码规约层 — 阿里巴巴 Java 开发手册:通过 P3C(p3c-pmd ruleset) 落地,管命名、并发、异常处理、集合、OOP、日志、SQL 等"怎么写才对"的规约。
  • 兜底 — Checkstyle(google_checks.xml)+ 根目录 .editorconfig。

格式:Spotless + google-java-format

xml
<plugin>
  <groupId>com.diffplug.spotless</groupId>
  <artifactId>spotless-maven-plugin</artifactId>
  <version>${spotless.version}</version>
  <configuration>
    <java>
      <googleJavaFormat><style>GOOGLE</style></googleJavaFormat>
      <removeUnusedImports/>
      <importOrder/>
    </java>
  </configuration>
  <executions><execution><goals><goal>check</goal></goals></execution></executions>
</plugin>

编码规约:阿里 P3C(挂在 PMD 上)

xml
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-pmd-plugin</artifactId>
  <version>${pmd.version}</version>
  <configuration>
    <rulesets>
      <ruleset>rulesets/java/ali-pmd.xml</ruleset>     <!-- 阿里 P3C 规约 -->
      <ruleset>rulesets/java/ali-concurrent.xml</ruleset>
      <ruleset>rulesets/java/ali-exception.xml</ruleset>
    </rulesets>
  </configuration>
  <dependencies>
    <dependency>
      <groupId>com.alibaba.p3c</groupId>
      <artifactId>p3c-pmd</artifactId>
      <version>${p3c.version}</version>
    </dependency>
  </dependencies>
  <executions><execution><goals><goal>check</goal></goals></execution></executions>
</plugin>

分工原则:Google 管「长什么样」(格式),阿里管「怎么写才对」(规约),两者职责不同、可并存。 若个别风格规则冲突,以 google-java-format 为准(因为它能自动修,省争论)。开发者本地可装 「阿里巴巴 Java 编码规约」IDEA/VS Code 插件,写代码时即时提示。

8. 代码安全检查

父 pom 加四件套:

  • SpotBugs + Find Security Bugs(findsecbugs 插件,覆盖 OWASP Top 10:SQL 注入、XSS、路径穿越、弱加密、XXE、不安全反序列化等)
  • PMD(源码层规则)
  • OWASP Dependency-Check(dependency-check-maven,扫第三方依赖已知 CVE,设 failBuildOnCVSS)
xml
<plugin>
  <groupId>com.github.spotbugs</groupId>
  <artifactId>spotbugs-maven-plugin</artifactId>
  <version>${spotbugs.version}</version>
  <configuration>
    <effort>Max</effort><threshold>Low</threshold>
    <plugins><plugin>
      <groupId>com.h3xstream.findsecbugs</groupId>
      <artifactId>findsecbugs-plugin</artifactId>
      <version>${findsecbugs.version}</version>
    </plugin></plugins>
  </configuration>
</plugin>
9. CI + pre-commit
  • pre-commit(本地):提交前跑 mvn spotless:check(或 spotless:apply)+ 快速 SpotBugs
  • CI(GitHub Actions):mvn verify 串起 spotless:check → checkstyle → spotbugs → pmd → dependency-check;任一不过则红,禁止合并
10. 验证
  • mvn clean verify 全绿
  • mvn -pl oryxos-boot spring-boot:run 起得来
  • 访问 /actuator/health(UP)、/actuator/prometheus(有指标)、/swagger-ui.html(能打开)
  • 故意写一行不规范代码 → spotless:check 报错;故意引一个有 CVE 的旧依赖 → depcheck 报警

检查清单(Definition of Done)

  • 9 个 Maven 模块骨架建好,mvn clean package 出 fat JAR
  • 结构化日志(prod 为 JSON,含 traceId),无 System.out
  • /actuator/health /info /prometheus 可访问
  • 虚拟线程开启(spring.threads.virtual.enabled=true)
  • springdoc:/swagger-ui.html 可打开,统一 ApiResponse + GlobalExceptionHandler 就位
  • Spotless(Google 格式)+ 阿里 P3C(编码规约)+ Checkstyle + .editorconfig 全部生效
  • SpotBugs + Find Security Bugs + PMD + OWASP Dependency-Check 接入 mvn verify
  • pre-commit + CI 跑通,任一检查失败即阻断
  • 敏感配置全用 ${ENV_VAR} 占位,无明文密钥

与 constitution / Spec-Kit 的分工

  • 本 skill:把上面这套工程地基"装上"(一次性、可复用、跨模块)
  • constitution:把硬约束"钉死"(JDK 21、Google 规范、必须过安全扫描、Spring AI 只用一半…),让 AI 每次都遵守
  • CI + pre-commit:把检查"强制执行"(机器把关,不靠人自觉)
  • Spec-Kit user story:地基起好后,再按五大核心能力逐个开发

版本号、插件坐标、google_checks.xml 路径等以实施时官方文档为准;本 skill 给的是流程与配置骨架,不锁死具体版本。

© oryx-labs, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/oryxos-init of oryx-labs/oryxos.

Open the folder on GitHubat commit 6f86810

Compare with similar skills

Oryxos Init next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Oryxos Init compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Oryxos Init this skilloryx-labs/oryxos186—~1.6kAutomated safety check: PassApache-2.0
Detecting Debug Endpointsjeremylongshore/tons-of-skills-marketplace2.8k—~2kAutomated safety check: PassMIT
Springboot Init Skilljiushiwon/wg-skills114—~2.2kAutomated safety check: NotesApache-2.0
302 Frameworks Spring Boot RESTjabrena/plinth447—~1kAutomated safety check: PassApache-2.0
Java Coding StandardsSnailclimb/AIGuide673—~1kAutomated safety check: PassNone
Springboot Securityaffaan-m/ECC276k5 repos~2kAutomated safety check: PassMIT

Similar skills

  • Detecting Debug Endpoints

    jeremylongshore/tons-of-skills-marketplace

    Probe a target for accidentally-public admin / debug / introspection endpoints — Spring Boot Actuator, Apache server-status, Prometheus metrics, GraphQL playground, Swagger UI, phpMyAdmin…

    2.8k GitHub stars~2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Springboot Init Skill

    jiushiwon/wg-skills

    Spring Boot 项目一键初始化技能。面向零基础小白,提供环境探测、自动安装、完整 Web 骨架生成、SSE 流式框架、JWT 鉴权、统一响应封装、文件上传接口、一键启动/重启脚本、Swagger 文档,内置 MySQL(默认)/ PostgreSQL / MongoDB 数据库选择。用户只需说"帮我搭一个 Spring Boot…

    114 GitHub stars~2.2k tokensUpdated 2 days ago
    Backend & APIsAuto-check: notes
  • A skill your agent uses when you need to design, review, or improve REST APIs with Spring Boot — including HTTP methods, resource URIs, status codes, DTOs, versioning, deprecation and sunset…

    447 GitHub stars~1k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Java Coding Standards

    Snailclimb/AIGuide

    Java/Spring Boot 编码规范:用于编写、审查、重构和讲解 Java 代码。适用于 Java 风格、Spring Boot 架构、Controller/Service/Manager/DAO 分层、API 边界、Entity/VO/Form/DTO/BO 设计、MyBatis/MyBatis-Plus 持久化、事务、异常、日志、安全、性能、测试和 Java 代码评审等场景。默认结合…

    673 GitHub stars~1k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • Spring Security best practices for authn/authz, validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.

    276k GitHub starsUsed in 5 repos~2k tokens
    Backend & APIsAuto-check passed
  • Java Spring Boot 服务中认证/授权、验证、CSRF、密钥、标头、速率限制和依赖安全性的 Spring Security 最佳实践。

    276k GitHub starsUsed in 3 repos~1.6k tokens
    Backend & APIsAuto-check passed

More from oryx-labs/oryxos

  • Oryxos Admin UI

    oryx-labs/oryxos

    生成或扩展 OryxOS 的 Web 管理台(web manager)前端——Vue 3 + Vite 单页应用,视觉与官网首页 (website/,VitePress)完全同源:深色底 + 橙色主色、Inter/JetBrains Mono。内置这套设计 token、 工程约定(base '/admin/'、产物落 oryxos-web static/admin、SPA…

    186 GitHub stars~913 tokensUpdated today
    Auto-check passed
  • Oryxos Lesson Dev

    oryx-labs/oryxos

    按课件驱动开发 OryxOS 的一节课模块:输入节号(16~31),自动完成备料 → speckit-specify → clarify → plan → tasks(停等确认)→ implement → 节级验收报告,全程施加硬/软两类门禁, 保证产出严格贴合 docs/TechnicalSolution.md 的 OryxOS 设计。当用户说「开发第 N 节 / 实现第 N 节课的模块 /…

    186 GitHub stars~1.5k tokensUpdated today
    Auto-check passed

Categories

Questions about Oryxos Init

What does Oryxos Init do?

初始化 OryxOS(或同类 JDK 21 + Spring Boot 3.x 企业级单体)的工程地基:Maven 多模块骨架、 结构化日志、Actuator + Prometheus 监控、Spring MVC + 虚拟线程、springdoc OpenAPI、 统一响应体与全局异常/错误码、Google 格式 + 阿里编码规约(Spotless + 阿里 P3C +…. Oryxos Init is an agent skill from oryx-labs/oryxos.

When should I use Oryxos Init?

Oryxos Init fits situations like: tasks that involve OpenAPI specifications; tasks that involve Monitoring and alerting; tasks that involve Backend development.

How do I install Oryxos Init in Claude Code?

Run `npx skills add oryx-labs/oryxos --skill oryxos-init -a claude-code`. Or copy the skill folder (.claude/skills/oryxos-init in oryx-labs/oryxos) into .claude/skills/oryxos-init in your project. Claude Code loads it when a task matches its description.

How do I install Oryxos Init in Codex?

Run `npx skills add oryx-labs/oryxos --skill oryxos-init -a codex`. Or copy the skill folder (.claude/skills/oryxos-init in oryx-labs/oryxos) into .agents/skills/oryxos-init in your project. Codex loads it when a task matches its description.

Can I use Oryxos Init in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add oryx-labs/oryxos --skill oryxos-init -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/oryxos-init, .gemini/skills/oryxos-init, .github/skills/oryxos-init and .opencode/skills/oryxos-init in your project.

What does Oryxos Init need to run?

Going by SKILL.md and its folder, Oryxos Init needs the command-line tools its instructions call (mvn and git).

Does Oryxos Init access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Oryxos Init safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Oryxos Init use?

Oryxos Init is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Oryxos Init use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Oryxos Init?

Skills that share tags, products or a category with Oryxos Init: Detecting Debug Endpoints (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Springboot Init Skill (jiushiwon/wg-skills, 114 stars), 302 Frameworks Spring Boot REST (jabrena/plinth, 447 stars) and Java Coding Standards (Snailclimb/AIGuide, 673 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Oryxos Init?

oryx-labs (a GitHub organization) maintains it in oryx-labs/oryxos, which has 186 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 9, 2026.

Source: oryx-labs/oryxos on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.