Agent skill

Alibaba Java Coding Guidelines Skill

by aiskillstore in aiskillstore/marketplace

A skill your agent uses when 需要按 Alibaba Java Coding Guidelines(阿里巴巴 Java 编码规范)审查、生成或重构 Java、Spring、MyBatis、Maven、MySQL、SQL、日志、异常、安全或数据库相关代码。

Apache-2.0Auto-check passedDatabases

Install Alibaba Java Coding Guidelines Skill

skills CLI
$ npx skills add aiskillstore/marketplace --skill alibaba-java-coding-guidelines-skill -a claude-code

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

GitHub CLI
$ gh skill install aiskillstore/marketplace alibaba-java-coding-guidelines-skill --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/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ns3154/alibaba-java-coding-guidelines-skill .claude/skills/alibaba-java-coding-guidelines-skill && 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
alibaba-java-coding-guidelines-skill
GitHub stars
430
Token cost
~503 tokens
SKILL.md length
107 words
Files
12 (incl. scripts, references)
Skills in repo
1,085
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when 需要按 Alibaba Java Coding Guidelines(阿里巴巴 Java 编码规范)审查、生成或重构 Java、Spring、MyBatis、Maven、MySQL、SQL、日志、异常、安全或数据库相关代码。

  • Works in 5 steps: 先识别任务类型:代码生成、代码审查、重构、SQL/DDL 审查、依赖治理、安全检查。 → 读取当前项目的已有风格、包结构、测试框架和持久层写法,避免只按通用规约硬套。 → 按严重级别处理 → …
  • 需要按 Alibaba Java Coding Guidelines(阿里巴巴 Java 编码规范)审查、生成或重构 Java、Spring、MyBatis、Maven、MySQL、SQL、日志、异常、安全或数据库相关代码
  • SKILL.md covers 概览, 兼容性, 使用场景 and 工作流程, plus 3 more sections
  • Runs Go, JavaScript, Python and Shell scripts from its folder; reaches alibaba.github.io

What it does

Alibaba Java Coding Guidelines Skill is an agent skill from aiskillstore/marketplace. Use when 需要按 Alibaba Java Coding Guidelines(阿里巴巴 Java 编码规范)审查、生成或重构 Java、Spring、MyBatis、Maven、MySQL、SQL、日志、异常、安全或数据库相关代码。

Its SKILL.md is about 500 tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files, including scripts and reference files (for example `AGENTS.md`, `README.md` and `agents/openai.yaml`).

It sits in Databases, covering SQL. It works with Java, SQL and MySQL. The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified. The licence is Apache-2.0.

When your agent uses it

  • 需要按 Alibaba Java Coding Guidelines(阿里巴巴 Java 编码规范)审查、生成或重构 Java、Spring、MyBatis、Maven、MySQL、SQL、日志、异常、安全或数据库相关代码
  • Tasks that involve SQL

Example prompts

  • “/alibaba-java-coding-guidelines-skill”

Requirements

  • Python 3
  • Node.js
  • A Bash shell

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 先识别任务类型:代码生成、代码审查、重构、SQL/DDL 审查、依赖治理、安全检查。
  2. 读取当前项目的已有风格、包结构、测试框架和持久层写法,避免只按通用规约硬套。
  3. 按严重级别处理
  4. 针对相关模块读取 references/alibaba-java-rules.md 中对应小节。
  5. 输出结果时按影响排序:正确性和安全性、稳定性和性能、可维护性、风格一致性。

What it can do on your machine

Read from SKILL.md and the folder at commit 4ac52da. 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

    Ships 3 files in scripts/ (Go, JavaScript, Python and Shell), which the agent can run.

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • alibaba.github.io

    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

Alibaba Java Coding Guidelines Skill loads about 503 tokens when it runs, and up to ~3.2k if it reads all its reference files. Until then it costs about 40 tokens; SKILL.md has 107 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~503
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.2k

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); the scripts in this folder are not scanned.

SKILL.md

The full file from aiskillstore/marketplace at commit 4ac52da, republished under its Apache-2.0 licence (© aiskillstore). 107 words, ~503 tokens.

Download SKILL.mdSave it as .claude/skills/alibaba-java-coding-guidelines-skill/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
alibaba-java-coding-guidelines-skill
description
Use when 需要按 Alibaba Java Coding Guidelines(阿里巴巴 Java 编码规范)审查、生成或重构 Java、Spring、MyBatis、Maven、MySQL、SQL、日志、异常、安全或数据库相关代码。

阿里巴巴 Java 开发规约

概览

使用本 skill 时,把《阿里巴巴 Java 开发手册》当作 Java 代码生成、重构和审查的默认质量基线。优先处理强制规则,再处理推荐规则;如果项目本地约定和规约冲突,说明冲突点并以用户或项目约定为准。

详细规则摘要见 references/alibaba-java-rules.md。需要精确出处或完整条文时,打开官方页面:https://alibaba.github.io/Alibaba-Java-Coding-Guidelines/。

兼容性

这是通用 Agent Skill,不绑定单个应用或运行器。Claude Code、Codex 以及其他支持 Agent Skills 目录规范的工具都应只依赖 SKILL.md 和按需读取的 references/ 内容。

agents/openai.yaml 只是 OpenAI/Codex UI 元数据,属于可选增强;不应作为 Claude Code 或其他 agent 使用本 skill 的前提。

校验入口提供 Python、Node.js、Go 三种等价实现:scripts/validate_skill.py、scripts/validate_skill.mjs、scripts/validate_skill.go。使用者可以按本地运行时任选其一;需要验证三者一致时运行 tests/test_validators.sh。

使用场景

  • 审查 Java、Spring、MyBatis、Maven、SQL、DDL、日志、异常处理或安全相关改动。
  • 生成新类、接口、DTO、VO、DO、枚举、异常类、测试类、Mapper、Service、DAO 或 SQL。
  • 重构命名、常量、集合、并发、控制流、日志、异常和数据库访问代码。
  • 给出代码评审意见、整改清单、规范符合性报告或自动修复建议。

工作流程

  1. 先识别任务类型:代码生成、代码审查、重构、SQL/DDL 审查、依赖治理、安全检查。
  2. 读取当前项目的已有风格、包结构、测试框架和持久层写法,避免只按通用规约硬套。
  3. 按严重级别处理:
    • 强制:发现违反时必须指出或修复。
    • 推荐:默认遵循;如果不采用,说明权衡。
    • 参考:作为设计建议,不阻塞交付。
  4. 针对相关模块读取 references/alibaba-java-rules.md 中对应小节。
  5. 输出结果时按影响排序:正确性和安全性、稳定性和性能、可维护性、风格一致性。

代码生成规则

  • 命名必须清晰准确:类名用 UpperCamelCase,方法、参数、成员变量和局部变量用 lowerCamelCase,常量用大写加下划线。
  • 代码注释使用中文;公开 API、复杂业务规则、异常含义和空值语义要写清楚。
  • 不使用魔法值;固定范围值优先使用枚举。
  • 日志使用 SLF4J 门面,不直接绑定具体日志实现;低级别日志使用占位符或级别判断。
  • 资源关闭优先使用 try-with-resources;不要在 finally 中 return 或抛出新异常。
  • MyBatis 参数默认使用 #{},禁止把用户输入拼进 SQL。
  • Web、Open API、SQL、HTML 输出和用户输入必须做权限、参数校验、转义或脱敏。

代码审查输出

审查时优先给出可执行意见。每条意见包含:

  • 级别:强制、推荐或参考。
  • 位置:文件和行号,能定位就定位。
  • 问题:违反了哪类规约。
  • 风险:可能造成的错误、安全、性能或维护成本。
  • 建议:给出可落地的改法。

如果没有发现问题,说明已检查的范围,并点出仍未覆盖的风险,例如没有运行测试、没有看到数据库索引信息、没有线上日志配置等。

常见误区

  • 不要只检查格式;命名、空值、异常边界、日志上下文、事务、SQL 注入和权限校验同样重要。
  • 不要把推荐规则包装成强制缺陷;推荐项要讲清收益和代价。
  • 不要为了规约牺牲项目一致性;本地架构分层、包名和框架约束要先看再改。
  • 不要依赖某个 agent 产品的专属工具、路径或配置;只把它们作为可选增强。
  • 不要大段复述官方文档;只加载和任务相关的规则摘要。

© aiskillstore, 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

SKILL.md and 11 other files (scripts, references) in skills/ns3154/alibaba-java-coding-guidelines-skill of aiskillstore/marketplace.

  • SKILL.md
  • AGENTS.md
  • LICENSE.txt
  • README.md
  • agents/openai.yaml
  • references/alibaba-java-rules.md
  • scripts/validate_skill.go
  • scripts/validate_skill.mjs
  • scripts/validate_skill.py
  • skill-report.json
  • skills
  • tests/test_validators.sh

Open the folder on GitHubat commit 4ac52da

Compare with similar skills

Alibaba Java Coding Guidelines Skill 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.

Alibaba Java Coding Guidelines Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Alibaba Java Coding Guidelines Skill this skillaiskillstore/marketplace430—~503Automated safety check: PassApache-2.0
SQL Database Support for pRESTprest/prest4.6k—~1.6kAutomated safety check: PassMIT
Chdb SQLvemetric/vemetric3941 repos~1.2kAutomated safety check: PassApache-2.0
Sql2erystemsrx/sql_to_ER188—~1.1kAutomated safety check: PassAGPL-3.0
Squixeduardofuncao/squix273—~784Automated safety check: PassMIT
Crudwujun728/jun_java_plugin240—~2.8kAutomated safety check: PassNone

Similar skills

  • Guides classifying, gap-analyzing and scaffolding support for a new SQL database in pREST, from Postgres-compatible variants to entirely new dialects.

    4.6k GitHub stars~1.6k tokensUpdated 2 days ago
    DatabasesAuto-check passed
  • Chdb SQL

    vemetric/vemetric

    A skill your agent uses when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse…

    394 GitHub starsUsed in 1 repo~1.2k tokens
    DatabasesAuto-check passed
  • Sql2er

    ystemsrx/sql_to_ER

    A skill your agent uses when the user wants a Chen-model ER diagram from SQL CREATE TABLE statements or DBML, wants to rearrange or clean up an existing sql2er state, wants a skeleton-only overview…

    188 GitHub stars~1.1k tokensUpdated 7 days ago
    DatabasesAuto-check passed
  • Squix

    eduardofuncao/squix

    Run SQL queries across databases (Postgres, MySQL, SQLite, etc.) via the squix CLI.

    273 GitHub stars~784 tokensUpdated 15 days ago
    DatabasesAuto-check passed
  • Crud

    wujun728/jun_java_plugin

    一键生成完整业务模块代码(SQL/Entity/DAO/XML/Repository/Service/Controller/Mapper/POJO),用于创建新的业务功能

    240 GitHub stars~2.8k tokensUpdated 4 mo ago
    DatabasesAuto-check passed
  • Comprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connection pool, batch processing, context…

    240 GitHub starsUsed in 2 repos~2.9k tokens
    DatabasesAuto-check passed

More from aiskillstore/marketplace

All 1,085 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    430 GitHub starsUsed in 2 repos~697 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    430 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    430 GitHub starsUsed in 1 repo~598 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    430 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Investigating Codebases

    aiskillstore/marketplace

    Automatically activated when user asks how something works, wants to understand unfamiliar code, needs to explore a new codebase, or asks questions like "where is X implemented?", "how does Y…

    430 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes

Works with

Categories

Questions about Alibaba Java Coding Guidelines Skill

What does Alibaba Java Coding Guidelines Skill do?

A skill your agent uses when 需要按 Alibaba Java Coding Guidelines(阿里巴巴 Java 编码规范)审查、生成或重构 Java、Spring、MyBatis、Maven、MySQL、SQL、日志、异常、安全或数据库相关代码。. Alibaba Java Coding Guidelines Skill is an agent skill from aiskillstore/marketplace.

When should I use Alibaba Java Coding Guidelines Skill?

Alibaba Java Coding Guidelines Skill fits situations like: 需要按 Alibaba Java Coding Guidelines(阿里巴巴 Java 编码规范)审查、生成或重构 Java、Spring、MyBatis、Maven、MySQL、SQL、日志、异常、安全或数据库相关代码; tasks that involve SQL.

How do I install Alibaba Java Coding Guidelines Skill in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill alibaba-java-coding-guidelines-skill -a claude-code`. Or copy the skill folder (skills/ns3154/alibaba-java-coding-guidelines-skill in aiskillstore/marketplace) into .claude/skills/alibaba-java-coding-guidelines-skill in your project. Claude Code loads it when a task matches its description.

How do I install Alibaba Java Coding Guidelines Skill in Codex?

Run `npx skills add aiskillstore/marketplace --skill alibaba-java-coding-guidelines-skill -a codex`. Or copy the skill folder (skills/ns3154/alibaba-java-coding-guidelines-skill in aiskillstore/marketplace) into .agents/skills/alibaba-java-coding-guidelines-skill in your project. Codex loads it when a task matches its description.

Can I use Alibaba Java Coding Guidelines Skill 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 aiskillstore/marketplace --skill alibaba-java-coding-guidelines-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/alibaba-java-coding-guidelines-skill, .gemini/skills/alibaba-java-coding-guidelines-skill, .github/skills/alibaba-java-coding-guidelines-skill and .opencode/skills/alibaba-java-coding-guidelines-skill in your project.

What does Alibaba Java Coding Guidelines Skill need to run?

Going by SKILL.md and its folder, Alibaba Java Coding Guidelines Skill needs Go, JavaScript, Python and a shell for the scripts in its folder. Our summary lists: Python 3; Node.js; A Bash shell.

Does Alibaba Java Coding Guidelines Skill access the network?

SKILL.md names 1 domain. In commands or code: alibaba.github.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Alibaba Java Coding Guidelines Skill 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Alibaba Java Coding Guidelines Skill use?

Alibaba Java Coding Guidelines Skill is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Alibaba Java Coding Guidelines Skill use?

About 503 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.7k tokens, read only when the agent opens those files.

What are the alternatives to Alibaba Java Coding Guidelines Skill?

Skills that share tags, products or a category with Alibaba Java Coding Guidelines Skill: SQL Database Support for pREST (prest/prest, 4.6k stars), Chdb SQL (vemetric/vemetric, 394 stars), Sql2er (ystemsrx/sql_to_ER, 188 stars) and Squix (eduardofuncao/squix, 273 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Alibaba Java Coding Guidelines Skill?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,085 skills in this directory. The repository was last updated on October 7, 2026.

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