شعار Dithercn

Dithercn

مؤسسة
opencoredev
dithercn

Build any dithered visual with the dithercn engine (dither-core, in lib/dither) in a React or shadcn app. Use when the user wants a dither, a dithered or Bayer or halftone or pixel texture, or a dithered background, hero, chart, meter, card, loader, text or image for a landing page or dashboard, or when code imports lib/dither or components/dithercn.

نظرة عامة

الناشرopencoredev
المستودعdithercn
اسم المهارةdithercn
النجوم
114
التفريعات
5
الملفات المرفقة
7
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

dithercn

dithercn is a dither engine. dither-core (installed into lib/dither) turns a tone you compute into ordered dither dots, in your theme's colours, with motion, resizing and reduced motion handled. You build the dither the user asked for on top of it. The dithercn components are examples of what the engine can do, not a menu to pick from. Install one only when it is exactly what the user asked for. Otherwise write your own, and borrow technique from the closest example's source.

1. Set up the engine

Find the engine: lib/dither/index.ts, under the lib alias in components.json (imports below use @/lib/dither; use the project's alias). If it is missing, install it from the dithercn registry:

bash
npx shadcn@latest add {{REGISTRY_URL}}/dither-core.json

If it exists, check that it is current: grep -q colorField lib/dither/shader.tsx (with the project's path). An engine installed before colorField existed lacks it and the spectrum and paletteColor helpers, and TypeScript reports Property 'colorField' does not exist. Replace the engine's files; this keeps the project's lib/utils.ts (yes n answers no to every question about overwriting a file) and restores lib/dither/export.ts:

bash
rm -rf lib/dither && yes n | npx shadcn@latest add {{REGISTRY_URL}}/dither-core.json {{REGISTRY_URL}}/dither-export.json

Don't use --overwrite: it also replaces lib/utils.ts. If the project edited files inside lib/dither, tell the user before replacing them.

That also installs dither-tokens: the CSS variables --dither-ink, --dither-paper, --dither-cell, --dither-bloom and --dither-color-<name>, written into the project's global CSS and mapped to the shadcn --primary and --background. The engine needs React 19 and Tailwind CSS v4.

Done when lib/dither/index.ts exists, lib/dither/shader.tsx mentions colorField, and the global CSS defines --dither-ink.

2. Pick the technique

The user wantsUseRead
A surface whose tone varies per pixel or moves: gradients, glows, noise, contours, waves, rings, any shape you can describe with mathDitherShader with a GLSL fieldfields.md
A static fill inside SVG shapes: bars, arcs, gauges, meters, rings, icons, mapsFillPattern or DitherPattern in <defs>, fill="url(#id)"engine-api.md
A static fill on a DOM element: a block, band, border, progress bar, skeletonfillStyle(variant) or ditherMaskStyle(level) on an empty layerengine-api.md
Many hues at once: a rainbow, a spectrum, RGB, a different colour per line or shapeDitherShader with a field for the shape and a colorField for the colourfields.md
A photo or logo, ditheredditherImage on canvas pixelsengine-api.md
A PNG, SVG or CSS file, or a background with no JavaScriptdither-exportengine-api.md

Combine them freely: a dashboard card can hold an SVG meter with FillPattern over a DitherShader glow.

The examples in examples.md (written when the skill is installed; if it's missing, read {{SITE_URL}}/.well-known/agent-skills/dithercn/references/examples.md) are references. If the user asked for exactly one of them, install it. If not, write your own: read the closest example's source for its field or SVG, then build the design the user described. Never swap the request for an example that is merely nearby, and never guess at an example's props; read its docs page or source.

Done when every visual in the request has a technique.

3. Build it

If the dither is for a landing page, or a section of one, read landing-pages.md before anything else. A good dither on a generic page still looks generated: the page has to be about the product, and the dither has to come from it.

  1. Read the reference named for your technique, and recipes.md for complete, working components to adapt.
  2. Write the component in its own file. "use client" when it uses DitherShader, hooks or a canvas; FillPattern, DitherPattern, fillStyle and ditherMaskStyle render on the server.
  3. Give it typed props for what the user would tweak (colour, intensity, speed, scale, value), with defaults that already look good.
  4. Place it with placement.md: a shader fills a positioned parent (absolute inset-0), and content sits in a sibling above it.
  5. Colour it with theme.md: palette names such as "ink" and "blue", or CSS variables, so it follows light and dark.

Done when the component renders the requested look with no [dither-core] errors in the console.

4. Check it in a browser

Open the page and look at it. Screenshot it if you can, at desktop and phone widths, in light and dark mode, and once with reduced motion (prefers-reduced-motion: reduce). Hold it to quality.md.

Done when every check in quality.md passes. A screenshot that shows flat colour, a solid block or an empty box means the field returns the wrong range or the parent has no size: fix it and look again.

Rules for every dither

  • A field returns a continuous tone in [0, 1]: 0 paper, 1 ink. The engine quantises and dithers it, so write smooth math (smoothstep, exp, mix) and leave thresholds and Bayer matrices to the engine.
  • uv runs 0 to 1 on both axes with y up. Multiply x by res.x / res.y before measuring distances, or circles stretch into ovals.
  • Paint with theme colours ("ink", palette names, --css-variables). Literal colours, and spectrum() in a colorField, are for when the user asks for specific colours or a rainbow.
  • Text sits on clear ground. Fade the tone down where text goes: to 0 for lines and sparse patterns, to 0.2 or less for soft fills. Text contrast stays at 4.5:1 or better.
  • Motion is slow, a drift of a few percent of the box per second. Choose stillTime so the reduced-motion frame looks finished.

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

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

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

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

Build any dithered visual with the dithercn engine (dither-core, in lib/dither) in a React or shadcn app. Use when the user wants a dither, a dithered or Bayer or halftone or pixel texture, or a dithered background, hero, chart, meter, card, loader, text or image for a landing page or dashboard, or when code imports lib/dither or components/dithercn.

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

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

كيف أثبّت Dithercn في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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