agentleFS
jimmypocockjimmypocock/cursor-rules/.cursor/rules/aws-bedrock.mdc

cursor-rules / rules

Cursor rule8 starsChanged 19 months agoMITView on GitHub

AWS Bedrock Development Standards

The file

Show its rules and text

We split this aws-bedrock.mdc into the rules it gives an agent

34 rules. About 0 are common, 34 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈34

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use appropriate prompt engineering techniques

    line 18
  2. Distinctive:

    Create proper model parameter configurations

    line 19
  3. Distinctive:

    Use the Bedrock API client correctly

    line 26
  4. Distinctive:

    Create appropriate error handling for API calls

    line 28
  5. Distinctive:

    Create appropriate request batching

    line 31
  6. Distinctive:

    Create appropriate context windows

    line 38
  7. Distinctive:

    Create appropriate task-specific prompt patterns

    line 41
  8. Distinctive:

    Create appropriate response validation

    line 47
  9. Distinctive:

    Create appropriate response transformation

    line 50
  10. Distinctive:

    Create proper logging for model responses

    line 53
  11. Distinctive:

    Create appropriate action group definitions

    line 58
  12. Distinctive:

    Create secure API schemas for agent integration

    line 61
  13. Distinctive:

    Create appropriate retrieval strategies

    line 68
  14. Distinctive:

    Create appropriate citation handling

    line 71
  15. Distinctive:

    Create appropriate model access controls

    line 77
  16. Distinctive:

    Create appropriate content moderation strategies

    line 80
  17. Distinctive:

    Create proper audit trails for model usage

    line 83
  18. Distinctive:

    Create efficient prompt designs for lower token usage

    line 87
  19. Distinctive:

    Create appropriate timeout handling

    line 90
  20. Distinctive:

    Create appropriate memory management

    line 93
  21. Distinctive:

    Create appropriate cost allocation tagging

    line 97
  22. Distinctive:

    Create appropriate model selection based on cost-performance

    line 100
  23. Distinctive:

    Create proper cost forecasting and budgeting

    line 103
  24. Distinctive:

    Create appropriate environment separation

    line 107
  25. Distinctive:

    Create appropriate deployment validation

    line 110
  26. Distinctive:

    Create appropriate automated testing

    line 113
  27. Distinctive:

    Create appropriate custom metrics for model performance

    line 117
  28. Distinctive:

    Create proper logging for model interactions

    line 120
  29. Distinctive:

    Create proper model evaluation metrics

    line 123
  30. Distinctive:

    Create proper content filtering mechanisms

    line 127
  31. Distinctive:

    Create appropriate use case validation

    line 130
  32. Distinctive:

    Create proper documentation for model usage

    line 133
  33. Distinctive:

    Create appropriate streaming response handling

    line 138
  34. Distinctive:

    Create appropriate API Gateway integrations

    line 141

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
aws-bedrock.mdc
---
description: AWS Bedrock Development Standards
globs: 
alwaysApply: false
---
---
Description: AWS Bedrock Development Standards
Globs: **/bedrock/**/*, **/ai/**/*, **/llm/**/*, **/agents/**/*
---

# AWS Bedrock Development Standards
@base.mdc
@typescript.mdc

## Foundational Model Integration
- Select appropriate foundation models for specific use cases
- Implement proper model version management
- Use appropriate prompt engineering techniques
- Create proper model parameter configurations
- Implement contextual prompting strategies
- Design proper model fallback mechanisms
- Apply proper model evaluation metrics
- Implement cost-efficient model usage patterns

## API Integration
- Use the Bedrock API client correctly
- Implement proper authentication and authorization
- Create appropriate error handling for API calls
- Design resilient retry strategies
- Implement proper request throttling
- Create appropriate request batching
- Design efficient request/response handling
- Implement proper logging for model interactions

## Prompt Engineering
- Design clear, specific prompts for models
- Implement proper prompt templating systems
- Create appropriate context windows
- Design effective few-shot prompting examples
- Implement proper system prompts
- Create appropriate task-specific prompt patterns
- Design prompt validation mechanisms
- Implement proper prompt versioning

## Response Processing
- Implement proper response parsing
- Create appropriate response validation
- Design proper error handling for model outputs
- Implement content filtering when needed
- Create appropriate response transformation
- Design fallback mechanisms for poor responses
- Implement appropriate response caching
- Create proper logging for model responses

## Bedrock Agents
- Configure appropriate agent actions and APIs
- Implement proper agent orchestration
- Create appropriate action group definitions
- Design proper agent response handling
- Implement appropriate agent prompts
- Create secure API schemas for agent integration
- Design appropriate agent knowledge bases
- Implement proper agent versioning and deployment

## Bedrock Knowledge Bases
- Configure appropriate knowledge bases
- Implement proper data source integration
- Create appropriate retrieval strategies
- Design effective vector embedding models
- Implement proper query processing
- Create appropriate citation handling
- Design effective knowledge filtering
- Implement proper knowledge base updates

## Security and Governance
- Implement proper IAM roles and policies
- Create appropriate model access controls
- Design proper data encryption at rest and in transit
- Implement input/output filtering for sensitive data
- Create appropriate content moderation strategies
- Design proper model usage policies
- Implement appropriate model monitoring
- Create proper audit trails for model usage

## Performance Optimization
- Implement appropriate caching strategies
- Create efficient prompt designs for lower token usage
- Design proper batch processing for multiple requests
- Implement asynchronous processing when appropriate
- Create appropriate timeout handling
- Design proper concurrency management
- Implement efficient context handling
- Create appropriate memory management

## Cost Management
- Implement proper token usage monitoring
- Create appropriate cost allocation tagging
- Design efficient prompt strategies to minimize tokens
- Implement proper batch processing for cost efficiency
- Create appropriate model selection based on cost-performance
- Design proper usage quotas and limits
- Implement cost-based routing between models
- Create proper cost forecasting and budgeting

## Deployment Strategies
- Implement proper CI/CD for Bedrock applications
- Create appropriate environment separation
- Design proper testing strategies for models
- Implement proper version control for prompts
- Create appropriate deployment validation
- Design proper rollback mechanisms
- Implement proper blue/green deployment
- Create appropriate automated testing

## Monitoring and Observability
- Set up proper CloudWatch metrics
- Create appropriate custom metrics for model performance
- Design proper operational dashboards
- Implement appropriate alerting for model issues
- Create proper logging for model interactions
- Design effective trace analysis
- Implement appropriate user feedback collection
- Create proper model evaluation metrics

## Responsible AI Implementation
- Implement appropriate bias detection and mitigation
- Create proper content filtering mechanisms
- Design appropriate user consent and transparency
- Implement proper data privacy controls
- Create appropriate use case validation
- Design proper model governance processes
- Implement appropriate model evaluations
- Create proper documentation for model usage

## Integration Patterns
- Design proper integration with other AWS services
- Implement effective serverless architectures
- Create appropriate streaming response handling
- Design effective event-driven architectures
- Implement proper state management
- Create appropriate API Gateway integrations
- Design effective Lambda function patterns
- Implement proper data transformation pipelines

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.