agentleFS
kriscardkriscard/Skills/skills/dotfiles/audit/SKILL.md

audit

Skill14 starsChanged 4 months agoMITView on GitHub

Dotfiles health baseline and triage. Use when the user wants a whole-system audit of ~/.dotfiles: credential leaks, shell startup, Stow symlinks, Neovim startup, missing tools, or orphan config. Do not use for targeted Neovim or shell edits; route those to neovim or shell-env.

  • Reads credentials

164 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use overdrive, delight and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nikafastovets-langSkill

    overdrive

    Push interfaces past conventional limits with technically ambitious implementations. Whether that's a shader, a 60fps virtual table, spring physics on a dialog, or scroll-driven reveals — make users ask "how did they do that?

    Also in 12 projects that use this

  • mtctSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful.

    Also in 18 projects that use this

  • mtctSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 12 projects that use this

  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 10 projects that use this

  • tdiminoSkill

    shape

    Plan the UX and UI for a feature before writing code. Run a structured discovery interview, then produce a design brief (.design-context.md) that guides implementation. Establishes design direction, constraints, and strategy before any code is written. Triggers on plan the design, design brief, shape the UX, before we build, design discovery.

    Also in 8 projects that use this

  • +4 more from mtct
  • +1 more from nikafastovets-lang

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 147 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If slow, isolate which zsh.d file is the culprit:

    line 50
  2. Very specific:

    Check ~/.dotfiles/zsh/.zshrc and ~/.dotfiles/zsh/zsh.d/ for plugin loading (zinit, antigen, oh-my-zsh, etc.).

    line 64
  3. Distinctive:

    Check which plugins are loading eagerly: the top entries after sorting are the slowest.

    line 93
  4. Distinctive:

    Verify tools referenced in dotfiles are actually installed:

    line 99
  5. Distinctive:

    Do not produce the final report until each step has either a captured result or an explicit reason it could not run.

    line 126
  6. Distinctive:

    After running all steps, produce a report:

    line 130

“Common” is measured: kept by at least 6 in 10 of the 147 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dotfiles Audit

Full health check of the dotfiles setup. Run all steps in order — each takes seconds and together they give a complete picture.

Security check runs first: it's always highest priority.

Step 0: Security Scan

Scan for credentials before anything else.

# API keys, tokens, passwords in config files
grep -rE "(API_KEY|TOKEN|SECRET|PASSWORD)\s*=\s*['\"][^'\"]+['\"]" ~/.dotfiles/ 2>/dev/null
# Common token prefixes
grep -rE "(ghp_|sk-|AKIA|-----BEGIN.*PRIVATE KEY-----)" ~/.dotfiles/ 2>/dev/null

Flag any findings as CRITICAL — credentials in dotfiles can leak via git.

File permission check — these should be 600:

stat -f "%A %N" ~/.dotfiles/.gitconfig-work ~/.dotfiles/.gitconfig-personal 2>/dev/null

Git safety — verify .gitignore in the dotfiles repo includes:

  • .env, *_token, *_secret, 99-local.zsh, **/*.local.*

Done when credential findings, sensitive-file permissions, and gitignore coverage are recorded as clean or listed as Critical findings with file paths.

Step 1: Shell Startup Time

time zsh -i -c exit

Target: <200ms. >500ms means something is blocking during interactive init.

If slow, isolate which zsh.d file is the culprit:

# Add timing to each zsh.d file temporarily
for f in ~/.zsh.d/*.zsh; do
  time zsh -c "source $f" 2>&1 | grep real
  echo "  ^ $f"
done

Done when one cold interactive startup measurement is recorded, the result is classified OK/SLOW against target, and any SLOW result names a likely zsh.d culprit or next profiling command.

Step 2: Zsh Plugins Audit

Check ~/.dotfiles/zsh/.zshrc and ~/.dotfiles/zsh/zsh.d/ for plugin loading (zinit, antigen, oh-my-zsh, etc.).

Flag heavy plugins:

  • Large completion frameworks loaded synchronously
  • nvm / rbenv / pyenv with eager shell integration (use lazy variants)
  • Any plugin that makes network calls or spawns subprocesses at init

Done when each plugin/init integration is classified keep, lazy-load, remove, or needs profiling.

Step 3: Stow Symlink Health

# Find broken symlinks in home directory (depth 3 to avoid scanning everything)
find ~ -maxdepth 3 -type l ! -e 2>/dev/null

A broken symlink means the stow source file was deleted or moved without re-stowing. Fix: either restore the source file or stow -D <package> to remove the dead link.

Done when every broken symlink is listed with its expected source or the report states none found.

Step 4: Neovim Startup Time

nvim --headless --startuptime /tmp/nvim-startup.log +q && sort -k2 -n /tmp/nvim-startup.log | tail -20

Target: <150ms. >300ms needs investigation.

Check which plugins are loading eagerly: the top entries after sorting are the slowest. Cross-reference against the plugin list to find candidates for lazy-loading.

Done when startup time is recorded, classified OK/SLOW, and SLOW results name top slow entries. For targeted repair, stop and route to the neovim skill.

Step 5: Tool Inventory Check

Verify tools referenced in dotfiles are actually installed:

which sesh tmux yabai starship lazygit gh bat fd rg zoxide fzf

Any not found means either:

  • The tool was uninstalled but its config is still in dotfiles (orphan config)
  • The tool isn't installed yet on this machine (new machine setup)

Done when every referenced tool checked is listed as installed, missing-but-needed, or missing-and-orphaned.

Step 6: Orphan Config Detection

Cross-reference ls ~/.dotfiles/ (stow packages) against the tools found in Step 5. A package with no corresponding installed binary is an orphan.

ls ~/.dotfiles/

Review each package: if the tool it configures isn't installed and you're not planning to use it, consider archiving the package or adding a note.

Done when every package is classified active, setup-required, or orphan candidate.

Completion Gate

Do not produce the final report until each step has either a captured result or an explicit reason it could not run. Security issues rank first regardless of other findings.

Report Format

After running all steps, produce a report:

DOTFILES AUDIT REPORT
=====================

Security
  🔴 Critical: [N issues] / ✅ Clean
  [List any credential finds with file:line]
  [File permission issues]
  [Git safety gaps]

Startup Times
  Shell: Xms (target <200ms) — [OK | SLOW: investigate zsh.d/X.zsh]
  Neovim: Xms (target <150ms) — [OK | SLOW: top culprits: plugin1, plugin2]

Symlink Health
  Broken links: X found
  [list each broken link and its expected source]

Tool Inventory
  Installed: sesh, tmux, starship, ...
  Missing: [tool] — config exists at ~/.dotfiles/<package> (orphan or needs install)

Recommended Cleanups (priority order)
  1. [most impactful fix — security first, then startup time, then cosmetic]
  2. ...

References

PriorityLoad whenReference
HighSecurity scan finds issues or credential patterns need reviewreferences/security-patterns.md
HighShell startup is slow and needs profiling strategiesreferences/shell-performance.md
MediumAuditing a specific package/component after the baseline identifies itreferences/component-analysis.md
LowGit config issues found: permissions, signing, aliases, or multi-identityreferences/git-config.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.