Skip to content

New dotfiles#9

Merged
vankichi merged 1 commit into
masterfrom
new-dotfiles
Jul 10, 2026
Merged

New dotfiles#9
vankichi merged 1 commit into
masterfrom
new-dotfiles

Conversation

@vankichi

@vankichi vankichi commented Apr 6, 2026

Copy link
Copy Markdown
Owner

概要

dotfiles を現行の開発環境に合わせて全面刷新する統合 PR。大きくは以下の 4 本柱です。

  1. Neovim を coc.nvim + init.vim から lazy.nvim ベースの Lua 構成へ移行
  2. Claude Code の設定一式を claude/ として repo 管理化(agents / skills / hooks / rules)
  3. symlink 管理を XDG (~/.config) 準拠の new_link / new_clean に刷新
  4. Docker build の buildx 化と Dockerfile の簡素化

feature PR #10 (New Claude Settings)・#11 (dev loop intake skills) はこの branch に merge 済みで、本 PR に含まれます。

変更内容

1. Neovim: coc.nvim → lazy.nvim (Lua)

  • coc-settings.json / init.vim / monokai.vim / vintrc.yaml / efm-lsp-conf.yaml を削除
  • config/nvim/ に新構成を追加:
    • lua/config/ — base(基本設定)/ keymap / format / lazy(plugin manager bootstrap)
    • lua/plugins/ — lsp / coding / git / ui / util
    • after/ftplugin/ — go / lua / python / typescript / javascript の言語別設定
  • lazy-lock.json と nvim log は gitignore(機械ごとに揺れるため)

2. Claude Code 設定の repo 管理化 (claude/)

  • claude/CLAUDE.md — global instructions(~/.claude/CLAUDE.md に symlink)
  • claude/settings.json / statusline-command.sh / hooks/guard-bash.sh
  • claude/rules/ — security / performance / spec-contract(dev loop の人間–agent 契約)
  • claude/agents/ — code-refactor-advisor / dev-orchestrator / go-feature-tdd の 3 agent
  • claude/skills/ — go・rust・k8s の reference skill、commit-push-branch、work-intake、write-spec、retrospect など約 20 skill
  • claude/ja/ — 日本語版を source of truth として保持し、live 側(claude/agents claude/skills)は英訳。更新手順は claude/ja/README.md 参照
  • claude/settings.local.json は gitignore(public repo にローカル・社内設定を載せない)

3. symlink 管理の刷新 (Makefile)

  • link / cleannew_link / new_clean に置き換え
  • ~/.config 配下へ統一: tmux/tmux.confnvim(ディレクトリごと symlink)・starship.tomlsheldon/plugins.toml
  • ~/.claude 配下(CLAUDE.md / settings.json / agents / skills / hooks / rules)も new_link で一括 symlink
  • zshrc.local があれば ~/.zshrc.local に symlink(なければ skip)

4. Docker / build

  • Dockerfile: coc.nvim・zplug のインストールを削除して簡素化(zsh plugin 管理は sheldon へ移行)。tmux.conf の配置も ~/.config/tmux/ に変更
  • Makefile: docker_builddocker buildx build --platform ... --push に変更。DOCKER_BUILDER_PLATFORM は当面 linux/amd64 のみ(arm64 はコメントアウトで保留)
  • Makefile.d/version.mk: NGT の upstream repo 移転に追従(yahoojapan/NGTNGT-labs/NGT)

5. その他

  • alias: devrun~/.claude / ~/.claude.json をコンテナにマウントし、コンテナ内でも Claude Code を利用可能に
  • CLAUDE.md(repo root): この repo の構成・コマンドを Claude Code 向けに文書化
  • .gitignore: lazy-lock.json / nvim log / zshrc.local / claude/settings.local.json を追加

動作確認

make new_link    # symlink 作成 (~/.config, ~/.claude)
make new_clean   # symlink 撤去
make build       # dev image の build

🤖 Generated with Claude Code

@vankichi vankichi marked this pull request as ready for review July 10, 2026 18:22
@vankichi vankichi requested a review from Copilot July 10, 2026 18:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

dotfiles を現行開発環境に合わせて刷新し、Neovim を Lua + lazy.nvim 構成へ移行、Claude Code 設定を claude/ 配下でリポジトリ管理化、symlink 管理を XDG 準拠の new_link/new_clean に更新し、Docker ビルドを buildx 中心に再編する統合PRです。

Changes:

  • Neovim を config/nvim/ の Lua 構成(lazy.nvim + plugin 分割 + ftplugin)へ移行
  • Claude Code 設定(rules / skills / hooks / statusline など)を claude/ に集約し、symlink 対象に追加
  • Makefile の new_link/new_clean 導入と Dockerfile 群の更新(buildx・マルチアーキ対応・ツール更新)

Reviewed changes

Copilot reviewed 121 out of 122 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
zshrc.local.template ローカル上書き用の zsh 環境変数テンプレ追加
vintrc.yaml vint 設定削除(Neovim 構成刷新に伴う)
versions/TENSORFLOW_C_VERSION TensorFlow C バージョン更新
versions/NGT_VERSION NGT バージョン更新
versions/GO_VERSION Go バージョン更新
tmux.conf XDG 配下への移動、キー/端末設定の更新
starship.toml Starship 設定を大幅刷新
Makefile.d/version.mk NGT upstream 移転に追従
Makefile new_link/new_clean 追加、buildx ベースの build に更新
gitignore グローバル gitignore の追記
gitconfig GPG signing key 更新
efm-lsp-conf.yaml efm-langserver 設定削除
editorconfig インデント/対象パターンの調整
dockers/rust.Dockerfile Rust ツール群の更新(starship 追加など)
dockers/go.Dockerfile buildx 前提の GO ダウンロードを arch/OS 可変に
dockers/env.Dockerfile Neovim/NGT/Node ツール等のセットアップ更新(arch 分岐追加)
dockers/docker.Dockerfile trivy pin・slimtoolkit 周辺の更新
dockers/base.Dockerfile xsel 追加などベースパッケージ更新
Dockerfile 最終イメージから coc/zplug を除去し XDG 配置へ寄せる
config/sheldon/plugins.toml Sheldon 設定追加(zsh plugin 管理移行)
config/nvim/lua/plugins/util.lua Telescope 等のユーティリティ系 plugin 定義追加
config/nvim/lua/plugins/ui.lua UI 系 plugin 定義追加(colorscheme, lualine, neo-tree, noice 等)
config/nvim/lua/plugins/git.lua gitsigns 定義追加
config/nvim/lua/plugins/coding.lua Comment/autopairs/Copilot 系 plugin 定義追加
config/nvim/lua/config/lazy.lua lazy.nvim bootstrap + LSP キーマップ等の基本設定
config/nvim/lua/config/keymap.lua キーマップと FileType ごとの簡易インデント設定追加
config/nvim/lua/config/format.lua :Format コマンド追加(ft ごとの client 絞り込み)
config/nvim/lua/config/base.lua Neovim 基本設定・autocmd 等追加
config/nvim/init.lua 新 Lua 構成のエントリポイント追加
config/nvim/after/ftplugin/typescript.lua TypeScript ftplugin 追加
config/nvim/after/ftplugin/python.lua Python ftplugin 追加
config/nvim/after/ftplugin/lua.lua Lua ftplugin 追加
config/nvim/after/ftplugin/javascript.lua JavaScript ftplugin 追加
config/nvim/after/ftplugin/go.lua Go ftplugin 追加
coc-settings.json coc.nvim 設定削除
claude/statusline-command.sh Claude Code 用 statusline コマンド追加
claude/skills/write-spec/SKILL.md write-spec skill 追加(英訳版)
claude/skills/write-spec/references/interrogation.md write-spec の interrogation 観点追加(英訳版)
claude/skills/work-intake/SKILL.md work-intake skill 追加(英訳版)
claude/skills/work-intake/references/notion-adapter.md Notion adapter 手順追加(英訳版)
claude/skills/tech-docs-writer/SKILL.md tech-docs-writer skill 追加(英訳版)
claude/skills/tech-docs-writer/references/runbook.md runbook テンプレ追加(英訳版)
claude/skills/tech-docs-writer/references/readme.md readme テンプレ追加(英訳版)
claude/skills/tech-docs-writer/references/api.md API spec テンプレ追加(英訳版)
claude/skills/tech-docs-writer/references/adr.md ADR テンプレ追加(英訳版)
claude/skills/sync-k8s-manifest-from-code/SKILL.md manifest sync skill 追加(英訳版)
claude/skills/security-review-local/SKILL.md security audit skill 追加(英訳版)
claude/skills/rust-bootstrap/SKILL.md Rust bootstrap skill 追加(英訳版)
claude/skills/retrospect/SKILL.md retrospect skill 追加(英訳版)
claude/skills/grill-me/SKILL.md grill-me skill 追加(英訳版)
claude/skills/claude-session-jsonl/references/parser-typescript.md session jsonl parser 参考追加(TS/英訳版)
claude/skills/claude-session-jsonl/references/parser-rust.md session jsonl parser 参考追加(Rust/英訳版)
claude/skills/claude-session-jsonl/references/parser-python.md session jsonl parser 参考追加(Python/英訳版)
claude/skills/arc42-c4/SKILL.md arc42×C4 reference skill 追加(英訳版)
claude/skills/add-rust-crate/references/tui.md TUI 雛形 reference 追加(英訳版)
claude/settings.json Claude Code 設定ファイルをリポジトリ管理化
claude/rules/spec-contract.md spec contract 追加
claude/rules/security.md security ルール追加
claude/rules/performance.md performance ルール追加
claude/hooks/guard-bash.sh Bash tool ガード hook 追加
claude/CLAUDE.md Claude Code グローバル指示追加
claude/ja/README.md 日本語 SoT 運用手順追加
claude/ja/skills/write-spec/SKILL.md write-spec(日本語原文)追加
claude/ja/skills/write-spec/references/interrogation.md interrogation(日本語原文)追加
claude/ja/skills/work-intake/SKILL.md work-intake(日本語原文)追加
claude/ja/skills/work-intake/references/notion-adapter.md notion-adapter(日本語原文)追加
claude/ja/skills/tech-docs-writer/SKILL.md tech-docs-writer(日本語原文)追加
claude/ja/skills/tech-docs-writer/references/runbook.md runbook(日本語原文)追加
claude/ja/skills/tech-docs-writer/references/readme.md readme(日本語原文)追加
claude/ja/skills/tech-docs-writer/references/api.md api(日本語原文)追加
claude/ja/skills/tech-docs-writer/references/adr.md adr(日本語原文)追加
claude/ja/skills/sync-k8s-manifest-from-code/SKILL.md manifest sync(日本語原文)追加
claude/ja/skills/security-review-local/SKILL.md security-review-local(日本語原文)追加
claude/ja/skills/retrospect/SKILL.md retrospect(日本語原文)追加
claude/ja/skills/grill-me/SKILL.md grill-me(日本語原文)追加
claude/ja/skills/claude-session-jsonl/references/parser-typescript.md session jsonl parser(日本語原文/TS)追加
claude/ja/skills/claude-session-jsonl/references/parser-rust.md session jsonl parser(日本語原文/Rust)追加
claude/ja/skills/claude-session-jsonl/references/parser-python.md session jsonl parser(日本語原文/Python)追加
claude/ja/skills/arc42-c4/SKILL.md arc42-c4(日本語原文)追加
claude/ja/skills/add-rust-crate/references/tui.md add-rust-crate TUI(日本語原文)追加
CLAUDE.md リポジトリ側の Claude Code ガイド追加
alias devrun のマウント/パスを XDG/Claude 対応に更新
.gitignore nvim lock/log・zshrc.local・claude/settings.local.json を ignore 追加

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile
Comment thread Makefile Outdated
Comment thread Makefile Outdated
Comment thread Makefile
Comment thread tmux.conf Outdated
Comment thread claude/settings.json
Comment thread config/nvim/lua/plugins/coding.lua Outdated
Comment thread dockers/env.Dockerfile
Comment thread dockers/rust.Dockerfile
Comment thread zshrc.local.template Outdated
Squash of the new-dotfiles branch (31 commits):

- migrate Neovim from coc.nvim/init.vim to lazy.nvim based Lua config
  (config/nvim with lsp/coding/git/ui plugins and per-language ftplugin)
- manage Claude Code config under claude/ (CLAUDE.md, settings.json,
  hooks, rules, 3 agents, ~20 skills; Japanese sources kept in claude/ja)
- replace link/clean with XDG-compliant new_link/new_clean targets,
  covering ~/.config and ~/.claude symlinks
- switch docker_build to docker buildx and simplify Dockerfile
  (drop coc.nvim/zplug install, move tmux.conf to ~/.config/tmux)
- follow NGT upstream move (yahoojapan/NGT -> NGT-labs/NGT)
- mount ~/.claude and ~/.claude.json into the dev container via devrun
- includes GitHub code-scanning autofixes for Makefile and nvim config,
  and a copilot fix for the env.Dockerfile npm install list

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
@vankichi vankichi requested a review from Copilot July 10, 2026 18:50
@vankichi vankichi merged commit 2843aa6 into master Jul 10, 2026
1 check passed
@vankichi vankichi deleted the new-dotfiles branch July 10, 2026 18:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 121 out of 122 changed files in this pull request and generated 8 comments.

Comment thread alias
-v $rcpath/monokai.vim:$container_home/.config/nvim/colors/monokai.vim \
-v $rcpath/tmux-kube:$container_home/.tmux-kube \
-v $rcpath/tmux.conf:$container_home/.tmux.conf \
-v $rcpath/nvim:$container_home/.config/nvim \
Comment thread Makefile.d/version.mk
@@ -13,7 +13,7 @@ version/go:
.PHONY: verison/ngt
Comment on lines +27 to +30
["ui-select"] = {
require("telescope.themes").get_dropdown({})
-- even more opts
}
Comment on lines +40 to +42
opt.visualbell = true
vim.t_vb = ""
opt.errorbells = false
Comment thread tmux.conf
Comment on lines +106 to +107
set -g default-terminal screen
set -g default-terminal "tmux-256color"
Comment thread zshrc.local.template
Comment on lines +4 to +6
export VOLTA_HOME="$HOME/.volta"
export NODE_PATH="$HOME/.volta/bin"
export PATH="$VOLTA_HOME/bin:$PATH"
vim.cmd([[colorscheme tokyonight]])
end,
},
--- bufffer line
Comment thread Dockerfile
Comment on lines 28 to 32
ENV NVIM_HOME $HOME/.config/nvim
ENV VIM_PLUG_HOME $NVIM_HOME/plugged/vim-plug
ENV LIBRARY_PATH /usr/local/lib:$LIBRARY_PATH
ENV ZPLUG_HOME $HOME/.zplug
# ENV ZPLUG_HOME $HOME/.zplug
ENV PATH $GOPATH/bin:/usr/local/go/bin:$CARGO_PATH/bin:$DART_PATH/bin:$GCLOUD_PATH/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants