lagoon-yml-standards

lagoon-yml-standards is a cursor rule for Cursor from ivangrynenko/cursorrules. It costs 0 tokens per session (1,095 once invoked), scanned A, original, MIT.

A set of checks for Lagoon configuration files and deployment workflows. Lagoon is a platform for deploying and running container-based applications.

In plain words
What is it for?
It checks TLS certificate settings, Drush error handling, rollout conditions, cron schedules, redirects, environments, routes, and deployment tasks.
Why use it?
It catches deployment settings that can cause certificate, rollout, scheduled-task, or routing problems.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/ivangrynenko/cursorrules/lagoon-yml-standards
Clone the repo
git clone --depth 1 https://github.com/ivangrynenko/cursorrules

Made for: Cursor.

Wrote 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.

agentmods badge for lagoon-yml-standards

README.md
[![agentmods](https://agentmods.dev/badge/rules/ivangrynenko/cursorrules/lagoon-yml-standards.svg)](https://agentmods.dev/rules/ivangrynenko/cursorrules/lagoon-yml-standards)
Your own site
<a href="https://agentmods.dev/rules/ivangrynenko/cursorrules/lagoon-yml-standards"><img src="https://agentmods.dev/badge/rules/ivangrynenko/cursorrules/lagoon-yml-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,095 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01095
Opus 5 $0.00000 $0.00548
Sonnet 5 $0.00000 $0.00219
Haiku 4.5 $0.00000 $0.00110

Measured 3d ago against content hash cf6d759582f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lagoon-yml-standards 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 3d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/rules/lagoon-yml-standards.mdc · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lagoon Configuration Standards

Ensures proper configuration and best practices for Lagoon deployment files, focusing on environment configuration, routes, tasks, and deployment workflows.

actions:

  • type: enforce conditions:

    • pattern: "environments:\s*[\w-]+:\sroutes:\s-\s*\w+:\s*-[^:]+:\stls-acme:\strue" message: "Ensure tls-acme is set to 'false' until DNS points to Lagoon to prevent certificate issuance failures"

    • pattern: "post-rollout:\s*-\srun:\scommand:\sdrush(?!.\|\|)" message: "Wrap Drush commands in proper error handling using '|| exit 1' to ensure deployment fails on command errors"

    • pattern: "pre-rollout:\s*-\srun:\scommand:\s*(?!.*if)" message: "Add conditional checks for pre-rollout tasks to ensure they only run when necessary"

    • pattern: "cronjobs:\s*-\sname:[^\n]\n\sschedule:\s'\\s\*'" message: "Use 'M' or 'H' notation for randomized cron scheduling to prevent server load spikes"

    • pattern: "routes:\s*-\s*\w+:\s*-[^:]+:\s*(?!.*redirects:)" message: "Consider configuring redirects for routes to handle legacy URLs or domain migrations"

  • type: suggest message: |

    Lagoon Configuration Best Practices:

    Environment Configuration

    • Use environment-specific configurations for different deployment targets
    • Define environment types for proper resource allocation
    • Configure environment variables specific to each environment
    • Use environment-specific routes and domains

    Routes Configuration

    • Configure routes with appropriate SSL settings
    • Set up redirects for legacy URLs
    • Configure proper insecure traffic handling (Allow or Redirect)
    • Use wildcard domains for feature branch environments

    Tasks Configuration

    • Implement proper pre-rollout tasks with error handling
    • Configure post-rollout tasks with appropriate conditions
    • Use conditional task execution based on environment
    • Include database sync in PR environments
    • Implement proper backup strategies before major changes

    Cron Configuration

    • Use randomized cron schedules with 'M' and 'H' notation
    • Set appropriate frequency for different tasks
    • Ensure cron jobs have proper error handling
    • Use descriptive names for cron jobs

    Example Configuration:

    environments:
      main:
        cronjobs:
          - name: drush-cron
            schedule: '*/15 * * * *'
            command: drush cron
            service: cli
        routes:
          - nginx:
            - example.com:
                tls-acme: true
                insecure: Redirect
                redirects:
                  - www.example.com
        tasks:
          pre-rollout:
            - run:
                name: Drush pre-update
                command: |
                  if drush status --fields=bootstrap | grep -q "Successful"; then
                    drush state:set system.maintenance_mode 1 -y
                    drush cr
                  fi
                service: cli
          post-rollout:
            - run:
                name: Drush post-update
                command: |
                  drush updb -y || exit 1
                  drush cr
                  drush state:set system.maintenance_mode 0 -y
                service: cli
    
  • type: validate conditions:

    • pattern: "environments:\s*[\w-]+:\stypes:\s[^\n]*" message: "Define environment types for proper resource allocation and environment-specific configuration"

Read the full file on GitHub · 121 lines

Changes

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.

  1. 3d ago First seen · 121 lines · 0 tokens per session scan A cf6d759582f1

Subscribe to this mod's changes

lagoon-yml-standards is a cursor rule published in the GitHub repository ivangrynenko/cursorrules (88 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,095 tokens. 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.