شعار Tweak

Tweak

المجتمع
robonuggets
tweak

Inject a live tweak panel into any HTML file (slides, websites, mockups). Auto-scans the page, picks reasonable sliders, lets the user dial in changes in browser, then bakes the chosen values back into the source CSS and removes the panel. Two levels — `tweak light` (5 sliders), `tweak max` (10 sliders).

نظرة عامة

الناشرrobonuggets
المستودعskills
اسم المهارةtweak
النجوم
47
التفريعات
7
الملفات المرفقة
1
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

tweak

Drop a live controls panel into any single-file HTML output, let the user dial in changes in the browser, then bake the values back into the source.

Triggers

  • /tweak [file] → default level (light, 5 sliders)
  • /tweak light [file] → 5 universal sliders
  • /tweak max [file] → 10 sliders with finer-grained targets
  • tweak this / add tweak panel to this (when a file is open or referenced)
  • bake tweak / tweak bake → apply the user's dialed values back to source + remove panel
  • tweak strip → remove panel without baking (revert)

If no file is given, infer from context (most recently edited HTML, the file the user has open in the IDE, or the active slide deck).

Two levels

LevelSlider countUse when
light5Quick visual dial-in. Default.
max10Granular control — type sizes, spacing, glow, saturation.

Light tier (always 5)

  1. Speed — multiplies animation-duration on every animated element
  2. Title size — scales h1 / .display / hero title font-size
  3. Body size — scales body / p / .body font-size
  4. Density — multiplies padding / gap on layout containers
  5. Visual scale — transform: scale() on svg, canvas, .visual, .hero-image, hero img

Max tier (5 light + 5 more)

  1. Accent glow — filter: drop-shadow + brightness on accent / hero areas
  2. Background — opacity multiplier on background layers ([data-bg], .bg-layer)
  3. Letter spacing — letter-spacing on h1/h2/.display
  4. Roundness — scales border-radius everywhere it's > 0
  5. Saturation — filter: saturate() on body

The panel auto-skips sliders whose targets don't exist on the page (e.g. no border-radius anywhere → skip Roundness, fill the slot with the next candidate).

Workflow

Step 1 — Inject

When the user runs /tweak [file]:

  1. Read panel.html from this skill folder.
  2. Read the target HTML file.
  3. Find </body> (last occurrence) and insert the entire contents of panel.html immediately before it. The bundle is wrapped in <!-- TWEAK:START --> ... <!-- TWEAK:END --> markers — these are required for bake and strip to work later.
  4. Optionally pass a level hint by replacing data-tweak-level="light" with "max" on the #tweak-panel element if the user asked for max.
  5. Save the file.
  6. Open in the browser (start "" "<path>" on Windows, open on macOS, xdg-open on Linux).
  7. Tell the user: panel is in, hit T to toggle, dial things in, then say "bake" when done.

Idempotency: if the file already contains <!-- TWEAK:START -->, don't inject again — tell the user it's already there and (re)open the file.

Step 2 — User tweaks (in browser)

The panel:

  • Auto-scans the DOM on load and picks the right sliders.
  • For pages with multiple .slide elements, runs in per-slide mode (sliders target the visible slide).
  • Otherwise runs in page mode (sliders target the whole document).
  • Each slider has a value indicator and a reset.
  • Header shows what's being targeted ("Page" or "Slide 03 · ...").
  • T toggles the panel; R resets all on the active target; B opens the bake modal.

Step 3 — Bake

When the user clicks Bake in the panel (or hits B), a modal appears with two options:

Option A — Patch (default, recommended): A JSON block formatted as:

BAKE_TWEAK_v1
{
  "mode": "page" | "slide",
  "values": { "speed": 1.4, "titleSize": 1.1, "density": 0.9, ... },
  "perSlide": { "/example": { "speed": 0.8 } }   // only in slide mode
}

The user copies this and pastes it back to the agent.

When the agent receives a BAKE_TWEAK_v1 payload, it:

  1. Reads the source HTML file.
  2. For each non-default value in values, locates the relevant CSS rules and updates them in place, or injects a <style id="tweak-baked">:root { ... }</style> block right after <head> with custom-property overrides (whichever is cleaner — see "Bake strategy" below).
  3. Strips the panel block — see Stripping the panel below for the safe procedure.
  4. Saves the file.
  5. Verifies the strip worked (re-grep for TWEAK — must return 0 matches), then confirms in chat: "Baked X changes, panel removed. Reload the file."

Option B — Download baked HTML: The panel clones the document, strips the tweak block, inlines the deltas as a <style> near the top, and triggers a download. User replaces the source manually if they prefer. Good for quick standalone exports.

Bake strategy

  • Prefer in-place edits for clarity — e.g. if Title Size = 1.15 and the source has --title-size: clamp(2.6rem, 8vw, 7rem), multiply the values: clamp(2.99rem, 9.2vw, 8.05rem).
  • Fall back to override block when the source is too dense or uses computed values: insert a single <style id="tweak-baked">:root { --tweak-mult-title: 1.15; }</style> block + add a few helper rules. Keep it minimal — one block, scoped, easy to revert.
  • For animation Speed bakes: rewrite each animation shorthand or animation-duration rule with the scaled value. Don't use a global multiplier var (CSS doesn't support computed durations from variables reliably across all browsers).
  • For per-slide bakes: scope the CSS via [data-title="..."] attribute selectors or .slide:nth-of-type(N).

Step 4 — Strip

tweak strip [file] removes the panel without baking. Use the safe procedure in Stripping the panel below.

Stripping the panel (CRITICAL — read before stripping)

The trap: the panel's own <script> source contains the literal string TWEAK:END and --> (inside a JS regex used by the in-browser download path). A naive lazy regex like <!--\s*TWEAK:START[\s\S]*?TWEAK:END[\s\S]*?--> will match the start marker, then jump to that JS-internal TWEAK:END, then close on the JS regex's own -->/ — leaving the actual <!-- TWEAK:END --> marker plus a chunk of orphaned JS sitting outside any <script> tag. The browser then renders that orphaned JS as visible text on the page. This has happened. Don't repeat it.

Safe procedure — pick one:

A. Line-range delete (recommended, most robust):

bash
# Find both marker line numbers
grep -n "<!-- TWEAK:START\|<!-- TWEAK:END" path/to/file.html
# Then delete that line range with sed (Windows: use node, see B)
sed -i "${START},${END}d" path/to/file.html

B. Node strip with anchored regex (cross-platform):

The end marker MUST be anchored as <!--\s*TWEAK:END\s*--> (not just TWEAK:END[\s\S]*?-->). The leading <!-- is the discriminator — the JS-internal occurrence has [\s\S]*? before its TWEAK:END, never <!--.

js
// node -e "..."
const fs=require('fs');
const p='path/to/file.html';
let s=fs.readFileSync(p,'utf8');
s=s.replace(/\n?<!--\s*TWEAK:START[\s\S]*?<!--\s*TWEAK:END\s*-->\n?/, '\n');
fs.writeFileSync(p,s);

Note the <!--\s*TWEAK:END\s*--> at the end — that's the fix. The JS regex string inside the panel does not contain <!-- immediately before its TWEAK:END, so this pattern only matches the real closing comment.

C. Edit tool with explicit anchors:

If the file is small enough, do a single edit where the start string is <!-- TWEAK:START · injected by .claude/skills/tweak · safe to remove between markers --> and the end string is <!-- TWEAK:END -->\n, replacing with empty. Read the file first to copy the exact opening marker line.

Always verify after stripping — run grep -c "TWEAK\|tweak-panel\|tweak-script\|bakedToCss\|renderRows" path/to/file.html. Expected: 0. If non-zero, the strip cut at the wrong spot — find the orphan and finish the job.

Auto-scan rules

The panel.html script picks sliders in this order, skipping any whose targets don't exist:

PrioritySliderTarget check (skip if 0 matches)
1Speed* with getComputedStyle(el).animationName !== 'none'
2Title sizeh1, h1.display, .hero-title, .title-display, .display
3Body sizebody (always exists, never skipped)
4Density.slide-content, section, .container, main, .layout, .grid, .stack
5Visual scalesvg:not(.icon):not([data-bg]), canvas:not([data-bg]), .hero-image, .visual, img.hero
6Accent glowany element with a resolved accent colour OR [data-accent] OR .accent class
7Background[data-bg], .bg-layer, .cursor-glow (or detect a body::before with low alpha)
8Letter spacingh1, h2, .display
9Roundnessany element with border-radius > 0 (compute style, sample first 50 elements)
10Saturationbody (always works as a filter target)

If the user asks light and fewer than 5 sliders qualify, show what we have. If they ask max and fewer than 10 qualify, fill what we can — the panel reports "8 of 10 sliders active — your page didn't expose roundness or accent areas."

Mode detection (per-slide vs page)

On panel boot:

  • If document.querySelectorAll('.slide').length >= 2 AND scroll-snap is on the html or body, run per-slide mode.
  • Otherwise run page mode.

Per-slide mode uses an IntersectionObserver to track which slide is visible and routes slider input to that slide's local state (cached per slide).

What the skill does NOT do

  • Click-to-select-element — the panel infers targets via CSS selectors instead.
  • Colour picking (sliders only — saturation/glow are scalar; no hue picker).
  • Layout shifts (no rearranging blocks; sliders only multiply existing values).
  • Live editing of text content (visual-only).

If the user asks for any of these, tell them this skill is dial-in-only and they should edit the source manually or use a proper component editor.

Files in this skill

  • SKILL.md — this file, the workflow
  • panel.html — the self-contained CSS + HTML + JS bundle injected into target files. Has all the auto-scan logic, slider rendering, mode detection, and bake export.

Rules (do not break)

  1. The injected bundle MUST be wrapped in <!-- TWEAK:START --> ... <!-- TWEAK:END --> markers. Bake and strip both rely on these.
  2. Never inject twice. Always check for the START marker before adding.
  3. When baking via patch JSON, prefer in-place CSS edits over override blocks. Override blocks accumulate and rot.
  4. After bake, ALWAYS remove the panel block — never leave it half-installed. Use the Stripping the panel procedure; the naive lazy regex will cut at the wrong spot because the panel's own JS contains the literal TWEAK:END...--> inside a regex string.
  5. ALWAYS verify the strip with a grep -c "TWEAK\|tweak-panel\|tweak-script\|bakedToCss\|renderRows" — expect 0. If non-zero, fix it before reporting done.
  6. Don't strip the bundle without confirming with the user if there are uncommitted slider changes (no way to detect — just warn that strip discards anything unbaked).
  7. The panel itself never modifies the source file from the browser. All source mutations go through the agent (via the patch-back flow) or via the user's manual download replacement.
  8. Default level is light. Don't surprise the user with 10 sliders unless they ask for max.

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

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

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

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

Inject a live tweak panel into any HTML file (slides, websites, mockups). Auto-scans the page, picks reasonable sliders, lets the user dial in changes in browser, then bakes the chosen values back into the source CSS and removes the panel. Two levels — `tweak light` (5 sliders), `tweak max` (10 sliders).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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