copy-sync-workflow

copy-sync-workflow is a cursor rule for Cursor from benwilcock/rhdh-lab. It costs 0 tokens per session (264 once invoked), scanned A, original, Apache-2.0.

A workflow for maintaining configuration files in two related folders. One folder is the source of truth, and a script copies its files into the folder used by local containers.

In plain words
What is it for?
Use it when changing environment variables, container settings, application configuration, plugins, catalogue entities, or extra credential files, then re-run the sync script.
Why use it?
It prevents edits from being made in the wrong place or from leaving local containers with outdated settings.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when changing environment variables, container settings, application configuration, plugins, catalogue entities, or extra credential files, then re-run the sync script.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/benwilcock/rhdh-lab/copy-sync-workflow
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.

Clone the repo
git clone --depth 1 https://github.com/benwilcock/rhdh-lab

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 copy-sync-workflow

README.md
[![agentmods](https://agentmods.dev/badge/rules/benwilcock/rhdh-lab/copy-sync-workflow/github.svg)](https://agentmods.dev/rules/benwilcock/rhdh-lab/copy-sync-workflow)
Your own site
<a href="https://agentmods.dev/rules/benwilcock/rhdh-lab/copy-sync-workflow"><img src="https://agentmods.dev/badge/rules/benwilcock/rhdh-lab/copy-sync-workflow/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.

agentmods 80×15 button for copy-sync-workflow

Your own site · 80×15
<a href="https://agentmods.dev/rules/benwilcock/rhdh-lab/copy-sync-workflow"><img src="https://agentmods.dev/badge/rules/benwilcock/rhdh-lab/copy-sync-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 264 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00264
Opus 5.5 $0.00000 $0.00106
Sonnet 5.5 $0.00000 $0.00053
Haiku 4.5 $0.00000 $0.00026

Measured 2mo ago against content hash 1fa22638bcc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

copy-sync-workflow 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.

.cursor/rules/copy-sync-workflow.mdc · 28 lines

What it actually says

External Customization Overlay

rhdh-customizations/ is the sole source of local configuration. ./lab up loads rhdh-local/compose.yaml together with rhdh-customizations/compose.override.yaml, which bind-mounts the required source files directly into containers.

Edit Here

  • .env for environment overrides and secrets
  • compose.override.yaml for service and mount overrides
  • configs/app-config/app-config.local.yaml for RHDH configuration
  • configs/dynamic-plugins/dynamic-plugins.override.yaml for plugins
  • configs/extra-files/ for mounted credentials and LightSpeed configuration
  • configs/translations/ for localization files

Required Workflow

  1. Edit the source file in rhdh-customizations/.
  2. Restart the whole lab with ./lab down && ./lab up.
  3. Verify git -C rhdh-local diff --quiet.

Never run the legacy apply-customizations.sh to copy files, manually copy a source file, or create an override under rhdh-local/.

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. 2mo ago Changed · -109 lines 1fa22638bcc4
  2. 3mo ago First seen · 137 lines · 0 tokens per session scan A 7b44109d81e9

Subscribe to this mod's changes

copy-sync-workflow is a cursor rule published in the GitHub repository benwilcock/rhdh-lab (2 stars, last pushed 2mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 264 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-31.

Related

copy-sync-workflow compared with cursor rules from other repositories

copy-sync-workflow next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
copy-sync-workflowbenwilcock/rhdh-labCursor rule22mo agoApache-2.0A0Cursor
aws-ecssanjeed5/awesome-cursor-rules-mdcCursor rule3.6k9d agoCC0-1.0A2,640Cursor
python-containerization-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A56Cursor
vibes-plug-devopsroedyrustam/vibes-plugCursor rule1315d agoMITA0Cursor
dockerlacymorrow/paperclip-hubCursor rule16todayMITA0Cursor
hackhack-dance/hackCursor rule9todayMITA1,486Cursor
local-compose-db-lifecycle-for-web-testsTACC/HPCPerfStatsCursor rule60todayLGPL-2.1A9Cursor