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 skills add perniemann/pnCore --skill pn-cx-agent-patternsgit clone --depth 1 https://github.com/perniemann/pnCoreWrote 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/skills/perniemann/pncore/pn-cx-agent-patterns)<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.
<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>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.1 | $0.00067 | $0.01821 |
| Opus 5.5 | $0.00027 | $0.00728 |
| Sonnet 5.5 | $0.00013 | $0.00364 |
| Haiku 4.5 | $0.00007 | $0.00182 |
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 2mo 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 — 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:
- On first message, load session from store; if absent, initialize with defaults.
- Run intent classification (LLM or classifier model) → route to appropriate tool set.
- Retrieve context (account record, past interactions) — always from authenticated API, never from unverified user-supplied data.
- Attempt resolution using tools; log each tool call.
- On success: update session history, confirm to user, emit audit event.
- On failure or low-confidence: surface specific options to user or escalate to human; never silently fail.
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.
- 2mo ago First seen · 199 lines · 67 tokens per session scan A 0cbe2a01e5d6
pn-cx-agent-patterns is a skill published in the GitHub repository perniemann/pnCore (0 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 1,821 once invoked, about $0.0003 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-09-03.
pn-cx-agent-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pn-cx-agent-patternsperniemann/pnCore | Skill | 0 | yesterday | MIT | A | 67 | Cursor |
| typescriptgenkit-ai/genkit | Skill | 6.6k | yesterday | Apache-2.0 | A | 20 | Claude Code, Codex |
| stripe-best-practicesstripe/ai | Skill | 2.1k | 5d ago | MIT | A | 161 | Claude Code, Codex |
| business-casedecocms/studio | Skill | 419 | yesterday | MIT | A | 120 | Claude Code, Codex |
| typescript-developmentsammcj/agentic-coding | Skill | 174 | 3d ago | Apache-2.0 | A | 17 | Claude Code, Codex |
| js-conventionsmetarhia/metaskills | Skill | 61 | 1mo ago | MIT | A | 120 | Claude Code, Codex |
| error-handlingmetarhia/metaskills | Skill | 61 | 1mo ago | MIT | A | 70 | Claude Code, Codex |