This commit is contained in:
HarakaraSite
2026-02-11 21:55:34 +09:00
parent 7f27264673
commit 194eb292da
7 changed files with 5 additions and 5 deletions

View File

View File

0
organize_strudel.sh Normal file
View File

View File

@@ -31,7 +31,7 @@ for file in "${files[@]}"; do
# 一時ファイルに出力 # 一時ファイルに出力
tmp_file="$OUTPUT_DIR/tmp_$filename" 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 if [ $? -eq 0 ]; then
# 1行目から提案されたファイル名を抽出 # 1行目から提案されたファイル名を抽出

View File

@@ -19,12 +19,12 @@ for file in "$SOURCE_DIR"/*.md; do
filename=$(basename "$file") filename=$(basename "$file")
echo "Analyzing $filename..." echo "Analyzing $filename..."
# gemini-cli を使用してカテゴリを判定 # gemini を使用してカテゴリを判定
category=$(cat "$file" | gemini-cli "Analyze this Strudel code. category=$( (echo "Analyze this Strudel code.
Based on functions like s(), note(), fm(), degrade(), or effects like lpf(), Based on functions like s(), note(), fm(), degrade(), or effects like lpf(),
classify this into exactly one of these categories: classify this into exactly one of these categories:
'Sampling', 'Synthesis', 'Generative', 'Ambient_FX'. '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 if [ -z "$category" ]; then

View File

@@ -30,7 +30,7 @@ for file in "${files[@]}"; do
# スキルファイルをシステムプロンプトとして使用 # スキルファイルをシステムプロンプトとして使用
tmp_file="$REFACTOR_DIR/tmp_$filename" 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 if [ $? -eq 0 ]; then
# 1行目から提案されたファイル名を抽出 # 1行目から提案されたファイル名を抽出

0
strudel_refactor.md Normal file
View File