pn-mcp-proactive

pn-mcp-proactive is a cursor rule for Cursor from perniemann/pnCore. It costs 853 tokens per session, scanned A, original, MIT.

A set of rules for using project skills and agents proactively when connected tools are available. MCP is a way for an agent to access tools and shared project information.

In plain words
What is it for?
Use it at the start of coding sessions and when a task matches a project skill, agent, command, or workflow.
Why use it?
It helps the agent load relevant project guidance and current context instead of relying on incomplete knowledge of the codebase.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

Good fit Use it at the start of coding sessions and when a task matches a project skill, agent, command, or workflow.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/perniemann/pncore/pn-mcp-proactive
Install

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.

Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Cursor.

Wrote 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.

agentmods badge for pn-mcp-proactive

README.md
[![agentmods](https://agentmods.dev/badge/rules/perniemann/pncore/pn-mcp-proactive/github.svg)](https://agentmods.dev/rules/perniemann/pncore/pn-mcp-proactive)
Your own site
<a href="https://agentmods.dev/rules/perniemann/pncore/pn-mcp-proactive"><img src="https://agentmods.dev/badge/rules/perniemann/pncore/pn-mcp-proactive/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.

agentmods 80×15 button for pn-mcp-proactive

Your own site · 80×15
<a href="https://agentmods.dev/rules/perniemann/pncore/pn-mcp-proactive"><img src="https://agentmods.dev/badge/rules/perniemann/pncore/pn-mcp-proactive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 853 This file is loaded in full into every session.
When invoked 853 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00853 $0.00853
Opus 5.5 $0.00341 $0.00341
Sonnet 5.5 $0.00171 $0.00171
Haiku 4.5 $0.00085 $0.00085

Measured 1mo ago against content hash 0db6c9d27c63, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pn-mcp-proactive 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.

packages/pn-core-mcp/content/rules/pn-mcp-proactive.mdc · 36 lines

What it actually says

pn-core MCP: Proactive Skill Use

When pn-core MCP is available and the user's task clearly matches a pn skill or agent, use the MCP tools to load and follow that content.

Discovery: Use list_skills or list_agents when unsure which id applies. Unfiltered list_skills returns a category index (not the full description catalog). Use get_skill, get_agent, get_command, or get_rule to load full content. Call list_workflow_types when the user asks "what workflows are available?"

Session start: When pn-core MCP is available, call project_context (default mode: "agent") once at the start of a coding session to load the cold-session packet (context-index artifacts, resume line, attested drift, recent handoff/run-events trail, active_run, consistency). Read consistency before resuming: when ok is false, active_run.run_id is null by design. Name the run with run_id (and state_path) instead of trusting the default state file, and never treat drift: 0 as proof the run is current. Do not rely on Cursor sessionStart hook inject for this packet. On a tight context window pass max_tokens; the packet packs deterministically (trail first, settled artifacts next; drift, next_incomplete, active_run, and consistency never) and budget.steps says what was cut.

Harness-aware writes: pnCore runs on Cursor, Claude Code, Codex, and Pi. Before creating rules, skills, commands, or project-context files, call harness_detect and write only into the folders the detected harness reads (.cursor/, .claude/, .agents/skills + AGENTS.md, .pi/). Never create .cursor/ on a non-Cursor surface.

Quick map (high-traffic intents; full table: pn-core://reference/RUNBOOK.md):

User intent pn-core id
Chat shortcodes scr / eli / foc / ref / scp get_skill("pn-response-aliases")
Today's date (changelog, "as of", copyright) health → use calendarDateUtc / timestampUtc
Session start / resume / what is drifted project_context (mode: "agent" default; operator for counts)
New project or feature, kickoff get_command("pn-new")
Configure / onboard existing project get_command("pn-setup")
Which harness, where project files go harness_detect → pn-core://reference/harness-matrix.md
Full dev loop, multi-step feature workflow_step("full_dev", 0, {})
Review code quality get_command("pn-review")
Plan before coding pn-writing-plans
Design / UI build get_command("pn-design")

When the user names a skill (e.g. "use pn-discovery-questionnaire"), call get_skill immediately. For design with philosophy alignment, prefer get_command("pn-design").

Octocode: Preferred for prior-art and code archaeology. Use its tools for code search, LSP navigation, and GitHub research when available.

Companion MCPs: When present, combine with pn skills — Stripe MCP + pn-payment-integration; n8n MCP + pn-n8n-patterns; shadcn MCP for component install; Playwright MCP + pn-smoke-tests; unreal-mcp + pn-unreal-dev; blender MCP + pn-blender-scripting; godot MCP + pn-godot-dev.

Changes

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.

  1. 1mo ago Changed · +83 tokens per session 0db6c9d27c63
  2. 2mo ago Changed · +42 tokens per session a10b126ef732
  3. 2mo ago Changed · -21 lines · -548 tokens per session fe9fc1bcaf12
  4. 2mo ago Changed · +4 lines · +165 tokens per session 276dd62e42aa
  5. 3mo ago First seen · 53 lines · 1,111 tokens per session scan A e853f9435eca

Subscribe to this mod's changes

pn-mcp-proactive is a cursor rule published in the GitHub repository perniemann/pnCore (0 stars, last pushed today), licensed MIT. It adds 853 tokens to every session, about $0.0034 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-31.

Related

pn-mcp-proactive compared with cursor rules from other repositories

pn-mcp-proactive next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pn-mcp-proactiveperniemann/pnCoreCursor rule0todayMITA853Cursor
t-800-mandatory-routingKhar-AG/t-800-agentCursor rule83mo agoMITA1,682Cursor
t-800-operator-routingKhar-AG/t-800-agentCursor rule83mo agoMITA76Cursor
t-800-factory-routingKhar-AG/t-800-agentCursor rule83mo agoMITA65Cursor
t-800-cloud-hub-routingKhar-AG/t-800-agentCursor rule83mo agoMITA0Cursor
typescript-conventionsVirtusLab-Open-Source/strapi-plugin-mcpCursor rule39mo agoMITA0Cursor
1001-typescriptdavenicoll/cursor-rulesCursor rule111y agononeA1,145Cursor