شعار Enliven

Enliven

المجتمع
proxysoul
enliven

اجعل تطبيق Electron أو تطبيق الويب أسرع بشكل ملموس من دون فقدان أي ميزة، وأثبت ذلك. ينشئ الوكيل أداة اختبار A/B قابلة للتكرار، تشغّل إصدار الإنتاج الفعلي عبر Playwright وتقرأ عدّادات Chromium نفسها عبر بروتوكول DevTools. ويحدد سبب التكلفة باستخدام تتبّع إبطال الأنماط في Blink، ومسبار لعمليات React، ومسبار للإطارات والاستيقاظ ووحدة معالجة الرسومات، بدلًا من التخمين. ثم يثبت أن الإصلاح يحافظ على المظهر بكسلًا ببكسل، ويعالج الأسباب الجذرية، ويعيد القياس بالطريقة نفسها، ويكتب تقرير HTML مستقلًا يعرض حالات التراجع بوضوح مثلما يعرض المكاسب. استخدمه عندما يطلب المستخدم تحليل الأداء أو تسريعه أو تقليل حجمه أو العثور على تسرّبات الذاكرة فيه أو قياس الأداء قبل التغيير وبعده في تطبيق سطح مكتب أو ويب، أو عندما يطلب تقريرًا عن الأداء.

نظرة عامة

الناشرproxysoul
المستودعSoulStack
اسم المهارةenliven
النجوم
29
التفريعات
5
الملفات المرفقة
11
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Enliven

Turns "make the app fast" into a number you can defend. The output is three things: root causes named at file:line, a harness anyone can re-run, and an HTML report whose every figure comes from a JSON file the harness wrote.

It is distilled from a real Electron audit where the first two attempts failed independent review. Every rule below is a mistake that got caught. Follow them up front and skip those rounds.

ensoul gives a product a soul, immune-system keeps it well, and this one makes it lively: an app that answers the instant you touch it and carries no weight it does not need. Same construction as ensoul, same idea one step further in: not what it looks like, but how alive it feels to use, proved with numbers rather than asserted.

The shape of the work is one loop: measure → find the cause → fix the cause → measure the same way → report honestly. Never skip a step, never reorder, and never let the report get ahead of the data.

The short path

The scripts in scripts/ are the audit already written down. Do not rebuild them from scratch; the exploration is what took the time, and it is already spent.

sh
cp scripts/profile.example.mjs perf-profile.mjs   # fill in: entry, selectors, phases, cycle
node scripts/perf-ab.mjs --profile=./perf-profile.mjs --app=<build> --label=before --out=./perf
node scripts/style-trace.mjs --profile=./perf-profile.mjs --app=<build> --phase=<worst phase> --out=./perf/style-trace.json
node scripts/cpu-profile.mjs --profile=./perf-profile.mjs --app=<build> --phase=<worst phase> --out=./perf/worst.cpuprofile
node scripts/cpu-analyze.mjs ./perf/worst.cpuprofile --mode=summary --root="$PWD"
node scripts/cpu-analyze.mjs ./perf/worst.cpuprofile --mode=longtasks --root="$PWD"
node scripts/trace-analyze.mjs ./perf/style-trace.json --mode=selectors
node scripts/frame-probe.mjs --profile=./perf-profile.mjs --app=<build> --after=<phase> --label=frames-before --out=./perf/frames-before.json
#   fix what the trace or profile names, rebuild from a purged output directory
node scripts/look-equivalence.mjs --profile=./perf-profile.mjs --app=<build> --css=./perf/fix.css --out=./perf/look
node scripts/perf-ab.mjs --profile=./perf-profile.mjs --app=<build> --label=after --out=./perf
node scripts/perf-report.mjs --before=./perf/before.json --after=./perf/after.json \
     --changes=./perf/changes.json --out=./perf/report.html

Writing perf-profile.mjs is the only real work: name the phases people actually perform, and make the leak cycle end where it began. Read reference/traps.md first, in full. Every line in it cost a failed review.

frame-probe.mjs and look-equivalence.mjs share harness.mjs and find playwright-core from --app, so they run straight from the skill folder. Give the profile an optional focus(context, focused) hook (tell the app it lost focus the way the OS would) and a looks map of named states (light, dark, a panel open) for them to use.

These scripts have been run end to end against a real Electron build, not just written: a five-phase profile produced boot timings, per-phase CDP counters, a three-cycle leak series with flat node counts, and an HTML page. On that run the orphan count came back at 866 files and 43 MB, which was correct: the output directory had accumulated stale chunks from earlier builds. Purge it before you trust any bundle number, exactly as Phase 4 says.

The phases below explain why each script does what it does. Read them when something does not fit your app, not before your first run.

Phase 1: Build the harness before you look at any code

The first instinct is to open a profiler and start reading flame graphs. Resist it. A flame graph of one run on a busy laptop tells you nothing you can defend later. Build the measuring instrument first, and make it produce a JSON file.

One script, checked into the repo, that takes --app=<dir> --label=<name> --out=<dir> --repeats=N and writes <label>.json. It must:

  1. Launch the real production build, not a dev server and not a test renderer. Optimisations that only exist in a dev build are not optimisations. For Electron, Playwright's _electron.launch against the built main entry.
  2. Run every phase N times and report the median. Three is the floor. A single run on a shared machine moves by tens of percent.
  3. Read the engine's own counters, not a stopwatch. Over the DevTools protocol, Performance.getMetrics gives TaskDuration, ScriptDuration, RecalcStyleDuration, LayoutDuration, RecalcStyleCount, LayoutCount, Nodes, JSEventListeners, JSHeapUsedSize. Those last four are the leak triad plus the DOM size.
  4. Count renders without React DevTools. Install a window.__REACT_DEVTOOLS_GLOBAL_HOOK__ stub in an init script with supportsFiber, a renderers Map, inject, and onCommitFiberRoot. Counting commits is one line. Walking the fiber tree for flags & PerformedWork gives per-component render counts and which of them had identical props and state, which is the wasted-render number. Enable probes.react only on diagnostic runs; its fiber walk changes the cost being measured.
  5. Count animation frames. Wrap requestAnimationFrame in the same init script. An idle window doing 74 callbacks per second is a finding on its own.
  6. Be hermetic. Seed a throwaway config home per run: a temp dir, HOME/USERPROFILE/LOCALAPPDATA pointed at it, and a config file written with the onboarding and intro flags already set. Without this the benchmark silently inherits the developer's real settings, the numbers are not reproducible on another machine, and the run stops on a first-run screen on any clean OS. This one item is what makes the harness portable; it is not optional.

The phases are what people actually do

Not microbenchmarks. Every desktop app has the same five shapes; name them in your own product's words:

ShapeA chat clientAn editorA dashboardA media app
Load a big documentrestore a long sessionopen a 5,000 line fileload a board with 200 cardsopen a large library
Take content in over timestream an answertype a paragraphreceive a live metric feedscrub a timeline
A burst of list churn40 tool callsrapid autocompletea filter over every rowa playlist reorder
Move between viewsswitch tabsswitch filesswitch boardsswitch albums
Scroll, hover, sit stillthe transcriptthe gutterthe gridthe grid

Idle is the most revealing phase and the one everyone forgets: an app that costs anything while nothing is happening is burning battery for free. The examples throughout this skill come from a chat client because that is where it was distilled; the harness itself knows nothing about chat, and every app-specific detail lives in your profile.

The leak loop has to close

Run 6-10 identical cycles at the end, force garbage collection twice between each (HeapProfiler.collectGarbage), and fit a least-squares line through heap, node count and listener count.

The cycle must return the app to the same state it started in. If each cycle appends a message, opens a panel, or otherwise adds content, the series measures accumulation, not retention, and the "leak" it reports is fiction. End every cycle by replaying the identical restore payload, then assert the DOM node count is flat before you believe any heap number.

Soak with what people really have, then purge

A closed cycle proves the DOM and listeners come back. It does not find memory that grows with use, and that is where the user's complaint usually lives. Add one soak: the heavy content the product really carries (large images, long documents or logs, many open views, a big saved state restored from disk), for 30 to 60 rounds, then put the app back in a small state and check that memory comes down.

  • Read the process footprint, not the JS heap and not RSS. Decoded images, allocator buffers and GPU textures never show in JSHeapUsedSize; memory-mapped files inflate RSS with pages the OS can drop. On macOS use footprint <pid> (phys_footprint), on Windows the private working set, and Chromium's own memory dump (Tracing with disabled-by-default-memory-infra) to split it into partition_alloc, cc/image_memory, v8 and gpu.
  • Anything that keeps full copies (undo history, change logs, closed views, caches keyed by content) gets a byte budget, compression for cold entries and a trim on memory pressure. Count it in bytes: V8 and JavaScriptCore store a string with one non-Latin-1 character at two bytes per character.
  • Check the host process too. A Node or Bun process that ran a big one-off job keeps the high-water mark; a terminated worker's heap is not always handed back to the OS.

Phase 2: Find the cause, do not guess it

Each probe answers a different question. Run the one that matches the phase that came out worst.

ProbeAnswers
CPU profile and analyzerWhich functions and modules consumed self or inclusive time, who called them, what ran under a target, and which sampled spans formed long tasks
Blink invalidation traceWhich CSS rule scheduled each style recalculation, and how many elements it touched
Trace analyzerSelector matching cost, invalidation reasons, layout totals, and long trace events from a saved Chrome trace
React commit probeWhich component rendered, how often, which renders were wasted, and what triggered the root of each render
React Compiler bailout reportEvery function the compiler refused to memoize, with the reason and the line
Frame probeDrawn frames and BeginFrames per second, CPU per process (renderer, GPU, browser, helpers), idle wake-ups, every timer and animation frame scheduled while still with its caller, and the composited layers with their texture size and promotion reasons
Look equivalenceWhether a CSS change alters a single pixel, against the noise floor of an untouched repeat
Host-process profileEvent-loop lag and CPU of the main or back-end process, which no renderer probe sees

CPU profiles name the JavaScript cause

Run cpu-profile.mjs after the A/B harness has named a bad phase. It launches the same profile, replays all earlier phases, samples the target phase through CDP's Profiler domain, and writes a standard .cpuprofile file that Chrome DevTools can open. cpu-analyze.mjs keeps the useful GUI-QA views in a portable CLI: summary, window, anchor, who, children, modules, and longtasks. Pass --root=<project> to turn absolute file URLs into reviewable src/...:line paths without baking a machine path into the report.

The profiler samples the renderer only. Use --anchor=<function> with --before=<ms> --after=<ms> for a request or interaction, --window=<seconds> --skip=<seconds> for a settled idle tail, --target=<function> with --mode=who or --mode=children for caller and child attribution, and --mode=modules --needle=<regex> for dependency cost. A profile is evidence for a cause, not a replacement for the before/after counters.

The style trace is the one people skip

Start a Tracing session over CDP with blink.style, devtools.timeline and disabled-by-default-devtools.timeline.invalidationTracking, drive one interaction, then aggregate ScheduleStyleInvalidationTracking by reason and node, and StyleRecalcInvalidationTracking by reason. It names the selector.

In the audit this came from, style recalculation was 47% of main-thread time, and two CSS rules caused most of it. Neither drew anything.

The :has() trap. A descendant :has() whose subject is an ancestor of frequently-mutated content makes the engine schedule an invalidation on that ancestor for every DOM mutation underneath it. html .app:has(> .backdrop) :is(.header, .main, .footer) scheduled 1,211 whole-application invalidations during one burst of incoming content, re-styling 107 elements each time, while the backdrop was not even mounted. Any app with a live region has this shape: a log tail, a chat, a table that updates, a canvas with a DOM overlay. Sibling :has() (:has(~ .x)) is much cheaper than descendant :has(); an attribute the component already knows how to set is free. Replace :has() on a hot ancestor with a data- attribute set from the same condition the component renders on.

The compositor-layer trap. will-change: transform on an element that is 18 pixels wide costs more than it saves. Promote only what visibly moves, and check the size at which it is actually rendered.

The per-instance listener trap. A component that registers its own window listener costs N listeners for N instances, and every event wakes all of them. One shared dispatcher in a coordinator that already tracks which instances are on screen, fanning out only to those, is the fix. While you are there: element scroll events do not bubble to window, so a window scroll listener meant for an inner scroller has never fired. Check before you "optimise" it; you may be optimising dead code.

Below the renderer: frames, GPU and the host process

Main-thread counters miss most of what drains a battery. Run frame-probe.mjs on the idle phase and on the busiest one, with the window in front and, through the profile's focus hook, behind another window.

  • The GPU pays per drawn frame. In the audit this came from, each frame of the full app window cost about 4 ms in the GPU process against 0.3 ms for a bare page, and the cost did not change between a 900x600 and a 2400x1350 window. Count drawn frames before anything else: the cheapest frame is the one that is never drawn. An idle window drawing 60 frames a second is the finding; per-pixel tricks are not.
  • Effects nobody can see still cost. A backdrop-filter under an opaque fill draws nothing, yet it makes the compositor build render surfaces every frame and pins GPU memory. List every blurred element with its own background alpha; an alpha of 1 is a blur that cannot show.
  • Wake-ups come from timers, not just frames. A 400 ms poll that checks for a change woke one idle page 20 times in 8 seconds; reacting to the event instead woke it once. The census in frame-probe.mjs names the caller of every timer and animation frame that fired while nothing happened.
  • The host process is profiled separately. A synchronous fsync per step, a file polled every 40 ms for each running command, or a queue of startup calls drained one at a time can stall a busy back-end while the renderer looks fine. Measure event-loop lag (a timer that records how late it fires) and take a CPU profile of that process, under the same load as the renderer phase.

React Compiler bailouts. One bailout unmemoizes a whole component, and if that component is high in the tree it re-renders on every state change below it. The usual causes are try/finally inside the component, reading a ref during render, a dynamic import() of a module also imported statically, and update expressions on variables captured in closures. Hoist the offending code to a module-level function; the compiler does not compile those. Keep a baseline file of skipped-function counts per file and fail the build when a file rises above it.

Phase 3: Fix causes, and revert what does not pay

Fix the thing the trace named, not the thing nearby that looks untidy.

Bundler chunk grouping is a trap with a high failure rate. Hand-written vendor groups produce cross-chunk edges that drag large feature chunks into the boot graph. The temptation is to rewrite the grouping. Measure the rewrite against a clean build before keeping it: in the audit this came from, the rewrite pushed 379 KB into the boot path and the problem it was meant to fix turned out to be an artifact of an incremental build. It was reverted. A change that does not pay for itself in the measurement is not a change, however clever the reasoning was.

Keep the look: throttle, do not delete, and prove it with pixels

"Faster without losing a feature" includes how it looks. Two rules keep it honest:

  • Throttle what moves; do not remove it. Removing an animation is a feature cut. Step long or looping animations onto one shared clock instead (for example 30 frames a second in front, 10 behind another window, using steps() timing and a start time snapped to the tick) so every loop stays visible and the compositor skips the frames whose value did not change. Animate a wrapper rather than an <svg> (an animated SVG is never composited), and fade a pseudo-element rather than animating box-shadow.
  • A change that should be invisible is proved invisible. look-equivalence.mjs freezes motion, screenshots each of the profile's looks, applies the change, screenshots again, removes it, and screenshots a third time for the noise floor. The change passes only if it alters no more pixels than the untouched repeat did. Run it in light and dark, and with the state that shows the effect (a focused field, an open menu). It writes the before, the after and a red change mask when a state fails.

Framework upgrades are measured like everything else. Pin them to the one app under test rather than a shared catalog when other surfaces in the repo would be affected mid-flight. Read the release notes for the thing you are actually fixing: a minor that batches resize-driven updates to the next frame is relevant to a layout-thrash finding; most of the rest is not.

Phase 4: Measure bundles from the graph, never from the directory

Summing every file in the output directory is wrong twice over. Incremental builds leave stale hashed chunks behind, so the total counts files no shipped page loads; and it treats a lazily-loaded 4 MB editor the same as the entry chunk.

Parse the built entry HTML, walk static imports for the boot-critical set, then walk every asset-path string literal for the reachable set. Modern bundlers emit lazy chunk paths in a dependency array rather than a literal import("./x.js"), so a regex for import( alone finds nothing and reports every lazy chunk as an orphan. Report boot-critical, reachable, and orphans as three separate numbers, and purge the output directory before each build so orphans mean something.

Phase 5: Every claim in the report is a check that can fail

A metric that cannot come out badly is decoration. Before you put a number in the report, ask what value would embarrass you, and confirm the harness could produce it.

The worked example: a claim that panels never show a loading skeleton, measured by a counter that only incremented while nothing ever navigated. It read zero on both sides and proved nothing. Rewritten to click through real destinations and record, per switch, whether a skeleton appeared between the click and the panel arriving, it read 3 of 3 on both sides. That is a real finding, it contradicts the stated policy, and it belongs in the report.

Phase 6: The report

One self-contained HTML file, generated by a script from the two JSON files. No network, no build step, opens from disk. Generated, never hand-written, so it cannot drift from the data. It should regenerate in one command after any re-run.

  • Lead with the honest headline. If streaming got no faster, the headline does not say streaming got faster. Derive the hero figures from the data so they cannot go stale when the numbers change.
  • Show where the time went, not just how much. A stacked bar per phase, split into style, layout, script and other, before above after on one shared scale. The shape of the bar is the finding.
  • Print the regressions in red, in the same table. Add a "phases that came out slower" block that lists them by name. A report that shows only wins is not a measurement.
  • Say which numbers to trust. Wall-clock milliseconds on a shared machine move by tens of percent between runs of the same binary; counts do not. State the observed spread, and say plainly: where a timing and a count disagree, believe the count.
  • State what the method cannot conclude. If the heap climbs monotonically, say monotonic growth is what a leak looks like, give the unchanged build's slope for comparison, and say that separating retained objects from uncollected garbage needs a heap-snapshot diff this suite does not take. Do not write "no leak" when what you measured is "no DOM or listener leak".
  • List every change at file:line with the evidence that motivated it, including the ones you reverted and why.

Let ensoul design the page

scripts/perf-report.mjs ships a neutral dark theme so it works in any repo on day one. When the project has a design_system/ folder, the report should look like the product, not like a tool:

  1. Read design_system/README.md, then worlds-and-color.md and type-layout-scale.md.
  2. Replace the :root block in the generator with that project's tokens: paper, ink, ink-soft, rule, the brand colour and the status colours. The generator already uses four segment colours and three text weights, so it is a direct swap.
  3. Use the brand colour for this product's bars and a muted ink for the comparison, the same rule ensoul gives charts.
  4. Check it the way ensoul checks a page: screenshot at 390, 1440 and 3440 wide, in dark and light, and confirm no number wraps and no bar overflows its track.
  5. If the project has no design_system/ and the user wants the report to carry the brand, run ensoul phase 1 and 2 only (understand the product, pick tokens) and stop there. A full redesign is not part of a performance audit.

Either way the page stays a page, not a dump: one type family for prose and one for figures so columns align, generous space, no decoration that is not a number. Tables only where there are three or more things to compare on two or more dimensions.

Phase 7: Other platforms

The same harness, the same two builds, on each OS the app ships to. Expect the harness itself to be what breaks first, and fix it for everyone rather than special-casing:

  • Build a file:// URL with pathToFileURL, never string concatenation. file://C:\... is not a URL.
  • Seed the config home (Phase 1). A clean machine stops on the first-run screen; your machine does not, because it has your real config.
  • Some package managers use directory junctions that the platform's own shell refuses to traverse. Point the runtime at an extracted distribution through its documented environment variable instead of writing inside the dependency tree.
  • Build scripts that shell out to tools missing on that box need to be invoked directly rather than through the package script.

When a platform cannot be measured in the time available, say exactly how far it got and what the remaining blocker is. "Builds and launches, stops at X, no renderer errors" is a useful result. "Not tested" and a claim that it probably works is not.

With Empryo

SoulStack comes from Empryo's creator. Every step above works in any agent; in Empryo there is more to work with, and skipping it means doing by hand what the tools already know.

  • Ask the Genome before you read anything. genome_query chains search, filter, dependents and outline in one call, so "which files import the component the trace named" is one question, not a grep loop. navigate gives callers and definitions; genome_impact tells you the blast radius of a hot file before you touch it, and cochanges names the files that historically move with it.
  • Check for the fix before writing one. api.genome.clones and identifierFrequency in code_script name the near-duplicate and the canonical helper. Three components with the same dangerouslySetInnerHTML want one shared function, and the graph finds the third one you missed.
  • project runs the verification. Name the scripts so the project tool finds them (perf, perf:report, perf:trace) and run checks through it, never as raw shell lines.
  • The browser tool is a second renderer. For a web target, browser gives snapshot, eval and responsive screenshots without leaving the session, and the report can be read at 390, 1440 and 3440 before anyone else sees it.
  • Dispatch the platform runs. background_dispatch sends one worker per operating system with its own bounds while you keep working; each returns its JSON and the report merges them. Two runs never share a machine, because a benchmark measures its neighbours.
  • Memory carries the floor. Save the harness's numbers and every trap you hit as a gotcha, so the next run starts from the real baseline instead of re-deriving it. Read memory before starting: a past session already learned which phase is noisy on this machine.
  • Routines keep it honest. A nightly /routine re-runs the harness against the current build and wakes you when a count crosses its floor, which is how a fix stays fixed.

Rules

  • Measure before you change anything, with the instrument you will use afterwards. A before taken with a different method is not a before.
  • Clean build on both sides. Purge the output directory; stale chunks have produced fake regressions more than once.
  • One variable at a time where the budget allows, so each gain is attributable.
  • Never present a red number as a win. Check every sentence of the report against the JSON it claims to describe before you ship it.
  • Do not touch files another agent is editing; in a shared checkout, report the conflict and let the owner fix their own code.
  • Keep secrets, hostnames, usernames and machine addresses out of the harness, the report and the skill. Take them from environment variables or arguments.
  • The artifacts are not publishable by default. A run's JSON carries absolute paths, a DOM census and phase names from a real session, and the screenshot next to it carries whatever was on screen. Write them to a directory your repository ignores (perf/ or similar, added to .gitignore), and read the HTML before sending it anywhere.

Verify

  • Both JSON files exist, were produced by the same harness version, and their platform and repeats fields match.
  • Boot-critical and reachable bundle sizes are equal on both sides unless a bundling change was intentional and kept.
  • The leak series for DOM nodes is flat; if it is not, the cycle does not close and the heap number means nothing.
  • The soak's process footprint comes back down after the purge, and the report says which process held what.
  • Idle draws no frames the user cannot see, and every change meant to keep the look passed look-equivalence.mjs in light and dark.
  • Every figure in the HTML is interpolated from the JSON, not typed.
  • Typecheck, lint and the project's own test suite pass, and the counts of failures and compiler bailouts are no worse than before the work started.

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

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

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

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

اجعل تطبيق Electron أو تطبيق الويب أسرع بشكل ملموس من دون فقدان أي ميزة، وأثبت ذلك. ينشئ الوكيل أداة اختبار A/B قابلة للتكرار، تشغّل إصدار الإنتاج الفعلي عبر Playwright وتقرأ عدّادات Chromium نفسها عبر بروتوكول DevTools. ويحدد سبب التكلفة باستخدام تتبّع إبطال الأنماط في Blink، ومسبار لعمليات React، ومسبار للإطارات والاستيقاظ ووحدة معالجة الرسومات، بدلًا من التخمين. ثم يثبت أن الإصلاح يحافظ على المظهر بكسلًا ببكسل، ويعالج الأسباب الجذرية، ويعيد القياس بالطريقة نفسها، ويكتب تقرير HTML مستقلًا يعرض حالات التراجع بوضوح مثلما يعرض المكاسب. استخدمه عندما يطلب المستخدم تحليل الأداء أو تسريعه أو تق...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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