The power of Cursor rules in Java Enterprise development

Juan Antonio Breña Moral

Who I am

Juan Antonio Breña Moral
Engineering Manager @ C1

Twitter | Github | LinkedIn
Quotes: "Lead me, follow me, or get out of my way."
"Pressure makes diamonds."

- George S. Patton Jr.
Source: Leavitt's Alignment Model (1965) >> People, Process and Technology Framework

Agenda (30 min)

  • Introduction
  • What is a System prompt?
  • Why use it?
  • When use it?
  • How to use it?
  • Limitations
  • References
  • Q&A

Introduction

Software Development workflow has evolved with the raise of Cloud AI enhancements.

What is a System prompt?

A system prompt is a set of instructions given to an AI model that defines how it should behave, what role it should take on, and what guidelines it should follow when responding to users. Think of it as the "operating manual" that shapes the AI's personality, capabilities, and boundaries.

What is a System prompt?

A prompt can be modeled with the following elements:

Role Context Goal
Constraints Instructions Examples
Output format Safeguards Metadata

Valid for Modelis from: Anthropic Claude Sonnet, OpenAI ChatGPT, Google Gemini.

What is a System prompt?

Why use it?

System prompts can help Engineering teams to:

  • Reduce ambiguity in the way than models anwers your questions.
  • Increase the homogeneity of the results.

When use it?

In what scenarios, system prompts could help?

  • Scenario 1: Delegate a task to the model and add in the context a System prompt.
  • Scenario 2: Refactor a stable solution applying a System prompts.

How to use it?

  • Demo 1: Refactor a solution in a functional way.
  • Demo 2: Improve unit tests.
  • Demo 3: Review that all tests cover Acceptance Criteria.
  • Demo 4: Detect memory leak.

How to use it?

Limitations

  • Not all IDEs support rich system prompts.
  • Models are not able to do everything. Sometimes they require local actions to complete tasks and they use local scripts.
  • Models have a limited context
  • Not all models are valid for your tasks.

References

🙏 🙏 🙏

Thanks