chezmoi 过期条目清理
chezmoi-prune-remove
清理本仓库 src/.chezmoiremove 中的条目:自其加入提交起至少满 30 天后即可清理,并保留带有 keep 注释标记的条目。当用户要求清理旧的 .chezmoiremove 条目时使用。
- License 许可
- MIT
- 所属仓库
- mono0x/dotfiles
- 最近更新
- 2026-11-15
- Stars
- ★ 10
- Forks
- 0
01 前言 Front Matter
- name
- chezmoi-prune-remove
- description
- Prune entries in this repository's src/.chezmoiremove once at least 30 days have elapsed since their adding commit, preserving entries marked with keep comments. Use when asked to clean up old .chezmoiremove entries.
02 资源文件 53
- 许可证LICENSE.txt1.4 KB
- 脚本scripts/office/helpers/__init__.py—
- 脚本scripts/office/helpers/merge_runs.py5.4 KB
- 脚本scripts/office/helpers/simplify_redlines.py5.6 KB
- 脚本scripts/office/pack.py4.9 KB
- 脚本scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd1.9 KB
- 脚本scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd2.5 KB
- 脚本scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd2.8 KB
- 脚本scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd1.3 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd73.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd6.8 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd50.1 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd624 B
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd148.5 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd1.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd8.7 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd14.4 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd81.7 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd1.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd7.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd6.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd1.2 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd880 B
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd2.5 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd3.4 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd7.3 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd22.8 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd1.3 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd236.6 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd25.5 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd24.7 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd535 B
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd5.6 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd3.9 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd167.4 KB
- 脚本scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd4.5 KB
- 脚本scripts/office/schemas/mce/mc.xsd3.1 KB
- 脚本scripts/office/schemas/microsoft/wml-2010.xsd25.9 KB
- 脚本scripts/office/schemas/microsoft/wml-2012.xsd3.7 KB
- 脚本scripts/office/schemas/microsoft/wml-2018.xsd901 B
- 脚本scripts/office/schemas/microsoft/wml-cex-2018.xsd1.7 KB
- 脚本scripts/office/schemas/microsoft/wml-cid-2016.xsd1002 B
- 脚本scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd600 B
- 脚本scripts/office/schemas/microsoft/wml-symex-2015.xsd745 B
- 脚本scripts/office/soffice.py5.2 KB
- 脚本scripts/office/unpack.py4.0 KB
- 脚本scripts/office/validate.py3.6 KB
- 脚本scripts/office/validators/__init__.py336 B
- 脚本scripts/office/validators/base.py31.9 KB
- 脚本scripts/office/validators/docx.py16.0 KB
- 脚本scripts/office/validators/pptx.py9.6 KB
- 脚本scripts/office/validators/redlining.py8.7 KB
- 脚本scripts/recalc.py6.5 KB
03 SKILL.md 正文
Prune old .chezmoiremove entries
Remove entries from src/.chezmoiremove once at least 30 days have elapsed since the commit that added them. Preserve entries that must keep removing their targets on every apply by marking them as follows:
# keep: The application recreates this file, so remove it on every apply.
.config/example/obsolete.conf
# keep: protects only the immediately following line. Do not insert a blank line between the comment and its entry. Give each protected entry its own comment and reason. Ordinary comments do not protect entries. Do not use inline comments after entries.
Determine which entries have expired
Work from the repository root. Read git status --short and git diff HEAD -- src/.chezmoiremove first to identify existing changes. Capture the current time once at the start and use it for every entry.
-
Read the working tree file. Exclude blank lines, comment lines, and entries immediately preceded by
# keep:. Honor keep comments even if they are uncommitted. -
Use
git blame --line-porcelain -- src/.chezmoiremoveto find each remaining line's commit andcommitter-time. Preserve uncommitted additions or modifications whose commit hash consists entirely of zeros. -
Verify each entry's adding commit in its diff. If its history is ambiguous, inspect the line history using its line number in HEAD:
git log -L <line>,<line>:src/.chezmoiremove --format='%H %ct %cI %s'Map working tree line numbers to HEAD before using this command. Use the adding commit's committer timestamp, not its author date or the file's last modification time. Reordering entries or adding comments does not reset their age. If an entry was deleted and later re-added, use the re-adding commit. Preserve entries whose adding commit cannot be established, including those at a shallow history boundary, and report why.
-
Remove an entry when
current Unix timestamp - adding commit %ct >= 30 * 24 * 60 * 60. Include entries exactly 30 days old. Do not round elapsed time to whole days.
Do not treat template control lines such as {{ ... }} as entries. Inspect template structure before pruning templated entries. Preserve them if the safe deletion range cannot be established.
Remove expired entries and verify
Determine all candidates before editing, then remove only those entry lines. Preserve remaining entries, their order, comments, blank lines, and existing changes. Retain both keep comments and their protected entries. If no entries qualify, leave the file unchanged.
Run git diff --check and mise exec -- hk check. Review the diff to confirm that only eligible entries were removed. Review deployment effects with chezmoi diff; do not run chezmoi apply.
Report removed entries with their adding commits and timestamps, reasons for preserving entries, and validation results. This skill edits only src/.chezmoiremove. Commit or push only when separately requested.
04 同仓库更多 Skills
ghq
Locate local clones of repositories managed by ghq. Use whenever the user mentions a repository by name or URL (for example `owner/repo`, `repo`, or a GitHub URL) and its source code, docs, or history would help, before searching the web. Also use when the user asks to clone a repository.
Git 提交创建
commit
`/commit-commands:commit` 技能的别名。创建一个 git 提交。
代码变更端到端验证
verify
通过构建、运行并端到端地演练受影响的行为来验证代码变更。当用户要求验证改动,或确认某项功能在运行的应用程序中正常工作时使用。
review-pr
Review a pull request or local changes using the PR Review Toolkit's specialized checks for code quality, tests, error handling, comments, type design, and simplification. Use when asked for a PR review or a focused review of these aspects.