Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/sanjeed5/awesome-cursor-rules-mdc/aws-cligit clone --depth 1 https://github.com/sanjeed5/awesome-cursor-rules-mdcWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.02197 | $0.02197 |
| Opus 5 | $0.01099 | $0.01099 |
| Sonnet 5 | $0.00439 | $0.00439 |
| Haiku 4.5 | $0.00220 | $0.00220 |
Grade C, and why
aws-cli scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
# Credentials managed in ~/.aws/credentials or assumed via IAM role How it starts
The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.
aws-cli Best Practices
The AWS CLI is your primary interface for programmatic interaction with AWS. Adhering to these best practices ensures your CLI usage is secure, reproducible, and efficient, aligning with modern DevOps principles.
1. Code Organization and Structure
Organize your AWS CLI interactions into well-defined scripts or functions. Avoid one-off commands for anything beyond simple queries.
1.1. Use Named Profiles for Environment Segregation
Always define multiple named profiles for different environments (e.g., dev, test, prod) and projects. This prevents accidental operations in the wrong account.
❌ BAD: Relying on default profile or constantly switching credentials.
# Easy to accidentally target production
aws s3 rm s3://my-prod-bucket --recursive
✅ GOOD: Explicitly using named profiles.
# ~/.aws/config
# [profile dev]
# region = us-east-1
# output = json
# [profile prod]
# region = us-east-1
# output = json
# In your script or terminal
aws s3 ls --profile dev
aws s3 rm s3://my-dev-bucket --recursive --profile dev
1.2. Pin AWS CLI Version in CI/CD
Ensure consistent behavior by pinning the AWS CLI version in automated environments. Use awscli-v2 for modern features and stability.
❌ BAD: Relying on the latest available version in CI/CD.
# .github/workflows/deploy.yml
# ...
# - name: Install AWS CLI
# run: pip install awscli # Installs latest, potentially breaking changes
✅ GOOD: Using a specific, tested version (e.g., via Docker).
# .github/workflows/deploy.yml
# ...
- name: Deploy with AWS CLI v2
uses: docker://amazon/aws-cli:2.15.30 # Pin to a specific, validated version
with:
args: s3 sync ./app s3://my-bucket-name --delete --profile prod
2. Common Patterns and Anti-patterns
Adopt patterns that promote automation, idempotency, and machine-readability.
2.1. Prefer JSON Output and jq for Parsing
Always output in json format and use jq for robust, idempotent parsing. Avoid parsing human-readable formats like text or table.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 242 lines · 0 tokens per session scan C de04367bc5d9
aws-cli is a cursor rule published in the GitHub repository sanjeed5/awesome-cursor-rules-mdc (3,570 stars, last pushed 3mo ago), licensed CC0-1.0. It adds 2,197 tokens to every session, about $0.0110 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
ankra-cli
Ankra CLI rules and best practices for managing Kubernetes clusters via the Ankra platform.
netlify-mcp-servers
Build, deploy, and secure Model Context Protocol (MCP) servers on Netlify. Use whenever the task involves creating an MCP server, exposing an app or API to AI agents as MCP tools, letting Claude / Cursor / Claude Code call a custom remote server, or adding MCP tools to an existing Netlify site. Covers the MCP SDK +…
netlify-frameworks-vite
Vite + React on Netlify. Reference for the netlify-frameworks skill.
400-cloudflare
End-to-end prompts and patterns for designing, testing, and deploying Cloudflare rulesets (WAF, Rate Limiting, Transform, Workers integration).
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.