شعار Pr Tour

Pr Tour

المجتمع
dmoka
pr-tour

Review one PR as a guided tour, in a sane reading order. Turn one pull request into a guided reading tour — the author's intent, which files that intent explains and which it does not, and checkable claims first, then where to look and why (script-computed facts plus line-checked pointers), then the files in the order a reviewer should read them with each test next to its code, and noise (lockfiles, generated files, renames, formatting) collapsed last — rendered as one self-contained HTML page plus JSON that agents can read. Not GitHub stacked PRs. Use when the user asks to review, walk through, explain, or understand a PR or diff, asks what to read first or what to worry about in a PR, or mentions PR tour or reading order.

نظرة عامة

الناشرdmoka
المستودعskills
اسم المهارةpr-tour
النجوم
21
التفريعات
2
الملفات المرفقة
10
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

PR tour

A reviewer who reads a diff top to bottom reads it in alphabetical order — the order Git prints it, not the order that explains it. Labelling code as AI-written does not make people read it more carefully; changing what they read first is the lever. This skill changes it: WHY first, the files that matter next, noise last.

The tour points attention. It never judges. It gives no merge verdict and no security verdict, and "collapsed" means low reading value, never "checked". It serves humans (the HTML) and agents (the JSON) with the same content — an adversarial reviewer can start from its high-severity items.

Scripts sit in scripts/ beside this file (Node ≥ 18, zero dependencies, gh logged in). If you fetched this over HTTP, fetch scripts/*.mjs and references/config.md as raw text with curl -sSL.

The loop

  1. Start clean. Run the tour in a fresh session, never in the one that wrote the diff. An author cannot point at its own blind spots.
  2. Compute. node scripts/tour.mjs <pr-number> (add --repo owner/name outside the repo; --git main...feat/x before a PR exists; --spec <path> when the spec or review contract lives elsewhere; --out <dir> to change the output folder). It writes .pr-review/tour-<n>.json — <n> is the PR number, or the branch name in --git mode — with FACT items, per-file classification, a reading order, and the author's words from every source it finds, strongest first: a spec (a markdown file in docs/, specs/, .scratch/ or contracts/ whose name contains the branch name), the PR description, linked issues and #123 refs in commits, the commit messages, the title. Intent status is spec, described, title only, or UNKNOWN. It collapses noise last: lockfiles, renames, formatting, and generated files (ORM snapshots, minified bundles, large machine-written JSON, files with a generated header; the full list is in references/config.md). Noise is never an ASK WHY file. It prints the noise line count. An empty diff stops here with an error.
  3. Read the diff in the reading order (gh pr diff <n> or git diff), noise included — skim it, it is collapsed for humans, not for you. Read surrounding source at the PR head, without checking it out (others may share the checkout): git fetch origin <head> then git show "origin/<head>:<path>" (quoted: zsh reads :a and :s as modifiers). Other open PRs that touch the same code are fair game: a change that breaks another open PR is a medium item.
  4. Write the WHY to .pr-review/tour-<n>.notes.json. The full format, a worked example, and the severity rubric are in references/notes.md. In short:
    • attention — optional here, required when pr-triage runs you: how much attention the PR needs (critical / high / medium / low), what happened, why, and the line that drives it. Shown as a badge at the top of the tour.
    • whatItDoes — one or two sentences on what the diff actually does, shown as the model's reading, never as the author's intent.
    • why, points, shape, diagrams, chapters — the author's reason (quoted), a 3–5 line overview with keyword links, 1–3 structure views, 0–2 Mermaid diagrams where flow or structure changes, and the walkthrough grouped into chapters. All optional; see the reference.
    • explains — the intent map: each thing the author says the PR does, quoted verbatim, with the code files that implement it. Leave out a file nothing explains — the gate lists it as ASK WHY, and that list is the most useful thing the tour shows.
    • claims — checkable promises the author makes ("no change to guest checkout"), quoted verbatim, each pointed at the line to check.
    • items — at most eight LOOK HERE pointers, each with severity, file, line, a verbatim code fragment of that line, title, why. Phrase each as what to check, never as a conclusion. Skip what CI already catches.
    • fileNotes — per non-noise file: a bold takeaway, then 2–5 bullets.
  5. Gate. node scripts/annotate.mjs <tour.json> <notes.json>. It rejects a quote that is not verbatim in the author's text, a pointer whose line does not contain its code, a noise file in the intent map, more than eight items, and verdict words. It then derives the unexplained files and the unmatched quotes, and recomputes the reading order. Fix the notes, never the check; rerunning is safe.
  6. Render. node scripts/render.mjs <tour.json> writes the .html next to it: one file with the viewer and the data inside, no server, safe to publish as a CI artifact. Look at it before you report — in a browser if you have one (serve the folder with python3 -m http.server -d .pr-review when file:// is blocked), or at least confirm the WHY panel text in the JSON reads right.
  7. Report in chat: the HTML path, the intent status, the unexplained files, the high items with file:line, and the noise line count.

Hard rules

  • Point, never judge. No "LGTM", "looks safe", "approve", "exploitable", "no issues", "nothing to review". The gate rejects the common phrasings; do not reword around it.
  • Never invent intent. Only the author's words are intent. Your summary goes in whatItDoes, where it is labelled as yours. Do not stretch a quote to cover a file so the ASK WHY list looks clean — an unexplained file is a finding, not a failure.
  • Facts come from the script. Do not restate a FACT item as your own, and do not dismiss one — if a FACT is harmless in context, say why in an item or file note and let the reviewer decide.
  • Read-only. Never comment on, approve, or change the PR, and never edit code. The output is two files in .pr-review/.

What the tour cannot see

  • Whether the code works. Run it; the tour does not.
  • Vulnerabilities. It asks about missing security decisions. It is not a scanner — run a real one (Trivy, opengrep) in CI.
  • Noise that is not harmless. A lockfile can carry a malicious package; a "formatting only" file is detected by a heuristic. Collapsed files stay one click away and are listed with their reason.
  • Tests outside the diff. "No changed test shares its name" does not mean no test covers the file.

For agents reading the JSON

intent.status and unexplained[] give the big picture: what the author said, and which changed files nothing they said accounts for. explains[] maps quotes to files; unmatched[] lists quotes with no matching change. items[] holds every pointer: source (fact = script, model = line-checked, map = unexplained file), severity, file, line, side, text, why. order[] is the reading order with a why per position; files[] holds the hunks. Start from severity: "high". intent.status: "UNKNOWN" means there is no spec to review against — say so instead of guessing one. Schema: references/config.md.

Done means

  • tour-<n>.json passed annotate.mjs and tour-<n>.html exists.
  • Every LOOK HERE item points at a real line of the diff, and every claim is a verbatim quote.
  • The chat report names the intent status, the unexplained files, and the high items.

The intent search order and the fresh-session rule are adapted from Matt Pocock's code-review skill (MIT).

Last verified: 2026-09-25 with Claude Code (shipped in dmoka/skills #1)

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

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

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

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

Review one PR as a guided tour, in a sane reading order. Turn one pull request into a guided reading tour — the author's intent, which files that intent explains and which it does not, and checkable claims first, then where to look and why (script-computed facts plus line-checked pointers), then the files in the order a reviewer should read them with each test next to its code, and noise (lockfiles, generated files, renames, formatting) collapsed last — rendered as one self-contained HTML page plus JSON that agents can read. Not GitHub stacked PRs. Use when the user asks to review, walk thr...

لماذا تستخدم Pr Tour على TypingMind؟

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

كيف أثبّت Pr Tour في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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