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.
git clone --depth 1 https://github.com/netlify/context-and-toolsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/netlify/context-and-tools/netlify-deploy-deployment-patterns)<a href="https://agentmods.dev/rules/netlify/context-and-tools/netlify-deploy-deployment-patterns"><img src="https://agentmods.dev/badge/rules/netlify/context-and-tools/netlify-deploy-deployment-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/netlify/context-and-tools/netlify-deploy-deployment-patterns"><img src="https://agentmods.dev/badge/rules/netlify/context-and-tools/netlify-deploy-deployment-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00014 | $0.01223 |
| Opus 5.5 | $0.00006 | $0.00489 |
| Sonnet 5.5 | $0.00003 | $0.00245 |
| Haiku 4.5 | $0.00001 | $0.00122 |
Grade A, and why
netlify-deploy-deployment-patterns scanned grade A with 0 findings 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 2mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Netlify Deployment Patterns
Common deployment scenarios for Netlify. The primary path is Git-based continuous deployment (Netlify builds and deploys on every push); manual CLI uploads are the exception for prototypes, Git-less projects, and CI artifact uploads.
Don't gate deploys behind a netlify status pre-check. Run the real command; if it fails with an auth or link error, that failure tells you what to fix.
Pattern 1: Git-Based Continuous Deployment (primary)
Context: A project in a Git repository that should deploy automatically.
Setup once:
netlify init # Creates/links a site and connects Git CI/CD
After that, Netlify builds on its own servers on every push:
- Push to the production branch → production deploy.
- Open a pull request → deploy preview with a unique URL.
- Push to another branch → branch deploy, only if branch deploys are enabled (off by default; enable in the site's build & deploy settings).
Configure the build command, publish directory, and base directory in netlify.toml (see the netlify-config skill). No local build or upload step is needed — the build happens on Netlify.
Pattern 2: Linking an Existing Repo to an Existing Site
Context: A site already exists on Netlify and you want the local repo linked to it.
# Link by Git remote
netlify link --git-remote-url https://github.com/user/my-app.git
# Or link interactively (pick from a list)
netlify link
If the site can't be found, create one with netlify init.
Pattern 3: Manual / Local Deploy (secondary)
Context: A prototype, a project with no Git remote, or a CI pipeline that builds elsewhere and uploads the artifact.
# Draft deploy (preview URL) to test the upload
netlify deploy --dir=dist
# Production deploy
netlify deploy --dir=dist --prod
--dir names the already-built output directory to upload. Omit it to let the CLI resolve the publish directory from netlify.toml. If the site also has Git CD connected, remember a manual --prod deploy is replaced by the next push to the production branch unless you lock the deploy in the UI.
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.
- 2mo ago Changed d87a13598291
- 3mo ago First seen · 114 lines · 14 tokens per session scan A a0e3b583fe1d
netlify-deploy-deployment-patterns is a cursor rule published in the GitHub repository netlify/context-and-tools (58 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 1,223 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
netlify-deploy-deployment-patterns compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| netlify-deploy-deployment-patternsnetlify/context-and-tools | Cursor rule | 58 | today | MIT | A | 14 | Cursor |
| aws-ecssanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 8d ago | CC0-1.0 | A | 2,640 | Cursor |
| log-watchbriiirussell/cybersecurity-skills | Cursor rule | 542 | yesterday | MIT | A | 184 | Cursor |
| beanstalk-deploypr-pm/prpm | Cursor rule | 125 | 1mo ago | MIT | A | 0 | Cursor |
| deploymentlacymorrow/paperclip-hub | Cursor rule | 16 | 2d ago | MIT | A | 0 | Cursor |
| advisor-routingmicrosoft/azure-skills | Cursor rule | 1.7k | today | MIT | A | 37 | Cursor |
| aws-rds-best-practicesbeettlle/CursorRules | Cursor rule | 2 | 15d ago | none | A | 0 | Cursor |