AgentSkillsCN

update-readme

每当用户要求更新、刷新或同步 README 文件时,通过重写设置步骤、移除过时内容,并将文档同步至最新的仓库状态,确保所有 README 文件始终与当前代码库保持一致。

SKILL.md
--- frontmatter
name: update-readme
description: Keep all README files aligned with the current codebase by rewriting setup steps, removing outdated content, and syncing documentation to the latest repository state whenever asked to update, refresh, or sync READMEs.

Update README

Goals

  • Keep every README in the repo accurate for the current codebase.
  • Ensure README explains the nix directory layout for common packages/settings and host-specific configuration placement.
  • Remove outdated or no-longer-true statements.
  • Write in concise English.

Workflow

  1. Discover README targets
  • List README files with rg --files -g 'README*' from the repo root.
  • Only the top-level README.md is permitted; subdirectory READMEs are not allowed.
  • If any subdirectory README files exist, remove them and consolidate their content into the top-level README.
  1. Determine scope for the README
  • The top-level README.md must be the only README in the repo.
  • Use the filesystem to confirm what exists before writing.
  1. Rewrite the README
  • Keep content minimal; include ## Setup and ## Nix layout.
  • ## Setup
    • Describe the exact setup steps required now.
    • Include copy-pasteable commands in Markdown code blocks so the setup can be executed directly.
    • Remove deprecated steps or tooling references.
  • ## Nix layout
    • Explain where common packages/settings live and where host-specific configuration lives inside nix/.
    • Use short sentences or bullets; avoid excessive detail.
  1. Remove obsolete content
  • Delete any badges, deprecated sections, or instructions that are no longer true.
  • If a section cannot be substantiated from current files, remove it.

Output expectations

  • English only.
  • No extra sections beyond the required two.
  • For the root README, never mention deprecated folders (like init/) or non-active folders unless instructed.
  • Only README.md at repo root may exist; delete any others.

Notes

  • This repo treats git/, nvim/, wezterm/, and zsh/ as the active configuration roots.
  • If a README claims to manage files or scripts that no longer exist, remove those claims.