Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/persona-performance-tuning

@0d57af8
Run it yourself

Improve Persona integration latency and throughput with event-driven processing, bounded reconciliation, and evidence-based measurement. Use when reducing polling or queue lag. Trigger with: "speed up Persona", "reduce inquiry polling", "tune Persona webhooks".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/persona-performance-tuning

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈72 tokens for metadata: the name and description. ≈1k when used: this file. ≈900 more on demand in 1 file.

Description uses 3.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈290 characters, or 3.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Event-Driven Persona Inquiry Reconciliation

Overview

Optimize the application around authentic webhook events and bounded GET reconciliation rather than parallel polling or speculative session creation. Measure customer latency, queue lag, rate headroom, and decision freshness separately.

Prerequisites

  • Latency SLO and volume by workflow
  • Current traces for API calls, webhook receipt, queueing, and decisions
  • Rate and quota header telemetry plus failure budget

Instructions

Step 1: Build the latency model

Measure inquiry create, client start, verification progress, provider event creation, delivery, queue delay, reconciliation, and domain decision.

Step 2: Remove polling from the hot path

Use verified webhooks as the primary notification. Keep bounded polling only for recovery and customer-visible refresh with jitter and stop conditions.

Step 3: Partition safely

Process unrelated accounts or inquiries concurrently while serializing consequential transitions per subject or inquiry.

Step 4: Avoid session churn

Create or resume an inquiry session only when a client needs it; track issuance and prevent retries from consuming the default session allowance.

Step 5: Cache only stable metadata

Cache template and non-sensitive configuration with versioned invalidation. Do not cache bearer credentials, session tokens, or stale identity decisions.

Step 6: Tune from evidence

Adjust worker count, batch size, timeout, and reconciliation interval while protecting RateLimit-*, Quota-*, error, and stale-decision thresholds.

Authentication

Performance work must preserve bearer-key isolation, raw webhook HMAC verification, and session-token confidentiality. Bypassing authentication or reconciliation is not an optimization.

Tool Discipline

Use Read and Grep to inspect application configuration, provider documentation, fixtures, schemas, tests, and redacted operational evidence before proposing a change. Use Write or Edit only for an approved implementation, configuration, test, runbook, or redacted receipt. Do not create, resume, approve, decline, redact, rotate, revoke, deploy, or otherwise mutate production Persona resources without explicit operator approval.

Output

  • End-to-end latency and queue model
  • Polling-removal and concurrency plan
  • Before/after SLO, limit headroom, correctness, and rollback receipt

Return the environment, resource and event identifiers, API version, template context, source-contract fingerprint, evidence, unresolved risk, rollback state, and final decision without exposing bearer keys, webhook secrets, inquiry session tokens, raw identity documents, or unnecessary PII.

Examples

The service replaces five-second polling with verified events and a 90-second reconciliation timer. Median decision latency falls while request volume drops, and per-inquiry serialization prevents stale event transitions.

Error Handling

Failure Response
Queue lag improves but decisions regress Roll back worker tuning and inspect per-subject ordering and reconciliation.
Rate headroom falls below 15 percent Throttle background reads and preserve critical intake and reconciliation.
Session count grows unexpectedly Stop eager resume calls and trace client retry behavior.

Validation

Verify the result against the linked first-party evidence, the pinned API version, redacted contract fixtures, an expected failure path, and the documented rollback or manual-disposition path. A successful request is not proof of a successful identity decision.

Resources

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides a Python script to interact with the Persona API for performance optimization. It correctly uses environment variables for sensitive credentials and connects only to the official Persona domain. No security risks were identified.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
What it can do
Reads files Edits files
Modelinherit
version
2.0.0
argument-hint
[latency-slo-and-volume]
model
inherit
All 4 allowed tools
ReadGrepWriteEdit
Other metadata
effort
high
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "persona",
  "performance",
  "webhooks",
  "reconciliation"
]
compatibility
Requires an authorized Persona environment, current first-party documentation, a reviewed dated API version, and privacy-safe operational evidence.

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/persona-performance-tuning