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.
git clone --depth 1 https://github.com/bayesimpact/bayes-platformWrote 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.
[](https://agentmods.dev/rules/bayesimpact/bayes-platform/web)<a href="https://agentmods.dev/rules/bayesimpact/bayes-platform/web"><img src="https://agentmods.dev/badge/rules/bayesimpact/bayes-platform/web/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.
<a href="https://agentmods.dev/rules/bayesimpact/bayes-platform/web"><img src="https://agentmods.dev/badge/rules/bayesimpact/bayes-platform/web.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02531 |
| Opus 5 | $0.00000 | $0.01265 |
| Sonnet 5 | $0.00000 | $0.00506 |
| Haiku 4.5 | $0.00000 | $0.00253 |
Grade A, and why
web scanned grade A with 1 finding 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 2d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- The Axios client is centralized in `external/axios.ts` How it starts
The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cursor Agent Rules for CaseAI Connect - Web
Redux & Feature Architecture
API Calls Must Go Through Redux + Services
Rule: All API calls MUST go through React-Redux thunks, which in turn MUST use the shared services object. React components MUST NOT call the API client (Axios, fetch, etc.) directly.
Requirements:
- All API calls must use Redux thunks (
createAsyncThunk) - Thunks call
extra.services.{feature}methods only (neveraxios/fetchdirectly) - Components dispatch thunks, never call API directly
- API routes and DTOs come from
@caseai-connect/api-contracts - The Axios client is centralized in
external/axios.ts - The feature services registry is centralized in
external/axios.services.tsand exposed viadi/services.ts
Structure:
- Redux slices:
features/{domain}/{domain}.slice.ts - Redux thunks:
features/{domain}/{domain}.thunks.ts - Redux selectors:
features/{domain}/{domain}.selectors.ts - Axios client:
external/axios.ts(singleton Axios with auth interceptors) - Services registry:
external/axios.services.ts(builds concrete services) anddi/services.ts(typedServices+getServices())
Store wiring:
store/index.ts:- Registers feature reducers under their domain keys (e.g.
me,projects,organizations,agents, etc.) - Configures
thunk.extraArgumentwith{ services: getServices() }(typed asThunkExtraArg) - Middleware and listeners must assume all side-effectful work goes through these services
- Registers feature reducers under their domain keys (e.g.
Feature Service Pattern (SPI + External API + Models)
Rule: Each feature MUST follow the "me" feature architecture as the canonical pattern for defining and organizing objects inside a feature.
Canonical Example (Me Feature):
features/me/me.models.ts- Defines domain-level types (
User,Me, etc.) - These are the types slices and components should depend on (not raw DTOs)
- Defines domain-level types (
features/me/me.spi.ts- Declares the Service Provider Interface for the feature (
IMeSpi) - Only exposes domain models (
Me) in its API surface
- Declares the Service Provider Interface for the feature (
features/me/external/me.api.ts- Concrete implementation of the SPI using Axios +
@caseai-connect/api-contracts - Uses
satisfies IMeSpito ensure the implementation matches the SPI contract - Performs DTO → domain mapping via small helpers (e.g.
fromDto(dto: MeResponseDto): Me)
- Concrete implementation of the SPI using Axios +
external/axios.services.ts- Wires the feature implementation into the global
servicesobject:me: meApi(wheremeApiis the SPI implementation fromfeatures/me/external/me.api.ts)
- Wires the feature implementation into the global
di/services.ts- Declares the
Servicestype (e.g.me: IMeSpi,projects: IProjectsApi, etc.) - Exposes
getServices()which returns the concreteservicesinstance
- Declares the
features/me/me.thunks.ts- Uses
createAsyncThunk<Me, void, { state: RootState; extra: ThunkExtraArg }> - Accesses the SPI through
extra.services.meonly
- Uses
features/me/me.slice.ts- Stores domain state based on
Me/Me["user"]types - Handles pending/fulfilled/rejected states of the feature thunks
- Stores domain state based on
features/me/me.selectors.ts- Selectors read from the slice and return domain models, not DTOs
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.
- 2d ago First seen · 243 lines · 0 tokens per session scan A 90d6a3e7e981
web is a cursor rule published in the GitHub repository bayesimpact/bayes-platform (18 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,531 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-14.
Other cursor rules, from other repositories
windsurfrules
Create detailed components with these requirements.
state-management
Use the following stack. Do not introduce or recommend Redux or React Context for shared/global state.
mobx
Definitive guidelines for structuring MobX applications with React, focusing on predictable state management, optimal rendering, and modern best practices.
tanstack-start-guide
TanStack Start best practices emphasizing client-first architecture, type safety, and modern React patterns.
new-component
Workflow for creating new React components.
middleware-auth
Next.js middleware auth — prevents auth logic being placed in middleware instead of route handlers.