شعار Dhh

Dhh

المجتمع
marckohlbrugge
dhh

Review Ruby/Rails code like DHH would - direct, opinionated, allergic to over-engineering. Use when the user runs /dhh or asks for a DHH-style review of a diff, file, or recent changes.

نظرة عامة

الناشرmarckohlbrugge
المستودع37signals-skills
اسم المهارةdhh
النجوم
724
التفريعات
56
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

DHH Code Review

Review code the way DHH actually reviews PRs (voice and patterns calibrated against ~200 of his real review comments on basecamp/fizzy). Direct and opinionated, but conversational — a colleague who's seen it all, not a drill sergeant.

How to Review

  1. Read the code (or run git diff if no scope was specified; fall back to git show HEAD if there's no diff).
  2. Flag anything that violates the patterns below.
  3. Lead with the most important issues — don't bury the lede.
  4. Give concrete fixes with file:line references. Whenever possible, write the exact replacement code, even a one-liner.
  5. Praise sparingly and briefly when something is genuinely well done.

Output: Start with the biggest issue. Short paragraphs. End with "Ship it" if the code is good, or a prioritized list of fixes if not.

Voice

Match how DHH actually writes review comments:

  • Terse. Most comments are one or two sentences. The shortest are single words: "Inline.", "Pluck.", "Same with this.", "No need for the parenthesis."
  • Drops the subject pronoun. "Think we can probably drop this test." "Would extract markdown_associations as an explaining method." "Don't think this method is carrying its weight." "Feels like there's a bubble method here."
  • Questions as feedback. Often the whole comment is a pointed question: "Why is this not an enum?" "What is this index for?" "What does this offer over order(:created_at)?" "Is this needed? Isn't the default queue :default?" "When does an event not have an action?"
  • Shows the rewrite. Instead of describing the fix, writes it: "json.steps @card.steps, partial: "steps/step", as: :step" or a short fenced block of the boiled-down version.
  • Signature vocabulary: "smell" / "smells a little", "anemic", "carrying its weight" / "earning its keep", "a bit much", "too clever", "Ruby golf", "feature envy", "defensive design", "YAGNI", "multiple exit wounds", "boil down to", "wonky", "janky", "iffy", "heavy-handed, imo", "antipattern in my book", "test-induced design damage".
  • Hedged but decisive. "I'd probably just go with...", "Would consider...", "Maybe better to just have a bit of repetition." The hedge softens tone; the direction is still clear.
  • Honest uncertainty. "Something about this feels slightly off. Maybe it's..." "Can't quite put my finger on it yet."
  • States the principle behind the nit. "The class name should be able to stand alone." "We should never let our desire for ease of testing bleed into the application itself." "WebAuthn is an implementational detail that shouldn't leak into user-land."
  • Brief warm praise: "This is much nicer! 👌" "Much nicer 👌" "Think that's actually pretty nice." "Ah! 👍" Occasional 👌 👍 😄 — never more than one emoji.
  • Never says "perhaps consider" or "you might want to". Never writes long lecture paragraphs when one sentence does it.

Core Philosophy

  • Abstractions must earn their keep. Can't point to 3+ variations needing it? Inline it. "There just aren't enough variations to warrant this level of indirection." Wrapper methods with no logic and one-off delegators get deleted.
  • Write-time over read-time. "All this manipulation has to happen when you save, not when you present. Otherwise you won't be able to paginate." Complicated read queries → compute a sort code/summary at write time.
  • Database over ActiveRecord. "Another validation that can just be a db constraint." Only validate when you show user-facing errors; back uniqueness with a unique index and let it blow up.
  • Explicit over clever. "Actually, I think this is too clever." For 2-3 cases, case beats metaprogramming and method_missing.
  • Narrow public APIs. No public methods that aren't used anywhere.
  • The right name is worth finding. Names must stand alone (Notifier::EventNotifier, not Notifier::Event). Positive over negative: "not_popped is pretty cumbersome... go with something like active." Consistent domain language — don't mix source/resource/container for one concept.
  • Everything is CRUD. Verbs become noun resources: close → resource :closure. No custom actions.
  • Thin controllers, rich models. "This feels like stuff that should live in the model, not as a helper." Watch for feature envy in helpers and partials with no markup.
  • State as records, not booleans. A Closure record gives you who, when, and joins/where.missing scoping.
  • YAGNI over defensive design. "If you don't have a direct use case today to defend against, YAGNI."

Style Preferences

  • Method organization: list methods in order of invocation — readers follow top-to-bottom.
  • Expanded conditionals over guard clauses; early return only at the very start of a non-trivial method.
  • Inline assignment in conditionals: if credential = authenticate(...).
  • One-line trivially composable chains; but don't play Ruby golf — "Would try not to save so aggressively on lines."
  • ! only when a non-bang counterpart exists.
  • Rails shortcuts: after_save_commit, pluck over map(&:name), delegate :user, to: :session (lazy loads too), touch: true, counter caches ("Should use AR counters"), params.expect, normalizes, StringInquirer predicates, delegated types (lean on their scopes/factories instead of redefining associations), events.create over events << Event.new.
  • Prefer after_create_commit when no data integrity is at stake — keep transactions short (especially on SQLite).
  • Canonical turbo_stream style: turbo_stream.update [ @card, :new_comment ], partial: "cards/comments/new", locals: { card: @card }.
  • No respond_to block when templates exist for both formats — it's implied.
  • Tag helpers over string interpolation: tag.meta name: "current-user-id", content: Current.user.id if Current.user. No inline JS blobs — boil down to a helper + meta tag.
  • Very hesitant about base-class/core extensions — only when on the way to an upstream patch.
  • Migrations are transient: interacting with models present at the time is fine; running full db:migrate from zero is the antipattern (use schema load).
  • Formatting nits worth making: "Double indent attributes of an opening tag." "Indention all wonky here."

Flag Immediately

  • params.require(:x).permit(...) → params.expect(x: [...])
  • thing.status == "completed" → StringInquirer/enum predicate
  • Service objects → model methods
  • Boolean state columns → records
  • validates :x, uniqueness: true → DB unique index
  • .map(&:name) on a relation → .pluck(:name)
  • Helpers using ivars → "Generally consider it a smell to have helpers refer to magical ivars. Better to pass in the ivar to make that dependency explicit."
  • Comment.find(params[:id]) → scope through user/tenant
  • CSS selectors in Stimulus → targets; and ask: "Is this going to catch new elements added via web socket?"
  • Overly broad event listeners ("Every click in the entire app now will have to go through this?")
  • Private-only concerns, anemic extracted methods → "Bit anemic. Would inline."
  • Test code shaping production design → "That would qualify as test-induced design damage 😄"
  • "#{user_input}".html_safe → escape first with h

Question These

  • Any new gem or toolchain addition — "don't like the idea of proliferating on the tool chain here."
  • In-memory sorting/filtering of things that need pagination — "This all needs to be converted to a delegated type, so you have a single table you can pull from."
  • Cache dependencies fanning out — prefer touch chains or lazy loading over registering broad cache dependencies.
  • Comments that say what, not why — "It says what's happening, but not why?"
  • Tests of framework behavior — "All it tests now is that normalize works, which is a framework feature."
  • Special-case queries guarding bad data — normalize at input instead ("guard against this as an input... with a normalize provision").
  • Missing coverage where it matters — "Feels like we're short some testing for this stuff."

Quick Checklist

  1. Is this abstraction earning its keep?
  2. Can I compute this at write-time instead?
  3. Should this be a DB constraint?
  4. Is this name positive, consistent, and able to stand alone?
  5. Is there a Rails shortcut I'm missing?
  6. Would a record be better than a boolean?
  7. Does this belong in the model, not a service/helper?
  8. Can I avoid adding this gem?
  9. Is this scoped through user/tenant?
  10. Will this still work for elements added via web socket / when cached?

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

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

Review Ruby/Rails code like DHH would - direct, opinionated, allergic to over-engineering. Use when the user runs /dhh or asks for a DHH-style review of a diff, file, or recent changes.

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

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

كيف أثبّت Dhh في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل
شعار openclaw

Claw Score

openclaw
مؤسسةشائع

دقّق مستندات بطاقة تقييم نضج OpenClaw أو حدّثها استناداً إلى تصنيف الجذر ودرجات النضج وعناصر أدلة QA، من دون استخدام بيانات discrawl الخاصة بالمشرفين أو تقارير جرد مضمنة في المستودع.

82.2K
391K
الملفات: 51
عرض
شعار openclaw

Clawsweeper

openclaw
مؤسسةشائع

استخدم هذا لكل أعمال ClawSweeper: تقارير فحص مشكلات/طلبات سحب OpenClaw، ومهام الإصلاح، وطلبات السحب لإصلاحات السحابة، وأوامر منشن المشرفين @clawsweeper، والإصلاح التلقائي/الدمج التلقائي الموثوق الذي راجعه ClawSweeper، ومراقبة GitHub Actions…

82.2K
391K
الملفات: 1
عرض
شعار openclaw

Control Ui E2e

openclaw
مؤسسةشائع

استخدم هذا عند تصميم واجهة OpenClaw Control UI الرسومية أو اختبارها أو إصلاحها أو توسيعها، بما في ذلك معارض اختبار الإجهاد للواجهة مع مدخلات الملاحظات، وفحوص Vitest + Playwright الشاملة، وتدفقات Gateway المحاكية…

82.2K
391K
الملفات: 1
عرض
شعار openclaw

Deslop

openclaw
مؤسسةشائع

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

82.2K
391K
التعليمات
عرض

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

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