improve: enhance llms-maintainer with spec-compliant format and framework detection#563
Merged
Merged
Conversation
…work detection - Fix llms.txt skeleton to use official Markdown spec (H1, blockquote, H2 sections, link entries) - Fix page entries to use standard `- [Title](url): description` format instead of invented key:value - Add framework detection step (Astro, Nuxt, Next.js, Svelte, Hugo) to determine output path - Add `model: haiku` to frontmatter for cost-efficient deterministic scanning - Add `maxTurns: 20` to prevent runaway iteration on large sites - Remove unconditional `git push` — commit only by default, user pushes manually - Expand "AEO" to "AI Engine Optimization (AEO)" on first use in description and closing line Automated review cycle | Co-Authored-By: Claude Code <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
👋 Thanks for contributing, @davila7!This PR touches What happens next
While you wait
This is an automated message. No action is required from you right now — a maintainer will review soon. |
Contributor
|
| Metric | Count |
|---|---|
| Total Components | 763 |
| ✅ Passed | 359 |
| ❌ Failed | 404 |
| 1005 |
❌ Failed Components (Top 5)
| Component | Errors | Warnings | Score |
|---|---|---|---|
vercel-edge-function |
3 | 4 | 81/100 |
prompt-engineer |
2 | 0 | 90/100 |
neon-expert |
2 | 2 | 88/100 |
agent-overview |
2 | 1 | 89/100 |
unused-code-cleaner |
2 | 1 | 89/100 |
...and 399 more failed component(s)
📊 View Full Report for detailed error messages and all components
Contributor
There was a problem hiding this comment.
1 issue found across 1 file
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="cli-tool/components/agents/ai-specialists/llms-maintainer.md">
<violation number="1" location="cli-tool/components/agents/ai-specialists/llms-maintainer.md:77">
P2: The Git stage command is still hardcoded to `public/llms.txt`, which conflicts with the new framework-based output path detection and can miss commits for `static/llms.txt` projects.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| **7. OPTIONAL GIT OPERATIONS** | ||
| If Git is available and appropriate: | ||
| **8. OPTIONAL GIT OPERATIONS** | ||
| If Git is available and appropriate, stage and commit the file: |
Contributor
There was a problem hiding this comment.
P2: The Git stage command is still hardcoded to public/llms.txt, which conflicts with the new framework-based output path detection and can miss commits for static/llms.txt projects.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At cli-tool/components/agents/ai-specialists/llms-maintainer.md, line 77:
<comment>The Git stage command is still hardcoded to `public/llms.txt`, which conflicts with the new framework-based output path detection and can miss commits for `static/llms.txt` projects.</comment>
<file context>
@@ -22,63 +33,63 @@ Your core responsibility is to create or update ./public/llms.txt following this
-**7. OPTIONAL GIT OPERATIONS**
-If Git is available and appropriate:
+**8. OPTIONAL GIT OPERATIONS**
+If Git is available and appropriate, stage and commit the file:
```bash
git add public/llms.txt
</file context>
davila7
added a commit
that referenced
this pull request
May 4, 2026
Reflects merged improvements to cli-tool/components/agents/ai-specialists/llms-maintainer.md. Automated by pr-verification cycle | Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated Component Improvement
Changes
Site:,Generated:,User-agent:,Train:,Attribution:,License:key:value block with the official llmstxt.org Markdown spec — H1 heading, optional blockquote summary, H2 section headers, and- [Title](url): descriptionlink entries.Section:,Title:,URL:,Desc:format with standard Markdown links following the spec.public/vsstatic/), falling back to asking the user. Previously hardcoded to./public/llms.txt(Next.js only).model: haiku(MEDIUM): This is a deterministic scanning and writing task — Haiku reduces cost and latency.maxTurns: 20(MEDIUM): Prevents runaway iteration on large sites with hundreds of pages.git push(MEDIUM): Step 8 now only stages and commits. Pushing is opt-in — a note tells the user to push when ready. Follows repo security guidelines about irreversible operations.Research Summary
The component had two critical format errors: the llms.txt skeleton and page entry templates both used an invented key:value format that does not exist in the official llmstxt.org specification. These would cause the generated files to be unrecognized by AI crawlers. The output path was also hardcoded to Next.js only, and the unconditional
git pushwas a safety concern.Validation
name,description,tools,model)llms-maintainer)ai-specialists)Automated review cycle by Component Improvement Loop
Summary by cubic
Make llms-maintainer spec-compliant and framework-aware so it writes valid llms.txt across common web frameworks. Also make git steps safer by not auto-pushing.
- [Title](url): descriptionlinks).public/orstatic/); ask the user if unknown.model: haikuandmaxTurns: 20in frontmatter to cut cost/latency and prevent runaway loops.git push); users push when ready.cli-tool/components/). No new components added; no catalog (docs/components.json) regeneration needed. No new environment variables or secrets.Written for commit 6503f42. Summary will update on new commits.