Skip to content
Discussion options

You must be logged in to vote

Amazon Q “rules” are context, not hard enforcement. So some drift (especially for UI/formatting) is expected unless you make the rules extremely explicit, non-conflicting, and easy to apply.

Here are practical ways to improve consistency (especially for UI):

  1. Make UI rules concrete, testable, and example-driven
    Bad: “Use our UI style”
    Good: “For UI, always output React components using , , from @acme/ui. Never use raw / unless explicitly asked. Include a minimal example.”

Add a short “Do/Don’t” snippet in the rule file so the model can pattern-match.

  1. Split rules by scope and keep each file focused
    Instead of one huge rules file, split into:
  • frontend-ui.md (components, patterns, access…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@uldyssian-sh
Comment options

Answer selected by dpyragas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants