Dynamic Category Discovery via manifest.json
mainThe prompt library is organized into dynamic categories. Because categories change over time, do not use hardcoded mapping. Instead, follow this workflow:
- Load and read
references/manifest.jsonto identify current categories, theirslug,title, and the corresponding.jsonfile. - Match the user's intent to a category by using the
titleas a semantic anchor (e.g., if a user asks for 'social media', look for a category title containing 'Social'). - Access the specific prompt data using the filename provided in the manifest.
Example manifest.json structure:
{
"updatedAt": "2026-02-28T10:00:00Z",
"totalPrompts": 10224,
"categories": [
{ "slug": "social-media-post", "title": "Social Media Post", "file": "social-media-post.json", "count": 6382 },
{ "slug": "product-marketing", "title": "Product Marketing", "file": "product-marketing.json", "count": 3709 }
// ... more categories
]
}{
"updatedAt": "2026-02-28T10:00:00Z",
"totalPrompts": 10224,
"categories": [
{ "slug": "social-media-post", "title": "Social Media Post", "file": "social-media-post.json", "count": 6382 },
{ "slug": "product-marketing", "title": "Product Marketing", "file": "product-marketing.json", "count": 3709 }
]
}