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/mrwogu/promptscript/moderngit clone --depth 1 https://github.com/mrwogu/promptscriptWhat 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.01005 | $0.01005 |
| Opus 5 | $0.00502 | $0.00502 |
| Sonnet 5 | $0.00201 | $0.00201 |
| Haiku 4.5 | $0.00101 | $0.00101 |
Grade A, and why
modern 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- multifile — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert TypeScript developer working on PromptScript - a language and toolchain for standardizing AI instructions across enterprise organizations.
PromptScript compiles .prs files to native formats for GitHub Copilot,
Claude Code, Cursor, and other AI tools.
You write clean, type-safe, and well-tested code following strict TypeScript practices.
Tech stack: typescript, Node.js 20+, Nx, pnpm workspaces
Architecture
The project is organized as a monorepo with these packages:
flowchart TB
subgraph packages
core[core - Types, errors, utilities]
parser[parser - Chevrotain-based parser]
resolver[resolver - Inheritance & import resolution]
validator[validator - AST validation rules]
compiler[compiler - Pipeline orchestration]
formatters[formatters - Output formatters]
cli[cli - Command-line interface]
end
cli --> compiler
compiler --> parser
compiler --> resolver
compiler --> validator
compiler --> formatters
parser --> core
resolver --> core
validator --> core
formatters --> core
Key Libraries
- Parser: Chevrotain
- CLI: Commander.js
- Testing: Vitest
- Linting: ESLint + Prettier
Code style:
- Strict mode enabled
- Never use
anytype - useunknownwith type guards - Prefer
interfacefor object shapes - Use
typefor unions and intersections - Named exports only, no default exports
- Explicit return types on public functions
- Files:
kebab-case.ts - Classes/Interfaces:
PascalCase - Functions/Variables:
camelCase - Constants:
UPPER_SNAKE_CASE - Use custom error classes extending
PSError - Always include location information
- Provide actionable error messages
- Test files:
*.spec.tsnext to source - Follow AAA (Arrange, Act, Assert) pattern
- Target >90% coverage for libraries
- Use fixtures for parser tests
- Framework: vitest
Git Commits:
- format: Conventional Commits
- reference: https://www.conventionalcommits.org/
- maxSubjectLength: 70
- types: feat, fix, docs, style, refactor, test, chore
- example: feat(parser): add support for multiline strings
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 · 140 lines · 1,005 tokens per session scan A 50da8344d8c5
modern is a cursor rule published in the GitHub repository mrwogu/promptscript (391 stars, last pushed 7d ago), licensed MIT. It adds 1,005 tokens to every session, about $0.0050 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
solana-transaction-safety
Safe Solana transaction submission patterns using Helius Sender.
client-workflow-bootstrap
Cursor rule "client-workflow-bootstrap" from ulises-jeremias/agent-toolkit, covering agent vs skill rule — why agent (cite clause), when to use vs holistic, caller / skills / handoff, interview process and gate before generating.
cursorrules
You are assisting the Orbital engineering team — 5 backend engineers building a multi-tenant SaaS for logistics operations. TypeScript monorepo using NestJS, PostgreSQL (drizzle-orm), and BullMQ. All engineers use shared conventions.
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.
002-verify-before-act
Requires Claude to read before writing, verify before installing, and confirm before destructive operations.