Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

add-seoADD SEO 搜索

Agent Skill

add-seo 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

703

周安装

29

GitHub Stars

228

下载量

230
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:add-seo(ADD SEO 搜索)
来源仓库:https://github.com/microsoft/power-platform-skills
仓库路径:skills/add-seo
安装命令:
npx skills add https://github.com/microsoft/power-platform-skills --skill add-seo
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/microsoft/power-platform-skills --skill add-seo

简介

为 Power Pages 代码站点添加基础 SEO 资产,包括 robots.txt 和 sitemap.xml。

  • 适用于提升网站搜索引擎可见性,确保所有公共页面可被索引。
  • 自动检测框架类型并放置元标签,支持标题、描述和 Open Graph 设置。
  • 必须在其他 SEO 工作前完成爬虫可访问性配置,优先级最高。
  • 依赖 /create-site 技能先创建站点,否则无法执行后续操作。

SKILL.md

Plugin check: Run node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js" — if it outputs a message, show it to the user before proceeding.

Add SEO

Add essential SEO assets to a Power Pages code site: robots.txt, sitemap.xml, and meta tags.

Prerequisite: This skill expects an existing Power Pages code site created via /create-site. Run that skill first if the site does not exist yet.

Core Principles

  • Crawlability first: Every public page must be discoverable by search engines via a valid robots.txt and sitemap.xml before any other SEO work matters.
  • Accurate metadata: Meta tags (title, description, Open Graph) must truthfully represent page content — misleading metadata harms rankings.
  • Framework-aware placement: SEO assets must be placed in the correct location for the detected framework (public directory, layout component, etc.).

Initial request: $ARGUMENTS

Workflow

  1. Phase 1: Verify Site Exists → Locate the Power Pages project
  2. Phase 2: Gather SEO Configuration → Site URL, pages, preferences
  3. Phase 3: Plan & Approve → Present SEO additions inline, get user approval
  4. Phase 4: Add robots.txt → Create robots.txt in public directory
  5. Phase 5: Add sitemap.xml → Generate sitemap.xml from site routes
  6. Phase 6: Add Meta Tags → Add title, description, viewport, Open Graph, and favicon to index.html
  7. Phase 7: Verify & Commit → Verify via Playwright, commit changes

Phase 1: Verify Site Exists

Goal: Confirm a Power Pages code site exists and understand its structure.

Actions

1.1 Locate Project

Look for powerpages.config.json in the current directory or immediate subdirectories to find the project root. Use your file-search tool (e.g., Glob with patterns powerpages.config.json and */powerpages.config.json) rather than a shell-specific command.

If not found: Tell the user to create a site first with /create-site.

1.2 Read Existing Config

Read powerpages.config.json to get the site name and config.

1.3 Detect Framework & Discover Routes

Read package.json to determine the framework and locate key files. See ${CLAUDE_PLUGIN_ROOT}/references/framework-conventions.md for the full framework → public directory → index HTML mapping and route discovery patterns.

Build a list of all routes (e.g., /, /about, /contact, /blog).

Output

  • Project root path identified
  • Framework detected (React, Vue, Angular, or Astro)
  • Full list of discoverable routes

Phase 2: Gather SEO Configuration

Goal: Collect all SEO preferences from the user before making any changes.

Actions

Use AskUserQuestion to collect SEO preferences:

Call 1

QuestionHeaderOptions
What is the production URL for your site? (e.g., https://contoso.powerappsportals.com)Site URL*(free text — use single generic option so user types via "Other")*
Which pages should be excluded from search engine indexing?ExclusionsNone — index all pages (Recommended), Admin/auth pages only, Let me specify

Call 2

QuestionHeaderOptions
What meta description should appear in search results?Description*(free text — use single generic option so user types via "Other")*
Add Open Graph tags for social media sharing?OG TagsYes — add Open Graph and Twitter Card tags (Recommended), No — skip social tags

Output

  • Production URL confirmed
  • Exclusion list finalized
  • Meta description text
  • Open Graph tag preference (yes/no)

Phase 3: Plan & Approve

Goal: Present the full SEO plan to the user and get explicit approval before making changes.

Actions

Present the SEO additions that will be made as a clear, inline summary:

  1. robots.txt content — which paths will be allowed/disallowed
  2. sitemap.xml content — all discovered routes with the production URL and priority assignments
  3. Meta tags to add to index.html — title, description, viewport, charset, Open Graph, Twitter Card
  4. Favicon — link tag and placeholder SVG

After presenting the plan, use AskUserQuestion to get approval:

QuestionHeaderOptions
Here is the SEO plan. How would you like to proceed?SEO Plan ApprovalApprove and proceed (Recommended), I'd like to make changes

If the user chooses "I'd like to make changes", ask what they want to change, update the plan accordingly, and present the revised plan for approval again.

Output

  • User-approved SEO plan ready for implementation

Phase 4: Add robots.txt

Goal: Create a valid robots.txt that tells search engines which pages to crawl.

Actions

Create robots.txt in the public directory (<PROJECT_ROOT>/public/robots.txt):

User-agent: *
Allow: /

Sitemap: <PRODUCTION_URL>/sitemap.xml

If the user specified pages to exclude, add Disallow directives:

User-agent: *
Allow: /
Disallow: /admin/
Disallow: /auth/

Sitemap: <PRODUCTION_URL>/sitemap.xml

Output

  • public/robots.txt created with correct directives

Phase 5: Add sitemap.xml

Goal: Generate a complete sitemap.xml listing all discoverable routes with proper priorities.

Actions

Create sitemap.xml in the public directory (<PROJECT_ROOT>/public/sitemap.xml).

Generate entries for each discovered route using the production URL:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc><PRODUCTION_URL>/</loc>
    <lastmod><TODAY_DATE></lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc><PRODUCTION_URL>/about</loc>
    <lastmod><TODAY_DATE></lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
  <!-- Additional routes... -->
</urlset>

Priority rules:

  • Home page (/): 1.0
  • Top-level pages: 0.8
  • Sub-pages: 0.6

Exclusions: Do not include routes the user chose to exclude (e.g., /admin/*, /auth/*).

Output

  • public/sitemap.xml created with all routes, correct URLs, and no placeholders

Phase 6: Add Meta Tags

Goal: Add comprehensive meta tags, Open Graph tags, and a favicon to the site's HTML.

Actions

6.1 Essential Meta Tags

Add or update meta tags in the site's index.html (location depends on framework — see Phase 1.3):

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title><SITE_TITLE></title>
  <meta name="description" content="<META_DESCRIPTION>" />
  <meta name="robots" content="index, follow" />
  <link rel="canonical" href="<PRODUCTION_URL>/" />
  <link rel="sitemap" type="application/xml" href="/sitemap.xml" />
</head>

6.2 Open Graph Tags (if user opted in)

Add Open Graph and Twitter Card meta tags inside <head>:

<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:title" content="<SITE_TITLE>" />
<meta property="og:description" content="<META_DESCRIPTION>" />
<meta property="og:url" content="<PRODUCTION_URL>/" />
<meta property="og:site_name" content="<SITE_TITLE>" />

<!-- Twitter Card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="<SITE_TITLE>" />
<meta name="twitter:description" content="<META_DESCRIPTION>" />

6.3 Favicon

Check if a favicon already exists in the public directory. If not, add a simple SVG favicon link:

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />

Create a minimal placeholder public/favicon.svg using the site's primary color:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
  <rect width="100" height="100" rx="20" fill="<PRIMARY_COLOR>"/>
  <text x="50" y="70" font-size="50" text-anchor="middle" fill="white" font-family="system-ui, sans-serif" font-weight="bold"><FIRST_LETTER></text>
</svg>

Where <FIRST_LETTER> is the first letter of the site name and <PRIMARY_COLOR> is the primary theme color from the site's configuration.

6.4 Astro-Specific Handling

For Astro sites, meta tags should be added to the base layout component (e.g., src/layouts/Layout.astro) rather than a root index.html. Astro uses component-based <head> management.

Output

  • Meta tags added to index.html (or Astro layout equivalent)
  • Open Graph and Twitter Card tags added (if opted in)
  • Favicon SVG created and linked (if not already present)

Phase 7: Verify & Commit

Goal: Confirm all SEO assets are in place, verify via Playwright, and commit changes.

Actions

7.1 Verify Files Exist

Confirm the following files were created/updated:

  • public/robots.txt
  • public/sitemap.xml
  • public/favicon.svg (if created)
  • index.html or equivalent (meta tags added)

7.2 Verify via Playwright

If a dev server is running (or start one):

  1. Navigate to the site root and use browser_snapshot to verify meta tags are present in the page source
  2. Navigate to /robots.txt and verify it loads
  3. Navigate to /sitemap.xml and verify it loads

7.3 Record Skill Usage

Reference: ${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md

Follow the skill tracking instructions in the reference to record this skill's usage. Use --skillName "AddSeo".

7.4 Git Commit

CRITICAL — This step is MANDATORY. You MUST commit the SEO changes before finishing. Do NOT skip this step.

Stage the specific SEO files and commit:

git add public/robots.txt public/sitemap.xml public/favicon.svg index.html
git commit -m "Add SEO: robots.txt, sitemap.xml, meta tags, favicon"

Adjust the file paths based on what was actually created (e.g., include src/layouts/Layout.astro instead of index.html for Astro sites, omit favicon.svg if it was not created). Only stage files that were created or modified by this skill.

7.5 Present Summary

Present a summary of what was added:

AssetStatusDetails
robots.txtCreatedAllows all crawlers, references sitemap
sitemap.xmlCreatedX URLs mapped with priorities
Meta tagsAddedtitle, description, viewport, canonical, robots
Open GraphAdded/Skippedog:title, og:description, og:url, Twitter Card
FaviconCreated/SkippedSVG favicon with site initial

7.6 Suggest Next Steps

After the summary, suggest:

  • Deploy the site to make SEO changes live: /deploy-site
  • If data model is needed: /setup-datamodel
  • For more advanced SEO: consider structured data (JSON-LD), performance optimization, and accessibility audit

Output

  • All files verified on disk
  • Playwright verification passed
  • Git commit created with all SEO changes

Important Notes

Progress Tracking

Use TaskCreate at the start to track each phase:

TaskDescription
Phase 1Verify site exists and detect framework
Phase 2Gather SEO configuration from user
Phase 3Present plan and get user approval
Phase 4Create robots.txt
Phase 5Generate sitemap.xml
Phase 6Add meta tags, Open Graph, and favicon
Phase 7Verify via Playwright and commit

Update each task with TaskUpdate as it is completed.

Key Decision Points

  • Phase 1: If powerpages.config.json is not found, stop and redirect the user to /create-site.
  • Phase 2: If the user specifies custom exclusions, confirm the exact paths before proceeding.
  • Phase 3: Do not proceed to implementation until the user explicitly approves the plan.
  • Phase 6.4: If the framework is Astro, meta tags go into the layout component, not index.html.
  • Phase 7.2: If Playwright verification fails (e.g., robots.txt does not load), diagnose and fix before committing.

Begin with Phase 1: Verify Site Exists

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.94%
按下载量换算83

Claude

26.8%
按下载量换算62

Cursor

18.11%
按下载量换算42

Gemini CLI

9.87%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills