Borrowing it
Nothing to install: this file belongs to MatrixAges/polywise. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/MatrixAges/polywise/master/.opencode/skills/erpc/SKILL.mdgit clone --depth 1 https://github.com/MatrixAges/polywiseWrote 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/skills/matrixages/polywise/erpc)<a href="https://agentmods.dev/skills/matrixages/polywise/erpc"><img src="https://agentmods.dev/badge/skills/matrixages/polywise/erpc/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/skills/matrixages/polywise/erpc"><img src="https://agentmods.dev/badge/skills/matrixages/polywise/erpc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00041 | $0.00560 |
| Opus 5.5 | $0.00016 | $0.00224 |
| Sonnet 5.5 | $0.00008 | $0.00112 |
| Haiku 4.5 | $0.00004 | $0.00056 |
Grade A, and why
erpc-communication 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 2mo 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
eRPC Communication Guide
This skill provides mandatory instructions for implementing type-safe IPC using eRPC in this project.
1. Main Process Implementation
- Route Definition: Must use the project's provided router utility to define tRPC routes.
- Handler Initialization: Must use
createIPCHandlerfromerpc/mainto bind the router to Electron windows. - Context Injection: Should provide necessary instances (e.g.,
BrowserWindoworTray) throughcreateContext.
// Always initialize createIPCHandler within the app ready lifecycle
import { createIPCHandler } from 'erpc/main'
import { routers } from './rpcs'
createIPCHandler({
createContext: async () => ({ win: mainWindow, tray: appTray }),
router: routers,
windows: [mainWindow]
})
2. Preload Script Configuration
- Expose Bridge Interface: Must call
exposeElectronTRPC()provided byerpc/mainin the preload script. - Lifecycle: Should be called inside
process.once('loaded').
import { exposeElectronTRPC } from 'erpc/main'
process.once('loaded', () => {
exposeElectronTRPC()
})
3. Renderer Process Usage
- Client Creation: Create tRPC client using
ipcLinkfromerpc/renderer. - Type Safety: Always import
Routertype from main process to ensure complete end-to-end type safety.
import { createTRPCClient } from '@trpc/client'
import { ipcLink } from 'erpc/renderer'
import type { Router } from '@desktop/rpcs' // Import Router type from main process
export const trpc = createTRPCClient<Router>({
links: [ipcLink()]
})
4. Routes and Endpoints Best Practices
- Single Responsibility: Each route should correspond to a specific service in the main process (e.g.,
window,file,dialog). - Parameter Validation: It is strictly prohibited to write complex business logic in Router. Router is only responsible for validating input and output parameters; business logic must be delegated to Service (e.g., calling
WindowService.open()). - Type Reference: For complex object parameters, type definitions must be placed under the
packages/erpcpackage and shared between both ends, avoiding direct cross-package imports of entity logic.
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.
- 2mo ago First seen · 63 lines · 41 tokens per session scan A 9d6624b106fc
erpc-communication is a skill published in the GitHub repository MatrixAges/polywise (654 stars, last pushed 4mo ago), licensed MIT. It adds 41 tokens to every session and 560 once invoked, about $0.0002 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-09-04.
erpc-communication compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| erpc-communicationMatrixAges/polywise | Skill | 654 | 4mo ago | MIT | A | 41 | OpenCode |
| writing-workflow-skillsJetBrains/thinkrail | Skill | 7.8k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| artifact-deploykirodotdev/KiroCrew | Skill | 4.8k | yesterday | Apache-2.0 | A | 74 | Claude Code, Codex |
| explain-forkirodotdev/KiroCrew | Skill | 4.8k | yesterday | Apache-2.0 | A | 71 | Claude Code, Codex |
| writing-specsJetBrains/thinkrail | Skill | 7.8k | yesterday | Apache-2.0 | A | 59 | Claude Code, Codex |
| mochi-remindkirodotdev/KiroCrew | Skill | 4.8k | yesterday | Apache-2.0 | A | 20 | Claude Code, Codex |
| papyrus-latex-suggestionskirodotdev/KiroCrew | Skill | 4.8k | yesterday | Apache-2.0 | A | 69 | Claude Code, Codex |