claude-code-java

作者 decebals已验证

Reusable AI development infrastructure for Java projects, optimized for Claude Code

714
Stars
142
Forks
Shell
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/decebals/claude-code-java

快速入门

使用 claude-code-java 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

claude-code-java

Reusable AI development infrastructure for Java projects, optimized for Claude Code

License: MIT

This project is not affiliated with Anthropic.

What is this?

A collection of reusable components for Claude Code - Anthropic's agentic coding tool. The core of this project is a set of skills (structured markdown files that provide Claude with domain knowledge and workflows), but it also includes project templates, MCP server configurations, and setup scripts.

Who is this for? Java developers using Claude Code who want consistent, high-quality AI assistance for common tasks like code reviews, testing, commits, and architecture decisions.

Purpose

AI-powered development workflows with focus on:

  • Token efficiency - Designed for fewer iterations and lower token usage
  • Reproducible patterns - Reusable workflows across projects
  • Java ecosystem - Tailored for Java/Maven development
  • Incremental adoption - Start small, expand as needed

Quick Start

1. Clone this workspace

git clone https://github.com/decebals/claude-code-java.git ~/projects/claude-code-java
cd ~/projects/claude-code-java
chmod +x scripts/*.sh

2. Setup your Java project

./scripts/setup-project.sh ~/projects/your-java-project

This creates .claude/ with symlinked skills, generates CLAUDE.md, and configures settings.

Prefer manual setup? Just copy or symlink the skills you want:

mkdir -p your-project/.claude/skills

# Copy specific skills
cp -r ~/projects/claude-code-java/.claude/skills/java-code-review your-project/.claude/skills/

# Or symlink all skills
ln -s ~/projects/claude-code-java/.claude/skills/* your-project/.claude/skills/

3. Use with Claude Code

cd ~/projects/your-java-project
claude

# Skills load automatically based on context, or invoke directly:
> /git-commit
> /java-code-review

Available Skills (18)

Skills are automatically loaded by Claude Code based on context.

Workflow

SkillTrigger Examples
git-commit"commit these changes", "create commit"
changelog-generator"generate changelog", "what changed since release"
issue-triage"triage issues", "check open issues"

Code Quality

SkillTrigger Examples
java-code-review"review this code", "check this PR"
api-contract-review"review API", "check REST endpoints"
concurrency-review"check thread safety", "review async code"
performance-smell-detection"check performance", "find slow code"
test-quality"add tests", "improve coverage"
maven-dependency-audit"check dependencies", "audit deps"
security-audit"security review", "check OWASP", "vulnerabilities"

Architecture & Design

SkillTrigger Examples
architecture-review"review architecture", "check package structure"
solid-principles"check SOLID", "single responsibility"
design-patterns"use factory pattern", "implement strategy"
clean-code"clean this code", "refactor"

Framework & Data

SkillTrigger Examples
spring-boot-patterns"create controller", "Spring Boot help"
java-migration"upgrade to Java 21", "migrate from Java 8"
jpa-patterns"N+1 problem", "LazyInitializationException"
logging-patterns"add logging", "debug this flow", "analyze logs"

See .claude/skills/README.md for full documentation and docs/SCRIPTS.md for setup script options.

Project Structure

claude-code-java/
├── README.md                    # This file
├── LICENSE                      # MIT license
├── .gitignore                   # Git ignore rules
├── .claude/
│   └── skills/                  # 18 reusable skills (see Available Skills above)
├── docs/                        # Guidelines and best practices
│   ├── DESIGN_PRINCIPLES.md     # Core philosophy
│   ├── RED_FLAGS.md             # Warning signs to watch for
│   ├── SAFE_WORKFLOWS.md        # Step-by-step safe workflows
│   ├── SCRIPTS.md               # Scripts documentation
│   ├── SKILL_GUIDELINES.md      # How to create new skills
│   └── TESTING.md               # Testing strategy
├── templates/
│   ├── CLAUDE.md.template       # Template for projects
│   ├── mcp-config.json.template # MCP configuration template
│   ├── MCP_CONFIG.md.template   # MCP documentation template
│   └── settings.json.template   # Claude Code settings (pre-approved commands)
└── scripts/
    ├── setup-project.sh         # Full project setup (orchestrator)
    ├── link-skills.sh           # Symlink skills to project
    ├── generate-claude-md.sh    # Generate CLAUDE.md
    ├── configure-mcp.sh         # Configure MCP servers
    └── test-all.sh              # Run all tests

Typical Workflow

  1. Link skills to your Java project
  2. Start Claude Code in project directory
  3. Load skill relevant to current task
  4. Execute workflow with natural language
  5. Measure results (tokens used, time saved)

Success Metrics

Track these to validate effectiveness:

  • Token reduction: Track your improvement vs manual workflows
  • Time savings: Measure before/after per task
  • Reusability: Number of projects using skills
  • Quality: Code review feedback, test coverage

Requirements

  • Claude Code CLI installed
  • Java 11+ projects (Java 17+ recommended)
  • Git for version control
  • Maven or Gradle build tool
  • (Optional) GitHub MCP server for issue management

What's Included

  • 18 skills (workflow, code quality, architecture, frameworks)
  • Setup automation scripts
  • Project templates
  • YAML frontmatter for automatic skill detection

Used in automated code review

These skills are not just for code generation — they are also used as the single source of truth for automated code review via skill-review, a reusable GitHub Actions workflow that evaluates pull requests against the same skills that Claude Code uses during development.

Same skills. From generation to review. See skill-review-sandbox for a working example.

Contributing

Skills are evolving based on real-world usage. Try them, open issues, share what works.

  1. Try the skills in your projects
  2. Open issues for suggestions
  3. Share token savings/improvements

Documentation

See docs/ for detailed guides:

License

MIT License - Use freely, modify as needed.

常见问题

What is claude-code-java?

claude-code-java is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by decebals. Reusable AI development infrastructure for Java projects, optimized for Claude Code. It has 714 GitHub stars.

Is claude-code-java safe to use?

Yes. claude-code-java passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install claude-code-java?

Clone the repository with "git clone https://github.com/decebals/claude-code-java" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is claude-code-java written in?

claude-code-java is primarily written in Shell. It is open-source under decebals on GitHub, so you can review or fork the full source.

Are there alternatives to claude-code-java?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-code-java against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情