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/felipebarcelospro/igniter-js/igniter-proceduresgit clone --depth 1 https://github.com/felipebarcelospro/igniter-jsWrote 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/felipebarcelospro/igniter-js/igniter-procedures)<a href="https://agentmods.dev/rules/felipebarcelospro/igniter-js/igniter-procedures"><img src="https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/igniter-procedures.svg" alt="Measured on agentmods" 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 | $0.00037 | $0.01109 |
| Opus 5 | $0.00018 | $0.00554 |
| Sonnet 5 | $0.00007 | $0.00222 |
| Haiku 4.5 | $0.00004 | $0.00111 |
Grade A, and why
igniter-procedures 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 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.
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 — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Igniter.js: Procedures and Context
This guide covers two core concepts in Igniter.js: the Context system for dependency injection and Procedures for creating reusable middleware.
1. The Context System
The Context is a type-safe dependency injection mechanism that makes global services and request-specific data available throughout your API layer.
1.1. Base Context
The base context defines services that are available in every request handler. It is defined once when you initialize the Igniter instance.
- File Location:
src/igniter.context.ts - Purpose: To provide singleton services like database clients, loggers, and other providers to your actions and procedures.
// src/igniter.context.ts
export function createContext() {
return {
database: prisma, // Prisma client instance
// ... other global services
};
}
export type IgniterAppContext = ReturnType<typeof createContext>;
// src/igniter.ts
export const igniter = Igniter
.context<IgniterAppContext>()
// ... rest of the configuration
.create();
Inside any action handler, you can now access context.database in a fully type-safe way.
1.2. Dynamic Context Extension
The real power of the context comes from its ability to be dynamically extended on a per-request basis. Procedures are the mechanism for this.
When a procedure returns a value, that value is deeply merged into the context object, making it available to all subsequent procedures and the final action handler. This process is fully type-safe.
2. Procedures (igniter.procedure)
A Procedure is a piece of reusable logic that runs before your main action handler. It is the Igniter.js equivalent of middleware. Procedures are ideal for handling cross-cutting concerns like authentication, logging, or data transformation.
2.1. Creating a Simple Procedure
A procedure is a function that receives the handler context and can perform actions. If it returns an object, that object is merged into the main context.
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 · 141 lines · 37 tokens per session scan A 8dd3b54aa68a
igniter-procedures is a cursor rule published in the GitHub repository felipebarcelospro/igniter-js (242 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 37 tokens to every session and 1,109 once invoked, about $0.0002 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-09-01.
Other cursor rules, from other repositories
codegraph
CodeGraph MCP usage guide — when to use which tool.
git
Never mutate git history, remotes, or GitHub repo state.
css
TSF stylesheet conventions, layout debugging, and minification.
javascript
TSF JavaScript syntax, formatting, and minification.
local
Private workspace guidance and gitignored .local search (Grep/Glob are blind).
docs
Readme wording constraints, WordPress readme format, changelog prose style, and public API naming requirements.