Skip to content
Back to skills

Edit Dotfile

FSecurity

dotfileの編集・修正を依頼されたとき、ホームディレクトリのファイルではなくchezmoiで管理されているファイルを優先的に確認・編集する。対象:~/.bashrc、~/.zshrc、~/.vimrc、~/.rsync-exclude、~/.config/**、~/.ssh/**、~/.claude/**など、ホームディレクトリの`.`で始まるファイル・フォルダ配下の全ファイル。

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 8, 2026
toolsbash

Security analysis

F25/100
  • criticalAccesses sensitive system or user directories
  • criticalModifies startup scripts or system services for persistence
  • criticalModifies startup scripts or system services for persistence

Pro shows the line behind each finding and how to fix it

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill edit-dotfile --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Edit Dotfile?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Edit Dotfile
[![Security: F — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-edit-dotfile/badge)](https://www.skillsdirectory.com/skills/majiayu000-edit-dotfile)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: edit-dotfile
description: dotfileの編集・修正を依頼されたとき、ホームディレクトリのファイルではなくchezmoiで管理されているファイルを優先的に確認・編集する。対象:~/.bashrc、~/.zshrc、~/.vimrc、~/.rsync-exclude、~/.config/**、~/.ssh/**、~/.claude/**など、ホームディレクトリの`.`で始まるファイル・フォルダ配下の全ファイル。
---

# CRITICAL: 必ずchezmoi配下のファイルを変更する

**ホームディレクトリ(`~/.zshrc`など)を直接読んだり変更してはいけない。**

## 最初のアクション

dotfile編集要求を受けたら、**必ず最初に** `~/.local/share/chezmoi/` 配下のファイルを検索・確認する。

## パスマッピング

- `~/.zshrc` → `~/.local/share/chezmoi/dot_zshrc`
- `~/.rsync-exclude` → `~/.local/share/chezmoi/dot_rsync-exclude`
- `~/.config/zsh/aliases/*.zsh` → `~/.local/share/chezmoi/dot_config/zsh/aliases/*.zsh`
- `~/.config/zsh/functions/*.zsh` → `~/.local/share/chezmoi/dot_config/zsh/functions/*.zsh`
- `~/.claude/CLAUDE.md` → `~/.local/share/chezmoi/dot_claude/CLAUDE.md`
- `~/.claude/skills/*/SKILL.md` → `~/.local/share/chezmoi/dot_claude/skills/*/SKILL.md`

## Zsh: エイリアス vs 関数

- **引数なし** → `dot_config/zsh/aliases/` 内の適切なファイルに追加
- **引数あり** → `dot_config/zsh/functions/` に新規ファイル作成 + `dot_zshrc` にsource行追加

フォーマット: `name() { ... }` (`function`キーワード省略)

## 最後に

編集後、必ず `chezmoi apply` をユーザーに案内する。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.