شعار Psy Ana Reviewer

Psy Ana Reviewer

المجتمع
soupandpsy
psy-ana-reviewer

Audit a behavioral-data analysis plan or R/Python script without modifying it. Use for statistical-method review, reproducibility review, publication readiness, seeds, exclusion logging, effect sizes, multiple-comparison correction, assumptions, sensitivity analyses, figures, session information, and “检查分析代码/统计方法审查/分析脚本有没有问题”. Select the review mode from the available input and report graded findings plus a readiness label. Do not generate or fix analysis code.

نظرة عامة

الناشرsoupandpsy
المستودعamazing-psycoder-skills
اسم المهارةpsy-ana-reviewer
النجوم
38
التفريعات
1
الملفات المرفقة
1
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Analysis Code Reviewer

Version

v1.4.0 — unified evidence-gated contract, 2026-07-23. Sub-skill of amazing-psycoder.

Purpose

Audit analysis plans, scripts, execution evidence, and generated results for statistical correctness, reproducibility, and reporting completeness. Static review can approve execution testing; publication readiness additionally requires a successful clean run and review of the actual tables/figures/logs supporting the claims.

This is the analysis audit layer. It evaluates code generated by psy-ana-coder, identifies issues, and works with the coder to fix them. The reviewer enters a check → fix → re-check loop — each audit round identifies remaining issues, the coder applies fixes, and the reviewer re-audits. Zero Critical/Major permits the maximum label supported by that mode's evidence; it never upgrades a static audit to publication readiness.

Review Modes

ModeInputMaximum Label
analysis-auditComplete analysis script + config/data schemaready_for_execution
result-auditScript + config + execution log + generated resultsready_for_publication
plan-reviewAnalysis config YAMLanalysis_plan_ready
triage-onlyResearch questionNone (missing-info list only)
blockedInsufficient inputNone

Readiness Labels

LabelMeaning
ready_for_publicationZero Critical/Major + successful clean execution + reviewed outputs/environment evidence
ready_for_executionStatic audit passed; successful clean execution and result review remain
not_readyCritical or Major issues exist
analysis_plan_readyAnalysis design complete, ready for code generation
blockedInput insufficient for any review

Severity Classification

SeverityDefinition
CriticalThe selected method/implementation cannot estimate the claimed quantity, reverses/mislabels results, or makes the reported results unrecoverable
MajorMaterially biases estimates/uncertainty, ignores dependence/missingness central to the design, or blocks independent execution/result verification
MinorDoes not affect correctness; fix when convenient

Intake Protocol

Before any review, confirm the input:

ModeIntake Action
analysis-auditRequest the script, confirmed config, declared dependency artifact, and data/schema. Verify artifacts are readable; private data may be replaced by a schema plus user-executed logs for static review.
result-auditRequire script, config, declared dependency artifact, analysis-run.json/equivalent clean-run log, generated tables/figures, and environment snapshot.
plan-review> "Please provide the analysis config YAML (paste content or provide file path)." Verify the YAML structure is complete.
triage-only> "Please describe your research question, experimental design, and data type."
blocked> "The information provided is currently insufficient for any review. Please provide at least a research question description."

Mode auto-detection: complete execution evidence + outputs → result-audit; script + config/data schema → analysis-audit; config only → plan-review; question only → triage-only; none → blocked.

Review Checklist — analysis-audit

Gate 0: Quality Gate (minimum bar)

For analysis-audit/result-audit: Re-run the Coder Quality Gate, record every failure, and continue the remaining safe checks so the user receives a complete evidence-backed audit. A gate failure affects the verdict but must not truncate diagnosis.

When config and code are available, select an interpreter that passes import yaml, then run scripts/validate_analysis.py <analysis_config.yaml> --code <script> --language r|python. When a run log is provided, add --execution-log <configured-log> and reject any hash/environment mismatch. Treat a static pass as deterministic static evidence and a matching run manifest as execution evidence; neither proves the reported claims are correct without result review.

For plan-review mode: Skip Gate 0 (no script to check). Proceed directly to design-level review.

1. Statistical Validity

#CheckVerify by
1Estimand and model alignVerify outcome family, observation level, contrast, and interpretation answer the declared estimand; design labels alone do not select a model.
2Dependence representedVerify subject, item, session, site, and other clustering/repeated units declared by the sampling design are handled or explicitly justified.
3Contrasts specified correctlyAre contrast weights orthogonal? Are planned comparisons justified?
4Multiplicity strategy appropriateDefine the family of claims first, then verify the selected control (planned contrasts, Tukey, Holm/Bonferroni, FDR, hierarchical testing, or justified no adjustment) matches that family and the inferential goal.
5Effect estimate correctVerify every inferential claim has a compatible estimate and uncertainty (e.g. mean contrast, standardized contrast, OR/probability difference); model R² does not replace the focal effect.

2. Reproducibility

#CheckVerify by
1Stochastic control recordedRequire seed/backend controls only for stochastic steps; confirm config and code agree
2Session info outputgrep "sessionInfo|session_info|version"
3Runtime/dependency evidenceExact language version is checked; the declared pin/lock artifact exists, covers packages actually imported, and agrees with the clean-run environment snapshot
4Data path configurableNo hardcoded paths. Acceptable: relative paths from project root (data/subject.csv), here::here(), or path from config. Unacceptable: absolute paths (/Users/..., C:\...), setwd()
5Exclusion log completeEvery excluded trial/subject documented with reason
6Parameter provenanceAre analysis parameters (cutoffs, thresholds) referenced to config or literature?

3. Assumption Checking

#CheckVerify by
1Distribution/model diagnosticsUse diagnostics appropriate to the estimator and target (e.g. paired differences, residuals, dispersion, convergence, posterior predictive checks), not universal Shapiro tests per condition
2SphericityOnly for an ANOVA whose within-subject factor/contrast structure makes sphericity relevant; use a justified diagnostic/correction rather than a ceremonial test
3Variance structureCheck homoscedasticity/variance modeling when required by the chosen Gaussian test/model; Levene is not a universal gate
4Diagnostic responseIs the prespecified remedy appropriate to this estimator and estimand (e.g. covariance correction, alternative likelihood, robust uncertainty, sensitivity model)?

Check adaptation rules: Adjust assumption checks based on model type:

  • lmer/glmer → skip Mauchly's sphericity (not applicable); check convergence warnings + singular fit + random effects variance
  • paired t-test → inspect the distribution/robustness of paired differences (not raw condition scores)
  • aov within-subjects → check Mauchly's sphericity + Greenhouse-Geisser correction
  • glmer(binomial) → check overdispersion

4. Reporting Completeness

#CheckVerify by
1All conditions reportedEvery condition from design has descriptive stats
2Effect estimates for inferential claimsEach substantive claim has an estimate and uncertainty; diagnostic-test p-values do not require ceremonial effect sizes
3Confidence intervalsEffect sizes reported with CI, not just point estimates
4n reported per analysisAfter cleaning, how many subjects/trials per condition?
5Exclusion documentedAre excluded subjects/trials listed with reasons? Counts and percentages reported?

5. Figure Quality

#CheckVerify by
1Error bars definedSE or CI stated in caption or code
2Individual data shownFor within-subjects designs, individual data points visible
3Axes labeledClear axis titles with units
4Color-safeColorblind-friendly palette?

R Anti-Patterns

  • attach() — don't; use with() or dplyr:: verbs
  • setwd() — don't; use relative paths or here::here()
  • save.image() — don't; save specific objects with saveRDS()
  • options(stringsAsFactors = TRUE) — don't; modern R defaults to FALSE
  • summary(model)$r.squared for mixed models — wrong R²; use performance::r2()
  • Automatic Type III ANOVA without matching contrasts/hypotheses — choose sums of squares from the estimand/design, not imbalance alone

R Anti-Pattern Grep Patterns

When auditing R scripts, scan for these patterns:

#Anti-PatternGrepWhy
1attach(grep -q "attach(" script.RNamespace pollution
2setwd(grep -q "setwd(" script.RNon-reproducible
3save.image()grep -q "save\.image" script.RNon-reproducible
4summary(lmer.*r.squaredgrep -q "summary.*lmer.*r\.sq" script.RDoesn't exist
5aov() repeated measuresgrep -q "aov(" script.R + inspect formula/Error structureRequires design-aware review; not automatically wrong
6Absolute paths`grep -qE "/Users//home/

Python Anti-Patterns

  • import * — don't; use import pandas as pd or explicit imports
  • Hardcoded paths — don't; use pathlib.Path or config-driven paths
  • Missing random_state/seed on an actually stochastic function — deterministic scipy.stats tests do not require one
  • print(df) without .head() — floods output; use df.info() or print(df.head())
  • No column existence check — use assert set(expected).issubset(df.columns)
  • pd.set_option('mode.chained_assignment', None) — hides warnings; use .loc[] instead
  • No claim-compatible effect estimate — each inferential claim needs an estimate on an interpretable scale plus uncertainty; pingouin is optional and is not suitable for every model
  • Figure not saved — plt.savefig() required, not just plt.show()
  • scipy.stats.f_oneway() for within-subjects designs — use pingouin.rm_anova() instead
  • Plain statsmodels.Logit() for within-subjects binary data — use a design-appropriate, verified GLMM/GEE/Bayesian implementation; pymer4 and Bambi are examples, not universal defaults
  • scipy.stats.ttest_ind() for within-subjects — use scipy.stats.ttest_rel() or pingouin.ttest()
  • Aggregation that discards trial/item structure needed by the confirmed model — inspect intent rather than banning groupby().mean()
  • smf.ols() for repeated measures — use smf.mixedlm() with groups='subject_id'
  • pingouin.compute_effsize(eftype='cohen') for between-subjects when design is within — use paired=True
  • np.corrcoef() for within-subjects repeated measures — use pingouin.rm_corr()

Python Anti-Pattern Grep Patterns

#Anti-PatternGrepWhy
1import *grep -q "import \*" script.pyNamespace pollution
2Absolute paths`grep -qE "/Users//home/
3No saved figure despite declared figuresinspect output codeDeclared artifacts not persisted
4chained_assignmentgrep -q "chained_assignment" script.pyHides warnings
5f_oneway() within-subjectsgrep -q "f_oneway" script.py + inspect designIgnores dependence
6Plain Logit() for repeated binary trialsgrep -q "Logit(" script.py + inspect hierarchyNo random effects; use a validated GLMM/GEE implementation
7ttest_ind() within-subjectsgrep -q "ttest_ind" script.py + inspect designIgnores pairing
8smf.ols() repeated measuresgrep -q "smf.ols" script.py + inspect designIgnores dependence unless justified with another covariance estimator
9compute_effsize.*cohen no pairedinspect call and designPairing must match the estimand
10np.corrcoef() within-subjectsgrep -q "np.corrcoef" script.py + inspect designIgnores repeated measures

Scope Limitation Rule

At the start of every review output, state what was and was not reviewed:

Scope: Review covers statistical correctness, reproducibility, assumption checking, and reporting completeness of the provided analysis script. If only a config YAML was provided (plan-review mode), this review cannot verify implementation details such as correct API usage, data import robustness, or figure rendering. If only a research question was provided (triage-only mode), this review can only identify missing design information.

Note: The output format adapts to the review mode. In analysis-audit mode, include the full output below. In plan-review mode, skip Anti-Pattern Scan Results (no script to scan). In triage-only mode, output only the missing-information list.

Output Format

## Review Mode
{result-audit | analysis-audit | plan-review | triage-only | blocked}

## Scope
{What was and was not reviewed}

## Readiness Label
{ready_for_publication | ready_for_execution | not_ready | analysis_plan_ready | blocked}

## Critical Issues
- {issue} — {how to fix}

## Major Issues
- {issue} — {how to fix}

## Minor Issues
- {issue} — {how to fix}

## Anti-Pattern Scan Results
- Context-relevant patterns checked: {list}
- Findings requiring semantic inspection: {list}

## Assumption Check Results
- Distribution/model diagnostics: {results and applicability}
- Dependence/convergence/dispersion: {results and applicability}
- Prespecified fallback/sensitivity status: {results}

## Reproducibility Evidence
Exact runtime + dependency artifact: {verified/mismatch/missing}
Stochastic controls: {verified/not applicable/missing}
Session/environment info: {present/absent}
Exclusion log: {present/absent}
Relative paths: {yes/no}

## Execution and Result Evidence (result-audit only)
Command/exit/timestamps: {verified/mismatch/missing}
Config + code + dependency + input hashes: {verified/mismatch/missing}
Output inventory + hashes: {verified/mismatch/missing}
Warnings and diagnostics reviewed: {yes/no + summary}
Claim-to-table/figure trace: {verified/mismatch/missing}

## Overall Verdict
{1-2 sentence summary}

Verdict Rules

  • plan-review: complete design contract → analysis_plan_ready; otherwise not_ready/missing-information report.
  • analysis-audit: zero unresolved Critical/Major → ready_for_execution; static inspection alone cannot yield publication readiness.
  • result-audit: require successful clean execution; matching hashes for the reviewed config/code/dependency/input; reviewed output inventory, tables/figures, warnings/diagnostics and environment evidence; and zero unresolved Critical/Major. Then use ready_for_publication; report any non-claim-affecting Minor findings separately.
  • Any failed execution, result/code mismatch, or unresolved Critical/Major → not_ready.

Recovery Loop

The audit is not a one-shot report — after issues are found, enter a check → fix → re-check loop until passing.

Loop Flow

psy-ana-coder generates code
       │
       ▼
psy-ana-reviewer audits
       │
       ├── Critical/Major issues → fix (see fix paths below) → re-audit
       │                              ↑                    │
       │                              └────────────────────┘
       │                                   loop until 0 Critical + 0 Major
       │
       └── 0 Critical + 0 Major → static pass (`ready_for_execution`); only result-audit evidence can advance further

Fix Paths

Issue TypeWho FixesHow to Fix
Incorrect statistical method choicepsy-ana-designerRevise questions[].selected_method/estimand rationale → psy-ana-coder regenerates
Code implementation error (API misuse)psy-ana-coderBased on specific line numbers and correct API pointed out by reviewer, directly fix the code
Inappropriate scientific parameter/thresholdpsy-ana-designerConfirm the revised config decision → regenerate
Missing effect size / figure / environment infopsy-ana-coderAdd missing code block → reviewer re-audits
Hardcoded data pathpsy-ana-coderReplace with config-driven path → reviewer re-audits

"Round N audit: {X} issues found. After fixes, proceed to round N+1."

A re-audit is mandatory after each fix. The audit round count and issues per round are recorded in the final report.

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

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

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

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

Audit a behavioral-data analysis plan or R/Python script without modifying it. Use for statistical-method review, reproducibility review, publication readiness, seeds, exclusion logging, effect sizes, multiple-comparison correction, assumptions, sensitivity analyses, figures, session information, and “检查分析代码/统计方法审查/分析脚本有没有问题”. Select the review mode from the available input and report graded findings plus a readiness label. Do not generate or fix analysis code.

لماذا تستخدم Psy Ana Reviewer على TypingMind؟

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

كيف أثبّت Psy Ana Reviewer في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/soupandpsy/amazing-psycoder-skills/tree/main/amazing-psycoder/psy-ana-reviewer. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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