business-flows

business-flows is a cursor rule for Cursor from sagar25-Code-it/ps3d-cad-studio. It costs 11 tokens per session (1,229 once invoked), scanned A, original, MIT.

A description of important user journeys in PS3D, a browser-based computer-aided design application. It records how users start or recover a model, edit it, and move through its history.

In plain words
What is it for?
Use it when changing model startup, parametric editing, revision saving, undo, redo, or related browser automation.
Why use it?
It gives coding agents clear boundaries for the flows that must keep working, including saving, validation, undo, and redo.

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/sagar25-code-it/ps3d-cad-studio/business-flows
Clone the repo
git clone --depth 1 https://github.com/sagar25-Code-it/ps3d-cad-studio

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 business-flows

README.md
[![agentmods](https://agentmods.dev/badge/rules/sagar25-code-it/ps3d-cad-studio/business-flows.svg)](https://agentmods.dev/rules/sagar25-code-it/ps3d-cad-studio/business-flows)
Your own site
<a href="https://agentmods.dev/rules/sagar25-code-it/ps3d-cad-studio/business-flows"><img src="https://agentmods.dev/badge/rules/sagar25-code-it/ps3d-cad-studio/business-flows.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,229 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.00011 $0.01229
Opus 5 $0.00005 $0.00615
Sonnet 5 $0.00002 $0.00246
Haiku 4.5 $0.00001 $0.00123

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

Security

Grade A, and why

business-flows 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.

.cursor/project-context/business-flows.mdc · 120 lines

How it starts

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

PS3D business flows

businessFlows:
  - id: start-or-recover-model
    name: Start or recover a local model
    description: Start the worker, recover the newest atomic IndexedDB revision when available, otherwise validate the bounded fallback model.
    entryPoints:
      - apps/studio-web/src/App.tsx useEffect bootstrap
      - apps/studio-web/src/worker-client.ts bootstrap
      - packages/model-worker/src/worker.ts
    criticality: high

  - id: edit-parametric-model
    name: Edit and regenerate a semantic model
    description: Submit a revision-checked idempotent command, validate sketch and solid outputs, build evidence, persist atomically, then render the accepted result.
    entryPoints:
      - apps/studio-web/src/App.tsx runCommand
      - packages/commands/src/index.ts
      - packages/model-worker/src/worker.ts
    criticality: high

  - id: navigate-model-history
    name: Undo or redo committed intent
    description: Reconstruct legal semantic history from the journal, reevaluate the selected projection, and persist a new auditable revision.
    entryPoints:
      - apps/studio-web/src/App.tsx moveHistory
      - packages/commands/src/index.ts CommandSession
    criticality: high

  - id: save-and-recover-local
    name: Save a durable browser-local revision
    description: Store the document, evidence, and bound payload hash atomically in IndexedDB and recover only validated records.
    entryPoints:
      - apps/studio-web/src/App.tsx saveLocal
      - packages/persistence/src/index.ts
    criticality: high

  - id: native-document-exchange
    name: Download or open a bounded native revision
    description: Serialize or parse an exact versioned document-and-evidence envelope, validate hashes and model behavior in a fresh worker, and preserve the old durable revision on failure.
    entryPoints:
      - apps/studio-web/src/App.tsx downloadNative
      - apps/studio-web/src/App.tsx openNative
      - packages/import-export/src/index.ts
    criticality: high

  - id: export-mesh-solid
    name: Export a validated STL mesh solid
    description: Request an explicit-unit binary STL from the accepted worker solid and validate its record count and finite geometry before download.
    entryPoints:
      - apps/studio-web/src/App.tsx exportStl
      - packages/import-export/src/index.ts exportBinaryStl
    criticality: medium

  - id: inspect-and-select-body
    name: Inspect and select a rendered body
    description: Orbit, pan, zoom, fit, pick, and cross-highlight a derived render artifact without modifying semantic state.
    entryPoints:
      - apps/studio-web/src/App.tsx viewport
      - packages/viewport-three/src/index.ts
    criticality: medium

  - id: broad-workbench-authoring
    name: Author sketches, parts, assemblies, surfaces, and drawings
    description: Edit one shared bounded semantic project through stable revisioned operations, then derive truth-labeled sketch, assembly, surface, and vector drawing previews while retaining the worker-qualified part evidence path.
    entryPoints:
      - apps/studio-web/src/App.tsx
      - packages/workbench-core/src
      - packages/workbench-sketch/src
      - packages/workbench-geometry/src
      - packages/workbench-drawing/src
    criticality: high

  - id: consent-gated-automation
    name: Inspect or modify a model through MCP
    description: A local MCP host supplies a bounded project, inspects capability or project state, previews a revision-checked operation, and receives a new project only after a matching receipt and explicit confirmation; the server writes no file or external state.
    entryPoints:
      - apps/mcp-server/src/server.ts
      - packages/workbench-mcp/src/index.ts
      - apps/studio-web/src/workspaces/AutomateWorkspace.tsx
    criticality: high

  - id: learn-and-verify-capabilities
    name: Learn PS3D from beginner through advanced practice
    description: Read the same truth-labeled twelve-module curriculum in the responsive Learning Center or its generated fifteen-page PDF, then retain completion state only in the current browser.
    entryPoints:
      - apps/studio-web/src/learning/LearningCenter.tsx
      - apps/studio-web/src/learning/learning-content.ts
      - apps/studio-web/src/learning/learning-pdf.ts
    criticality: medium

  - id: create-cloud-identity-and-personal-token
    name: Create an isolated account and MCP credential
    description: Sign up or sign in through Supabase Auth, require a valid server-side session, create one scoped expiring personal access token, display its raw value once, and later list or revoke only that user's token records.
    entryPoints:
      - apps/studio-web/src/cloud/AccessPortal.tsx
      - apps/studio-web/src/cloud/auth-client.ts
      - api/auth.ts
      - api/access-tokens.ts
      - supabase/migrations/202608220001_remote_mcp.sql
    criticality: high

  - id: connect-remote-ai-host
    name: Connect a capable AI host through remote MCP
    description: Discover OAuth/resource metadata or present a scoped personal token over HTTPS, validate identity and Origin, enforce payload/rate limits, then invoke only the allowlisted pure PS3D MCP methods without storing model payloads.
    entryPoints:
      - api/mcp.ts
      - api/oauth-protected-resource.ts
      - api/oauth-consent.ts
      - packages/workbench-mcp/src/index.ts
    criticality: high

Read the full file on GitHub · 120 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 · 120 lines · 11 tokens per session scan A 5be0d9913ab4

Subscribe to this mod's changes

business-flows is a cursor rule published in the GitHub repository sagar25-Code-it/ps3d-cad-studio (0 stars, last pushed 2d ago), licensed MIT. It adds 11 tokens to every session and 1,229 once invoked, about $0.0001 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-31.