dotfiles CLAUDE.md

Repository-specific instructions for a dotfiles repository, which stores personal computer settings such as shell, Git, and editor configuration and installs them with Dotbot.

In plain words
What is it for?
Use it when installing or previewing configuration links, synchronizing dotfiles, updating Vim submodules, or working on the repository's package and tool setup.
Why use it?
They describe the two-phase installation process, dry-run option, synchronization commands, and a rule not to change fish-shell files.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/magic3007/dotfiles/claude-md
Clone the repo
git clone --depth 1 https://github.com/magic3007/dotfiles
Per session 2,851 This file is loaded in full into every session.
When invoked 2,851 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.02851 $0.02851
Opus 5 $0.01425 $0.01425
Sonnet 5 $0.00570 $0.00570
Haiku 4.5 $0.00285 $0.00285

Measured yesterday against content hash c7c78d3cd2c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dotfiles CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

Dotfiles repository using Dotbot for installation. Stores configuration files and symlinks them to their standard locations (~/.zshrc, ~/.gitconfig, ~/.config/nvim, etc.).

Commands

./install              # Full installation (idempotent, safe to re-run)
./install -n           # Dry run — preview what would be installed
./sync.sh              # Quick sync (git pull + cross-platform symlinks only)
./sync.sh --install    # Install auto-sync scheduler (every 15 minutes)
git submodule update --init --recursive  # Update Vim plugins

⚠️ 重要约束

  • 禁止更新 fish 相关配置。 不要修改 fish/ 目录下的任何文件,也不要在 install.conf.yaml 中添加 fish 相关的 symlink 或安装步骤。fish 配置保持现状,不再维护。

Architecture

Two-Phase Installation (install.conf.yaml)

  • Phase 1 — Local: Defaults, directory creation, submodules, backup existing configs, symlinks. No network required, always succeeds.
  • Phase 2 — Network: Homebrew, platform packages, oh-my-zsh + plugins, fzf, Node.js/nvm, GitHub CLI, AI coding tools. All commands use --connect-timeout / || true to avoid blocking without network.

Symlink Model

All configs live in this repo and are symlinked to ~ via Dotbot. The link section in install.conf.yaml is the single source of truth for what gets symlinked where. When adding new configs: add files to the repo, then add symlink entries to install.conf.yaml.

Auto-Sync System

sync.sh provides automatic 15-minute cross-platform sync across all machines (macOS, Linux):

  • ./sync.sh — Git pull + apply only cross-platform symlinks (via sync.conf.yaml)
  • ./sync.sh --install — Install scheduler: macOS LaunchAgent or Linux systemd timer
  • Auto-enabledsync.sh --install runs automatically during ./install, no manual setup needed
  • Error notification — On failure, sends alert via wechat-reminder (Feishu/WeChat)

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 168 lines · 2,851 tokens per session scan A c7c78d3cd2c8

Subscribe to this mod's changes

dotfiles CLAUDE.md is an instructions file published in the GitHub repository magic3007/dotfiles (10 stars, last pushed 6d ago), licensed MIT. It adds 2,851 tokens to every session, about $0.0143 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.