شعار Prompt Card

Prompt Card

المجتمع
ericmjl
prompt-card

Build a brief, interactive prompt card: a small card that teaches a reader one prompt, with numbered color-coded slots whose 'why it matters' notes pop up on hover, and, when the prompt relies on one, an 'Interacts with' section naming the skill or AGENTS.md instructions behind it. Takes the prompt, optionally the skill it uses, and optionally the user's explanation of what they mean; if the intent isn't already clear from the conversation, interviews the user about it. Works out from context whether the card goes in a blog post (standalone HTML widget) or an Obsidian note (note markup plus CSS snippet). Use when someone wants a prompt card for a prompt, agent skill, or workflow. Triggers include 'make a prompt card', 'turn this prompt into a card', 'add a prompt card to this post', or 'show readers the prompt I use'.

نظرة عامة

الناشرericmjl
المستودعskills
اسم المهارةprompt-card
النجوم
41
التفريعات
5
الملفات المرفقة
17
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Prompt card

Usage

Use this skill when someone wants to show readers a prompt they actually use, in a form readers can copy and understand. The card sits at the bottom of a blog section or inside a note, so it has to be brief: roughly 350 to 500px tall at 640px wide.

The card takes up to three inputs:

  • The prompt (required). The exact prompt the user types, with its blanks. Ask for it if it's missing.
  • The skill or AGENTS.md instructions it uses (optional). Where they live, so you can read them. A card can be for a bare prompt. In that case, leave out the Interacts with section, or cut it to one line saying the prompt needs no setup.
  • What the user means by it (optional). Their explanation of the key words: why each one is there and what goes wrong without it.

Learn the intent behind the key words

The hover notes explain why each word is there, so they have to say what the user means, not what you guess. Settle this before you write any hover note.

  • If you iterated on the prompt with the user in this conversation, use what you learned there.
  • If the user explained what they mean, use that, and ask only about gaps.
  • Otherwise, interview the user. Ask a few short questions about the key words and blanks: what each one is for, and what goes wrong without it. If a skill is given, read it first, so your questions reflect what it actually does and you can offer a likely answer for the user to confirm or correct.

Work out where the card goes

Infer the destination from context, such as the file you're editing, the folder it's in, or how the user describes the card. Ask only if it's unclear.

  • A blog post or website gets the standalone HTML widget, embedded with an iframe. Start from assets/template.html.
  • An Obsidian note gets in-note markup plus a CSS snippet, because Obsidian strips scripts.

The Copy blank template button is part of the spec. Every card that can run scripts, whether embedded in a blog post or opened as a standalone page, must have it. The Obsidian in-note card is the only exception, because Obsidian strips scripts.

Either way, a card embedded in a post or note stays the slim hover widget described below. Anything longer belongs in the prose around it or on a standalone page.

What the card contains

Keep to these parts, in this order, and nothing else:

  1. Header. The card title, a small "prompt card" label, and the hint "Hover a highlight to see why it matters". The standalone version puts the Copy blank template button in the header and the hint just under the template.
  2. The template. The prompt in a white box. The parts that matter most are numbered, color-coded slots: 1 blue, 2 green, 3 amber, and 4 slate only if you truly need a fourth. Three slots is the sweet spot.
  3. Why notes as popovers. Each slot reveals its note on hover or keyboard focus. Don't add an always-visible list of notes. Put the same text in the slot's title= attribute as a fallback.
  4. Interacts with. A slate section with no number badge. One or two sentences on the standing instructions the prompt relies on (an agent skill, or else an AGENTS.md instruction) and what they supply, followed by chips naming them. This is what explains why a short prompt works. If the prompt stands alone, leave this section out or cut it to one line.
  5. Footer. One line: label, version, date.

Leave out metadata tables, skill lists, intended use, worked examples, limitations, and next steps. If the post needs those, they belong in the prose around the card.

Ground it before you write

  • If the prompt relies on a skill or AGENTS.md, read the real instructions before writing any why note or the Interacts with text. Describe what they actually tell the agent to do.
  • Base each why note on the user's intent from the step above, not on your own reading of the words.
  • Don't invent capabilities. If a note implies something the instructions don't say, reword it or flag it to the user.
  • Never link a private repo. Name a private skill as plain text. Link public skills only after you've confirmed the folder exists.
  • Report any gaps between what the blog post claims and what the instructions say, rather than smoothing them over on the card.

Writing rules

  • Plain, warm, direct. Write to the reader as "you".
  • Each why note is one sentence, two at most: what the part does, and what goes wrong without it.
  • No jargon or internal labels. No em-dashes. Sentence-case headings without colons.

Styling

If the host site already has interactive widgets, match them. Read its widget CSS first and reuse its fonts, colors, borders, radius, and spacing. Otherwise use the default house style below, which comes from a set of standalone blog widgets:

  • Monospace, a #fafafa card, a 1px #ddd border, 8px radius, 0 2px 8px rgba(0,0,0,0.06) shadow, 640px max width, #0066cc accent.
  • Slot palette: blue #0066cc on #eef4ff, green #1a7a4b on #e7f6ee, amber #a05a0c on #fdf3e3, slate #475569 on #eef1f4.
  • 12px minimum font everywhere. Check with rg -n 'font-size' <file>.

Whichever style you use:

  • Scope all CSS under .prompt-card and prefix variables with --pc-, so the card can't collide with a page or vault theme. To restyle the card, change the variables.
  • Popovers sit inside the card. Give the rightmost slot's popover pc-pop-end so it aligns right and stays inside the card edge.

The shared CSS lives in assets/obsidian-snippet.css. assets/template.html inlines the same rules.

Two delivery targets

Standalone blog widget. Always start from assets/template.html and keep its copy button. It's self-contained, with inline <style> and <script> and no dependencies. The Copy blank template button copies the plain-text prompt from the hidden pc-plain textarea, without the number tags or why notes, so keep that textarea in step with the template text. It tries the Clipboard API first and falls back to a temporary textarea with execCommand('copy'), which still works in an iframe that blocks the Clipboard API. It shows Copied for a moment, has an aria-label, and announces the result through a status region. fit() resizes the iframe by writing its height only when scrollHeight actually changed, collapsing to 0px first when it did, and runs on load and resize. Keep the write-guard: an unconditional 0px reset resizes the frame's own viewport and fires its resize listener, which calls fit() again in an endless loop that pins the page. Embed it with a borderless iframe:

html
<iframe src="prompt-card.html" width="100%" scrolling="no" style="border:0" onload="this.style.height=this.contentDocument.body.scrollHeight+'px'"></iframe>

Obsidian note. Obsidian doesn't render iframes to local files and strips scripts, so:

  • Paste the markup from assets/obsidian-note-snippet.html straight into the note. Don't leave blank lines inside the block, because Markdown breaks out of HTML at a blank line. Don't include <style> or <script>.
  • Append assets/obsidian-snippet.css to a vault CSS snippet that's already enabled (check enabledCssSnippets in .obsidian/appearance.json), or add a new snippet and enable it. Back the snippet file up first. Only add rules; don't change existing ones.
  • :hover, :focus, and :focus-within reveal the popovers. Each popover also has an inline style="display:none" so it stays hidden if the snippet is off, and title= still shows the why text.
  • Leave out the copy button. It needs a script, so this is the one card without it.
  • Edit the note by replacing the exact card block string only, and diff against a backup to confirm nothing else changed.

Verify before you deliver

  1. Render in headless Chromium or Playwright. For the Obsidian version, render the note markup with only the snippet CSS and no script.
  2. Hover each slot, then focus one with the keyboard. Confirm the popover's computed display changes from none to block, and take a screenshot of each hover.
  3. Check there are no console or page errors. A missing favicon from a local test server doesn't count.
  4. Click Copy and read the clipboard back. It must match the template text exactly, with no number tags or why notes. Serve the file over http://localhost and grant clipboard permissions, because file:// won't work.
  5. Load the card in a same-origin iframe and confirm fit() set a height. A cross-origin host can't reach frameElement.
  6. Check every file you wrote for em-dashes with grep -nP '\x{2014}' <file>.

Gotchas worth knowing:

  • A CSS comment containing a path glob like blog/*/x.html ends the comment at */ and silently drops the next rule. If that's :root, every variable disappears.
  • A shorthand border: 1px solid on a more specific selector overrides a per-color border-color class. Raise the color rule's specificity.
  • A full-page screenshot is never shorter than the viewport. Use a short viewport, such as 672 by 300, to get the card's true height.

Versioning

Before overwriting, save the previous file as *.vN.html (and its PNG). Bump the version in the footer.

Files

  • assets/template.html: standalone card with the required copy button and placeholders (CARD TITLE, WHY 1 to 3, INTERACTS, SKILL-NAME, footer date).
  • assets/obsidian-snippet.css: the scoped card CSS for a vault snippet, including an optional slot 4.
  • assets/obsidian-note-snippet.html: in-note markup with placeholders.
  • assets/examples/ingest-a-source/: a filled-in card for "Ingest <url/file> into my please." Contains standalone.html, in-note.html, obsidian-snippet.css, and hover.png.
  • assets/examples/make-a-prompt-card/: a filled-in card whose template has three lines: "Make a prompt card for this prompt: ", "It uses this skill: ", and "Here's what I mean by it: ". The second and third lines are optional. Contains standalone.html, in-note.html, obsidian-snippet.css, default.png, and hover.png.
  • assets/examples/build-a-landing-page/: a filled-in card for "Build a landing page for my please, in ." Contains standalone.html, in-note.html, obsidian-snippet.css, default.png, and hover.png.

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

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

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

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

Build a brief, interactive prompt card: a small card that teaches a reader one prompt, with numbered color-coded slots whose 'why it matters' notes pop up on hover, and, when the prompt relies on one, an 'Interacts with' section naming the skill or AGENTS.md instructions behind it. Takes the prompt, optionally the skill it uses, and optionally the user's explanation of what they mean; if the intent isn't already clear from the conversation, interviews the user about it. Works out from context whether the card goes in a blog post (standalone HTML widget) or an Obsidian note (note markup plus...

لماذا تستخدم Prompt Card على TypingMind؟

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

كيف أثبّت Prompt Card في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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