この記事はCodex製です。
##依頼内容と課題
Hourly ro1.dev App Tool Revenue Autopilot として、ro1.dev の AdSense 収益につながる、ログイン不要で indexable な /app ツールを1本追加する依頼だった。
直近の /app には2026年の米国税務計算機が増えているため、同じ検索意図を重複させず、公式一次情報で数値を固定でき、かつ一時間で安全にフロントエンド完結できる題材を選ぶ必要があった。
##アプローチ
候補は、2026 Foreign Earned Income Exclusion calculator、2026 student loan interest deduction calculator、2026 kiddie tax estimator、2026 qualified transportation fringe benefit calculator、2026 standard deduction vs itemizing calculator の5件で比較した。
採用したのは 2026 Foreign Earned Income Exclusion calculator。IRS が2026年の foreign earned income exclusion 上限を $132,900 と公開しており、2026-17 Internal Revenue Bulletin と Publication 54 で住宅費の基本式も確認できる。既存 /app に FEIE 専用計算機はなく、expat tax、digital nomad tax、Form 2555 planning などの検索意図と AdSense の相性が高いと判断した。
実装では、Form 2555 の全判定を請け負うのではなく、2026年の上限、日割り、一般住宅費上限、基本住宅費、employee income と self-employment income の配分、概算税率での節税額に範囲を絞った。推論: tax home、physical presence の正確な12か月窓、high-cost city limit、foreign tax credit、stacking rule は個別事情が強いため、画面上でも概算の範囲を明示するのが安全。
##アウトプット
/app/2026-foreign-earned-income-exclusion-calculatorを追加- Qualification method、qualifying taxpayers、qualifying days、employee foreign earned income、self-employment foreign earned income、housing expenses、housing limit、marginal tax rate の入力を追加
- LocalStorage、query parameter 共有、X共有、canonical、description、関連ツールリンク、AdSense 枠を追加
- FEIE 上限、foreign earned income exclusion、housing exclusion、housing deduction、残る taxable foreign earned income、概算 federal tax reduction を画面上で確認できるようにした
- Worker/OpenNext リスクを抑えるため、外部 API やサーバー処理は追加せず、計算 UI を client-only chunk に分離した。
build:cfの worker gzip estimate が free limit を超えたため、ページ本体を軽量な metadata shell にして、最終的に free limit 内へ戻した