مفتوح المصدر · مفتوح المصدر · 2026

awesome-metho-docs

إطار توثيق منهجي لهندسة البرمجيات يحفظ المتطلبات ومخططات UML بجانب الشيفرة

SDLC · UML / ERD · Shell · Markdown

GitHub | Release v0.1

بطاقة عرض إصدار awesome-metho-docs v0.1 لمراحل SDLC السبعة ومصفوفة التتبع

نظرة عامة والمشكلة الهندسية

يفشل التوثيق البرمجي غالباً لأحد سببين: إما أن تُحفظ المواصفات في ملفات منفصلة عن الشيفرة فتتقادم فور بدء التطوير، أو يتخلى الفريق عن كتابة المتطلبات والنمذجة نهائياً. وفي الحالتين تنقطع سلسلة التتبع بين أهداف العمل والمعمارية واختبارات القبول.

يعالج مشروع awesome-metho-docs هذه المشكلة عبر توفير إطار توثيق منهجي لهندسة البرمجيات يعيش داخل مستودع التحكم بالإصدارات جنباً إلى جنب مع الشيفرة المصدرية، جامعاً المتطلبات الوظيفية وحالات الاستخدام ومخططات UML/ERD ومصفوفات التتبع الإداري (PM Traceability).

منهجية التوثيق كشيفرة (Docs-as-Code): التعامل مع المواصفات والمخططات ومصفوفات التتبع كملفات أساسية في المستودع يخضعها لنفس انضباط المراجعة وإدارة الإصدارات في Git.

المعمارية والقرارات التقنية

صُمم الإطار استناداً إلى المعايير الهندسية المعتمدة بدلاً من القوالب العشوائية:

  • توثيق مبني على Markdown: كتابة مواصفات المتطلبات وحالات الاستخدام ومعايير القبول بصيغة نصية واضحة تضمن عدم الاحتكار، وسهولة تتبع الفروقات في Git، وتوافقاً تاماً مع أدوات سطر الأوامر والذكاء الاصطناعي.
  • النمذجة المرئية (UML / ERD): دمج مخططات علاقات الكيانات والتسلسل والحالات والأنشطة بجانب معرفات المتطلبات لضمان وضوح المعمارية قبل البرمجة.
  • أتمتة عبر Shell: توفير سكربتات Shell لتهيئة البنية التوثيقية والتحقق من اتساق الملفات عبر المشاريع دون الحاجة لمنصات ثقيلة.
  • التتبع ثنائي الاتجاه مع إدارة المشاريع: ربط احتياجات العمل وحالات الاستخدام بالتصميم والاختبارات لمنع المتطلبات المهملة أو غير المختبرة.
المرجعية العلمية: يستند الإطار إلى مراجع معيارية راسخة تشمل PMBOK وSWEBOK وISO/IEC/IEEE 29148 وOMG UML 2.5 وMoSCoW/INVEST ونهج Given/When/Then.

دورة حياة البرمجيات وممارسات الجودة

يجسّد awesome-metho-docs مبدأ «المعمارية قبل الشيفرة» في هيكل مستودع جاهز للتطبيق:

  1. استمرارية من التحليل إلى التحقق: توحيد رحلة المتطلب من الاكتشاف والنمذجة حتى معايير القبول في مسار واحد واضح.
  2. قابلية المراجعة والتدقيق: كل تعديل على المتطلبات أو القرارات المعمارية يرتبط بسجل Git وتاريخ واضح للمراحل.
  3. إتاحة مفتوحة المصدر: منشور للعموم عبر arousi/awesome-metho-docs لمساعدة الفرق على تبنّي الصرامة الهندسية بتكلفة أدوات منخفضة.

التقنيات والمخرجات

الطبقة التقنية / المعيار الوظيفة
صيغة التأليف Markdown وثائق SRS وحالات الاستخدام وجداول التتبع النصية
النمذجة الهندسية UML / ERD مخططات الكيانات والتسلسل وسير الأنظمة
الأتمتة Shell توليد الهياكل التوثيقية وفحص اتساق المستودع
المنهجية SDLC (ISO 29148 / SWEBOK / PMBOK) حوكمة هندسية وإدارية قائمة على المعايير

أحدث إصدار: v0.1 — Methodological SDLC Documentation Framework (v0.1)

v0.1 — Methodological SDLC Documentation Framework

Initial release of Awesome SWE Methodology Docs (awesome-metho-docs), a self-contained, traceable software engineering documentation framework and repository template spanning the full Software Development Life Cycle (SDLC).


Architecture: Two-Axis Repository Layout

Every project documented with this template is organized along two complementary axes:

  1. 7-Phase SDLC Directory Hierarchy (0-planning/ – 6-testing/) — phase registries and cross-cutting governance artifacts:
    • 0-planning/: Project Charter.md, Stakeholders.md, Milestones.md, Risks.md, Decisions.md, and Issues.md.
    • 1-analysis/: Analysis.md — intake & normalization, candidate classification (FR / UC / NFR / Gap / Entity), ambiguity log, MoSCoW + INVEST checks, and traceability preview.
    • 2-requirements/: FRs.md (FRs.ods), UCs.md (UCs.ods), NFRs.md (NFR-1..NFR-9 project catalog), and README.md.
    • 3-ux/: Screens.md (UI registry), Personas.md, UserFlows.md, DesignSystem.md, Accessibility.md, UsabilityTests.md, and Wireframes/.
    • 4-design/: Entities.md (cross-module DDT registry), Full-DB-Schema.md, and Diagrams/ (ERD, sequence, state, activity, architecture + render-check.sh).
    • 5-implementation/: Traceability.md — roll-up mapping from Approved requirements to design components, implementing code/PR references, and test cases.
    • 6-testing/: TestCases.md — verification registry (TC-<Area>-NNN) linked back to FR, UC, and UI IDs.
  2. Module Detail Folders (modules/<Module>/) — cohesive per-module specifications (FR-*.md, UC-*.md, UI-*.md, and Entities.md) linked directly from the phase registries.
  3. Worked Example (example/) — complete Identity & Billing sample project demonstrating end-to-end linkage across FR-ID-001, FR-ID-002, FR-BI-001, UC-ID-Login, UC-BI-ViewInvoice, UI-ID-001, ENT-ID-001, ENT-ID-002, and TC-Login-001..003.

Traceability Spine & Canonical Schema (SCHEMA.md, LIFECYCLE.md)

  • Reciprocal End-to-End Traceability: Charter Scope -> Analysis Candidate (AN-*) -> FR / UC (+ NFR refs) -> Screen (UI-*) -> Entity / Diagram (ENT-*) -> Design Component / Code & PR Ref -> Test Case (TC-*)
  • Strict File-to-ID Alignment: One major artifact per file with matching filenames (FR-<DomainCode>-NNN.md, UC-<DomainCode>-NNN.md, UI-<DomainCode>-NNN.md) and append-only IDs.
  • Canonical Vocabulary:
    • Status: Draft | In Review | Approved | Deprecated (implementation progress is tracked via traceability links, never an Implemented status).
    • Priority: Must | Should | Could.
  • Structured Acceptance Criteria: Given/When/Then tables grounded in Equivalence Partitioning (EP), Boundary Value Analysis (BVA), Robustness Testing, and Decision Tables.

UML, ERD & Modeling Standards (ENTITY-GUIDE.md, 4-design/Diagrams/)

  • Entity Elicitation & Classification: Domain vs. non-domain elicitation gate, per-module Core / Column / Complementary classification, and attribute-level Data Dictionary Tables (Key (PK/FK/-), Data Type, Not Null (Y/N), Length, FK Table, Description).
  • Diagramming Conventions:
    • Crow's Foot ERDs (4-design/Diagrams/ERD/README.md) and explicit PlantUML relationship arrowheads (Association, Aggregation, Composition, Dependency, Generalization).
    • Mandatory companion UML state diagrams for status-bearing entities and 5-step sequence diagram derivation from Use Cases.
    • .puml / ASCII Separation + Render Gate: PlantUML sources live strictly in .puml files while Markdown documents carry human-readable ASCII diagrams; 4-design/Diagrams/render-check.sh validates every .puml via plantuml/plantuml CLI and fails if any .md contains inline @startuml blocks.

Standards Grounding, Workflow Guides & Automation

  • Engineering Standards (STANDARDS-REFERENCE.md, ANALYSIS-STANDARD.md, UX-STANDARD.md, QUALITY-GUIDE.md): Grounded in SWEBOK v4, ISO/IEC/IEEE 29148, ISO/IEC/IEEE 12207, ISO/IEC 25010, Cockburn Use Case templates, Shneiderman's Eight Golden Rules, Jakob's Law, and Fagan Inspection workflows.
  • Operational Playbooks (WORKFLOWS.md, PROMPTS.md, AGENTS.md, CLAUDE.md): Step-by-step guides for requirement intake, FR/UC authoring, entity modeling, gap analysis, and prompt patterns.
  • AI Agent Skills & CI Quality Gate:
    • .claude/skills/ (document-software-project orchestrator + doc-planning through doc-testing) and .claude/agents/ (9 phase & quality-review subagents).
    • .github/agents/ (16 domain & architecture agents), .github/prompts/, and .github/workflows/docs-quality.yml (Markdown lint + automated canonical Status/Priority and reciprocal FR <-> UC reference verification on PRs to main).