Arch Sign-off
Append the Arch Linux sign-off line to the bottom of an article in ai-thoughts/docs/.
Default rule — read before anything else
- Every article in
ai-thoughts/docs/ends with the sign-off line, unless the user explicitly says otherwise. "Unless I say no" means: if the user has not told you to skip it, append it. - The sign-off is one line at the very bottom of the file, as its own paragraph:
btw, i use arch
- The sign-off stays verbatim English in both the EN and the ZH (
-zh-hans.md, legacy-chn.md) versions. Do not translate it. - If the sign-off is already present, do not duplicate it.
Inputs
target— path to the article inai-thoughts/docs/(optional). If omitted, apply to the article currently being written.
Outputs
- The article file with the sign-off line at the end (or unchanged if already present).
Procedure
- Check the bottom of the target article.
- If the last line is already
btw, i use arch, stop — nothing to do. - Otherwise append the sign-off as the final line, separated by one blank line from the preceding paragraph.
- When the article has a Chinese counterpart (
-zh-hans.mdor legacy-chn.md), apply the same line to it (verbatim English). - Keep one paragraph per line (no hard-wrap); the sign-off is a single short line.
Insertion
python3 -c "
import pathlib; p = pathlib.Path('TARGET_FILE');
c = p.read_text();
if 'btw, i use arch' not in c:
p.write_text(c.rstrip() + '\n\nbtw, i use arch\n')
"
Replace TARGET_FILE with the article path.
Verification
tail -1 FILEoutputs exactlybtw, i use arch.- No duplicate sign-off lines.
- The Chinese version (if any —
-zh-hans.mdor legacy-chn.md) carries the identical line.
Error Handling
- User says no: do not append; leave the article as-is.
- Not an article: never append to READMEs,
articles.yaml, or files outsideai-thoughts/docs/.
