شعار Persona Test

Persona Test

المجتمع
iamneilroberts
persona-test

شغّل اختبارات لوكلاء فرعيين يتقمصون شخصيات مختلفة على تطبيق مستهدف، عبر محوّل خاص بالتطبيق. توزّع المهارة الاختبارات على عدة وكلاء فرعيين بالتوازي، يؤدي كل منهم دور فئة مستخدم مختلفة (مثل المهتم بالميزانية، والمستخدم الخبير، والمستخدم المحبط الذي يجرب التطبيق لأول مرة، والمتشكك، ومن يضع إمكانية الوصول في المقام الأول، أو شخصيات يتم إنشاؤها تلقائيًا). ثم تقيّم سجل كل اختبار وفقًا لمعايير محددة، وتجمع النتائج، وتحفظ دائمًا تقريرًا محليًا بصيغة Markdown، مع إمكانية نشره اختياريًا إلى وجهة يحددها المحوّل. تعمل عند استخدام `/persona-test` أو `/persona-test changes` أو `/persona-test issue <N>` أو `/persona-test scenario <name>`، أو طلبات مثل "شغّل اختبارًا بشخصيات مختلفة"، أو "اختبر هذا باستخدام شخصيات مختلفة"، أو "اختبر هذا التغيير باستخدام persona-test"، أو "كيف سيختبر مستخدمون مختلفون هذه التجربة؟".

نظرة عامة

الناشرiamneilroberts
المستودعclaude-skills
اسم المهارةpersona-test
النجوم
37
التفريعات
6
الملفات المرفقة
22
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 22

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها iamneilroberts على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Persona Test في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/iamneilroberts/claude-skills/tree/main/skills/persona-test
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/iamneilroberts/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/skills/persona-test .claude/skills/persona-test
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Persona Test في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Persona Test تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Persona Test بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

/persona-test — persona-driven subagent testing

Tests an app the way a human QA pass would, but through several distinct simulated users at once, each following its own persona's goals, temperament, and quit conditions rather than a scripted test case. Every run produces evidence-scored judged results and a local report; nothing here depends on any one target app — what's app-specific lives entirely in the adapter directory the run selects (adapters/<name>/, contract documented in adapters/example-http/adapter.md).

Procedure

1. Parse launch intent

Run persona-test.sh with the invocation's arguments (mode positional, --issue, --name, --n, --target, --adapter, --min-model, --max-model). It validates and prints the resolved plan line (mode=... n=... adapter=... target=... issue=... name=... min_model=... max_model=...); exit 0 on success, exit 3 on any malformed input (bad mode, bad flag, --n out of 1–10, a model outside haiku|sonnet|opus, min_model above max_model, a value-taking flag with no value), exit 0 with usage text for --help. Read MODE, N, ADAPTER, TARGET, ISSUE, NAME, MIN_MODEL, MAX_MODEL off that line — these values drive every following step (MIN_MODEL / MAX_MODEL are none when unset; they bound step 4's per-subagent model choice).

2. Load adapter + personas

Read adapters/<ADAPTER>/adapter.md for its three required hooks (reach/interact, done, context) and any declared optional overrides (judge dimensions, pass threshold, sink). Load the starter persona library at personas/*.md.

If N is greater than the starter library's count, generate the shortfall: follow lib/generate-personas.md, giving it the adapter's context hook text and M = N - <starter count>. It returns exactly M blocks, each delimited by a line ### FILE: personas/generated/<slug>.md followed by that persona's four-field body — write each block's content to that exact path before use. If N is at or below the starter count, use the first N starter personas as-is and skip generation entirely.

3. Build the test plan

Per MODE:

  • changes — inspect git diff (or the current branch's PR diff, if one exists against its base) to see what actually changed, and derive one or more scenario names from the touched surfaces — the plan is "exercise what changed", not a fixed script.
  • issue — fetch issue ISSUE's body and acceptance criteria (e.g. gh issue view <ISSUE>); the plan is those criteria, one scenario per distinct criterion when there are several.
  • scenario — a single named scenario, NAME, exactly as given — no inference, the user supplied the path to test.

Each (persona × scenario) pair the plan yields becomes one dispatched run.

4. Fan out persona subagents

Dispatch one subagent per (persona, scenario) pair per superpowers:dispatching-parallel-agents. Each subagent gets: its persona file's four fields (Goal, Temperament, Constraints, Interaction tendencies), the adapter's reach/interact and done hooks, and the scenario. It role-plays that persona through the app via the reach hook, stopping per the done hook, and returns one JSON run record. Validate every returned record immediately against lib/schema.py's validate_run_record — a record that fails validation is dropped from the run (never retried, never patched to fit) and counted separately in the final summary.

Pick each subagent's model by how hard its (persona, scenario) is to role-play, then clamp to [MIN_MODEL, MAX_MODEL]. Default judgment (both none): a happy-path persona whose job is to walk the obvious flow runs on a cheaper tier (haiku/sonnet); an adversarial or detail-sensitive persona — the skeptic probing consequences, the power-user hunting silently dropped params, the accessibility-first reader judging whether output survives being read aloud — warrants a stronger tier (sonnet/opus) because the finding quality depends on it noticing subtle failures. Then apply the bounds: MIN_MODEL is a floor (never dispatch below it), MAX_MODEL a ceiling (never above it); when they are equal, every subagent runs that one tier; when a set bound clamps a choice, use the bound. Pin the resolved model explicitly on every dispatch — never let a subagent inherit the caller's model. The external codex driver (below) is a fixed second-model perspective and is not subject to these bounds.

Hard cap: never dispatch more than 10 persona subagents in one run, regardless of how large N × scenario-count computes to — persona-test.sh already rejects --n above 10, but this cap also bounds the (persona × scenario) fan-out from step 3, which can multiply past 10 even when N alone is small.

If an external driver (codex) is installed — check once, e.g. command -v codex — additionally dispatch at most one such driver, running the same role-play against one representative (persona, scenario) pair, for a second-model perspective. If it is not installed, drop this step entirely: no error, no placeholder record, and it doesn't count against the 10-subagent cap.

5. Judge each run

For every run record that passed validation, dispatch a subagent following lib/judge.md's instructions, bundling rubric.md verbatim unless the adapter declares a judge-dimensions and/or pass-threshold override, in which case bundle that override instead. Take the judge subagent's raw JSON and run it through lib/normalize.py's normalize_judged before using it anywhere downstream — never consume a judge's raw output directly, always through the normalizer, so a malformed or partial judge response still yields a well-shaped result.

If the loaded adapter declares a judge-dimensions override, call normalize_judged(raw, dimensions=<the adapter's dimensions>) — passing the adapter's own dimension tuple, not the normalizer's default — so the adapter's scores survive normalization instead of being zeroed out under dimension keys the judge never populated. If the adapter also declares extra judged-result fields beyond normalize_judged's fixed output shape (personaId, scenario, scores, verdict, severity, rationale, suspectedIssues), merge those extra fields from the raw judge JSON back onto the normalized result before step 6, so nothing the adapter needs downstream gets dropped by normalization.

6. Aggregate and report

Feed every normalized judged result through lib/aggregate.py's summarize. Always write the local report via sinks/local_report.py's write(results, runs_dir, run_id) — this happens unconditionally, before any adapter sink is attempted, and is never rolled back by anything that follows. Then, only if the loaded adapter declares a sink, run it: map the results from step 5 — carrying both the adapter's own-dimension scores and any adapter-declared extra fields — through the adapter's own mapper if it has one, then post with sinks/http_post.py. A sink failure (network error, missing route, bad auth) does not invalidate or roll back the already-written local report — surface the failure alongside the summary, do not fail the whole /persona-test run over it.

7. Report to the user

Summarize, in the final reply: total / passed / failed / worst_severity (straight from aggregate.summarize's output), how many records were dropped for failing schema validation, the local report's path, and the sink's outcome if one ran (posted / no sink declared / failed, with reason).

Graceful degradation rules

  • External driver absent — no codex on PATH → drop that one dispatch; the run proceeds on the subscription persona subagents alone. Never fabricate its result.
  • A run record fails schema validation — drop that run, count it, keep going; one bad record never blocks the rest of the batch.
  • Sink not declared, or declared but fails — the local report from step 6 stands either way; only the reported sink-outcome line changes.
  • Fan-out cap — 10 persona subagents, hard, independent of how N and scenario-count combine.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Persona Test؟

شغّل اختبارات لوكلاء فرعيين يتقمصون شخصيات مختلفة على تطبيق مستهدف، عبر محوّل خاص بالتطبيق. توزّع المهارة الاختبارات على عدة وكلاء فرعيين بالتوازي، يؤدي كل منهم دور فئة مستخدم مختلفة (مثل المهتم بالميزانية، والمستخدم الخبير، والمستخدم المحبط الذي يجرب التطبيق لأول مرة، والمتشكك، ومن يضع إمكانية الوصول في المقام الأول، أو شخصيات يتم إنشاؤها تلقائيًا). ثم تقيّم سجل كل اختبار وفقًا لمعايير محددة، وتجمع النتائج، وتحفظ دائمًا تقريرًا محليًا بصيغة Markdown، مع إمكانية نشره اختياريًا إلى وجهة يحددها المحوّل. تعمل عند استخدام `/persona-test` أو `/persona-test changes` أو `/persona-test issue <N>` أ...

لماذا تستخدم Persona Test على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Persona Test عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Persona Test في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/iamneilroberts/claude-skills/tree/main/skills/persona-test. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Persona Test؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Persona Test؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Persona Test معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Persona Test مجانية؟

نشرها iamneilroberts على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇