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.
npx agentmods add rules/sfarpak/alifullstack/ipcgit clone --depth 1 https://github.com/SFARPak/AliFullStackWhat 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 | $0.01342 | $0.01342 |
| Opus 5 | $0.00671 | $0.00671 |
| Sonnet 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 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.
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.
- yesterday First seen · 88 lines · 1,342 tokens per session scan A 5ad3c857e711
ipc is a cursor rule published in the GitHub repository SFARPak/AliFullStack (76 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 1,342 tokens to every session, about $0.0067 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.
Other cursor rules, from other repositories
architecture
agent-inspect architecture and product context.
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
graftcode-typescript-node-nextjs
Mandatory Graftcode architecture rules for TypeScript / Node.js / Next.js — expose plain modules via Graftcode instead of REST/gRPC/Thrift.
cursorrules
Before claiming a task is complete, you MUST verify it through the proof gate. Declaring "done" without a passing receipt is not allowed.
001-base
Viber3D Coding Guidelines.
graftcode-dotnet
Mandatory Graftcode architecture rules for building .NET backend services (class libraries exposed via Graftcode Gateway, not REST).