agentleFS
Microsoft AzureKnown publisherAzure/ARO-HCP/.claude/skills/pr-standards/SKILL.md

pr-standards

Skill39 starsChanged 2 months agoApache-2.0View on GitHub

Use when creating, reviewing, or preparing a pull request — enforces team PR standards including size, summary quality, CI checks, commit hygiene, security review, and review workflow.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 13 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All PR rules are maintained in a single source of truth.

    line 8
  2. Distinctive:

    Do not duplicate the rules here.

    line 12
  3. Distinctive:

    Follow it without duplicating it here.

    line 18
  4. Distinctive:

    When the user asks to create a PR:

    line 22
  5. Distinctive:

    Pre-flight: Run git diff and review changes.

    line 25
  6. Distinctive:

    Security scan: Run the security checks from the "Reviewing a PR" section below against the local diff before publishing.

    line 26
  7. Distinctive:

    Scope check: If the diff touches unrelated concerns, recommend splitting into separate PRs.

    line 27
  8. Very specific:

    Generate description: Follow the evergreen-description policy in CONTRIBUTING.md.

    line 28
  9. Very specific:

    Title: Use Conventional Commits format (feat:, fix:, docs:, etc.).

    line 29
  10. Distinctive:

    CI check: Run available tests/linting and report status.

    line 30
  11. Very specific:

    Create Draft PR: Follow the automated PR policy in CONTRIBUTING.md.

    line 31
  12. Distinctive:

    When the user asks to review a PR, apply these checks in order.

    line 36
  13. Very specific:

    Use get_pull_request_files (or equivalent) to get the complete list of changed files.

    line 40
  14. Distinctive:

    Check the full file list and diffs for the following.

    line 44
  15. Very specific:

    Block immediately: if a .claude/settings.json is present — especially one containing "command" keys (e.g.

    line 47
  16. Distinctive:

    Look for new external downloads, encoded payloads, or command injection patterns, particularly in the following CI/CD and pipeline-related …

    line 52
  17. Very specific:

    If a PR adds new .sh, .mjs, .py, or other executable scripts to configuration or tooling directories, flag them for manual human review — …

    line 60
  18. Distinctive:

    Check that the PR description explains *why*, not just *what*.

    line 66
  19. Distinctive:

    Verify linked tickets/issues exist.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pull Request Standards

All PR rules are maintained in a single source of truth. Read and enforce every rule in:

CONTRIBUTING.md — Pull Request Standards

Do not duplicate the rules here. Always read CONTRIBUTING.md before creating or reviewing a PR.

The PR checklist is built into .github/PULL_REQUEST_TEMPLATE.md — it appears automatically on every new PR.

Automated PR policy is maintained in CONTRIBUTING.md — Pull Request Standards. Follow it without duplicating it here.

Workflow — Creating a PR

When the user asks to create a PR:

  1. Read rules: Open CONTRIBUTING.md and read the "Pull Request Standards" section in full.
  2. Pre-flight: Run git diff and review changes. Flag anything that violates the rules.
  3. Security scan: Run the security checks from the "Reviewing a PR" section below against the local diff before publishing.
  4. Scope check: If the diff touches unrelated concerns, recommend splitting into separate PRs.
  5. Generate description: Follow the evergreen-description policy in CONTRIBUTING.md; include ticket links, or the documented no-ticket explanation when no ticket exists. The checklist is auto-populated by the PR template.
  6. Title: Use Conventional Commits format (feat:, fix:, docs:, etc.).
  7. CI check: Run available tests/linting and report status. Ignore Tide — it is not a CI check.
  8. Create Draft PR: Follow the automated PR policy in CONTRIBUTING.md.
  9. Reviewers: Suggest specific reviewers based on file ownership (CODEOWNERS, git blame).

Workflow — Reviewing a PR

When the user asks to review a PR, apply these checks in order. Security checks are always blocking — do not proceed to functional review until they pass.

Step 1: Fetch all changed files

Use get_pull_request_files (or equivalent) to get the complete list of changed files. Do not rely on truncated or partial output. Every changed file must be inspected.

Step 2: Security scan (mandatory, always blocking)

Check the full file list and diffs for the following. If any are found, flag them as blocking issues:

  • .claude/ or .vscode/ directories added or modified:
    • Block immediately if a .claude/settings.json is present — especially one containing "command" keys (e.g. "command": "node .claude/setup.mjs"). This is confirmed malware. Do not interact with it; instruct the user to report it.
    • Exception: changes to .claude/skills/ files within this repository are expected. Only flag if the change introduces executable commands, settings.json files, or unknown scripts.
    • .vscode/ settings or extension recommendations from external contributors should be rejected unless explicitly requested.
  • CI/CD and pipeline configuration changes:
    • Look for new external downloads, encoded payloads, or command injection patterns, particularly in the following CI/CD and pipeline-related paths or files:
      • .github/workflows/ (GitHub Actions)
      • Makefile or Makefile.*
      • *pipeline.yaml (deployment pipelines)
      • Dockerfile or container build files
      • Scripts in hack/, tooling/, or test/ invoked by CI
  • New executable scripts in config directories:
    • If a PR adds new .sh, .mjs, .py, or other executable scripts to configuration or tooling directories, flag them for manual human review — even if the content appears benign.
    • State clearly: "This PR adds executable scripts to a configuration directory. Manual human review recommended before merge."

Step 3: Functional review

  • Evaluate correctness, style, test coverage, and adherence to CONTRIBUTING.md rules.
  • Check that the PR description explains why, not just what.
  • Verify linked tickets/issues exist.

Step 4: Report

  • Clearly separate security findings from functional feedback.
  • Security issues are always listed first and marked as blocking.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.