CommunityResearch & Data Analysisgithub.com

AI Development Standards Skills for Java/Spring

A family of 8 SKILL.md agent skills for AI-driven Java/Spring development — install once, use everywhere.

What is Spring?

This skill set provides a comprehensive collection of 8 standards modules designed to constrain and guide AI agents in generating code for Java/Spring projects. It covers the full development lifecycle: development workflow, code style, comments, SQL, build configuration, testing, legacy system integration, and fallback validation. The modules are organized in a single repository for one-click installation and unified maintenance. The testing standards, for example, define precise rules for unit tests (AAA structure, Mockito usage, AssertJ assertions), contract tests (acceptance scenario mapping, three-state coverage, red-green-red cycle), and test data management (data factories, Testcontainers for real database integration). Each module is loaded based on task type (e.g., writing unit tests triggers `standards/unit-test-standards.md`), and the AI agent is required to read the corresponding standards before generating any code and then perform a self-check against the checklists. The overall goal is to ensure consistency, maintainability, and adherence to established project conventions, reducing the need for manual review and rework.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add soft6096/jee-forge

Installed? Explore more Research & Data Analysis skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Test Standards

A set of standards that constrain AI-generated test code. Three layers:

  • unit-test-standards.md: Unit tests — AAA structure / Mock rules / Assertion style / Test isolation
  • contract-test-standards.md: Contract tests — Acceptance scenario translation / Three-state coverage / Red-green-red
  • test-data-standards.md: Test data — Data factories / Testcontainers / Isolation

Loading Matrix

Task TypeRequired Reading
Write unit testsstandards/unit-test-standards.md
Write interface contract tests (integrates with ai-dev-workflow 4.2)standards/contract-test-standards.md + standards/unit-test-standards.md
Prepare test data / database integration testsstandards/test-data-standards.md
Review test codeAll (by corresponding type)

Core Rules Quick Reference

  • Tests are acceptance criteria: Do not change assertions, delete tests, or use @Disabled (code must not compromise testing)
  • One test per behavior, AAA structure; use AssertJ fluent assertions
  • Test method names in English camelCase (createOrderShouldReturn400WhenUserNotExist), no Chinese or pinyin method names; use Javadoc in Chinese for use cases
  • All dependencies mocked, do not test implementation details; no Thread.sleep
  • Contract tests cover three states (valid / invalid / boundary), red-green-red
  • Test data factory-based; complex SQL uses Testcontainers with real databases
  • Test isolation: no reliance on execution order, no shared mutable state

Relationship with Other Skills

  • ai-dev-workflow: Section 4.2 /contract-tests contract testing workflow references this skill's contract-test-standards (workflow in workflow skill, code standards in this skill)
  • java-code-standards: Java code standards reference this skill (loaded when writing tests)
  • database-standards / comment-standards: No direct references

Usage Requirements

Before generating any test code, read the standards according to the "Task Type → Loading Matrix"; after generation, check against the corresponding standards' self-check list item by item. For contract tests, follow red-green-red: the red failure must be due to "implementation not existing" rather than "test written incorrectly."

Related Skills