Skip to content

improve: enhance llms-maintainer with spec-compliant format and framework detection#563

Merged
davila7 merged 1 commit into
mainfrom
review/llms-maintainer-2026-05-04
May 4, 2026
Merged

improve: enhance llms-maintainer with spec-compliant format and framework detection#563
davila7 merged 1 commit into
mainfrom
review/llms-maintainer-2026-05-04

Conversation

@davila7

@davila7 davila7 commented May 4, 2026

Copy link
Copy Markdown
Owner

Automated Component Improvement

Changes

  • Fix llms.txt skeleton format (CRITICAL): Replaced the invented 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): description link entries.
  • Fix page entry format (CRITICAL): Replaced the invented Section:, Title:, URL:, Desc: format with standard Markdown links following the spec.
  • Add framework detection step (HIGH): New step 1 detects Astro, Nuxt, Next.js, Svelte, and Hugo config files to determine the correct output path (public/ vs static/), falling back to asking the user. Previously hardcoded to ./public/llms.txt (Next.js only).
  • Add model: haiku (MEDIUM): This is a deterministic scanning and writing task — Haiku reduces cost and latency.
  • Add maxTurns: 20 (MEDIUM): Prevents runaway iteration on large sites with hundreds of pages.
  • Remove unconditional 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.
  • Expand AEO acronym (LOW): Description and closing sentence now spell out "AI Engine Optimization (AEO)" on first use.

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 push was a safety concern.

Validation

  • component-reviewer: PASSED
    • Valid YAML frontmatter with all required fields (name, description, tools, model)
    • Proper kebab-case naming matching filename (llms-maintainer)
    • No hardcoded secrets or API keys
    • No absolute paths (all paths are relative or framework-detected)
    • Correct category placement (ai-specialists)
    • Clear, specific description with expanded acronym

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.

  • Changes
    • Use the official llmstxt.org Markdown format for the skeleton and page entries (standard H1/H2 and - [Title](url): description links).
    • Detect Astro, Nuxt, Next.js, Svelte, and Hugo configs to choose the output path (public/ or static/); ask the user if unknown.
    • Add model: haiku and maxTurns: 20 in frontmatter to cut cost/latency and prevent runaway loops.
    • Commit only by default (no git push); users push when ready.
    • Area: components (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.

…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>
@vercel

vercel Bot commented May 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
aitmpl-dashboard Ready Ready Preview, Comment May 4, 2026 8:16pm
claude-code-templates Ready Ready Preview, Comment May 4, 2026 8:16pm

@github-actions github-actions Bot added the review-pending Component PR awaiting maintainer review label May 4, 2026
@github-actions

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

👋 Thanks for contributing, @davila7!

This PR touches cli-tool/components/** and has been marked review-pending.

What happens next

  1. 🤖 Automated security audit runs and posts results on this PR.
  2. 👀 Maintainer review — a human reviewer validates the component with the component-reviewer agent (format, naming, security, clarity).
  3. Merge — once approved, your PR is merged to main.
  4. 📦 Catalog regeneration — the component catalog is rebuilt automatically.
  5. 🚀 Live on aitmpl.com — your component appears on the website after deploy.

While you wait

  • Check the Security Audit comment below for any issues to fix.
  • Make sure your component follows the contribution guide.

This is an automated message. No action is required from you right now — a maintainer will review soon.

@github-actions

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

⚠️ Security Audit Report

Status: ❌ FAILED

Metric Count
Total Components 763
✅ Passed 359
❌ Failed 404
⚠️ Warnings 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

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 davila7 merged commit 43742e2 into main May 4, 2026
7 checks passed
@davila7 davila7 deleted the review/llms-maintainer-2026-05-04 branch May 4, 2026 21:10
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-pending Component PR awaiting maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant