شعار Codebase Review

Codebase Review

المجتمع
timharris707
codebase-review

Run a state review of the codebase: the counterpart to adversarial-review's change review. Use before building against an upcoming spec (make the change easy first), when lanes merged since the last review cross the repo's threshold, or when lanes or the orchestrator report the code fighting them.

نظرة عامة

الناشرtimharris707
المستودعskills
اسم المهارةcodebase-review
النجوم
45
التفريعات
7
الملفات المرفقة
2
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Codebase review

A review of what the codebase is, where adversarial-review reviews what a diff changes. It hunts deepening opportunities: places where structure taxes every change that passes through. It ends only when the decider has dispositioned every surviving candidate.

This skill is the portable protocol: an entry gate, a read-only review lane of finders each named for the lens it looks through, a skeptic pass that kills candidates before the report exists, and the disposition loop. Everything repo-specific lives in binding slots the team-workflow setup interview fills: where reports land, the trigger threshold, where rejections are remembered, how the lane is run.

Read the team-workflow binding doc first. Full domain-modeling discipline (glossaries, decision records) lives in domain-memory, deliberately not here.

1. Triggers: an entry gate, never a calendar

The review runs when one of three gates opens, never on a schedule: a scheduled run reviews whatever the calendar happens to land on, and produces findings to match.

  1. Pre-feature. A spec is about to land in an area; review that area first, in the spirit of "make the change easy, then make the easy change."
  2. Lane-count threshold. N lanes have merged since the last review (N is a per-repo binding slot). Merged work is the pressure that degrades structure; the count measures the pressure.
  3. Reported friction. A lane or the orchestrator reports the code fought them: a change that should have been local sprawled, a test that could only be written past an interface. A structural cause surfaced by diagnose, the bug as symptom of a missing seam or a duplicated rule, arrives through this gate: the lane fixed the instance, and the structure is reported here.

Scope follows the trigger. Pre-feature reviews the spec's blast radius. Lane-count and friction reviews cover the areas churned since the last review, weighted by git history: recently-changed code is where deepening pays, because it is where the next change lands. Gates are not exclusive: a spec can land just as the lane count crosses N; when more than one is open, the report names them all and the scope is the union of what the open gates set. A full sweep runs only once: a repo's first-ever review, whatever gates opened it; every later run is scoped by its triggers.

2. Execution: a read-only lane

The review runs as a delegated lane, claimed and tracked like any work item; how it is launched and tracked is the executor binding slot. Its contract is read-only: it changes no code and files no tickets; its deliverable is the report, and ticket filing belongs to the disposition loop (§5).

Before any finder runs, the lane reads the repo's rejection memory (binding slot). Where the slot points at the domain-memory home, that means reading the decision records, since a rejection carries its nature in the record's own text, not in a separate ledger. A candidate the decider rejected reopens on new evidence, never on repetition. A rerun that re-proposes a recorded rejection without new evidence has ignored the decider once and the memory twice.

Finder agents run as parallel subagents that never see each other's output: isolation is what makes two lenses landing on the same code a signal instead of an echo. Each holds one named lens from the menu, stated in the report. All five lenses run by default; a scoped run may drop a lens its scope cannot reach, naming the drop and the reason in the report:

  • shallow modules / seams: interfaces nearly as complex as the implementations behind them; seams placed where nothing varies, or missing where something does.
  • duplicated concepts: one concept implemented in several places, so one change must be made N times and is made N−1.
  • dead code: code the deletion test clears for removal: delete it and no complexity reappears anywhere.
  • boundaries-vs-reality: the declared module layout versus how change actually flows: imports that cross seams, layers honored in the diagram and bypassed in the code.
  • test-pain: code that can only be tested past its interface, and the setup-heavy tests that prove it.

The lane shapes candidates before any skeptic sees them, one claim per candidate, stated explicitly. Convergent findings, lenses making the same claim about the same code, merge into one candidate, with the convergence recorded as evidence; findings that share code but make different claims stay separate, the shared location recorded as evidence on each; bundled claims split into one candidate each. One skeptic per candidate.

Finders and the skeptic speak the shared design vocabulary defined in references/design-vocabulary.md: depth, seams, locality, the deletion test. Every claim in the report is phrased in those terms, in the codebase's own domain names.

3. The skeptic

A finder's candidate is a hypothesis. Every candidate goes to a built-in skeptic whose brief is to kill it before the report exists: a separate agent in its own context, handed the candidate and its evidence and nothing of the finder's reasoning, so the kill attempt starts from the code rather than from the argument: re-read the code, reproduce the claimed behavior read-only where possible, find the second caller that makes the "duplicate" a real seam, the constraint that explains the "shallow" wrapper, the test that already covers the pain. Only candidates the skeptic fails to kill reach the report. A kill can be partial: where the skeptic kills legs but the core stands, the corrections fold into the survivor's write-up, so the decider reads skeptic-hardened claims, not finder enthusiasm.

Survival is the only grade. A finder ranking its own findings as strong, worth exploring, or speculative is grading its own homework; the skeptic's failed kill is evidence, a badge is a mood.

4. The report

Plain markdown, posted on the tracker item the binding names. It carries:

  • Every open gate, the scope they set, and any dropped lens with the reason its scope could not reach it.
  • Deferred candidates from the previous run, at the top: deferral means carried forward, not quietly dropped.
  • Each survivor: the claim, the evidence (files and lines), the skeptic's attempted kill and why it failed, the estimated cost, and the payoff in locality and leverage terms.
  • Zero survivors is a verdict, stated as a success: "the codebase is fine": the finders looked, the skeptic held the bar, and nothing survived. A review that must produce findings to feel finished manufactures them.

5. The disposition loop

The run is not finished at report time: an undispositioned report is a review that changed nothing. The orchestrator (or whoever ran the review) presents every survivor to the decider as a structured question card, grilling-style: the claim, the skeptic's verdict, cost and payoff, with the recommendation marked on an option; numbered-text fallback where no card tool exists. The decider dispositions each:

  • Adopt: becomes a tracker ticket (to-tickets where bound: call the Skill tool with to-tickets to file it) and rides normal lane flow.
  • Reject: recorded in rejection memory with the load-bearing reason. The reason is the record's value: a future run needs to know why, so it can tell new evidence from repetition.
  • Defer: carried at the top of the next run's report, where each is re-dispositioned or re-deferred, and named in session handoffs so it survives the context boundary.

The run's tracker item closes only when nothing is undispositioned.

6. Binding slots (the setup interview fills these per-repo)

  • Report destination: the tracker item each run posts its report to and closes: a standing item, or the rule that creates one per run. It must be writable and closable: §4 posts to it and §5 closes it, so a read-only query cannot fill this slot.
  • Lane-count threshold (N): merged lanes since the last review that open gate 2.
  • Rejection memory: where rejected candidates and their load-bearing reasons live. In repos also bound to domain-memory, this slot points at its memory home and rejections land as decision records there (call the Skill tool with domain-memory to write them): one store, never two.
  • Executor mechanics: how the review lane is launched, claimed, and tracked (in repos running the orchestrate skill, its lane-launch machinery is the natural answer).

On a first run before the setup interview has filled these, the executor creates the tracker item itself and the report names the unbound slots.

Done when (checkable)

  • Every open gate is named in the report, and the scope matches: the union of what the open gates set (blast radius, churn-weighted, or first-ever full sweep).
  • Rejection memory was read before any finder ran; nothing proposed re-litigates a recorded rejection without new evidence.
  • Every finder's lens is stated; all five lenses ran, or every omitted lens is named in the report with the reason its scope could not reach it.
  • Every candidate went through the skeptic: the report contains survivors only.
  • Every survivor carries claim, file/line evidence, the attempted kill and why it failed, cost, and payoff; a zero-survivor run states the "codebase is fine" verdict.
  • Deferred candidates from the previous run appear at the top, each re-dispositioned or re-deferred.
  • Every survivor is dispositioned and the run's tracker item is closed; a disposition is adopt to a ticket, reject into memory with its reason, or defer.
  • The lane changed no code and filed no tickets itself.

Attribution

This skill is adapted from Matt Pocock's improve-codebase-architecture (MIT). The core model is his: the hunt for deepening opportunities as the unit of review, weighting attention toward recently-changed code, per-candidate cards carrying files, problem, solution, and benefits, respecting recorded rejections so reviews don't re-suggest settled ground, and grounding every suggestion in the shared design vocabulary of his codebase-design (MIT), which the references doc adapts.

What this repo changes: event triggers replace on-demand invocation, the review runs as a read-only tracked lane, finders take named lenses in parallel, a skeptic pass replaces self-graded recommendation-strength badges, the report is plain markdown on a tracker item rather than an HTML artifact, zero survivors is an explicit success verdict, and the disposition loop replaces the pick-one grilling loop: adopt / reject-into-memory / defer-and-carry, closing only when nothing is undispositioned.

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

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

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

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

Run a state review of the codebase: the counterpart to adversarial-review's change review. Use before building against an upcoming spec (make the change easy first), when lanes merged since the last review cross the repo's threshold, or when lanes or the orchestrator report the code fighting them.

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

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

كيف أثبّت Codebase Review في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/timharris707/skills/tree/main/skills/investigate/codebase-review. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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