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

cursor-rules / rules

Cursor rule8 starsChanged 19 months agoMITView on GitHub

AWS SageMaker Development Standards

The file

Show its rules and text

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈40

    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:

    Create reproducible experiment environments

    line 18
  2. Distinctive:

    Create appropriate model evaluation modules

    line 21
  3. Distinctive:

    Create proper model parameter configurations

    line 27
  4. Distinctive:

    Create appropriate model evaluation metrics

    line 30
  5. Distinctive:

    Create proper reproducibility controls

    line 33
  6. Distinctive:

    Create appropriate data preprocessing pipelines

    line 37
  7. Distinctive:

    Create appropriate data validation checks

    line 40
  8. Distinctive:

    Create appropriate data splitting strategies

    line 43
  9. Distinctive:

    Create appropriate checkpoint strategies

    line 48
  10. Distinctive:

    Create appropriate resource configurations

    line 51
  11. Distinctive:

    Create appropriate endpoint configurations

    line 57
  12. Distinctive:

    Create appropriate deployment strategies

    line 60
  13. Distinctive:

    Create appropriate multi-model endpoints when applicable

    line 63
  14. Distinctive:

    Create modular pipeline steps

    line 68
  15. Distinctive:

    Create proper pipeline versioning

    line 71
  16. Distinctive:

    Create appropriate model registries

    line 77
  17. Distinctive:

    Create appropriate model artifact management

    line 80
  18. Distinctive:

    Create proper automated retraining workflows

    line 83
  19. Distinctive:

    Create appropriate model quality monitoring

    line 88
  20. Distinctive:

    Create appropriate alerting thresholds

    line 91
  21. Distinctive:

    Create reproducible notebook environments

    line 97
  22. Distinctive:

    Create appropriate visualization standards

    line 100
  23. Distinctive:

    Create appropriate notebook documentation

    line 103
  24. Distinctive:

    Create appropriate spot instance usage

    line 107
  25. Distinctive:

    Create appropriate storage lifecycle policies

    line 110
  26. Distinctive:

    Create appropriate cost allocation tracking

    line 113
  27. Distinctive:

    Create appropriate VPC configurations

    line 117
  28. Distinctive:

    Create appropriate model artifact encryption

    line 120
  29. Distinctive:

    Create appropriate security group configurations

    line 123
  30. Distinctive:

    Create appropriate domain configurations

    line 127
  31. Distinctive:

    Create appropriate resource isolation

    line 130
  32. Distinctive:

    Create proper collaboration workflows

    line 133
  33. Distinctive:

    Create efficient feature retrieval patterns

    line 138
  34. Distinctive:

    Create proper feature lineage tracking

    line 141
  35. Distinctive:

    Create appropriate preprocessing/postprocessing

    line 147
  36. Distinctive:

    Create appropriate inference pipeline components

    line 150
  37. Distinctive:

    Create proper model optimization (ONNX, etc.)

    line 153
  38. Distinctive:

    Create appropriate CloudWatch metrics and alarms

    line 157
  39. Distinctive:

    Create appropriate EventBridge integration

    line 160
  40. Distinctive:

    Create appropriate API Gateway integration for model serving

    line 163

≈ “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-sagemaker.mdc
---
description: AWS SageMaker Development Standards
globs: 
alwaysApply: false
---
---
Description: AWS SageMaker Development Standards
Globs: **/sagemaker/**/*, **/ml/**/*, **/models/**/*, **/notebooks/**/*
---

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

## SageMaker Project Structure
- Organize projects with clear separation of concerns
- Implement proper model training/inference code separation
- Create reproducible experiment environments
- Design modular processing pipelines
- Implement proper data preprocessing components
- Create appropriate model evaluation modules
- Design proper feature engineering pipelines
- Implement proper deployment configurations

## Model Development
- Implement standardized model interfaces
- Create proper model parameter configurations
- Design appropriate hyperparameter optimization
- Implement proper validation strategies
- Create appropriate model evaluation metrics
- Design proper model versioning
- Implement appropriate model documentation
- Create proper reproducibility controls

## Data Management
- Implement proper data versioning
- Create appropriate data preprocessing pipelines
- Design efficient data loading mechanisms
- Implement proper feature extraction
- Create appropriate data validation checks
- Design proper data labeling processes
- Implement efficient data augmentation
- Create appropriate data splitting strategies

## Training Jobs
- Configure appropriate training job parameters
- Implement proper distributed training
- Create appropriate checkpoint strategies
- Design efficient hyperparameter tuning jobs
- Implement proper early stopping
- Create appropriate resource configurations
- Design proper training metrics collection
- Implement appropriate experiment tracking

## Model Deployment
- Implement proper model serving configurations
- Create appropriate endpoint configurations
- Design efficient auto-scaling policies
- Implement proper model monitoring
- Create appropriate deployment strategies
- Design proper A/B testing mechanisms
- Implement efficient batch transform jobs
- Create appropriate multi-model endpoints when applicable

## SageMaker Pipelines
- Design proper ML workflow pipelines
- Implement appropriate pipeline components
- Create modular pipeline steps
- Design proper pipeline parameters
- Implement appropriate condition steps
- Create proper pipeline versioning
- Design effective data processing steps
- Implement proper model evaluation steps

## MLOps Practices
- Implement proper CI/CD for ML models
- Create appropriate model registries
- Design effective model approval workflows
- Implement proper model lineage tracking
- Create appropriate model artifact management
- Design proper model rollback strategies
- Implement efficient model monitoring
- Create proper automated retraining workflows

## Model Monitoring
- Configure appropriate model monitors
- Implement proper data quality monitoring
- Create appropriate model quality monitoring
- Design effective model bias monitoring
- Implement proper model explainability metrics
- Create appropriate alerting thresholds
- Design proper baseline constraints
- Implement efficient monitoring schedules

## Notebooks and Experimentation
- Implement structured notebook templates
- Create reproducible notebook environments
- Design proper experiment tracking
- Implement efficient notebook parameterization
- Create appropriate visualization standards
- Design modular notebook components
- Implement proper notebook version control
- Create appropriate notebook documentation

## Cost Optimization
- Implement right-sized instance selection
- Create appropriate spot instance usage
- Design efficient resource cleanup
- Implement proper auto-scaling configurations
- Create appropriate storage lifecycle policies
- Design cost-efficient training strategies
- Implement proper resource tagging
- Create appropriate cost allocation tracking

## Security Best Practices
- Implement proper IAM roles with least privilege
- Create appropriate VPC configurations
- Design proper encryption at rest and in transit
- Implement secure network configurations
- Create appropriate model artifact encryption
- Design proper data access controls
- Implement proper logging and monitoring
- Create appropriate security group configurations

## SageMaker Studio
- Implement proper user management
- Create appropriate domain configurations
- Design proper app lifecycle management
- Implement efficient notebook sharing
- Create appropriate resource isolation
- Design proper environment configurations
- Implement appropriate custom image management
- Create proper collaboration workflows

## SageMaker Feature Store
- Design proper feature group definitions
- Implement appropriate feature engineering pipelines
- Create efficient feature retrieval patterns
- Design proper online/offline store usage
- Implement appropriate feature versioning
- Create proper feature lineage tracking
- Design efficient feature transformation
- Implement appropriate feature validation

## Model Inference
- Implement efficient serialization/deserialization
- Create appropriate preprocessing/postprocessing
- Design proper batch vs. real-time inference patterns
- Implement efficient model loading
- Create appropriate inference pipeline components
- Design proper multi-model serving strategies
- Implement appropriate model performance profiling
- Create proper model optimization (ONNX, etc.)

## Integration with Other AWS Services
- Implement proper S3 integration for data storage
- Create appropriate CloudWatch metrics and alarms
- Design effective Step Functions for orchestration
- Implement proper Lambda integration
- Create appropriate EventBridge integration
- Design effective integration with data lakes
- Implement proper integration with Glue for ETL
- Create appropriate API Gateway integration for model serving

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.