pn-cx-agent-patterns

pn-cx-agent-patterns is a skill for Cursor from perniemann/pnCore. It costs 67 tokens per session (1,821 once invoked), scanned A, original, MIT.

A set of design patterns for customer-facing AI agents, such as support assistants, shopping helpers, booking agents, and negotiation agents. It covers remembering user preferences, retrieving account information, and taking actions on a user's behalf.

In plain words
What is it for?
Use it to design concierge support agents, shopping or booking flows, agentic commerce features, session memory, preference recall, and customer-experience audits.
Why use it?
It helps structure conversations that need more than prepared replies, including multi-step requests, personalized service, and safe actions such as updates or refunds.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

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

Good fit Use it to design concierge support agents, shopping or booking flows, agentic commerce features, session memory, preference recall, and customer-experience audits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/perniemann/pncore/pn-cx-agent-patterns
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.

Any agent
npx skills add perniemann/pnCore --skill pn-cx-agent-patterns
Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: 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-cx-agent-patterns

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-cx-agent-patterns"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-cx-agent-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,821 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.00067 $0.01821
Opus 5 $0.00034 $0.00911
Sonnet 5 $0.00013 $0.00364
Haiku 4.5 $0.00007 $0.00182

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

Security

Grade A, and why

pn-cx-agent-patterns 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/skills/integrations/pn-cx-agent-patterns/SKILL.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Customer-Experience Agent Patterns Skill

When used as a standalone skill, begin every response with [pn-skill] 🔺

When to use

  • Building a conversational customer service or support agent
  • Implementing an agentic shopping or booking assistant that can act on a user's behalf
  • Designing session memory and preference recall for a customer-facing agent
  • Modeling a multi-turn negotiation flow between a user agent and a merchant/service agent
  • Auditing an existing CX agent for trust, personalization quality, and safety
  • Scoping an "agentic commerce" product feature (delegated purchase, itinerary planning, price negotiation)

Core patterns

Pattern 1 — Concierge service agent

A concierge agent handles support requests end-to-end: retrieves account context, understands nuanced intent, takes action, and confirms resolution — no ticket deflection, no pre-programmed branches.

Architecture:

User → CX Agent (memory-aware) → Intent Router
                                   ├─ Knowledge base (RAG)
                                   ├─ Account/CRM API
                                   ├─ Action tools (update, escalate, refund)
                                   └─ Human escalation gate

Session memory schema:

{
  "sessionId": "<uuid>",
  "userId": "<pseudonymized id>",
  "preferences": {
    "contactChannel": "email",
    "language": "en-US",
    "notificationFrequency": "weekly"
  },
  "history": [
    { "turn": 1, "intent": "billing_query", "resolved": true, "ts": "<ISO>" }
  ],
  "openIssues": []
}

Store in a session store (Redis, Supabase) scoped to userId. Expire after inactivity timeout (default 30 min; configurable). Never persist raw conversation text — store intent and resolution summaries only.

Implementation steps:

  1. On first message, load session from store; if absent, initialize with defaults.
  2. Run intent classification (LLM or classifier model) → route to appropriate tool set.
  3. Retrieve context (account record, past interactions) — always from authenticated API, never from unverified user-supplied data.
  4. Attempt resolution using tools; log each tool call.
  5. On success: update session history, confirm to user, emit audit event.
  6. On failure or low-confidence: surface specific options to user or escalate to human; never silently fail.

Read the full file on GitHub · 199 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 · 199 lines · 67 tokens per session scan A 0cbe2a01e5d6

Subscribe to this mod's changes

pn-cx-agent-patterns is a skill published in the GitHub repository perniemann/pnCore (0 stars, last pushed 6d ago), licensed MIT. It adds 67 tokens to every session and 1,821 once invoked, about $0.0003 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-03.