شعار Quality Loop

Quality Loop

المجتمع
wolverin0
quality-loop

Drive a project hardening + full quality-sweep loop in an isolated worktree. Use when the user wants to harden/improve a project autonomously — security, prod-readiness, deps/CVEs, tests/coverage, dead-code, perf, a11y, ux, docs — with self-verification before anything merges to main, and clean queueing of anything that needs the operator. Trigger: /quality-loop. Runs standalone (auto-pushes verified batches) or staged under an orchestrator like /battle-test (--staged: commit only, parent controls the push). Claude-only (no codex/auto-harness); runs locally.

نظرة عامة

الناشرwolverin0
المستودعclaude-skills
اسم المهارةquality-loop
النجوم
41
التفريعات
1
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

quality-loop

Run THIS project through a hardening + quality sweep as a self-verifying loop in an isolated git worktree. You work the AUTO list, prove every change before it can reach main, and queue anything that needs a human. Minimal diffs. No rewrites. No scope creep.

/quality-loop                      # standalone: audit if needed, fix, verify, AUTO-PUSH green batches to main
/quality-loop ../crm               # a specific project path
/quality-loop --staged             # orchestrated: commit to loop branch, DO NOT push (parent pushes after its gate)
/quality-loop --from-tracks        # never run /audit; work the existing pre-seeded TRACKS.md as-is

--no-push is an alias for --staged. Default (no flag) = standalone auto-push.

Optional loop scaffold files: .loop/DRIVER.md, TRACKS.md, KICK.md.

0. Setup (isolated, from deployed main)

If the parent orchestrator hands you a worktree and base, use them. Skip this step except branch creation: work in that tree and create loop/<project> at the base SHA inside it (git switch -c loop/<project> <base>; on resume, switch to the existing branch). Do not fetch, do not branch from origin/main, and do not remove the tree: the parent still needs it for its own re-verification and removes it.

bash
git fetch origin
git worktree add ../_worktrees/<project>-loop -b loop/<project> origin/main
# gitignored; the app/build/prerender CANNOT boot without these → copy then VERIFY they landed
cp .env .env.development .env.local ../_worktrees/<project>-loop/ 2>/dev/null
ls ../_worktrees/<project>-loop/.env >/dev/null 2>&1 || echo "STOP: no .env in worktree — the gate WILL fail on every route; get real env before building"

Work entirely in that worktree. Never edit another pane's tree; never push a stale local main.

1. Get a work-list (don't re-audit if a parent pre-seeded it)

  • If TRACKS.md already exists, use it as-is — do NOT run /audit. An orchestrator (e.g. /battle-test) pre-seeds AUTO with BOTH static-audit findings AND runtime findings (authz leaks, IDOR, secrets-in-bundle, responsive fails, visual regressions). Treat those as normal AUTO items. --from-tracks makes this mandatory.
  • Only if TRACKS.md is absent (standalone): run /audit, then write it.

TRACKS.md format (stable — orchestrators parse it):

  • TRACKS.md lives at the worktree root.
  • Two sections: ## AUTO (you do + verify) and ## GATED (operator/external only).
  • Item: - [ ] T## | owns=<path[,path]> | <desc> · status markers: [ ] todo · [~] in-progress · [x] done · [!] blocked→moved to GATED. Optional trailing fields (backward compatible; a parser that ignores them still works): a [ux] tag at the start of <desc>, src=<ids>, routes=<paths>, ac=ux-findings.json#<id>. owns= and routes= take comma-separated lists. Example: - [ ] T21 | owns=src/pages/Customers.tsx,src/components/CustomerPanel.tsx | [ux] side panel when editing a customer | src=UX-H03,UX-C02 | routes=/customers | ac=ux-findings.json#UX-H03
  • AUTO worked in this order (do-no-harm-first — do not reorder): security → prod-readiness → deps/CVEs → tests/coverage → dead-code → perf → a11y → ux → docs.
  • ux = interaction, flow or visual changes the operator already chose. It enters AUTO only from an orchestrator's ux-findings.json export (the one design call that is AUTO because the operator picked it); unchosen ones stay GATED. Inside ux, honor each finding's needs order and never do both of two mutually exclusive alternatives. A finding may name a third-party design skill in skill; use it only if it is installed.

2. Iterate (one track at a time)

  1. Pick the next [ ] AUTO track in priority order. Mark it [~]. Implement the smallest diff.
  2. Run the gate (below). It must pass before you commit.
  3. Commit on loop/<project> (conventional message + T##), staging only that item's owns= paths, never the whole tree. Mark the item [x] with a one-line evidence note. Checkpoint: "Done: X. Verified: Y. Next: Z."
    • An item with ac= is not done on the gate alone (build/tests do not prove UX). After its commit it stays [~] with the note committed <sha>, awaiting ac. It becomes [x] only with an evidence note that cites that criterion (role and route checked, capture or state observed). The parent verifies it in a real browser, outside this executor: whoever fixed does not approve. A failed criterion becomes [!] plus a GATED entry. Items awaiting ac count as handled for "AUTO drained", are not counted in fixed, and are listed in the last checkpoint.
  4. Repeat.

3. Verification gate (MANDATORY before every commit — the load-bearing safety property)

npm ci
npm run lint -- --max-warnings=0
npx tsc --noEmit -p tsconfig.app.json     # + tsconfig.node.json if present
npm test                                   # test:coverage if a coverage gate exists
npm run build                              # MUST include any prerender/SSG step

A red gate blocks the commit — fix or revert, never advance on a guess. If the build's prerender fails with waitForSelector/blank pages on ALL routes, that's the missing-env gotcha — copy .env* from the main repo and rebuild (environmental, not a regression).

4. Consolidate

  • Standalone (default): when a batch is green, rebase/cherry-pick onto current origin/main, re-run the gate, then git push origin loop/<project>:main as a fast-forward.
  • Staged (--staged/--no-push): commit green batches to loop/<project> and STOP THERE — do not push to main. The parent orchestrator runs its own re-validation, then pushes the proven commit range itself. Report the commit range so it knows what to push.
  • Deploying is ALWAYS gated — never run vercel --prod (or equivalent) yourself; queue it.

5. Gated items — surface, never act

Move each to TRACKS.md → GATED with the exact action needed (mark the AUTO item [!]), and mirror the queue to gated.json next to TRACKS.md:

json
[ { "id": "T07", "item": "enable storage RLS", "needs": "Supabase support ticket / dashboard toggle", "who": "operator" } ]

Continue other AUTO items — never block the whole loop on one gated thing. (Anything needing a secret/key, support ticket, paid-plan change, key rotation, destructive history rewrite, platform-locked setting, deploy approval, or a design/product decision is GATED.)

6. Stop + machine-readable completion signal

When AUTO is drained (or a budget is hit): write quality-loop-state.json at the worktree root, then print the end token as the last line.

quality-loop-state.json:

json
{ "status": "completed|in_progress|blocked", "fixed": N, "gated": M,
  "commitRange": "<base>..<head>", "gateStatus": "green|red", "pushedToMain": true|false }

End token (final line of output, for parents that read stdout):

[QUALITY-LOOP COMPLETE: fixed=N gated=M gate=green commits=<base>..<head> pushed=<true|false>]

Self-pace long runs with /loop + ScheduleWakeup; push a progress line every ~3 min during long work.

Guardrails (don't relearn today's scars)

  • Always branch from origin/main (fetch first) unless the parent supplied a base (§0); never push a stale local main (clobbers prod).
  • git reset --hard against main is guardrail-blocked → do not rework main; start a new branch from origin/main.
  • Cherry-pick of an already-shipped commit returns "empty" (not a conflict) → git cherry-pick --skip.
  • Missing .env* in the worktree → build/prerender fails on every route. Copy it first.
  • One worktree per loop; remove it when done (git worktree remove ...) if you created it. A parent-supplied tree stays.

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

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

Drive a project hardening + full quality-sweep loop in an isolated worktree. Use when the user wants to harden/improve a project autonomously — security, prod-readiness, deps/CVEs, tests/coverage, dead-code, perf, a11y, ux, docs — with self-verification before anything merges to main, and clean queueing of anything that needs the operator. Trigger: /quality-loop. Runs standalone (auto-pushes verified batches) or staged under an orchestrator like /battle-test (--staged: commit only, parent controls the push). Claude-only (no codex/auto-harness); runs locally.

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

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

كيف أثبّت Quality Loop في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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