pn-distill

pn-distill is a command for Claude Code, Cursor from perniemann/pnCore. It costs 41 tokens per session (716 once invoked), scanned A, original, MIT.

A process for simplifying a page or component by removing content, sections, features, navigation, and other elements that do not serve its main purpose.

In plain words
What is it for?
Use it to reduce crowded landing pages, dashboards, complex components, or an existing design before redesigning it.
Why use it?
It helps when clutter hides the main message or action and users do not know where to focus.

Command for Claude CodeCursor

Written for Cursor and Claude Code: shipped in a Cursor plugin, but also a Claude Code command (commands/*.md).

Part of the pn-core plugin — 133 skills, 19 commands, 9 agents, 1 MCP server shipped together

Good fit Use it to reduce crowded landing pages, dashboards, complex components, or an existing design before redesigning it.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/perniemann/pncore/pn-distill
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: Claude Code, Cursor.

Or install pn-core, the plugin that ships this one along with the rest of its 133 skills, 19 commands, 9 agents, 1 MCP server.

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-distill

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/perniemann/pncore/pn-distill"><img src="https://agentmods.dev/badge/commands/perniemann/pncore/pn-distill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 716 The whole file, excluding the scripts and references it only reads on demand.
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.00041 $0.00716
Opus 5 $0.00020 $0.00358
Sonnet 5 $0.00008 $0.00143
Haiku 4.5 $0.00004 $0.00072

Measured 8d ago against content hash 88fc63eb089b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pn-distill 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 8d 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/commands/pn-distill.md · 88 lines

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.

pn-distill

Start every response with: [pn-command] 🔺

Advanced (palette-hidden). Not in the / slash palette. Invoked by /pn-visual-tweak or /pn-polish, or directly via get_command("pn-distill").

Radical simplification. For when too much has accumulated — features, decoration, copy, navigation — and the core value is buried. Remove until only what earns its place remains.

When to Use

  • Landing page isn't converting — too much competing for attention
  • Dashboard is cluttered — users don't know where to look
  • Component has grown complex — needs to be redesigned from intent
  • Before a redesign: strip the current version to understand what's essential
  • "We added a lot of stuff, let's clean it up"

The Principle

Every element should answer: "If I removed this, would the user lose something essential?"

If no: remove it.

Flow

1. Intent First

Before removing anything: what is this page/component/flow trying to accomplish?

  • Primary action: what should the user do?
  • Primary message: what should the user understand?
  • Primary emotion: how should the user feel after using it?

Everything that doesn't serve one of these three is a candidate for removal.

2. Audit for Removal

Content:

  • Text that restates what's already shown elsewhere
  • Section introductions that say what the heading already says
  • Feature lists where 20% get 80% of attention — cut the 80%
  • Supporting stats or proof that duplicate the primary proof

Visual:

  • Decorative elements that don't reinforce brand or message
  • Icons used as filler, not communication
  • Background patterns or textures serving no atmospheric purpose
  • Shadow, border, and background stacking (element inside bordered card inside shadowed section)

Navigation:

  • Menu items users never click
  • Secondary CTAs competing with the primary
  • Multi-level navigation for a small surface area

Interaction:

  • Animations with no functional role
  • Hover states that reveal nothing useful
  • Modals for simple confirmations

Read the full file on GitHub · 88 lines

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. 8d ago First seen · 88 lines · 41 tokens per session scan A 88fc63eb089b

Subscribe to this mod's changes

pn-distill is a command published in the GitHub repository perniemann/pnCore (0 stars, last pushed 2d ago), licensed MIT. It adds 41 tokens to every session and 716 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-08-31.