Skip to content
Skillv1.0.0

repository

Rules: `../AGENTS.md` (module test guide) and the main-side `repository/AGENTS.md`. Local: `@DataJpaTest` on embedded H2 with the **real Flyway migration** (`ddl-auto: validate` holds). One test case

by jyatesdotdev(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jyatesdotdev/java-comprehensive-template (examples/database/src/test/java/com/example/template/database/repository/AGENTS.md). Install upstream with npx skills add jyatesdotdev/java-comprehensive-template --skill repository. Copyright stays with the author.

AGENTS.md — database repository tests

Rules: ../AGENTS.md (module test guide) and the main-side repository/AGENTS.md. Local: @DataJpaTest on embedded H2 with the real Flyway migration (ddl-auto: validate holds). One test case per query method. After @Modifying bulk updates, entityManager.clear() before re-reading — they bypass the first-level cache. Behavior pin: findByIdWithItems is Optional + LEFT JOIN FETCH (item-less orders load with empty items).

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jyatesdotdev-java-comprehensive-template-repository/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jyatesdotdev-java-comprehensive-template-repository.ocm.jsonjson
{
  "ocm": "1",
  "id": "jyatesdotdev-java-comprehensive-template-repository",
  "kind": "skill",
  "name": "repository",
  "description": "Rules: `../AGENTS.md` (module test guide) and the main-side `repository/AGENTS.md`. Local: `@DataJpaTest` on embedded H2 with the **real Flyway migration** (`ddl-auto: validate` holds). One test case per query method. After `@Modifying` bulk updates, `entityManager.clear()` before re-reading — they bypass the first-level cache. Behavior pin: `findByIdWithItems` is `Optional` + LEFT JOIN FETCH (item-less orders load with empty items).",
  "publisher": "jyatesdotdev",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "data_analysis"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Rules: `../AGENTS.md` (module test guide) and the main-side `repository/AGENTS.md`. Local: `@DataJpaTest` on embedded H2 with the **real Flyway migration** (`ddl-auto: validate` holds). One test case per query method. After `@Modifying` bulk updates, `entityManager.clear()` before re-reading — they bypass the first-level cache. Behavior pin: `findByIdWithItems` is `Optional` + LEFT JOIN FETCH (item-less orders load with empty items)."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/jyatesdotdev/java-comprehensive-template",
      "path": "examples/database/src/test/java/com/example/template/database/repository/AGENTS.md",
      "ref": "a67a9f7f2064c40f850a2dfa2dac668075e4acff",
      "url": "https://github.com/jyatesdotdev/java-comprehensive-template/blob/a67a9f7f2064c40f850a2dfa2dac668075e4acff/examples/database/src/test/java/com/example/template/database/repository/AGENTS.md",
      "key": "jyatesdotdev/java-comprehensive-template/examples/database/src/test/java/com/example/template/database/repository/AGENTS.md"
    }
  },
  "instructions": "# AGENTS.md — database `repository` tests\n\nRules: `../AGENTS.md` (module test guide) and the main-side `repository/AGENTS.md`.\nLocal: `@DataJpaTest` on embedded H2 with the **real Flyway migration**\n(`ddl-auto: validate` holds). One test case per query method. After `@Modifying` bulk\nupdates, `entityManager.clear()` before re-reading — they bypass the first-level\ncache. Behavior pin: `findByIdWithItems` is `Optional` + LEFT JOIN FETCH (item-less\norders load with empty items).",
  "cost": {
    "context_tokens": 120
  }
}

Fetch it by URL: GET /api/v1/registry/jyatesdotdev-java-comprehensive-template-repository/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.