Content
# easy-query-skill
For [easy-query](https://github.com/dromara/easy-query) ORM, Claude AI agent skill helps agents
**write, modify, review, and test** code using easy-query in
**Java, Kotlin (KSP), and Spring Boot**.
This skill adopts **progressive disclosure**: a thin entry file (`SKILL.md`) guides tasks through a routing table to
several dense, directly copyable reference documents; each code example comes from verifiable sources
— easy-query framework source code (`sql-test`) or official documentation.
## Directory Structure
```
easy-query/
├── SKILL.md # Entry: triggers, golden rules, routing table, evidence strategy
├── references/
│ ├── setup-kotlin.md # Gradle KSP (no KAPT), entities, initialization, infix DSL
│ ├── setup-java.md # Maven APT, EasyQueryBootstrapper initialization, entities
│ ├── setup-spring-boot.md # starter, application.yml, injecting EasyEntityQuery
│ ├── entity-mapping.md # @Table/@Column/@Version/@LogicDelete/@Navigate, proxy model
│ ├── query.md # where, dynamic conditions, sorting, select-DTO, limit, pagination
│ ├── relation-query.md # @Navigate, .include(...), subqueries, explicit joins
│ ├── write.md # CRUD, optimistic locking, logical deletion
│ ├── transaction.md # beginTransaction try-with-resources and Spring @Transactional
│ ├── testing.md # H2 in-memory database behavior testing, .toSQL() assertions, SQL listener capture
│ ├── advanced.md # aggregation/grouping, code-first DDL, sharding, multi-data sources
│ └── api-index.md # precise symbol/package name lookup + disabled items (MyBatis/JPA/QueryDSL)
└── evals/
└── evals.json # test cases for skill-creator evaluation loop
```
## Design Principles
- **Only use verifiable code, no assumptions about the API.** Each code snippet is labeled with its source:
`Source Verified` (framework source code/tests) or `Official Documentation`,
listed in the Sources section at the end of each reference document.
The skill explicitly prohibits outputting syntax from other frameworks like MyBatis-Plus/JPA/QueryDSL.
- **Progressive Disclosure.** `SKILL.md` remains concise, with in-depth content moved to `references/`,
and agents only load the required content on demand.
- **Kotlin First-Class Citizen** (based on KSP), alongside Java and Spring Boot.
## Evidence Sources
- Framework Source Code: https://github.com/dromara/easy-query
- Official Documentation: https://github.com/xuejmnet/easy-query-doc
## Evaluation
`easy-query-workspace/` contains the skill-creator evaluation loop's artifacts (7 case studies with
with-skill/baseline comparisons, quantitative benchmarks `benchmark.md`) as quality evidence.