Prompt file imported from Blacksuan19/website (
.github/prompts/update-tags.prompt.md). Copyright stays with the author.
Audit and update tags across all _posts/*.md files in this Jekyll site.
Instructions
-
Scan all posts — read every file in
_posts/and extract thetags:list from the front matter. -
Report findings:
- Full list of all unique tags and how many posts use each
- Any tags that look like duplicates or variants (e.g.
MLvsmachine-learning,NLPvsnlp) - Any tags that are not kebab-case (e.g.
DataScience,Web Development) - Posts missing a
tags:field entirely
-
Ask for confirmation before making any changes.
-
Apply fixes — based on user input:
- Rename tags to kebab-case consistently across all affected posts
- Merge duplicate tag variants
- Add missing tags to posts
-
Regenerate tag pages after all edits:
python scripts/update_tags.py -
Confirm the final tag count and list.
Rules
- Tag names must be kebab-case, all lowercase:
data-science, notDataScience - The
tags/directory is auto-generated — never edit it directly - A tag page is only created if at least one post uses that tag
- Visual rendering is handled by
_includes/tag-cloud.liquid,_includes/post-tags.liquid,_includes/tag-chip.liquid, and_includes/tag-label.liquid; keep content changes in post front matter and regenerate pages rather than editing tag pages directly
