Agent Skills › facebook/docusaurus › pull-requests

pull-requests

GitHub

指导Docusaurus维护者创建、更新、检查CI或合并Pull Request。包括PR模板适配、标签管理、CI状态监控及失败处理,适用于GitHub PR全流程操作。

.agents/skills/pull-requests/SKILL.md facebook/docusaurus

Trigger Scenarios

创建新的Pull Request 更新现有PR描述或链接 检查PR的CI构建状态 合并已通过的Pull Request

Install

npx skills add facebook/docusaurus --skill pull-requests -g -y
More Options

Non-standard path

npx skills add https://github.com/facebook/docusaurus/tree/main/.agents/skills/pull-requests -g -y

Use without installing

npx skills use facebook/docusaurus@pull-requests

指定 Agent (Claude Code)

npx skills add facebook/docusaurus --skill pull-requests -a claude-code -g -y

安装 repo 全部 skill

npx skills add facebook/docusaurus --all -g -y

预览 repo 内 skill

npx skills add facebook/docusaurus --list

SKILL.md

Frontmatter
{
    "name": "pull-requests",
    "description": "Create, update, check the CI of, or merge a facebook\/docusaurus pull request. Use before running `gh pr create`, pushing commits to an existing PR, reading its CI checks or bot comments, or merging it. Docusaurus maintainers only."
}

Pull requests

Only Docusaurus maintainers (DOCUSAURUS_MAINTAINER=true) can create pull requests. For everyone else, the non-maintainer rules of AGENTS.md apply: never create a PR.

Creating a PR

Write the description from the GitHub pull request template in .github/PULL_REQUEST_TEMPLATE.md, adapted for maintainers:

  • Remove the ## Pre-flight checklist section. It is only relevant for external contributors: we assume maintainers did their best, so it only adds noise.
  • Remove all the HTML comments of the template.
  • Remove the ## Related issues/PRs section if there is nothing relevant to link.
  • If a benchmark is useful to review the change (performance, bundle size…), add a ## Benchmark section right after ## Motivation.
  • If there are breaking changes, start with a ## Breaking Changes section explaining:
    • The breaking change.
    • How to upgrade. Link to the release notes or blog posts if they exist.
    • How to restore the behavior of the previous major version, only if there is a straightforward way. Don't write convoluted guides.

Be concise in every section. If something important is verbose (long logs, detailed benchmark results…), hide it in a <details><summary>…</summary>…</details> block.

After creating the PR, update the deploy preview link in its description with the assigned PR number: https://deploy-preview-<PR-NUMBER>--docusaurus-2.netlify.app/. Include links to relevant preview pages in the template's Test links section so that reviewers can easily find them.

Labels

  • Give each PR exactly one pr: <type> label, picked from the existing labels (gh label list --search "pr:"). It categorizes the PR in the changelog. Use pr: ignore for changes too insignificant to appear in a user-facing changelog.
  • If the PR can affect visual rendering (HTML markup, CSS, theme components…), also add the Argos label. It runs the visual regression tests (see .github/workflows/argos.yml).

CI checks

After creating a PR or pushing new commits to it, check its CI status. Wait for the result with a single blocking command instead of polling in a loop:

gh pr checks <PR-NUMBER> --watch --fail-fast

It exits with 0 once all checks pass, or non-zero on the first failure. CI takes around 10 minutes, so run it in the background if your agent supports it. If it exits immediately with "no checks reported", the checks haven't registered yet: run it again. On failure, report the failing check and read its logs with gh run view <RUN-ID> --log-failed.

Known flaky failure: the Supply Chain - Site Template @canary job often fails because canary releases are not published atomically. npm scans each package for malware, so they become available at different times. A failure with ERR_PNPM_NO_MATCHING_VERSION on a @docusaurus/* canary version is this known issue: ignore it. If the job fails for any other reason, in particular a third-party dependency blocked for a vulnerability or malware by one of the workflow's tools (sfw, pnpm…), report it and block the PR merge.

Bot comments

Bots post comments on every PR: Lighthouse scores, Netlify deploy preview, Socket Security, and two build size reports (faster/slower). Don't report these comments in the conversation unless they show a clear problem or something suspicious (score drop, unexpected size increase, security alert…).

Merging

  • Never use auto-merge, including gh pr merge --auto. The repository doesn't use auto-merge, and --auto merges immediately when the PR is already mergeable.
  • If CI checks are still running, wait for all of them to finish before merging (see CI checks).
  • If any CI check fails, report the failure and do not merge. The only exception is the known canary supply chain failure above.

Version History

  • 7b6826b Current 2026-10-19 04:29

Same Skill Collection

.agents/skills/code-style/SKILL.md
.agents/skills/dependencies/SKILL.md

Metadata

Files
0
Version
7b6826b
Hash
9137c977
Indexed
2026-10-19 04:29

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-23 17:31
浙ICP备14020137号-1