شعار Test Research Code

Test Research Code

المجتمع
ShaishavMaisuria
test-research-code

Make research code runnable and repeatable for artifact review by auditing README, dependencies, seeds, entrypoints, data instructions, result commands, and smoke tests with repro_check.py. Use for smoke tests, seed pinning, environment capture, reproducibility checks, or works-on-my-machine cleanup.

نظرة عامة

الناشرShaishavMaisuria
المستودعresearch-paper-lifecycle-skills
اسم المهارةtest-research-code
النجوم
59
التفريعات
22
الملفات المرفقة
4
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Test Research Code

Brings a research code artifact to the state an artifact-evaluation committee (ACM AE, USENIX/OSDI/SOSP, SIGMOD ARI, ETAPS, NeurIPS code release) expects: it runs, it is deterministic enough to reproduce within tolerance, its environment is captured, and a stranger can follow the README to the paper's main result. This is the code-side counterpart to preflight-check for the PDF.

It is not generic software TDD. The goal is one reliable end-to-end "does it run and roughly reproduce" path, not exhaustive unit coverage. A focused smoke test that exercises the real pipeline on a tiny input is worth more than 100 mocked unit tests.

When to use

  • The code is "works on my machine" and needs to become runnable by a stranger — no pinned env, no seeds, no obvious entrypoint, no sanity test.
  • The author asks to add a smoke/sanity test, pin seeds / make it deterministic, or capture/pin the environment before they package or hand it off.
  • An artifact-evaluation deadline is approaching and the code is not yet in testable shape — do this engineering first, then route to the siblings below.

Boundary (avoid overlap). This skill is the engineering step — tests, seeds, env capture. It does not own:

  • Packaging, badge taxonomy, archival DOI, anonymization → prepare-artifacts.
  • Whether the produced numbers actually match the paper's tables → verify-results.
  • General code cleanup/refactor → refactor-research-code. When the request is "get my code ready for the artifact track," start here for the run-ability gaps, then hand off; don't re-do their work.

Inputs

  • A path to the research-code directory (the repo or a subfolder with training/eval scripts, etc.).
  • Optionally, whether review is double-blind (so a captured env / added test does not leak author identity).
  • Optionally .paper-memory/profile.yml for positioning (a system/dataset contribution leans harder on a reusable, well-tested artifact; an empirical one on deterministic re-runs).

Process

  1. Read memory first. Read .paper-memory/lessons.md (and profile.yml if present) so you don't re-flag what the author already fixed and you lead with their recurring habits. See paper-memory-convention.md.

  2. Confirm scope. Ask whether review is double-blind (if not stated) so nothing added — a captured env, a test fixture, a notebook — leaks identity. If the author is targeting a specific artifact track, note that badge offerings and the separate artifact deadline must be re-verified live against the venue's current Call for Artifacts because they change per venue per year — but that resolution lives in prepare-artifacts. Here, just make the code testable; don't restate the badge taxonomy. Background context (badge families, the post-2020 Reproduced/Replicated swap) is in references/artifact-standards.md for awareness, not for asserting a current rule.

  3. Audit the repo (deterministic). Run the bundled script — do not hand-grep:

    python3 scripts/repro_check.py <code-dir>          # text report
    python3 scripts/repro_check.py <code-dir> --json   # machine-readable

    It reports six essentials — README, ENV (deps, pinned?), SEED, ENTRYPOINT, DATA, RESULTS_CMD — as OK / WARN / MISSING, plus whether any tests exist. This is the external, measurable signal the rest of the work is grounded in; do not substitute your own judgment of "looks reproducible". Exit code: 0 clean, 1 missing essential, 2 usage error.

  4. Close the gaps, in this order (each maps to a script finding and to references/repro-essentials.md):

    • ENV — write/repair the dependency manifest and pin exact versions. pip freeze > requirements.txt, an environment.yml, or a Dockerfile that pins a base image. Unpinned deps are the single most common reason an evaluator cannot rebuild. Capture the OS/CUDA/hardware the results were produced on.
    • SEED — set and record seeds for every RNG in play (random, numpy, framework — torch.manual_seed + torch.use_deterministic_algorithms(True), PYTHONHASHSEED). Document residual nondeterminism (GPU atomics, data-loader workers) honestly rather than hiding it.
    • ENTRYPOINT — provide one obvious command (make reproduce, run.sh, python -m pkg, a __main__ guard) that runs the pipeline end to end.
    • SMOKE/SANITY TEST — add a minimal test that runs the real pipeline on a tiny/synthetic input and asserts it completes and produces a sane shape/value. See the template in references/smoke-tests.md. One end-to-end smoke test beats broad unit coverage here.
    • DATA — give exact instructions to obtain inputs (download script, or "no external data"), with the source and a checksum where possible.
    • RESULTS_CMD — put in the README a short table of reported results and, per result, the exact command that produces it (the ML Code Completeness item). Note expected runtime and that numbers should match within tolerance, not bit-for-bit.
  5. Re-run repro_check.py until essentials are OK (or consciously WARN). Set an explicit stop condition — all essentials non-MISSING, or a hard cap of ~3 fix passes — rather than polishing open-endedly.

  6. Hosting & anonymization (advise, never act).

    • Archival hosting (Zenodo/SWHID, version-vs-concept DOI, the USENIX no-bare-GitHub rule) is owned by prepare-artifacts. Do not resolve it here — once the code is testable, flag "next step: package + deposit via prepare-artifacts" and stop.
    • Double-blind: if the repo is reviewed blind, anything you add (env file, fixture, notebook) must not reintroduce identity. Anonymization itself routes to anonymize-paper / prepare-artifacts; flag it, don't do a half job inline.
  7. Write the report and checklist to paper-workspace/submission/artifact-repro-checklist.md and append to paper-workspace/INDEX.md. Lead with what's done, then the ranked gap list, each tied to a repro_check.py finding and a concrete fix.

Output

A reviewable paper-workspace/submission/artifact-repro-checklist.md: the audit table (six essentials, OK/WARN/MISSING), the smoke-test you added or recommended, the env-capture command run, the seeds pinned, and the data/reproduce instructions — plus any actual files written into the author's repo (a tests/test_smoke.py, a pinned requirements.txt, a Makefile/run.sh). Every gap cites the script finding it came from. The checklist ends with a one-line handoff to prepare-artifacts (packaging/badge/DOI) and verify-results (do the numbers match) — it does not duplicate their work.

Adapt to your discipline

This targets CS artifact tracks (ACM/USENIX/SIGMOD/ML). For other fields: swap the env-capture for your stack's lockfile (renv.lock for R, Manifest.toml for Julia, conda for bioinformatics), and swap the seed/test idioms for your framework's. Badge/venue mapping is prepare-artifacts's job, not this skill's — here, "testable + deterministic + env captured" is field-agnostic.

Guardrails

  • Never run anything destructive, and never run untrusted experiment code to "prove" it works without the author's say-so. repro_check.py is static and read-only by design (no execution, no network). Running the artifact end-to-end is the author's call and may need a sandbox/GPU.
  • A passing checklist is necessary, not sufficient. Do not tell the author the artifact "will earn the badge" or "is reproducible" — those are the committee's findings against the live CFA, and "reproduce" everywhere means within a tolerance that doesn't change the paper's claims, never bit-exact. Use necessary-not-sufficient language.
  • Don't fabricate results or commands. The reproduce command must be one that actually exists in the repo; if it doesn't run, say so.
  • Anonymization-aware: for double-blind review, never expose author identity through the repo, commit history, or notebook metadata.
  • It checks, scaffolds, and explains; it does not submit the artifact or mint a DOI on the author's behalf.
  • references/ files stay one level deep; keep this file under 500 lines.

Memory

Uses the shared .paper-memory/ convention (full spec: paper-memory-convention.md).

  • At start: read lessons.md to skip already-fixed gaps and lead with recurring habits (e.g. "you tend to ship unpinned deps — checking that first"); read profile.yml for contribution type so the badge target is right.
  • At end: append one dated entry per recurring gap, in the canonical format, via reflect-and-improve's reflect_log.py:
    python3 ../reflect-and-improve/scripts/reflect_log.py append \
        --memory .paper-memory --skill test-research-code --scope recurring \
        --issue "experiment scripts ship without seed setting" \
        --rec "set random/numpy/framework seeds + PYTHONHASHSEED every artifact"
  • Create .paper-memory/ on demand; offer to add it to .gitignore; local-only, never uploaded.

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

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

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

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

Make research code runnable and repeatable for artifact review by auditing README, dependencies, seeds, entrypoints, data instructions, result commands, and smoke tests with repro_check.py. Use for smoke tests, seed pinning, environment capture, reproducibility checks, or works-on-my-machine cleanup.

لماذا تستخدم Test Research Code على TypingMind؟

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

كيف أثبّت Test Research Code في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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