Skip to content

Instantly share code, notes, and snippets.

View valda's full-sized avatar

YAMAGUCHI Seiji valda

  • Heartland Inc.
  • Osaka, Japan
  • X @valda
View GitHub Profile
@valda
valda / SOUL.md
Last active May 9, 2026 00:46
Don't boil the ocean: a YAGNI/KISS prompt for pragmatic programmers

Don't boil the ocean: a YAGNI/KISS prompt for pragmatic programmers

A small counter-prompt to "just try harder" agent instructions. The point is not to make the model ambitious. The point is to make it finish.

## Don't boil the ocean

AI makes it cheap to expand scope. Resist this.
Break ocean-sized problems into bounded tasks. Finish the current shoreline before extending the map.
YAGNI is mandatory. KISS is mandatory. Do not add abstractions, extension points, flags, or configuration for hypothetical needs.
#!/usr/bin/env bash
# ~/.claude/burn-buffer.sh
#
# ccstatusline 用のカスタムスクリプト。
# Claude Code の5時間レート制限ウィンドウにおける消費ペースから
# 「リセットまでに枯渇するか/余裕があるか」を計算してステータスラインに表示する。
#
# 【セットアップ】
# ccstatusline の標準設定 UI から custom-command として登録するのが最も簡単:
#
@valda
valda / sankaku_complex_downloader.rb
Created April 12, 2012 15:43
Sankaku Complex 一括ダウンローダー
#!/usr/bin/env ruby
require 'rubygems'
require 'active_support'
require 'mechanize'
require 'optparse'
require 'fileutils'
Version = "1.0.0"
options = { :tag => nil, :dir => 'downloads' }
@valda
valda / MergeMorph.py
Created March 4, 2012 20:38
2つの tri ファイル内の任意のモーフをコピーしたり合成したりするスクリプト 要 pyffi 2.1.11 くらい
# -*- coding: utf-8; mode: python -*-
#
# tri ファイル間でモーフをコピーしたり、任意の比率で混ぜあわせたりするスクリプ㌧
# 要 pyffi 2.1.11 くらい、Python 2.7.2 で動作確認
#
# 使い方:
# なにもオプションを指定しなければモーフのコピーのみを行います。
# モーフの指定は "ファイル名:モーフ名" です。出力ファイル名の規定値は out.tri です
# 例) python MergeMorph.py femaleheadchargen1.tri:EyesType28 femaleheadchargen2:EyesType28
# ファイル femaleheadchargen1.tri 内のモーフ EyesType28 を femaleheadchargen2:EyesType28 にコピーし、out.tri に出力
@valda
valda / ctaddpose_to_yaml.py
Created June 9, 2011 02:57
CTAddPose 派生 mod から、ポーズ名称,kf/nif のパス等を yaml にダンプするスクリプト 要 WryeBash
# -*- mode: python; coding: utf-8-dos -*-
import sys
from optparse import OptionParser
import re
import yaml
import bosh
from bolt import GPath
parser = OptionParser(usage="usage: %prog [options] CTAddPose_Variant.esp")
@valda
valda / Helpers.cpp.patch
Created November 8, 2010 04:34
BOSS ブラウザ起動を待たずに終了するパッチ
Index: Helpers.cpp
===================================================================
--- Helpers.cpp (revision 1836)
+++ Helpers.cpp (working copy)
@@ -23,6 +23,9 @@
#include <sys/types.h>
#include <sstream>
+#if _WIN32 || _WIN64
+#include <windows.h>
@valda
valda / danbooru_downloader.rb
Created November 2, 2010 01:54
Danbooru 一括ダウンローダー
#!/usr/bin/ruby
require 'rubygems'
require 'active_support'
require 'mechanize'
require 'optparse'
require 'fileutils'
Version = "1.0.0"
options = { :tag => nil, :dir => 'downloads' }
@valda
valda / gelbooru_downloader.rb
Created November 2, 2010 01:54
Gelbooru 一括ダウンローダー
#!/usr/bin/ruby
require 'rubygems'
require 'active_support'
require 'mechanize'
require 'optparse'
require 'fileutils'
Version = "1.0.0"
options = { :tag => nil, :dir => 'downloads' }
# -*- coding: utf-8-dos; mode: python -*-
import sys
import time
from optparse import OptionParser
import bosh
from bosh import formatInteger,formatDate
from bolt import GPath
# init subsystem
bosh.initDirs()
@valda
valda / x117ify_hair_nif.py
Created October 5, 2010 02:17
nif の NiTriShape の scale を 1.17 に書き換えるだけのスクリプ㌧
# -*- coding: utf-8-dos; mode: python -*-
import sys
from optparse import OptionParser
from pyffi.formats.nif import NifFormat
parser = OptionParser(usage="usage: %prog [options] FILE")
parser.add_option("-o", dest="outfile", help="output file", default="out.nif", metavar="FILE")
parser.add_option("-q", dest="quiet", help="quiet mode", default=False)
(opts, args) = parser.parse_args(sys.argv)
if len(args) != 2: