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/SFARPak/AliFullStackWrote 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/sfarpak/alifullstack/ipc)<a href="https://agentmods.dev/rules/sfarpak/alifullstack/ipc"><img src="https://agentmods.dev/badge/rules/sfarpak/alifullstack/ipc/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/sfarpak/alifullstack/ipc"><img src="https://agentmods.dev/badge/rules/sfarpak/alifullstack/ipc.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.01342 | $0.01342 |
| Opus 5.5 | $0.00537 | $0.00537 |
| Sonnet 5.5 | $0.00268 | $0.00268 |
| Haiku 4.5 | $0.00134 | $0.00134 |
Grade A, and why
ipc 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You're building an Electron app following good security practices
IPC
Structure:
- ipc_client.ts - lives in the renderer process and is used to send IPCs to the main process.
- to use it just do
IpcClient.getInstance()
- to use it just do
- preload.ts - allowlist
- ipc_host.ts - contains the various IPC handlers attached which are: app_handlers.ts, chat_stream_handlers.ts, settings_handlers.ts etc.
React
- This is a React app
- Using TanStack router, NOT next.js, NOT react Router.
IPC & React query patterns
Okay, I can help you summarize this pattern for creating a new Cursor rule, focusing on the TanStack Query integration and the preferred error handling strategy.
Here's a summary of the pattern:
The pattern involves a client-side React hook interacting with main process IPC handlers via an IpcClient layer, leveraging TanStack Query for managing asynchronous operations, state, and caching.
1. React Hook (e.g., useSomething.ts):
-
Data Fetching (
useQuery):- Define a
queryKey(e.g.,["entity", entityId]) for caching and invalidation. - The
queryFnis an asynchronous function that:- Retrieves an
IpcClientinstance. - Calls the appropriate method on
IpcClient(e.g.,ipcClient.listEntities({ parentId })). This method corresponds to an IPC channel.
- Retrieves an
- Use the
enabledoption if the query depends on certain conditions (e.g.,entityId !== null). - Optionally provide
initialDataandmeta(e.g., for global error display likeshowErrorToast: true). - The hook returns
data,isLoading,error, and arefetchfunction fromuseQuery.
- Define a
-
Data Mutations (
useMutation):- The
mutationFnis an asynchronous function that:- Performs any necessary input validation, potentially throwing an error directly if client-side checks fail (e.g.,
if (!entityId) throw new Error("Entity ID is required");). - Retrieves an
IpcClientinstance. - Calls the appropriate method on
IpcClient(e.g.,ipcClient.createEntity({ data })).
- Performs any necessary input validation, potentially throwing an error directly if client-side checks fail (e.g.,
onSuccess:- Invalidate relevant queries using
queryClient.invalidateQueries({ queryKey: ["entity"] })to ensure data consistency and trigger refetches. - Optionally, update local state directly or refetch specific related data.
- Invalidate relevant queries using
onError:- Handle errors, often by displaying a notification to the user (e.g., using a
showError(error)utility).
- Handle errors, often by displaying a notification to the user (e.g., using a
- The hook exposes an asynchronous function (e.g.,
createEntity) that internally callsmutation.mutateAsync(params).
- The
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.
- 1mo ago First seen · 88 lines · 1,342 tokens per session scan A 5ad3c857e711
ipc is a cursor rule published in the GitHub repository SFARPak/AliFullStack (83 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 1,342 tokens to every session, about $0.0054 per session on Opus 5.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.
Other cursor rules, from other repositories
goal-flight
Goal Flight controller rules.
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
prefer-assertions-over-defensive-checks
Prefer assertions over defensive checks when data is guaranteed to be valid.