url-routing-seo
2
总安装量
2
周安装量
#73172
全站排名
安装命令
npx skills add https://github.com/sraloff/gravityboots --skill url-routing-seo
Agent 安装分布
opencode
2
gemini-cli
2
claude-code
2
github-copilot
2
codex
2
kimi-cli
2
Skill 文档
URL Routing & SEO
When to use this skill
- Designing routes for a new feature.
- Setting up redirects.
- Optimizing pages for search engines.
1. URL Structure
- Slugs: Use kebab-case (
/my-new-post) not underscores or camelCase. - Hierarchy: Logical nesting (
/category/subcategory/item) is good, but shallow URLs (/item-slug) often perform better for SEO if unique. - Trailing Slashes: Enforce consistency (e.g., always remove trailing slash) via middleware or server config.
2. SEO Tags
- Title: Unique
<h1>and<title>per page. - Meta Description: 150-160 chars summary.
- Canonical: Self-referencing canonical tag is mandatory to prevent duplicate content issues.
- Open Graph: Always include
og:title,og:image,og:descriptionfor social sharing.
3. Implementation
- Next.js: Use
metadataobject in layouts/pages. - Laravel: Use a common layout component or a package like
artesaos/seotoolsspecifically if complex.