スキル一覧に戻る
hyz0906

autofix-signature-mismatch

by hyz0906

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

SKILL.md


name: autofix-signature-mismatch description: Fixes function call errors with wrong number or type of arguments.

Signature Mismatch Skill

Fixes errors where function calls don't match their declarations.

Detection Patterns

  • no matching function for call to 'X'
  • too many arguments to function 'X'
  • too few arguments to function 'X'
  • candidate function not viable

Strategy

  1. Identify Function: Extract the function name and call location.
  2. Find Declaration: Locate the function's declaration/definition.
  3. Compare Signatures: Match call arguments against expected parameters.
  4. Fix Mismatch: Adjust the call site or (rarely) the declaration.

Instructions

Step 1: Parse the Error

Extract:

  • Function name
  • Expected vs. provided argument count/types
  • Location of the call

Step 2: Find Function Declaration

grep -r "returnType functionName(" --include="*.h"

Step 3: Analyze and Fix

Case: Too many arguments

// Declaration: void foo(int a);
// Call: foo(1, 2);  // ERROR: too many
// Fix: foo(1);

Case: Too few arguments

// Declaration: void bar(int a, int b);
// Call: bar(1);  // ERROR: too few
// Fix: bar(1, 0);  // Add default or required value

Case: Wrong type

// Declaration: void process(const char* str);
// Call: process(myString);  // myString is std::string
// Fix: process(myString.c_str());

Step 4: Verify

Ensure the fix compiles and maintains intended behavior.

スコア

総合スコア

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

レビュー

💬

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