شعار Architecture Sketching

Architecture Sketching

المجتمع
andreaswasita
architecture-sketching

يحدد الأنواع والحدود قبل بدء التنفيذ.

Add to TypingMind

نظرة عامة

الناشرandreaswasita
المستودعcopilot-agents-dojo
اسم المهارةarchitecture-sketching
النجوم
54
التفريعات
15
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Architecture Sketching Skill

Defines the data shapes, public signatures, module ownership, alternatives, and invalidation conditions for a cross-boundary change before implementation begins. It produces a small design contract that implementation can test and revise. It does NOT require architecture ceremony for a local change with an obvious existing pattern.

This workflow adapts architecture-exploration ideas from Lauren Tan's pstack project, licensed under MIT, to the dojo's verification and traceability model.

When to Use

  • A change crosses a function, module, service, process, or persistence boundary.
  • A new API, event, command, schema, or shared type is being introduced.
  • Several credible designs exist and choosing one would be expensive to reverse.
  • Implementation keeps adding casts, optional fields, locks, wrappers, or special cases.
  • The user asks to architect, design, model, or decide where behavior belongs.
  • NOT for a one-file change that follows a clear local pattern without changing a contract.

Prerequisites

  • An approved problem statement or requirements package.
  • A grounded view of affected code from view, grep, glob, or codebase-onboarding.
  • plan-before-code active for multi-step work.
  • subagent-strategy available when competitive design exploration is justified.
  • A writable design location chosen by repository convention.

How to Run

text
1. Ground the current flow, constraints, and ownership.
2. Name the data shapes and illegal states.
3. Sketch public signatures and module boundaries with no implementation.
4. Compare credible alternatives and select one with a written rationale.
5. Define verification and explicit signals that would invalidate the sketch.
6. Implement against the sketch; redesign when repeated friction disproves it.

Quick Reference

ArtifactRequired content
Problem frameGoal, scope, constraints, and success predicate
Data shapesInputs, outputs, state, identity, ownership, invalid states
Contract sketchPublic types, signatures, commands, events, or endpoints
Module mapWhich component owns each decision and dependency direction
AlternativesTwo or three credible shapes, or why only one is viable
Selection rationaleTradeoff that decided the shape and what was rejected
Verification planStatic checks plus real-artifact behavior
Invalidation signalsEvidence that requires redesign instead of another patch

Keep the sketch proportional. A small change may need one page. A cross-service design may need linked diagrams or an ADR.

Procedure

Step 1: Ground the Existing System

Trace the affected path from trigger to result. Identify:

  • The boundary where external or untrusted data enters.
  • The current owner of validation, state, policy, and side effects.
  • Contracts that existing callers depend on.
  • Concurrency, retry, compatibility, and failure constraints.

Reference concrete files, symbols, requirements, or runtime evidence. Do not infer ownership from directory names alone.

If the request provides no repository or product context, keep the sketch provider-neutral and label assumptions explicitly. Do not borrow names, files, technologies, or business rules from an unrelated workspace merely because they are visible.

Step 2: Name the Data Shapes

Write the core shapes before functions:

  • Inputs and outputs.
  • Stable identifiers.
  • Valid states and state transitions.
  • Errors that callers must handle.
  • Data that is external, validated, internal, persisted, or emitted.

Prefer shapes that make invalid states unrepresentable. Validate at system boundaries, then let internal code trust the validated type.

Step 3: Sketch Contracts Without Bodies

Define only the public contract:

  • Type or schema names.
  • Function signatures.
  • API endpoints, commands, or events.
  • Dependency direction.
  • Module or service ownership.

Use pseudocode or explicit placeholders where a body would distract from the shape. The sketch should let another engineer explain how data and control move without reading an implementation.

Step 4: Explore Alternatives

When the choice is consequential and precedent is weak, use the competition mode in subagent-strategy. Ask isolated candidates for whole-design alternatives, not small variations inside one design.

Compare candidates using criteria tied to the task:

  • Correctness and illegal-state prevention.
  • Reader load and number of layers.
  • Boundary clarity.
  • Retry and idempotency behavior.
  • Migration and deletion path.
  • Ease of verification on the real artifact.

Skip competitive exploration when repository conventions or platform constraints dictate the shape. Record that reason.

Step 5: Select and Record the Contract

Choose one coherent design. Record:

  1. The selected data and module shape.
  2. The deciding tradeoff.
  3. Rejected alternatives and why they lost.
  4. Consequences and migration steps.
  5. Verification commands and runtime checks.

Use an ADR when the decision affects multiple teams, services, or future extension points. Link requirements to the chosen contract when traceability applies.

Step 6: Define Invalidation Signals

Before implementation, list evidence that would disprove the sketch:

  • Two or more unrelated callers need the same new escape hatch.
  • Internal code repeatedly needs casts or partially valid objects.
  • Callers must understand hidden implementation rules.
  • Multiple edge cases require the same special-case branch.
  • Shared state or locking appears where the sketch assumed isolation.
  • The public contract changes repeatedly during implementation.

One awkward case may be local complexity. A repeated pattern means the architecture is wrong.

Step 7: Implement Against the Sketch

Treat deviations as evidence. Record them instead of silently extending the contract. If the invalidation signals fire:

  1. Stop adding patches.
  2. Re-ground with the new evidence.
  3. Remove accidental complexity.
  4. Revise or replace the sketch.
  5. Re-run verification against the updated contract.

The sketch is a hypothesis, not a promise. Preserving a disproven design is not consistency.

Pitfalls

  • DO NOT start with classes or services before naming the data they exchange.
  • DO NOT invent project-specific context. Cite the repository evidence or keep the design generic.
  • DO NOT call a file list an architecture. Show ownership and dependency direction.
  • DO NOT create wrappers, factories, or extension points without a current requirement.
  • DO NOT preserve legacy APIs indefinitely. Plan caller migration and deletion together.
  • DO NOT serialize shared writes before asking whether the state can be separated.
  • DO NOT average incompatible candidate designs into one incoherent result.
  • DO NOT hide implementation deviations. Repeated deviations are redesign evidence.
  • DO NOT block a reversible design on human approval unless the user requested a checkpoint.

Verification

  • The sketch names inputs, outputs, states, identifiers, and errors.
  • Every project-specific claim has evidence; otherwise assumptions are explicit and generic.
  • Public signatures and module ownership are explicit.
  • Alternatives were compared, or the reason to skip was recorded.
  • Rejected options and the deciding tradeoff are documented.
  • Static and real-artifact verification are defined.
  • Invalidation signals are concrete and observable.
  • Implementation deviations are recorded and reviewed before sign-off.

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

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

يحدد الأنواع والحدود قبل بدء التنفيذ.

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

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

كيف أثبّت Architecture Sketching في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/architecture-sketching. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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