implementation-order

A prescribed order for building the application from its innermost, pure calculation layer outward to integrations and user-facing code.

In plain words
What is it for?
Use it to plan implementation of types, dates, event selection, travel feasibility, pricing, hotels, packages, orchestration, and delivery layers.
Why use it?
It ensures each part is built only after the parts it depends on work, reducing the risk of an unverified interface hiding incorrect calculations.

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/evilfreelancer/zaezd/implementation-order
Clone the repo
git clone --depth 1 https://github.com/EvilFreelancer/zaezd

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,050 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.01050
Opus 5 $0.00000 $0.00525
Sonnet 5 $0.00000 $0.00210
Haiku 4.5 $0.00000 $0.00105

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

Security

Grade A, and why

implementation-order 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 yesterday.

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/implementation-order.mdc · 87 lines

How it starts

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

Implementation order: inner layers first

Build the cake from the inside out. A unit may be written only when everything it depends on already exists and is green. This keeps every layer testable without mocks and stops the classic hackathon failure where a beautiful screen sits on top of arithmetic nobody verified.

The order

L0. Pure domain core, src/composer/. No imports outside the file's own layer, no I/O, no clock, no network.

  1. types.ts - TripRequest, TripResult, TripPackage, EventCard, Leg, HotelOffer, CheckoutLink, CoverageNote, SkippedNote. The file grows feature by feature; it is never published whole in the first commit.
  2. dates.ts - check-in day, check-out day, night count.
  3. selection.ts - candidate events, with the reference date passed in as an argument.
  4. feasibility.ts - arrival buffer, departure after the event, unknown start time.
  5. pricing.ts - total participation price and budget breakdown. It receives an already marked set of working days; reading isDayOff is L2, not L0.
  6. hotels.ts - hotel ranking: by distance when the venue was geocoded precisely, otherwise by price and rating with the distance block suppressed.
  7. packages.ts - the three selection rules and their collapse to fewer cards. It chooses among combinations that L3 already assembled; building the cartesian product is L3.
  8. checkout-labels.ts - the pure kind to button-label table.

L1. Sources, src/sources/. Protocol and normalization, one module per concern.

  1. types.ts - normalized shapes the rest of the code sees.
  2. normalize.ts - raw payload (unknown) to domain types, plus forgiving input coercion.
  3. cache.ts - keyed in-memory cache with per-source TTL, replay from fixtures/.
  4. confcal.ts - session handling, one concurrent call, automatic re-initialize.
  5. tutu.ts - sessionless client over the four tools actually used.

L2. Enrichment, src/enrich/. Each one a function with a timeout and a fallback, independent of the others.

Read the full file on GitHub · 87 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. yesterday First seen · 87 lines · 0 tokens per session scan A a4f4ace72427

Subscribe to this mod's changes

implementation-order is a cursor rule published in the GitHub repository EvilFreelancer/zaezd (1 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,050 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.