Comprehensive system for managing llms.txt and my-blog.json files across the project. Handles creation, updating, and synchronization of AI-readable content catalogs...
Manage llms.txt and my-blog.json files across the project, ensuring AI systems have comprehensive, up-to-date content catalogs. Automates synchronization between blog content (query-index.json) and llms.txt files.
This skill activates when:
llms.txt - AI-readable content catalog
blogs/ddt/integrations/llms.txt)my-blog.json - Structured blog data
query-index.json - Master content index
When llms.txt is in a subfolder (e.g., blogs/ddt/integrations/):
/integrations/ folder focuses on EDS integration tutorialslastModified Date Comparison:
# [Project/Section Title]
[Brief description of what this content covers]
**Last updated:** [Month Year]
**Authors:** [Author Names]
## [Category Name]
### [Subcategory Name]
- [Title](URL): Description
- [Title](URL): Description
## Version Information
**Version:** [version] (Updated: [date])
**Comprehensive catalog:** [count] posts across [n] categories
**Categories:** [List with counts]
{
"metadata": {
"last-updated": "YYYY-MM-DD",
"scope": "folder-name-or-site-wide"
},
"mostVisited": [
{
"title": "Popular Post Title",
"url": "/path/to/post",
"description": "Post description"
}
],
"categoryMap": [
{
"id": "category-id",
"name": "Display Name",
"count": 0,
"description": "Category description"
}
],
"categories": [
{
"id": "category-id",
"name": "Display Name",
"posts": [
{
"title": "Post Title",
"url": "/path/to/post",
"description": "Post description",
"lastModified": "YYYY-MM-DD"
}
]
}
]
}
IMPORTANT: Do NOT include a latestPosts array in my-blog.json files. The view-myblog block automatically generates it from the 3 most recent posts. Including it manually requires maintenance and defeats the purpose of auto-generation.
Automatic Creation: The sync script now automatically creates llms.txt files if they don't exist:
Detects Missing Files
Builds Complete Structure
Populates Content
Manual Creation: If you need to manually create one:
Determine Scope
Check for my-blog.json
Structure Content
/integrations/ = EDS integrations)Add Metadata
Read Current File
Fetch New Content
Merge New Posts
Update my-blog.json
Automatic Creation: The sync script now automatically creates my-blog.json files if they don't exist:
Detects Missing Files
Initializes Structure
Populates Content
Manual Creation: If you need to manually create one:
Fetch Data
curl https://allabout.network/query-index.json
Filter by Context
Categorize Posts
Structure Output
Finds all llms.txt files in the project and updates them with new content:
/update-llms
Or use the script directly:
node scripts/sync-blog-content.js --target=llms
Process:
**/*llms.txtFinds all my-blog.json files and updates them with latest content:
/update-my-blog
Process:
**/*my-blog.jsonā Use subsections - Break large categories into logical groups ā Consistent formatting - Use same pattern throughout ā Rich descriptions - Include full descriptions from source ā Clear hierarchy - Main section ā Subsection ā Posts ā Cross-references - Link between related llms.txt files
ā Source of truth: my-blog.json for URLs ā Text source: Existing llms.txt for descriptions/formatting ā New content: query-index.json for latest posts ā Relative URLs: Use relative paths in my-blog.json ā Absolute URLs: Use full URLs in llms.txt
ā ISO format: YYYY-MM-DD for dates ā Comparison: Filter by lastModified > last-updated ā Display format: "Month Year" in llms.txt header ā Update always: Change date when content changes
ā Use folder name: Final path segment indicates scope ā Filter appropriately: Only relevant content for folder llms.txt ā Paired files: Keep my-blog.json with llms.txt ā Independent updates: Each folder maintains own files
Location: /llms.txt
Scope: Entire site
my-blog.json: /my-blog.json (all content)
Categories: All site categories
Location: /blogs/ddt/integrations/llms.txt
Scope: EDS integration tutorials only
my-blog.json: /blogs/ddt/integrations/my-blog.json
Categories: Filtered to integration-related posts
Location: /blogs/ddt/ai/llms.txt
Scope: AI/LLM content only
my-blog.json: /blogs/ddt/ai/my-blog.json
Categories: Filtered to AI-related posts
Solution: Create it from query-index.json filtered by folder context
Solution: Ensure ISO format (YYYY-MM-DD) and proper parsing
Solution: Check folder context and filter query-index.json properly
Solution: Deduplicate by URL before adding to categories
.claude/commands/update-llms.md - Slash command for updating llms.txt.claude/commands/update-my-blog.md - Slash command for updating my-blog.jsonscripts/sync-blog-content.js - Utility script for bulk updates (no dependencies)Skill Version: 1.0 Last Updated: November 2025 Line Count: < 500 ā