شعار Pin To What Was Seen

Pin To What Was Seen

المجتمع
randommonicle
pin-to-what-was-seen

An action a person takes on state a screen showed carries that state with the request, and the server refuses it, doing nothing, when the state no longer holds. Send the value or version the screen drew; compare-and-set on it under the row lock (409 on a mismatch); on a 409 or an answer in doubt close the editor and redraw from a fresh read; make a confirm name the state it confirms; and when an answer sends the user to another action, decide both from one predicate. Triggers when writing a mutation behind a button, form, editor or confirm dialog that acts on displayed state (a role change, an edit of a stored text, a resend, a decision on a request, a payment action), and when writing a retry or idempotency check around one. Does not fire on webhook and queue status writes (unordered-events owns those) or on serialising concurrent callers of one operation (lock-at-the-chokepoint owns that).

نظرة عامة

الناشرrandommonicle
المستودعclaude-skills
اسم المهارةpin-to-what-was-seen
النجوم
27
التفريعات
3
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Pin To What Was Seen تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

Pin to what was seen

A screen is a snapshot. Between drawing it and the tap, another admin, another device, a webhook or a scheduled job may have changed the row. A request that says only "do it" (resend: true, role: "manager", the new text alone) acts on whatever the row is now, so the person approves one state and the server acts on another: a customer emailed twice, a role changed from one nobody saw, an edit overwriting a change the editor never read.

The rules

  1. Send what the screen drew. Every mutation from a screen carries the value, version or timestamp it was drawn from (from: "operative", seen_emailed_at, the notes shown, the row's revision). Make it required: a request without it is a 400, never a silent unpinned write.
  2. Compare-and-set on it, under the lock. The server checks the pin in the same atomic write that changes the row (... where id = $1 and role = $from), or after taking the row's lock, never in a read before it. A mismatch changes nothing and answers 409 with a reason the screen can say ("it changed since you opened it").
  3. Read the ledger after the lock. An idempotency or replay ledger is read after the row lock is taken, so a second send of the same operation waits for the first and finds its stored outcome instead of a conflict.
  4. A 409 or an answer in doubt closes the editor. On a refusal, a timeout or an unreadable answer, close the form and redraw from a fresh read before anything can be sent again. Say an answer in doubt as "may not have happened: check", never as failure, and never resend it from the stale form.
  5. A confirm names its state. The confirm text says what it acts on ("Resend the email last attempted at 14:02?") and the request carries that same state, so a confirm given for one attempt cannot act on another.
  6. Two remedies, one predicate. When an answer tells the user to take another action ("Finish recording instead"), that action's refusal is decided by the same predicate the answer consulted, and a test walks the round trip: the answer, then the action it names. Otherwise the two answers can point at each other forever.

Test it

  • Change the row between the read and the write (a second session or a direct update) and assert the 409 and that nothing changed.
  • Mutate the pin away (drop it from the request, or from the server's where-clause) and see the test go red (prove-it-can-fail).
  • Drive the screen: a 409 and a lost answer each close the editor and redraw.

Provenance

ICC L-025 (an operation authorised by a rotatable token binds its write to the hash it verified), L-058 (an idempotency ledger is read after the row lock, not before), L-066 (two remedies that point at each other loop unless one predicate decides both), L-076 (a confirmation must carry the state it was given for), and the "from" pins of 22 October 2026: GPT's review R7 (a role change needs the role the admin saw), and R11 and R12 (the access-notes editor pinned to the notes shown, closed on a 409 or an answer in doubt). docs/SKILL_PROPOSALS_2026-10-22.md, Tier 1 item 4.

Additions from the misses-log sweep (2026-11-01)

  • A pinned value compared after a store round trip is compared field by field, and its test reads back through the store. Serialisation is not identity: jsonb sorts object keys, numeric types widen, timestamps gain or lose precision, so a value that went in and came out is not byte-equal to the one that was pinned. Compare the fields the decision depends on, and write the test so it reads the value back through the real store rather than comparing two in-memory objects. (ICC L-127.)

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

ماذا تفعل مهارة الذكاء الاصطناعي Pin To What Was Seen؟

An action a person takes on state a screen showed carries that state with the request, and the server refuses it, doing nothing, when the state no longer holds. Send the value or version the screen drew; compare-and-set on it under the row lock (409 on a mismatch); on a 409 or an answer in doubt close the editor and redraw from a fresh read; make a confirm name the state it confirms; and when an answer sends the user to another action, decide both from one predicate. Triggers when writing a mutation behind a button, form, editor or confirm dialog that acts on displayed state (a role change,...

لماذا تستخدم Pin To What Was Seen على TypingMind؟

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

كيف أثبّت Pin To What Was Seen في TypingMind؟

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

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Pin To What Was Seen؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Pin To What Was Seen؟

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

هل مهارة الذكاء الاصطناعي Pin To What Was Seen مجانية؟

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

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

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

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

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

عرض الكل

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

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