diff --git a/.gemini/strudel_fix_and_explain.md b/.gemini/strudel_fix_and_explain.md new file mode 100644 index 0000000..e69de29 diff --git a/fix_and_explain_strudel.sh b/fix_and_explain_strudel.sh new file mode 100644 index 0000000..e69de29 diff --git a/organize_strudel.sh b/organize_strudel.sh new file mode 100644 index 0000000..e69de29 diff --git a/script/fix_and_explain_strudel.sh b/script/fix_and_explain_strudel.sh index fdbc502..94c739a 100644 --- a/script/fix_and_explain_strudel.sh +++ b/script/fix_and_explain_strudel.sh @@ -31,7 +31,7 @@ for file in "${files[@]}"; do # 一時ファイルに出力 tmp_file="$OUTPUT_DIR/tmp_$filename" - cat "$file" | gemini-cli --system "$(cat "$SKILL_FILE")" > "$tmp_file" + (cat "$SKILL_FILE"; echo ""; cat "$file") | gemini > "$tmp_file" if [ $? -eq 0 ]; then # 1行目から提案されたファイル名を抽出 diff --git a/script/organize_strudel.sh b/script/organize_strudel.sh index 288096b..d6f0251 100644 --- a/script/organize_strudel.sh +++ b/script/organize_strudel.sh @@ -19,12 +19,12 @@ for file in "$SOURCE_DIR"/*.md; do filename=$(basename "$file") echo "Analyzing $filename..." - # gemini-cli を使用してカテゴリを判定 - category=$(cat "$file" | gemini-cli "Analyze this Strudel code. + # gemini を使用してカテゴリを判定 + category=$( (echo "Analyze this Strudel code. Based on functions like s(), note(), fm(), degrade(), or effects like lpf(), classify this into exactly one of these categories: 'Sampling', 'Synthesis', 'Generative', 'Ambient_FX'. - Return only the category name as a single word.") + Return only the category name as a single word."; echo ""; cat "$file") | gemini) # カテゴリが取得できなかった場合のデフォルト if [ -z "$category" ]; then diff --git a/script/refactor_strudel.sh b/script/refactor_strudel.sh index 84fb7b1..71f0d98 100644 --- a/script/refactor_strudel.sh +++ b/script/refactor_strudel.sh @@ -30,7 +30,7 @@ for file in "${files[@]}"; do # スキルファイルをシステムプロンプトとして使用 tmp_file="$REFACTOR_DIR/tmp_$filename" - cat "$file" | gemini-cli --system "$(cat "$SKILL_FILE")" > "$tmp_file" + (cat "$SKILL_FILE"; echo ""; cat "$file") | gemini > "$tmp_file" if [ $? -eq 0 ]; then # 1行目から提案されたファイル名を抽出 diff --git a/strudel_refactor.md b/strudel_refactor.md new file mode 100644 index 0000000..e69de29