スキル一覧に戻る
tkhongsap

scicode-fix

by tkhongsap

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: scicode-fix description: Analyze and fix "ineffective" subproblems in SciCode benchmark. Classify issues as MAJOR or MINOR, apply minimal fixes to MAJOR issues. Use when "analyze subproblem", "classify issue", "fix benchmark problem", "MAJOR or MINOR", "ineffective problem". allowed-tools: Read, Write, Edit, Grep, Glob, Bash(python:*)

SciCode Subproblem Analysis & Fixing

Analyze "ineffective" subproblems in the SciCode benchmark and classify issues as MAJOR or MINOR.

The Key Question

"Can an LLM with domain expertise still produce correct code despite the issue?"

ClassificationAnswerAction
MINORYes, LLM can still solve itClassify only, no fix needed
MAJORNo, impossible to solve correctlyClassify AND apply minimal fix

Quick Decision Tree

Issue found in subproblem
        │
        ▼
Can code execute at all?
        │
        ├─ NO (TypeError, missing params) ──→ MAJOR
        │
       YES
        ↓
Is the algorithm/method unambiguous?
        │
        ├─ NO (multiple valid methods) ──→ MAJOR
        │
       YES
        ↓
Would different interpretations produce same output?
        │
        ├─ NO (different matrices/values) ──→ MAJOR
        │
       YES
        ↓
Is missing info well-known in the domain?
        │
        ├─ YES (physics constants, standard algorithms) ──→ MINOR
        │
       NO
        ↓
      MAJOR (when in doubt)

Analysis Workflow

Phase 1: Read All Components

For each subproblem, read:

  1. Subquestion text - what's being asked
  2. Function header - parameters and return types
  3. Test cases - expected behavior
  4. Step background - scientific context
  5. Expert opinions - identified issues
  6. Reviewer assessment - authoritative classification

Phase 2: Classify

Apply the decision tree to determine MAJOR or MINOR.

Phase 3: Fix (MAJOR only)

Apply the Minimal Fix Principle:

Bad ApproachGood Approach
Rewrite entire docstringJust add missing parameter
Add detailed explanationsAdd one sentence with method name
Repeat formulas from backgroundReference "as defined in background"

Phase 4: Document

Use template from TEMPLATES.md.

Phase 5: Validate Empirically

Write Python code to test your classification:

  • MAJOR: Should crash or produce different outputs
  • MINOR: Should work with domain knowledge

Components That Can Be Fixed

ComponentWhen to FixExample
Subquestion TextAdd method specification"Use explicit finite difference method"
Function HeaderFix signature mismatchAdd missing parameter
Step BackgroundFix formula typosCorrect index in recurrence
Test CasesRarely neededUsually tests are correct

Red Flags for MAJOR

  • Function has N parameters but tests call with M arguments (N ≠ M)
  • Multiple valid methods exist but none specified
  • Background shows Formula A but tests expect Formula B
  • Terms used in equations are never defined
  • Dependencies reference undefined functions

Yellow Flags for MINOR

  • Typo in physical constant (but value is well-known)
  • Variable naming inconsistency (but meaning is clear)
  • Missing edge case handling (but core algorithm works)
  • Docstring type doesn't match (but either works)

Analogies for Non-Expert Readers

Use analogies to explain issues to reviewers from other fields:

Issue TypeAnalogy
Method ambiguity"Calculate area of shape" without knowing if circle/square/triangle
Signature mismatchRecipe says "add flour" but instructions say "add flour and sugar"
Formula typoGPS coordinates with wrong sign - you end up in wrong hemisphere

Reference Files

Project Structure

scicode-benchmark/
├── analysis/                    # Your analysis work
│   ├── analysis-XX-X-*.md      # One per subproblem
│   ├── validation_test.py       # Empirical tests
│   └── LESSONS-LEARNED.md       # Learnings document
├── docs/                        # Reference materials
│   ├── SCICODE-PILOT-INSTRUCTIONS.md
│   └── subproblem-XX-X.md       # Original problem specs
└── problems/                    # Raw problem files

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です