commit 5
This commit is contained in:
0
.gemini/strudel_fix_and_explain.md
Normal file
0
.gemini/strudel_fix_and_explain.md
Normal file
0
fix_and_explain_strudel.sh
Normal file
0
fix_and_explain_strudel.sh
Normal file
0
organize_strudel.sh
Normal file
0
organize_strudel.sh
Normal file
@@ -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行目から提案されたファイル名を抽出
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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行目から提案されたファイル名を抽出
|
||||
|
||||
0
strudel_refactor.md
Normal file
0
strudel_refactor.md
Normal file
Reference in New Issue
Block a user