شعار Bmad Investigate

Bmad Investigate

المجتمع
aj-geddes
bmad-investigate

فرز جنائي للأخطاء والمشكلات. ينتج ملف حالة تحقيق مُصنّفًا يتضمن الأعراض والأدلة (مصنّفة A/B/C بحسب مستوى الثقة) والفرضيات المرتبة والمكوّنات المشتبه بها والاستجابة التخطيطية الموصى بها. يقتصر على التحقيق والتوثيق — ولا يصلح الشيفرة أو يشغّل الاختبارات أو ينفّذ الإصلاحات. يسلّم العمل في صورة قصة إلى أداة تطوير خارجية. استخدمها عندما يقول المستخدم: - "investigate this bug" أو "triage this issue" أو "debug triage" - "what's causing [symptom]" أو "why is [feature] broken" - "something's wrong with [component]" أو "users are reporting [problem]" - "figure out what happened" أو "root cause this" - "I need a bug report" أو "create an investigation case file" - "forensic analysis" أو "diagnose this" - "error triage" أو "issue investigation" - "what do we know about [incident/issue]" تدعم ثلاثة مقاصد: Create (إنشاء ملف حالة جديد)، وUpdate (إضافة أدلة إلى حالة مفتوحة)، وValidate (التحقق من اكتمال المسودة قبل تسليمها). تُحفظ المخرجات في bmad-output/؛ وتُعدّ مسودة قصة الإصلاح عند التسليم.

Add to TypingMind

نظرة عامة

الناشرaj-geddes
المستودعclaude-code-bmad-skills
اسم المهارةbmad-investigate
النجوم
492
التفريعات
77
الملفات المرفقة
1
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/aj-geddes/claude-code-bmad-skills/tree/main/bmad-planning-orchestrator/skills/bmad-investigate
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

BMAD Investigate

Forensic triage — plan the fix, don't apply it.

This skill builds a structured, evidence-graded investigation case file so that whoever picks up the story has a clear picture of what is known, what is suspected, and exactly what needs verifying before any code changes. It deliberately stops before implementation; the result of every investigation is a story handed off to an external dev tool.

Persona flavor: Mary (Business Analyst) frames the user impact; Winston (Architect) maps the component topology. The skill is a workflow, not a character.


Scope Law (read first)

This skill PLANS. It reads planning artifacts and existing code to gather evidence. It does NOT write application code, run tests, lint, build, or review diffs. The last artifact it emits is either an updated planning document or a story file marked status: ready-for-dev. If tempted to "fix the bug", "run the suite", or "apply the patch" — STOP. Investigate and hand off.


Inputs (load these first)

SourceWhy
bmad-output/project-context.mdProject constitution — architecture, stack, ownership
bmad-output/architecture.mdComponent boundaries, module responsibilities
bmad-output/prd.md or tech-spec.mdRequirements the broken behavior should satisfy
bmad-output/decision-log.mdPrior decisions that may relate to the issue
User-provided symptom descriptionPrimary input — what is failing, when, how
Logs / error messages the user pastes inRaw evidence to grade and analyze
Existing story files in bmad-output/stories/Check for duplicate or related work

If project-context.md does not exist, ask the user to describe the stack and affected area before proceeding.


Three Intents

Ask which intent applies if ambiguous.

  • Create — new investigation case file from scratch.
  • Update — add new evidence to an existing case file, re-rank hypotheses.
  • Validate — check a draft case file for completeness against the case-file contract.

Workflow — Create

Use TodoWrite to track progress through these steps.

Step 1 — Clarify the Symptom

Before investigating, confirm exactly what is observable. Ask (or infer from context):

  1. Symptom — what behavior is wrong? What is the expected behavior?
  2. Trigger — when does it occur? Every time? Intermittently? Under load?
  3. Scope — which users, environments, or configurations are affected?
  4. First seen — when was the issue introduced or first noticed?
  5. Severity — data loss, service outage, degraded UX, cosmetic?

Record these as the "Symptom Summary" — this is the anchor for all grading later.


Step 2 — Load Context

Read all available inputs listed above. Extract:

  • Affected components — which modules/services does the symptom implicate? (Cross-reference architecture.md for component responsibilities.)
  • Related requirements — which FR or NFR does the broken behavior touch? (Search prd.md for the area.)
  • Recent decisions — any ADR or decision-log entry touching the suspected area?
  • Similar stories — any existing story file referencing the same component?

Step 3 — Gather and Grade Evidence

Collect all available evidence. Assign each item an evidence grade:

GradeMeaning
ADirectly observed, reproducible, or confirmed by multiple independent sources. High confidence.
BSingle-source, inferred from logs, or plausible but not yet reproduced. Medium confidence.
CSpeculative, based on code reading only, or pattern-matched without direct confirmation. Low confidence.

Evidence types to gather:

  • Error messages and stack traces (paste verbatim; mark as grade A if directly from logs)
  • Reproduction steps (grade A if reliably reproduced; B if intermittent)
  • Code paths identified via Grep/Glob (grade B — code reading is inference, not proof)
  • Configuration or environment differences (grade B unless confirmed in both envs)
  • Historical changes — recent commits or PRs that touched the area (grade C without reproduction confirmation)
  • User reports or support tickets (grade B — external, non-reproducible by default)

Use Grep and Glob to search the codebase for error strings, function names, or file paths the user mentions. Read code files to trace call paths. Do NOT run the code — read it.


Step 4 — Form Hypotheses

Based on all grade-A and grade-B evidence, draft 2–5 hypotheses. For each:

  • Hypothesis — a concise statement of the suspected root cause.
  • Supporting evidence — which evidence items support it (cite grade).
  • Contradicting evidence — anything that argues against it.
  • Plausibility rank — High / Medium / Low (derived from weight of A+B evidence).
  • Verification step — what a dev agent would need to do to confirm or refute this.

Order hypotheses from most to least plausible.


Step 5 — Map Suspected Components

For each top-2 hypothesis, list:

  • Component — the module, service, or file suspected.
  • Why suspected — evidence linkage (grade + description).
  • Blast radius — what else could be affected if this hypothesis is correct?
  • Confidence — derived from the highest-grade evidence linking to this component.

Step 6 — Write the Case File

Fill the template:

${CLAUDE_PLUGIN_ROOT}/skills/bmad-investigate/templates/investigation.template.md

Save to: bmad-output/investigation-<issue-slug>-<date>.md

Use Write. Fill every {{placeholder}} from your analysis.


Step 7 — Recommend the Planning Response

After completing the case file, determine the planning response:

Option A — Create a fix story: Draft a story file using the standard story contract from bmad-epics-and-stories. The story Dev Notes MUST cite the investigation case file. Status: ready-for-dev. Naming: {epic}.{story}.{slug}.story.md in bmad-output/stories/.

Option B — Update an existing backlog story: If a related story exists in backlog, recommend updating its Dev Notes and ACs to incorporate the investigation findings. Do NOT edit the story yourself unless asked; describe what needs updating.

Option C — Escalate to planning: If the investigation reveals a systemic issue touching multiple epics, recommend that the user run /bmad-planning-orchestrator:bmad-prd or /bmad-planning-orchestrator:bmad-architecture (Update intent) before a story is created.

Tell the user which option applies and why. If creating a fix story (Option A), draft it now unless the user says otherwise.


Step 8 — Log the Decision

Append to bmad-output/decision-log.md:

## Investigation: [Issue Slug] — [Date]
- Symptom: [one sentence]
- Primary hypothesis: [one sentence]
- Primary suspected component: [name]
- Case file: bmad-output/investigation-<slug>-<date>.md
- Recommended response: [Option A/B/C + story ID if created]

Workflow — Update

  1. Read the existing case file.
  2. Ask: what new evidence has arrived?
  3. Add new evidence items with grades; re-rank hypotheses if the weight shifts.
  4. Increment the case file version in the header.
  5. If the primary hypothesis has changed, note it in the decision-log.

Workflow — Validate

Check the draft case file against this contract checklist:

  • Symptom Summary is concrete and testable (not vague)
  • Every evidence item has a grade (A / B / C)
  • At least two hypotheses are present
  • Each hypothesis has: supporting evidence, contradicting evidence, plausibility rank, verification step
  • Suspected Components section maps each component to specific evidence
  • Recommended Action is stated (Option A / B / C)
  • If Option A: a story draft exists or is clearly specified
  • Decision-log entry exists

Report pass/fail per item. Do not edit unless asked.


Evidence Grading Summary

GradeLabelTypical Sources
AConfirmedDirect logs, reproducible steps, two-source corroboration
BProbableSingle logs, code-read inference, intermittent reproduction, user reports
CSpeculativeEducated guess, pattern match, untested hypothesis only

Never promote a C to an A in the case file — the external dev agent needs to know what is solid and what is guesswork before they start.


Subagent Strategy

For large-scale investigations spanning multiple suspected components, fan out parallel read-only agents:

Agent 1 — Evidence Collector

Read the investigation brief at bmad-output/investigation-scratch/brief.md.
Search the codebase with Grep/Glob for error strings, function names, and file
paths listed. Collect stack-trace context. Write findings (verbatim excerpts +
file paths + line numbers) to bmad-output/investigation-scratch/evidence.md.
Do NOT modify any source files. Grade each item A/B/C.

Agent 2 — Component Mapper

Read bmad-output/architecture.md and the brief at
bmad-output/investigation-scratch/brief.md. For each suspected component,
extract its responsibilities, dependencies, and API contracts.
Write findings to bmad-output/investigation-scratch/components.md.

After agents complete, synthesize evidence.md + components.md into the final case file using the template. Delete scratch files after synthesis.


Reference

  • templates/investigation.template.md
  • bmad-output/decision-log.md — threaded decision record
  • bmad-output/project-context.md — project constitution
  • /bmad-planning-orchestrator:bmad-epics-and-stories — creates the fix story
  • /bmad-planning-orchestrator:bmad-readiness-check — if investigation reveals systemic planning gaps before the fix story is safe to hand off

Part of the BMAD Planning & Orchestrator plugin — a Claude Code harness for the BMAD Method by the BMAD Code Organization (https://github.com/bmad-code-org/BMAD-METHOD). Implements the spirit of bmad-investigate. All methodology credit belongs to the BMAD Code Organization.

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

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

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

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

فرز جنائي للأخطاء والمشكلات. ينتج ملف حالة تحقيق مُصنّفًا يتضمن الأعراض والأدلة (مصنّفة A/B/C بحسب مستوى الثقة) والفرضيات المرتبة والمكوّنات المشتبه بها والاستجابة التخطيطية الموصى بها. يقتصر على التحقيق والتوثيق — ولا يصلح الشيفرة أو يشغّل الاختبارات أو ينفّذ الإصلاحات. يسلّم العمل في صورة قصة إلى أداة تطوير خارجية. استخدمها عندما يقول المستخدم: - "investigate this bug" أو "triage this issue" أو "debug triage" - "what's causing [symptom]" أو "why is [feature] broken" - "something's wrong with [component]" أو "users are reporting [problem]" - "figure out what happened" أو "root cause this"...

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

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

كيف أثبّت Bmad Investigate في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/aj-geddes/claude-code-bmad-skills/tree/main/bmad-planning-orchestrator/skills/bmad-investigate. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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