شعار Mstar Sdd

Mstar Sdd

المجتمع
btspoony
mstar-sdd

Subagent-driven development (SDD): file handoff, per-task implementer + reviewer (L2), progress ledger, review package for plan QC tri (L3), fresh or sticky session. Read under Execution mode: sdd.

نظرة عامة

الناشرbtspoony
المستودعmstar-harness
اسم المهارةmstar-sdd
النجوم
67
التفريعات
4
الملفات المرفقة
5
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Load order

Before first Read: mstar-harness-core → mstar-dispatch-gates. Path symbols → mstar-conventions ({SDD_DIR}). Plan QC after SDD → mstar-review-qc. On conflict, mstar-harness-core wins.

When to use

  • Plan locked; tasks mostly independent; PM orchestrates in-session
  • Assignment has Execution mode: sdd
  • Not for hotfix inline work (Execution mode: inline) or leaf self-dispatch

Core principle

Default: fresh implementer per ready task + task-scoped review + plan QC on the changed diff and directly affected interfaces. Execution scope → mstar-harness-core § 定向执行与验证边界.

Optional: SDD implementer session: sticky — same implementer subagent across sequential tasks on one plan/branch; task reviewers stay fresh per task. SSOT → references/sticky-implementer-session.md.

Engine check (when available): import implementerSessionStickyRules from @mstar-harness/engine in a host hook to validate the sticky resume decision above (no CLI form yet). On fail -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.

Narration: at most one short line between tool calls — ledger and file paths carry the record.

Continuous execution: do not check in with the human between tasks. Stop only for BLOCKED, genuine ambiguity, or all tasks complete.

Pre-flight plan scan

Before Task 1, scan plan once for:

  • tasks contradicting Global Constraints
  • plan-mandated items that review rubric would flag as defects

Batch all findings for the human in one message. If clean, proceed silently.

Ready-task scheduling (PM only · Decision Rules)

Dispatch independent ready tasks concurrently after L2 worktree isolation. Keep one canonical per-plan SDD root; the primary coordinator alone updates its context.json and progress.md and records row state through public plan verbs against the ACTIVE store.db-backed authority, never raw state edits. Prepare context-dependent helper outputs serially. Each writable track has its own worktree/branch and immutable task-specific absolute brief/report/diff paths. Subdirectories are artifact namespaces, not another SDD root. Parallel leaves consume supplied paths directly, never shared-context helpers or mutable checkout selectors; do not share a writable session or implementer-session.json. Use fresh parallel implementers. Serialize only actual dependencies, overlapping ownership, a sticky session or integration merge, naming the dependency. A reviewer may run alongside unrelated ready implementation. Only the coordinator reconciles returned evidence into the shared ledger and the addressed row.

Rescheduling checkpoint: a running background task is never a reason to stop scheduling. Re-run this ready-task check at the Phase-2 checkpoints named in mstar-iteration/references/phase-2-worktree-lease.md §2.4 — that file is the single authoritative home for the five checkpoint names and their reason vocabulary, and they are deliberately not re-listed here — and start every authorized independent ready task before waiting for an unrelated running task or plan. Waiting is valid only when nothing useful is ready: state the wait reason once and do not re-check or remind on unchanged facts.

Scope and credential boundary: each brief carries the inherited plan id and absolute SDD/brief/report/diff paths. Leaf implementers/reviewers receive no coordinator session file/reference, token/revision, operation id or lifecycle authority. The single primary coordinator explicitly addresses the row for ordinary progress and, after QC/QA and declared-route proof, direct complete; own current context may be derived and explicit constraints remain checked. Neither the leaf nor the coordinator invents a per-row identity, claim, transfer or preparation ceremony to advance valid recorded source/defaults.

Dependent-task readiness: review approval alone does not make a prerequisite available. PM serially integrates the reviewed prerequisite commits, then creates or updates the idle dependent worktree from that integrated state before recording its BASE_SHA and dispatching. For each required reviewed commit, record git -C "$FEATURE_CWD" merge-base --is-ancestor <prerequisite-sha> <BASE_SHA> with exit 0; a missing commit blocks only that dependent task. Do not move an active task's base; independent ready tasks continue concurrently.

Per-task loop (PM only · Workflow)

  1. Record BASE_SHA (never use HEAD~1 later)
  2. mstar sdd workspace <plan-id> → SDD_DIR(iteration L1 从 feature cwd 调用时:MSTAR_CONTROL_ROOT=<main-repo-root>(= Git 派生的主 worktree 根;Git 主 worktree 发现失败(readMainWorktree 返回 null)时 fail closed)或 mstar sdd workspace <plan-id> <main-repo-root>;显式 Git root 必须与派生主根 canonicalize 一致,integration/外来检出被拒而非静默重定向;probe 仅查 status.json 或任一 workflow snapshot 文件存在性,不校验 workflows[](这是当前发现探针,不是 ACTIVE 状态读写路由);无文件命中则回退到主根下已有 .mstar / .agents 目录,否则 .mstar,不因 linked worktree 缺文件而拒绝)
  3. mstar sdd task-brief <plan> N → brief file
  4. Dispatch implementer:
    • Copy the plan task's budget into the Assignment header field Task budget (implement / ops rounds) (canonical template → mstar-roles/references/project-manager/dispatch-and-assignment.md; one-round capacity criterion → mstar-artifacts/references/plan-quality-bar.md item 7) — header region only, before the body markers
    • SDD implementer session: fresh (default) — new subagent; templates: references/implementer-prompt.md
    • SDD implementer session: sticky — first task: same as fresh + write {SDD_DIR}/implementer-session.json with host_agent_id; later tasks: host resume + references/implementer-continuation-prompt.md (see references/sticky-implementer-session.md)
  5. On DONE: mstar sdd review-package BASE HEAD → diff file
  6. Dispatch fresh task reviewer — role code-reviewer (L2; not qc-specialist*; host fallback generic + C5b → mstar-host C5) — brief, implementer report, diff, Global Constraints, and the reviewer's own output REPORT_FILE = {SDD_DIR}/task-N-review.md — references/task-reviewer-prompt.md — never sticky resume for reviewers
  7. Fix loop for Critical/Important; re-review until approved. Then PM reads {SDD_DIR}/task-N-review.md — the always-on L2 report, never the implementer's task-N-report.md — before appending step 8: the earned Task quality and partial findings stand for the reviewed scope, but assigned review scope left uncovered blocks task-complete and dependent release, so PM routes the remaining scope through a fresh/tightened reviewer dispatch; it never overwrites an Approved earned for checked scope or invents Needs fixes because the budget ended
  8. Append progress.md and record the reviewed task with ordinary mstar plan progress under the workflow's primary coordinator and explicit plan address. Inspect the applied/replay receipt and resolve only a genuine conflict; retain applied components where the verb documents partial semantics. Keep sticky implementer-session.json last_task in sync. Never add raw snapshot writes, token copying, per-row bind or ownership transfer. Row scope/configuration/ledger semantics → mstar-artifacts/references/status-and-residuals.md; task/row integration → mstar-iteration/references/phase-2-worktree-lease.md; public parameters/recovery → mstar-use-cli/references/plan-and-workflow.md.
  9. Release dependent tasks only after reviewed prerequisite commits are present in their assigned base, per Dependent-task readiness above; independent ready tasks need not wait

Never dispatch parallel writers without isolated worktrees and disjoint ownership. Merge their outputs serially before producing the plan review-package. Serial integration merge commits use the already-configured identity; missing/failing identity is Blocked, never fabricate or use per-commit identity overrides → mstar-roles/references/_shared/leaf-executor-core.md § Git NEVER (repo writes).

Detail: references/file-handoffs.md.

Engine check (when available): run mstar sdd workspace <plan-id> / mstar sdd task-brief <plan-file> <task-number> / mstar sdd review-package <base> <head> (or import { assertBaseSha, sddWorkspace, taskBrief, reviewPackage } from "@mstar-harness/engine" in a host hook) to drive the loop steps above. On fail -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.

On dsh: implementer, reviewer and plan-QC-tri dispatches follow the mounted delegation channel — Agent Teams is the default whenever spawn_teammate is mounted (one durable teammate per writable track, reused across that track's tasks; reviewers and the tri take no roster seat and run as fresh-context workflow read-only children — template mstar-host → references/dsh-workflow-scripts.md), subagent is the fallback (where continuation resume still applies: implementer-session.json + references/implementer-continuation-prompt.md, host row → references/sticky-implementer-session.md § Host mapping), and workflow carries read-only fan-out only. Board protocol, seat budget and wake discipline are not restated here → mstar-host → references/dsh.md § Delegation channels + references/dsh-agent-teams.md.

Implementer statuses

StatusPM action
DONEreview-package → task reviewer
DONE_WITH_CONCERNSread concerns; fix scope issues before review
NEEDS_CONTEXTprovide context; re-dispatch. Budget overrun (the declared round cannot close its Files and gates) → split the task per mstar-artifacts/references/plan-quality-bar.md item 7 and re-dispatch with a fresh budget
BLOCKEDmore context, split task, or escalate human — never same-model blind retry. Budget overrun → split the task per mstar-artifacts/references/plan-quality-bar.md item 7 and re-dispatch with a fresh budget

Reviewer ⚠️ items

⚠️ Cannot verify from diff does not block other findings. PM must resolve each before task complete.

After all tasks

  1. mstar sdd review-package MERGE_BASE HEAD → branch diff in {SDD_DIR}/review/
  2. PM dispatches plan QC tri-review (L3) — QC mode: full tri-review, N=3 — with branch review-package path and report paths under {SDD_DIR}/review/ → mstar-review-qc · mstar-dispatch-gates. Layer SSOT → mstar-review-qc/references/review-responsibility-boundaries.md. PM writes {SDD_DIR}/review/qc-consolidated.md and durable main-plan gate summary. Mandatory whenever Execution mode: sdd (single-plan or iteration).
  3. Critical/Important QC findings → fix assignments partitioned by ownership/dependency, then targeted re-review. Independent fixes run concurrently; PM retains the complete findings ledger. Fix rounds run on four mechanics — the per-task fix loop applies the same (references/file-handoffs.md):
    • Unverified rounds count: a fix round without verification evidence (reviewer not confirmed / report not on disk) is not clean — re-check and count the round; never enter the convergence branch.
    • Complete ledger, scoped dispatch: PM retains every open finding, including unverified items; each fix assignment carries only its owned findings and relevant fix delta. Unrelated findings do not expand a leaf task.
    • Capped cross-round excerpt: from round ≥2, the fix dispatch attaches only relevant prior findings and dispositions (advisory caps: ~500 words per round, ~1500 total — suggested values, not hard limits).
    • Honest non-convergence: open findings at wave close → list them in detail and state the disposition — re-feed to the next fix round or transfer to residual tracking — never silently close.
  4. QA gate → mstar-harness-core Done rules and mstar-roles/references/project-manager/qa-trigger-matrix.md. Then the primary coordinator uses direct complete with QC/QA and the engine-selected route's proof: iteration verifies the already-performed serial merge; standalone development verifies its registered source; report-only consumes matching policy fulfilment recorded before Done without invented Git. Task ledger completion is not row Done, and row Done does not close the workflow or discharge its outer delivery obligations → mstar-artifacts/references/plan-workflow-lifecycle-contract.md.

Progress ledger(Evidence)

PM at start: cat {SDD_DIR}/progress.md. Tasks marked complete are DONE — do not re-dispatch after compaction.

PM appends on clean review: Task N: complete (<base>..<head>, review clean, review: task-N-review.md) — the entry names the L2 report path the review closed on.

Minor findings → ## Minor (for plan QC) section in same file.

Engine check (when available): import readProgressLedger from @mstar-harness/engine in a host hook to read the ledger above (no CLI form yet). On fail -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.

Red flags (NEVER)

  • Parallel implementers sharing a worktree, ownership, or session
  • Paste plan, diffs, or task history into dispatch prompts
  • Dispatch reviewer without diff file
  • HEAD~1 as review BASE
  • Pre-judge reviewer ("do not flag", "at most Minor")
  • Skip task review or accept missing verdict
  • Accept the L2 verdict from the message alone, or write L2 output to the implementer's task-N-report.md (the report is {SDD_DIR}/task-N-review.md)
  • Mark a task complete or release dependents while the assigned L2 review scope is uncovered
  • Re-dispatch tasks listed complete in ledger
  • PM thread implements instead of subagent dispatch
  • Sticky resume for task reviewers
  • Resume implementer without host_agent_id in implementer-session.json

CLI

The SDD helpers are engine-backed commands under mstar sdd(引擎 CLI;原 bash 脚本已移除,行为语义不变)。Run the mstar binary from any checkout; env vars MSTAR_CONTROL_ROOT / MSTAR_HARNESS_DIR / SDD_DIR are honored exactly as before.

CommandUsage
mstar sdd workspacePLAN_ID [CONTROL_ROOT] → creates {SDD_DIR} under the verified main-worktree control harness (MSTAR_CONTROL_ROOT or 2nd arg when supplied); fail closed on Git main-worktree discovery failure or a supplied Git control root that is not main. status.json / snapshot existence is only a discovery probe, with directory / .mstar fallback; explicit non-Git standalone roots remain supported
mstar sdd task-briefPLAN_FILE TASK_N [OUTFILE]
mstar sdd review-packageBASE HEAD [OUTFILE]
mstar sdd check-contextAction-seam gate against resolved SDD context; arguments and refusal recovery → command --help

Developer check evidence: mstar sdd evidence capture|verify — capture runs an already-authorized argv once and retains raw evidence; verify is read-only. Command shapes, exit meanings and role boundaries → references/file-handoffs.md § Verification evidence. mstar sdd exec stays PM-only.

References

  • references/file-handoffs.md — paths and fix-loop evidence
  • references/sticky-implementer-session.md — fresh vs sticky, ledger, host resume, micro-batch fallback
  • references/implementer-prompt.md
  • references/implementer-continuation-prompt.md
  • references/task-reviewer-prompt.md
  • mstar-artifacts/references/plan-quality-bar.md — plan self-containment standard (plans must meet this before SDD dispatch)

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

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

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

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

Subagent-driven development (SDD): file handoff, per-task implementer + reviewer (L2), progress ledger, review package for plan QC tri (L3), fresh or sticky session. Read under Execution mode: sdd.

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

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

كيف أثبّت Mstar Sdd في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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