شعار Rudder Performance Architecture Maintainer

Rudder Performance Architecture Maintainer

المجتمع
Undertone0809
rudder-performance-architecture-maintainer

استخدم هذه المهارة عندما يحتاج Rudder إلى تحسين الأداء أو البنية: بطء الصفحات، أو تكرار ظهور الهياكل العظمية، أو تعذّر الوصول إلى ذاكرة التخزين المؤقت للاستعلامات، أو تكرار جلب البيانات، أو جلب بيانات أكثر من اللازم للمؤسسات الكبيرة، أو حدود حجم البيانات المنقولة، أو مسارات API/DB المكلفة، أو الملفات كثيرة التغيير، أو الحدود المعمارية، أو القياس، أو إثبات الأداء على نطاق ZStudio.

Add to TypingMind

نظرة عامة

الناشرUndertone0809
المستودعrudder
اسم المهارةrudder-performance-architecture-maintainer
النجوم
290
التفريعات
31
الملفات المرفقة
3
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Rudder Performance Architecture Maintainer

Use this skill when the user wants Rudder to become faster, more stable, or cleaner at the architecture boundary. The default result should be evidence-led optimization that preserves product contracts, not speculative tuning.

This skill covers two related classes of work:

  • performance fixes: cache behavior, network waterfalls, repeated skeletons, slow queries, refetch loops, expensive renders, build/test slowness
  • architecture fixes: unstable boundaries, oversized modules, duplicated data paths, unclear ownership, abstractions that make performance hard to reason about

Read references/optimization-checklist.md before doing non-trivial work with this skill. When the user asks for broad optimization or know-how capture, also read references/recent-thread-signals.md.

Use When

Use this skill for requests like:

  • "为什么 dashboard 每次都骨架屏"
  • "全局看看哪里可以做缓存加速"
  • "这个页面/API 太慢,找一下瓶颈"
  • "做一版系统性能优化"
  • "数据量一大之后网页卡,给我优化前后的具体数值"
  • "用 ZStudio 同等规模的数据在 DEV 里测一下"
  • "这里是不是 query key / staleTime / invalidation 写错了"
  • "架构上有什么热点文件或边界可以优化"
  • "把这次性能优化 know how 沉淀成 skill"
  • "分析一下最近的 thread 里有没有类似性能/架构任务"

Do Not Use When

Do not use this skill when the primary task is:

  • data exists but a page shows missing, stale, sparse, or wrong data; use rudder-data-path-diagnostician-maintainer
  • a large refactor where the user explicitly wants plan plus execution as the main deliverable; use architecture-refactor-driver-maintainer
  • pure UI polish, spacing, copy, or visual QA
  • release, package, installer, or Desktop startup recovery
  • a single agent transcript or runtime failure investigation

If the task overlaps, choose the skill that matches the user's visible pain. For example, repeated skeleton loading after navigation belongs here; empty dashboard data belongs to data-path diagnosis.

Inputs

Capture or infer:

  • affected surface, route, API, service, or subsystem
  • user-visible symptom and expected improvement
  • runtime and organization when live data is involved
  • current cache, invalidation, polling, and freshness expectations
  • constraints that must remain stable: API shape, schema, org scoping, runtime contracts, UI behavior
  • acceptable validation depth for the blast radius

Evidence Ledger

Before proposing a fix, build a small evidence ledger. Keep it in your working notes unless it is useful to show the user.

markdown
| Observation | Evidence | Implication |
|---|---|---|
| Page remounts show skeleton | query key includes moving `to` timestamp | cache miss, not missing cache library |
| API is called by multiple cards | network trace or code search | candidate for shared query/prefetch |
| Service loads broad rows then filters | route/service/SQL inspection | push filter down or add index/test |

Evidence can come from code search, tests, API calls, browser/network traces, React Query Devtools-style reasoning, logs, SQL EXPLAIN, benchmarks, or profiling. Do not tune from screenshots alone.

Scale And Runtime Calibration

When live performance, production-shaped data, or user-visible slowness is part of the task, calibrate the runtime before interpreting numbers:

  • call /api/health on the target server and record instanceId, localEnv, version/build fields, and any restartRequired signal
  • prove whether the browser/dev server is running current code; restart or re-check health before treating browser evidence as current-branch proof
  • use prod-local data only as a read-only sizing reference unless the user has explicitly authorized writes to that environment
  • use dev or a disposable organization for pressure proof, implementation verification, and browser testing against current code
  • if the user asks for a testable surface, seed or create a dev org at comparable scale before measuring; tiny fixtures cannot prove large-org behavior
  • for transcript-heavy organizations, match payload shape as well as row counts: include large transcript, transcription, log, chat, heartbeat, and activity bodies when they are part of the real bottleneck
  • if a full production clone fails because of seed tooling, memory, or data shape limits, report that as a blocker and substitute a synthetic scale-equivalent dev org with the limitation stated clearly

Separate evidence classes in notes and handoffs:

  • prod-read-only baseline: current user data shape, sizing, and observed bottlenecks without mutation
  • current-code dev proof: disposable data on the branch under test, suitable for before/after timing and browser verification
  • synthetic pressure proof: generated row counts and heavy payloads that match the stress shape but are not a full clone

Workflow

1. Load Local Context

Read the minimum Rudder context needed for the surface:

  • AGENTS.md
  • doc/product/GOAL.md, doc/product/PRODUCT.md, and doc/product/README.md when the work changes behavior or architecture
  • relevant UI page/hooks/API clients, server routes/services, shared contracts, DB schema, and nearby tests

Use rg first for call sites, query keys, endpoints, invalidation keys, and hot modules.

2. Mine Recent Threads When The Task Is Broad

When the user asks for global optimization, reusable know-how, or "recent thread" analysis, inspect recent Codex threads before editing code. Look for:

  • prior performance scans and daily health checks
  • repeated slow surfaces, large payloads, or unbounded list symptoms
  • architecture decisions that moved work across UI/API/service boundaries
  • reviewer-discovered blockers, especially privacy, transactionality, and org-scoping issues
  • validation gaps caused by dev-server restarts, embedded Postgres bootstrap, or dirty shared worktrees

Use the thread evidence as hypotheses, not truth. Re-check the current code and runtime before implementing. Store durable patterns in references/recent-thread-signals.md or references/optimization-checklist.md.

3. Classify The Optimization

Pick the dominant class:

  • cache-key-instability: keys include moving timestamps, object identity, or non-canonical filters
  • freshness-policy-gap: stale time, refetch, polling, or invalidation does not match product freshness needs
  • network-waterfall: serial requests could be shared, prefetched, batched, or moved server-side
  • over-fetch: UI/API requests more data than the surface needs
  • payload-overweight: item count is bounded but each row carries large transcript, log, activity, or nested hydration bodies
  • server-hot-path: service aggregation, DB query, filesystem scan, or external process work is too expensive
  • render-hot-path: React render, memoization, virtualization, or derived state work is too expensive
  • boundary-erosion: architecture makes data ownership, caching, or performance contracts unclear
  • validation-slowness: build/test/dev loop is slow because of avoidable setup, scope, or fixture cost
  • frontend-race: a UI workflow depends on multiple ordered requests where the server should own atomicity

Name the first broken boundary. Downstream symptoms matter, but the first broken boundary is where fixes usually belong.

4. Trace The Path End To End

For UI performance, trace:

text
surface -> hook/query key -> API client -> route -> service -> DB/runtime source

For server/runtime performance, trace:

text
entrypoint -> facade/service -> query/process/filesystem -> response contract

Record:

  • query key and parameter canonicalization
  • staleTime, gcTime, placeholder data, polling, focus/reconnect behavior
  • invalidation and mutation side effects
  • endpoint path, request validators, and org scoping
  • response shape and client-side filtering/aggregation
  • latency, response bytes, item counts, and whether the response includes heavy transcript/log/activity bodies
  • expensive loops, broad scans, N+1 calls, and repeated derived computation

5. Choose The Smallest Correct Fix

Prefer behavior-preserving changes that make the real contract explicit:

  • stabilize query keys before increasing staleTime
  • canonicalize date ranges, filters, and sort options at the boundary
  • add explicit limit, page, cursor, or preview contracts to broad navigation list calls before optimizing rendering around unbounded data
  • use placeholderData, prefetch, or shared queries only when stale display is acceptable and errors remain visible
  • push filters to API/DB when the server owns the data contract
  • batch or share requests when multiple components need the same data
  • move multi-step UI writes into a narrow transactional API when partial success creates broken product state
  • introduce a facade when multiple consumers duplicate data-path or caching semantics
  • add indexes only with evidence and a migration path
  • split hot files by responsibility when that reduces real coupling or clarifies performance ownership

Avoid adding cache as a blanket cover for slow or incorrect code. Cache should encode a freshness contract, not hide broken invalidation.

When replacing broad list responses with bounded previews, state the semantic tradeoff. A preview endpoint can make navigation fast, but it is not equivalent to a full aggregate unless the server computes the aggregate separately. If offset pagination remains, name the residual skip/duplicate risk under concurrent inserts and prefer cursor semantics for high-churn lists when scope allows.

6. Add Regression Coverage

Match tests to the failure mode:

  • cache-key stability: unit-test canonical range/filter helpers
  • React Query behavior: component or hook tests for stable keys, placeholderData, and invalidation behavior
  • API/service hot path: route/service tests for filtering, org scoping, and response shape
  • DB query changes: integration tests around date/status/org boundaries
  • user-visible workflow: E2E test when the repo rules require it
  • multi-step writes: service/route tests for rollback and UI tests for the single product action

Include at least one edge case when the optimization depends on dates, org boundaries, permissions, async runtime state, or large data volume.

7. Validate And Commit

Run the narrow validation first, then the repo-appropriate baseline:

bash
pnpm lint
pnpm -r typecheck
pnpm test:run
pnpm build

For visible UI changes, verify in a browser or desktop shell and include final screenshots when useful. If a baseline command fails for unrelated reasons, report the failing suite and keep the optimization commit scoped.

Per repo rules, commit and push completed skill, performance, or architecture work. Stage only files for the current task when the worktree has unrelated changes.

8. Record Know How

When a performance or architecture investigation produces a durable rule, add it to references/optimization-checklist.md or a more specific future reference. Do not record one-off local paths, private data, or transient timings as general rules.

Decision Rules

  • Measure or trace first; optimize second.
  • Treat repeated skeletons as a cache-key/freshness problem until proven otherwise.
  • A changing now, Date, random id, object literal, or unsorted filter inside a query key is a cache miss factory.
  • Do not persist org-scoped or sensitive data outside the intended cache boundary.
  • Keep API, DB, shared types, and UI contracts synchronized.
  • Preserve organization scoping on every server-side optimization.
  • Prefer one stable abstraction over duplicated ad hoc fixes across pages.
  • Do not change product semantics during a performance refactor unless the user asked for that change and tests cover it.
  • Treat payload size as a first-class metric. JSON transfer, parse, hydration, and render pressure can dominate even when SQL timing looks acceptable.
  • Default navigation/list calls should have an explicit bounded contract: limit, cursor/page, field projection, or a documented server aggregate.
  • Do not claim current-code proof from a stale dev/prod server. Verify health, branch/build freshness, and restart state before using browser numbers.
  • Prefer synthetic scale-equivalent dev proof over unsafe prod mutation. Be explicit when the proof is not a full production clone.

Output Shape

For diagnosis:

markdown
Root cause: <classification and concrete broken boundary>

Evidence:
- ...

Optimization:
- ...

Validation:
- ...

Follow-up opportunities:
- ...

For a quantified optimization report:

markdown
Runtime calibration:
- prod-read-only baseline: <server/version/org shape or not used>
- current-code dev proof: <server/version/org shape or not used>

Measurements:
| Surface/API | Env | Before latency | After latency | Delta | Before bytes | After bytes | Delta | Items before/after |
|---|---:|---:|---:|---:|---:|---:|---:|---:|
| ... | ... | ... | ... | ... | ... | ... | ... | ... |

Interpretation:
- ...

Residual risk:
- ...

For implementation handoff:

markdown
Changed:
- ...

Why it is faster/cleaner:
- ...

Validation:
- ...

Residual risk:
- ...

Safety

  • Keep diagnosis read-only unless the user asked for implementation.
  • Never run destructive cleanup or unscoped SQL as part of performance work.
  • Do not broaden cache lifetime for sensitive, permissioned, or org-scoped data without proving the key includes the correct scope.
  • Do not remove loading, error, or empty states just to hide latency.
  • Do not stage or revert unrelated user changes.

Validation Cases

See references/eval-cases.md for trigger tests and expected behavior.

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي Rudder Performance Architecture Maintainer؟

استخدم هذه المهارة عندما يحتاج Rudder إلى تحسين الأداء أو البنية: بطء الصفحات، أو تكرار ظهور الهياكل العظمية، أو تعذّر الوصول إلى ذاكرة التخزين المؤقت للاستعلامات، أو تكرار جلب البيانات، أو جلب بيانات أكثر من اللازم للمؤسسات الكبيرة، أو حدود حجم البيانات المنقولة، أو مسارات API/DB المكلفة، أو الملفات كثيرة التغيير، أو الحدود المعمارية، أو القياس، أو إثبات الأداء على نطاق ZStudio.

لماذا تستخدم Rudder Performance Architecture Maintainer على TypingMind؟

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

كيف أثبّت Rudder Performance Architecture Maintainer في TypingMind؟

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

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Rudder Performance Architecture Maintainer؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Rudder Performance Architecture Maintainer؟

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

هل مهارة الذكاء الاصطناعي Rudder Performance Architecture Maintainer مجانية؟

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

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

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

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

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

عرض الكل

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

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