Skip to content

Instantly share code, notes, and snippets.

View minhvt22's full-sized avatar
πŸ“š
Learning

Vu Tung Minh minhvt22

πŸ“š
Learning
View GitHub Profile
@minhvt22
minhvt22 / generate_llms_txt.py
Created February 16, 2026 12:02
generate_llms_txt.py β€” Generate an llms.txt file for a codebase.
#!/usr/bin/env python3
"""
generate_llms_txt.py β€” Generate an llms.txt file for a codebase.
Usage:
python generate_llms_txt.py [ROOT_DIR] [OPTIONS]
Options:
--output FILE Output file (default: llms.txt)
--max-file-kb N Skip files larger than N KB (default: 500)