docker-workflow

docker-workflow is a cursor rule for Cursor from Cadasto/openehr-assistant-mcp. It costs 326 tokens per session, scanned A, original, MIT.

A project rule requiring PHP, Composer, tests, and static analysis to run inside Docker containers.

In plain words
What is it for?
Use the documented Docker and Make commands to start the development environment, install dependencies, run tests, generate coverage, and run PHPStan.
Why use it?
It prevents commands from failing when PHP and Composer are not installed on the developer’s computer and keeps the workflow consistent.

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/cadasto/openehr-assistant-mcp/docker-workflow
Clone the repo
git clone --depth 1 https://github.com/Cadasto/openehr-assistant-mcp

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 docker-workflow

README.md
[![agentmods](https://agentmods.dev/badge/rules/cadasto/openehr-assistant-mcp/docker-workflow.svg)](https://agentmods.dev/rules/cadasto/openehr-assistant-mcp/docker-workflow)
Your own site
<a href="https://agentmods.dev/rules/cadasto/openehr-assistant-mcp/docker-workflow"><img src="https://agentmods.dev/badge/rules/cadasto/openehr-assistant-mcp/docker-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 326 This file is loaded in full into every session.
When invoked 326 The same file — it is already loaded in full.
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.00326 $0.00326
Opus 5 $0.00163 $0.00163
Sonnet 5 $0.00065 $0.00065
Haiku 4.5 $0.00033 $0.00033

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

Security

Grade A, and why

docker-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 5d 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/docker-workflow.mdc · 50 lines

What it actually says

Docker-only workflow for PHP/Composer

This project has no local PHP or Composer in the host (e.g. WSL). All PHP and Composer commands must run inside the dev container.

Do not run

  • composer ... on the host
  • php ... on the host
  • vendor/bin/phpunit ... on the host

These will fail; use the Docker workflow below instead.

Correct commands

Start dev containers (once):

make up-dev

Install dependencies:

make install

Run tests:

docker compose -f .docker/docker-compose.yml -f .docker/docker-compose.dev.yml exec -u 1000:1000 app composer test

Run PHPStan:

docker compose -f .docker/docker-compose.yml -f .docker/docker-compose.dev.yml exec -u 1000:1000 app composer check:phpstan

Run coverage (HTML):

docker compose -f .docker/docker-compose.yml -f .docker/docker-compose.dev.yml exec -u 1000:1000 app composer test:coverage

Single test class or filter:

docker compose -f .docker/docker-compose.yml -f .docker/docker-compose.dev.yml exec -u 1000:1000 app vendor/bin/phpunit --filter SomeTest
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. 5d ago First seen · 50 lines · 326 tokens per session scan A 4ee4af519c06

Subscribe to this mod's changes

docker-workflow is a cursor rule published in the GitHub repository Cadasto/openehr-assistant-mcp (17 stars, last pushed 28d ago), licensed MIT. It adds 326 tokens to every session, about $0.0016 per session on Opus 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.