{"id":50338396,"url":"https://github.com/jabrena/cursor-rules-examples","last_synced_at":"2026-05-29T15:01:17.202Z","repository":{"id":294719250,"uuid":"987292835","full_name":"jabrena/cursor-rules-examples","owner":"jabrena","description":"Examples using the Cursor rules defined for Java, Tasks \u0026 Agile in an easy way. Probe the help of the Cursor rules for Java with non trivial Java problems.","archived":false,"fork":false,"pushed_at":"2026-03-26T19:48:43.000Z","size":3213,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-27T11:34:06.595Z","etag":null,"topics":["cursor","cursor-rules","examples"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jabrena.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-20T21:33:00.000Z","updated_at":"2026-03-26T19:48:40.000Z","dependencies_parsed_at":"2025-05-21T18:57:31.057Z","dependency_job_id":"a118e46e-564b-453c-a2b2-db38aab5ab75","html_url":"https://github.com/jabrena/cursor-rules-examples","commit_stats":null,"previous_names":["jabrena/cursor-rules-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jabrena/cursor-rules-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabrena%2Fcursor-rules-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabrena%2Fcursor-rules-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabrena%2Fcursor-rules-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabrena%2Fcursor-rules-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jabrena","download_url":"https://codeload.github.com/jabrena/cursor-rules-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabrena%2Fcursor-rules-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33657690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cursor","cursor-rules","examples"],"created_at":"2026-05-29T15:01:16.399Z","updated_at":"2026-05-29T15:01:17.196Z","avatar_url":"https://github.com/jabrena.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cursor rules examples\n\n## Motivation\n\nProbe that using **Cursor rules for Agile \u0026 Java** are useful when the Software Engineer have to face non trivial Java problems.\n\n## Getting started\n\n### 1. Review the Latency problems\n\n- https://github.com/jabrena/latency-problems\n\n### 2. Onboarding\n\nIntall the cursor rules which you are going to use in your workspace\n\n```bash\n#deprecated\nsdk install jbang\njbang --fresh setup@jabrena\njbang setup@jabrena init --cursor https://github.com/jabrena/cursor-rules-agile\n\nnpx skills add jabrena/cursor-rules-java --all --agent cursor\n```\n\n### 3. Requirements discovery\n\nGenerate the software requirements based on the initial problem description\n\n![](./docs/sdlc_linear2.png)\n\n```bash\nCreate an agile development checklist using @2000-agile-checklist\n```\n\n**Note:** The Cursor rules for Agile could help several roles: `EA`, `PO`, `BA`, `SA`, `TL`, `SSE` \u0026 `SE`.\n\n**Note:** Using the Cursor rules for agile, the implementation phase and the models provided by Cursor will have better context information to be used in the implementation \u0026 testing phase.\n\n### 4.Implement the solution\n\n- 4.1 Setup the Maven project\n\nDepending of the requirements and the requirements will use one command or another:\n\n```bash\njbang setup@jabrena init --maven\njbang setup@jabrena init --spring-boot\njbang setup@jabrena init --quarkus\n```\n\n- 4.2 Implement the Acceptance test ([Outside-in TDD London](https://outsidein.dev/concepts/outside-in-tdd/)) based on the Gherkin file described in the implementation.\n\n![](./docs/double-loop-tdd.png)\n\n**Note:** Attach the User story \u0026 Gherkin file from requirements folder\n\n```bash\nImplement an acceptance tests in the package info.jab.latency for the scenarios\nDon´t develop any source code, only implement the acceptance test.\nIt will fail because in this phase, doesn´t exist any implemention.\n```\n\n![](./docs/atdd.png)\n\n- 4.3 Implement the solution to pass the acceptance tests\n\n```bash\nImplement a solution in the package info.jab.latency from src.\nCreate a solution and later add test classes.\nDont´t change the acceptance tests.\nVerify the changes with the command: ./mvnw clean verify\n```\n\n- 4.3 Implement the solution to pass the acceptance tests\n\n**Note:** At the end of this phase, the development should build with `./mvnw clean verify` and at runtime the solution will work.\n\n- 4.4 Implement the rest of the requirements.\n\n**Note:** Follow [the task list](./problem5/requirements/agile/US-001-tasks-api-greek-gods-data-retrieval.md) in orther to build the solution in a incremental way.\n\n### 5.Refactoring\n\n- 5.1 Increase the Code coverage\n\nReview current state with:\n\n```bash\n./mvnw clean verify jacoco:report -Pjacoco\njwebserver -p 8002 -d \"$(pwd)/target/site/jacoco\"\n```\n\nAnd improve the test coverage:\n\n```bash\nReview the coverage with ./mvnw clean verify jacoco:report -Pjacoco and increase the coverage in instructions, classes \u0026 branches until 80% @problem4\n```\n\n- 5.2 Refactor the initial stable solution\n\nReview current implementation to have a high level view what is the current implementation:\n\n```bash\nCreate the UML diagram based on @example/implementation/src/main/java using the cursor rule @2200-uml-class-diagram.mdc\n```\n\nGenerate the png files on-fly with the following utility:\n\n```bash\njbang --fresh puml-to-png@jabrena\njbang puml-to-png@jabrena --watch problem5/requirements\n```\n\n**Note:** Review all files if something is possible to be simplified.\n\n- 5.3 Enrich the solution\n\nInstall the specific cursor rules for Java\n\n```bash\njbang setup@jabrena init --cursor https://github.com/jabrena/cursor-rules-java\n#TODO: Create a checklist for the java cursor rules\n```\n\n**Note:** No recipe, this is the added value of a good SSE. ¯\\_(ツ)_/¯```\n\nEnjoy in the refactoring process\n\n## References\n\n- https://editor-next.swagger.io/\n- https://www.plantuml.com/plantuml/uml/\n- https://cekrem.github.io/posts/double-loop-tdd-blog-engine-pt2/\n\n## Cursor rules ecosystem\n\n- https://github.com/jabrena/101-cursor\n- https://github.com/jabrena/cursor-rules-methodology\n- https://github.com/jabrena/cursor-rules-agile\n- https://github.com/jabrena/cursor-rules-java\n- https://github.com/jabrena/cursor-rules-spring-boot\n- https://github.com/jabrena/cursor-rules-examples\n- https://github.com/jabrena/cursor-rules-sandbox\n- https://github.com/jabrena/plantuml-to-png-cli\n- https://github.com/jabrena/setup-cli\n- https://github.com/jabrena/jbang-catalog\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabrena%2Fcursor-rules-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjabrena%2Fcursor-rules-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabrena%2Fcursor-rules-examples/lists"}