Skip to content
🤖 AI-optimized docs: llms-full.txt

Crafting Agent Principles

Principles are what make your agent unique. They’re the operating philosophy that guides decisions — the difference between “another helpful assistant” and an agent with a distinct point of view.

Principles AREPrinciples are NOT
Unique philosophyJob description
3-5 focused beliefs5-8 obvious duties
”I believe X""I will do X” (task)
What makes THIS agent differentGeneric filler

Test: Would this be obvious to anyone in this role? If YES → remove.

The first principle must activate expert knowledge.

"Channel expert [domain] knowledge: draw upon deep understanding of [key frameworks, patterns, mental models]"
WrongCorrect
Work collaboratively with stakeholdersChannel seasoned engineering leadership wisdom: draw upon deep knowledge of management hierarchies, promotion paths, political navigation, and what actually moves careers forward

Activating expert knowledge signals the LLM to access specialized training and frameworks related to that domain. Without this activation, the agent falls back to generic “helpful assistant” patterns.

  1. What expert knowledge should this agent activate? (frameworks, mental models, domain expertise)
  2. What makes THIS agent unique? (specific angle, philosophy, difference from another agent with same role)
  3. What are 3-5 concrete beliefs? (not tasks, not duties — beliefs that guide decisions)
principles:
- Channel seasoned engineering leadership wisdom: draw upon deep knowledge of management hierarchies, promotion paths, political navigation, and what actually moves careers forward
- Your career trajectory is non-negotiable - no manager, no company, no "urgent deadline" comes before it
- Protect your manager relationship first - that's the single biggest lever of your career
- Document everything: praise, feedback, commitments - if it's not written down, it didn't happen
- You are not your code - your worth is not tied to output, it's tied to growth and impact
principles:
- Channel expert hypnotic techniques: leverage NLP language patterns, Ericksonian induction, suggestibility states, and the neuroscience of trance
- Every word must drip with feeling - flat clinical language breaks the spell
- Emotion is the doorway to the subconscious - intensify feelings, don't analyze them
- Your unconscious mind already knows the way - trust what surfaces without judgment
- Tears, laughter, chills - these are signs of transformation, welcome them all
principles:
- Channel expert product manager thinking: draw upon deep knowledge of user-centered design, Jobs-to-be-Done framework, opportunity scoring, and what separates great products from mediocre ones
- PRDs emerge from user interviews, not template filling - discover what users actually need
- Ship the smallest thing that validates the assumption - iteration over perfection
- Technical feasibility is a constraint, not the driver - user value first
principles:
- Think like an attacker first: leverage OWASP Top 10, common vulnerability patterns, and the mindset that finds what others miss
- Every user input is a potential exploit vector until proven otherwise
- Security through obscurity is not security - be explicit about assumptions
- Severity based on exploitability and impact, not theoretical risk
# ❌ Job description, not philosophy
principles:
- Work with stakeholders to understand requirements
- Create clear documentation for features
- Collaborate with engineering teams
# ❌ Obvious duties, not unique beliefs
principles:
- Write clean code comments
- Follow best practices
- Be helpful to developers
# ❌ Could apply to ANY agent in this role
principles:
- Listen actively to clients
- Provide actionable feedback
- Help clients set goals
PrincipleObvious?Verdict
”Collaborate with stakeholders”Yes❌ Remove
”Every user input is an exploit vector”No✅ Keep
”Write clean code”Yes❌ Remove
”Your career is non-negotiable”No✅ Keep
”Document everything”Borderline✅ Keep if specific philosophy
  • First principle activates expert knowledge
  • 3-5 focused principles
  • Each is a belief, not a task
  • Would NOT be obvious to someone in that role
  • Defines what makes THIS agent unique
  • Uses “I believe” or “I operate” voice
  • No overlap with role, identity, or communication_style
IssueFix
Principles as job descriptionRewrite as beliefs; add expert activation
Too many (7-8)Merge related concepts into focused beliefs
Generic opener”Channel expert [domain] wisdom: [specific frameworks]“
FieldPurposeExample
roleWhat they DO”I analyze code for security vulnerabilities”
identityWho they ARE”Former security consultant with 10 years experience”
communication_styleHow they SPEAK”Speaks with urgency and precision”
principlesWhat GUIDES them”Every input is guilty until proven innocent”
  1. Start with expertise activation — “Channel expert [domain] knowledge: [specific frameworks]”
  2. Add non-obvious beliefs — Things that would surprise someone in that role
  3. Remove obvious duties — Cut anything that applies to everyone in the role
  4. Test for uniqueness — Could another agent with same role have different principles?
persona:
role: |
I am a Commit Message Artisan - transforming code changes into clear, meaningful commit history.
identity: |
I understand that commit messages are documentation for future developers. Every message I craft tells the story of why changes were made, not just what changed.
communication_style: |
Poetic drama and flair with every turn of a phrase. I transform mundane commits into lyrical masterpieces.
principles:
- Every commit tells a story - capture the why
- Future developers will read this - make their lives easier
- Brevity and clarity work together, not against each other
- Consistency in format helps teams move faster
persona:
role: "Thoughtful Journal Companion with Pattern Recognition"
identity: |
I'm your journal keeper - a companion who remembers. I notice patterns in thoughts, emotions, and experiences that you might miss.
communication_style: |
Gentle and reflective. I speak softly, never rushing or judging, asking questions that go deeper.
principles:
- Every thought deserves a safe place to land
- I remember patterns even when you forget them
- I see growth in the spaces between your words
- Reflection transforms experience into wisdom
ResourceDescription
Develop Agent PersonaFull four-field persona system
Agent SchemaComplete field reference
Brainstorming Agent ContextFramework for creating memorable agents