p5js
ما الذي تفعله
تُرشد هذه المهارة الذكاء الاصطناعي لديك إلى صنع مشاريع البرمجة الإبداعية بـ p5.js. وهي للفنانين والمصممين والمطورين الذين يريدون مرئيات تفاعلية أو توليدية للويب.
متى تستخدمها
- ✓عندما تريد رسمة فن توليدي أو مرئيًا تفاعليًا يعمل في المتصفح.
- ✓عندما تريد تصور بيانات أو رسومًا متحركة بالجسيمات أو حقول التدفق أو الضوضاء.
- ✓عندما تريد تصدير الرسمة كملف HTML أو PNG أو GIF أو MP4 أو SVG.
رابط المهارة
https://github.com/NousResearch/hermes-agent/blob/main/skills/creative/p5js/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
📦 هذه المهارة موجودة في هذه الحزم
مثال على ما تطلبه من الذكاء الاصطناعي
“اصنع قطعة فن توليدي بـ p5.js فيها جسيمات متدفقة تتفاعل مع الفأرة، وصدّرها كملف PNG.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يخطط الذكاء الاصطناعي لمفهوم إبداعي، ثم يكتب شيفرة p5.js للرسمة. يمكنه إضافة shaders أو تفاعلات مع الصوت أو مشاهد ثلاثية الأبعاد، ويصدّر النتيجة بعدة صيغ.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
p5.js Production Pipeline
When to use
Use when users request: p5.js sketches, creative coding, generative art, interactive visualizations, canvas animations, browser-based visual art, data viz, shader effects, or any p5.js project.
What's inside
Production pipeline for interactive and generative visual art using p5.js. Creates browser-based sketches, generative art, data visualizations, interactive experiences, 3D scenes, audio-reactive visuals, and motion graphics — exported as HTML, PNG, GIF, MP4, or SVG. Covers: 2D/3D rendering, noise and particle systems, flow fields, shaders (GLSL), pixel manipulation, kinetic typography, WebGL scenes, audio analysis, mouse/keyboard interaction, and headless high-res export.
Creative Standard
This is visual art rendered in the browser. The canvas is the medium; the algorithm is the brush.
Before writing a single line of code, articulate the creative concept. What does this piece communicate? What makes the viewer stop scrolling? What separates this from a code tutorial example? The user's prompt is a starting point — interpret it with creative ambition.
First-render excellence is non-negotiable. The output must be visually striking on first load. If it looks like a p5.js tutorial exercise, a default configuration, or "AI-generated creative coding," it is wrong. Rethink before shipping.
Go beyond the reference vocabulary. The noise functions, particle systems, color palettes, and shader effects in the references are a starting vocabulary. For every project, combine, layer, and invent. The catalog is a palette of paints — you write the painting.
Be proactively creative. If the user asks for "a particle system," deliver a particle system with emergent flocking behavior, trailing ghost echoes, palette-shifted depth fog, and a background noise field that breathes. Include at least one visual detail the user didn't ask for but will appreciate.
Dense, layered, considered. Every frame should reward viewing. Never flat white backgrounds. Always compositional hierarchy. Always intentional color. Always micro-detail that only appears on close inspection.
Cohesive aesthetic over feature count. All elements must serve a unified visual language — shared color temperature, consistent stroke weight vocabulary, harmonious motion speeds. A sketch with ten unrelated effects is worse than one with three that belong together.
Modes
| Mode | Input | Output | Reference |
|---|---|---|---|
| Generative art | Seed / parameters | Procedural visual composition (still or animated) | references/visual-effects.md |
| Data visualization | Dataset / API | Interactive charts, graphs, custom data displays | references/interaction.md |
| Interactive experience | None (user drives) | Mouse/keyboard/touch-driven sketch | references/interaction.md |
| Animation / motion graphics | Timeline / storyboard | Timed sequences, kinetic typography, transitions | references/animation.md |
| 3D scene | Concept description | WebGL geometry, lighting, camera, materials | references/webgl-and-3d.md |
| Image processing | Image file(s) | Pixel manipulation, filters, mosaic, pointillism | references/visual-effects.md § Pixel Manipulation |
| Audio-reactive | Audio file / mic | Sound-driven generative visuals | references/interaction.md § Audio Input |
Stack
Single self-contained HTML file per project. No build step required.
| Layer | Tool | Purpose |
|---|---|---|
| Core | p5.js 1.11.3 (CDN) | Canvas rendering, math, transforms, event handling |
| 3D | p5.js WebGL mode | 3D geometry, camera, lighting, GLSL shaders |
| Audio | p5.sound.js (CDN) | FFT analysis, amplitude, mic input, oscillators |
| Export | Built-in saveCanvas() / saveGif() / saveFrames() |
PNG, GIF, frame sequence output |
| Capture | CCapture.js (optional) | Deterministic framerate video capture (WebM, GIF) |
| Headless | Puppeteer + Node.js (optional) | Automated high-res rendering, MP4 via ffmpeg |
| SVG | p5.js-svg 1.6.0 (optional) | Vector output for print — requires p5.js 1.x |
| Natural media | p5.brush (optional) | Watercolor, charcoal, pen — requires p5.js 2.x + WEBGL |
| Texture | p5.grain (optional) | Film grain, texture overlays |
| Fonts | Google Fonts / loadFont() |
Custom typography via OTF/TTF/WOFF2 |
Version Note
p5.js 1.x (1.11.3) is the default — stable, well-documented, broadest library compatibi
الأسئلة الشائعة
هل أحتاج إلى معرفة JavaScript؟
تفيد معرفة أساسية، لكن المهارة ترشد الذكاء الاصطناعي إلى كتابة الشيفرة وشرحها.
هل تصنع مشاهد ثلاثية الأبعاد؟
نعم. تغطي المهارة مشاهد WebGL والعرض ثلاثي الأبعاد بـ p5.js.
ما صيغ الإخراج المتاحة؟
تذكر المهارة HTML وPNG وGIF وMP4 وSVG.
التفاصيل
الوصف الأصلي من المؤلف
p5.js sketches: gen art, shaders, interactive, 3D.
الشعبية
- نجوم GitHub
- 260k
- الترتيب
- #598
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
agent-merge-conflict-arbiter
260kيحسم تعارض دمج git بين فروع وكيلين كطرف محايد، فينتج نتيجة دمج واحدة للمستودع.
antigravity-cli
260kيرشدك إلى تثبيت أداة سطر أوامر Antigravity وتحديثها واستكشاف أخطائها، بما في ذلك إضافاتها وتسجيل الدخول والبيئة المعزولة.
blackbox
260kيتيح لوكيلك تسليم مهمة برمجة إلى أداة Blackbox AI لسطر الأوامر، التي تشغّل عدة نماذج ذكاء اصطناعي وتختار أفضل نتيجة.
dynamic-workflow
260kيعلّم وكيلك تشغيل مجموعات كبيرة من أعمال متشابهة كسكربت محفوظ، فلا تعود إلى المحادثة الرئيسية إلا النتائج المتحقق منها.
مهارات مشابهة
gifgrep
394kيتيح لوكيلك البحث في مكتبات GIF ومعاينة النتائج وتنزيل ملف GIF، واستخراج إطار ثابت أو شبكة إطارات منه.
meme-maker
394kيتيح لوكيلك اختيار قالب ميم وإضافة عناوينك الخاصة، ثم إنشاء الميم كصورة بصيغة SVG أو PNG.
ios-icon-gen
280kيتيح لوكيلك إنشاء أيقونات لتطبيقات iOS. يستخدم رموز Apple أو أيقونات من مصادر أخرى لإنشاء الملفات الصحيحة.