Skip to content

feat: Add Multi-Agent Workflow SEO article (5,400 searches/month)#321

Open
LindsayLiu777 wants to merge 2 commits into
mainfrom
feat/multi-agent-workflow-article-clean
Open

feat: Add Multi-Agent Workflow SEO article (5,400 searches/month)#321
LindsayLiu777 wants to merge 2 commits into
mainfrom
feat/multi-agent-workflow-article-clean

Conversation

@LindsayLiu777

Copy link
Copy Markdown
Contributor

Summary

Changes

This PR adds:

  • multi-agent-workflow-patterns.mdx - The main article content
  • 7 workflow diagram SVG files illustrating different patterns:
    • Development team pipeline
    • Support swarm architecture
    • Content production workflow
    • Code migration system
    • QA fortress framework
    • Data pipeline orchestration
    • Documentation system

Context

This is part of our SEO content strategy targeting high-value AI agent-related keywords.

Testing

  • All image paths verified
  • Article renders correctly in the blog
  • No unrelated commits included (clean history)

Add comprehensive article on multi-agent workflow patterns with 7 detailed workflow diagrams:
- Development team pipeline
- Support swarm architecture
- Content production workflow
- Code migration system
- QA fortress framework
- Data pipeline orchestration
- Documentation system

This is a clean PR containing only the Multi-Agent Workflow article files.
@LindsayLiu777 LindsayLiu777 requested a review from a team as a code owner June 12, 2026 02:54

@gusye1234 gusye1234 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.

Code Review — PR #321

Summary

This PR adds a new SEO article (multi-agent-workflow-patterns.mdx) and 7 SVG diagrams. The content itself is well-written, but the article will not appear in the blog due to metadata format and missing required fields.


Critical Issues

1. Wrong metadata format — article won't load

The article uses YAML frontmatter (--- blocks), but the blog system loads metadata via:

// src/web/src/lib/blog/posts/import-mdx.ts
const mod = await import(`@/content/${slug}.mdx`);
return mod.metadata;

Without remark-frontmatter + remark-mdx-frontmatter plugins (not configured in next.config.ts), YAML frontmatter is NOT exported as mod.metadata. The working articles in this repo use:

export const metadata = { slug: '...', title: '...', ... };

See why-we-built-alook.mdx, ai-agent-team.mdx, personal-ai-company.mdx for the correct format.

Fix: Replace the YAML frontmatter with export const metadata = { ... };

2. Missing required fields — validateMetadata will skip the post

BlogPost type (src/web/src/lib/blog/types.ts) requires: slug, title, date, author, excerpt, readingTime.

The article is missing:

  • excerpt (has description instead — wrong field name)
  • readingTime

Even if the metadata format were fixed, validateMetadata() would log a warning and skip the article.


Minor Issues

  1. No newline at end of files — all 8 added files are missing trailing newlines (\ No newline at end of file).

  2. Inconsistent asset path convention — existing blog images use subdirectories (/blog/ai-agent-team/hero.png), but these SVGs are flat in /blog/ (/blog/workflow-1-dev-team-pipeline.svg). Not a bug but breaks the pattern.

  3. Extra fields unusedkeywords, canonical, image in frontmatter aren't part of the BlogPost type. If you want SEO meta tags, that's a separate feature — these fields currently go nowhere.


Checklist

  • Functionality: Article will NOT appear — metadata is unparseable
  • Code Quality: Content is well-structured and readable
  • Security: SVGs are clean (no scripts/event handlers)
  • Tests: Should verify the article loads in the blog index after fixing metadata
  • Project Syncing: Asset directory convention not followed

- Convert YAML frontmatter to JavaScript export in multi-agent-workflow-patterns.mdx
- Change 'description' field to 'excerpt' to match BlogPost type
- Add required 'readingTime' field (7 min read)
- Add trailing newlines to all 8 files (7 SVGs + 1 MDX)
- Ensure metadata matches the expected BlogPost format

Without these changes, the article won't appear in the blog at all.
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants