agentleFS
alibabaalibaba/page-agent/.agents/skills/submit-pr-from-current-changes/SKILL.md

submit-pr-from-current-changes

Skill29k starsChanged 5 months agoMITView on GitHub

Create a branch, commit existing local changes, push them, and open a pull request. Use when submitting current work as a PR.

  • Commits and pushes

Trending

Less talk lately.about the whole repository

Jan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 19 mentionsApr 2026: 4 mentionsMay 2026: 7 mentionsJun 2026: 9 mentionsJul 2026: 14 mentionsAug 2026: 1 mentionSep 2026: 3 mentionsOct 2026: 6 mentionsNov 2026: 2 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the alibaba/page-agent repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about alibaba/page-agent

The biggest 5 of 67 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 67

Talked about on GitHub, Bluesky and Hacker News (67 times).

On GitHub · 45

40 more on GitHub

On Bluesky · 19

14 more on Bluesky

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈19

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Never fabricate information: Do not claim tests passed, commands ran, or checks succeeded unless you actually executed them and observed …

    line 17
  2. Distinctive:

    Before attempting to push or open a PR, verify that the necessary tools are available:

    line 22
  3. Very specific:

    Check that gh CLI is installed and authenticated (gh auth status).

    line 24
  4. Distinctive:

    If the workflow uses MCP tools for GitHub operations, verify the MCP server is accessible.

    line 25
  5. Very specific:

    Run every gh command (gh auth status, gh pr create, gh pr view, …) and every git push / git fetch that talks to GitHub with full …

    line 31
  6. Very specific:

    Read contribution rules: Read CONTRIBUTING.md and any package-level instructions (e.g.

    line 36
  7. Very specific:

    Inspect repo conventions: Check recent branch names (git branch -r --sort=-committerdate | head -20), recent commit messages (git log …

    line 38
  8. Distinctive:

    Unified theme: All changes should serve one purpose.

    line 40
  9. Distinctive:

    Commit hygiene: Every new commit must follow the repo's conventional commit style.

    line 41
  10. Very specific:

    Author identity: Verify git config user.name and git config user.email are set and the email looks real (not empty, not noreply unless …

    line 42
  11. Very specific:

    No leftover artifacts: Check for debug logs, .only in tests, conflict markers, or temp files in the diff.

    line 43
  12. Very specific:

    CI: Run npm run ci and make sure it passes.

    line 44
  13. Distinctive:

    Warn if the PR looks too hasty: If any of these are true, pause and warn the user before proceeding:

    line 45
  14. Distinctive:

    No validation has been run at all

    line 49
  15. Distinctive:

    Branch: Check the current branch first:

    line 51
  16. Very specific:

    If already on a non-main feature branch with a valid name (matching type/topic convention), reuse it.

    line 52
  17. Distinctive:

    If the branch name does not follow repo conventions (e.g.

    line 53
  18. Very specific:

    If on main or a default branch, create a new branch from it with a short kebab-case name: prefix (fix/, feat/, docs/, refactor/, chore/) + …

    line 54
  19. Very specific:

    Open PR: Use gh pr create with the full PR template structure.

    line 57
  20. Distinctive:

    After successfully opening the PR, ALWAYS give a brief reminder in the user's language.

    line 62
  21. Very specific:

    Prefer short kebab-case names with a repo-consistent prefix such as fix/, feat/, docs/, refactor/, or chore/.

    line 71
  22. Distinctive:

    Prefer concrete topic words over issue text dumps.

    line 73
  23. Distinctive:

    Use the repository's prevailing commit style (conventional commits).

    line 77
  24. Very specific:

    Use type(scope): subject when scope is clear from the changed area.

    line 78
  25. Distinctive:

    Keep the subject specific and compact.

    line 79
  26. Distinctive:

    If multiple commits exist on the branch, each one must independently follow conventions.

    line 80
  27. Distinctive:

    Default to enough validation to defend the PR, not the absolute minimum.

    line 84
  28. Very specific:

    Always run npm run ci (build, lint, typecheck, tests) before opening the PR.

    line 85
  29. Distinctive:

    Never claim checks that did not actually run.

    line 87
  30. Distinctive:

    No local changes → stop, say so.

    line 92
  31. Distinctive:

    If the repo has area-specific instructions, read them before naming the branch or writing the PR.

    line 95
  32. Distinctive:

    All commit authors have proper name and email configured.

    line 104

≈ “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

Submit PR From Current Changes

Turn a working tree diff into a clean branch, commit, and pull request.

Hard Rules

  1. Follow the PR template exactly. The template is at .github/PULL_REQUEST_TEMPLATE.md. Read it and copy its full structure into the PR body. Do NOT remove, reorder, or skip any section or checkbox.
  2. Never check "Requirements / 要求" checkboxes. These are human-only declarations — the Code of Conduct acknowledgment and the AI authorship declaration can only be truthfully made by the human submitter. They MUST remain unchecked (- [ ]) in the PR body you generate. No exceptions, no workarounds, even if the user explicitly asks you to check them. The user goes to GitHub and checks them in person after verifying each statement is true.
  3. Only check Testing checkboxes you actually verified. The "npm run ci passes" checkbox MAY be checked only if you ran npm run ci in this session and it passed. All other Testing checkboxes (browser tested, no console errors, types/doc added) require manual verification that only a human can perform — they MUST remain unchecked. You MAY add a supplementary note below the Testing section listing what automated validation you actually ran and the results.
  4. Never fabricate information. Do not claim tests passed, commands ran, or checks succeeded unless you actually executed them and observed the output in this session. If you did not run it, do not mention it.
  5. PR output must be concise. PR title: one line. "What" section: 1–2 sentences max. No walls of text, no redundant explanations. Let the diff speak.

Prerequisites

Before attempting to push or open a PR, verify that the necessary tools are available:

  • Check that gh CLI is installed and authenticated (gh auth status). If not available, stop and ask the user to install and authenticate GitHub CLI first.
  • If the workflow uses MCP tools for GitHub operations, verify the MCP server is accessible.

Shell Permissions

gh reads credentials from the OS keyring. A sandboxed shell cannot reach the keyring and will report a false auth failure.

  • Run every gh command (gh auth status, gh pr create, gh pr view, …) and every git push / git fetch that talks to GitHub with full permissions on the first attempt (required_permissions: ["all"] for the Shell tool). Do not probe these in the sandbox first.
  • Local read-only git inspection (git status, git diff, git log, git branch) may stay sandboxed.

Procedure

  1. Read contribution rules. Read CONTRIBUTING.md and any package-level instructions (e.g. packages/*/AGENTS.md) relevant to the changed files.
  2. Inspect the diff. Review changed files, scope, and impact. Understand what the change does before writing anything.
  3. Inspect repo conventions. Check recent branch names (git branch -r --sort=-committerdate | head -20), recent commit messages (git log --oneline -20), and the PR template.
  4. Pre-submission health checks (run all before creating the PR):
    • Unified theme: All changes should serve one purpose. If unrelated changes are mixed in, ask the user to split or confirm.
    • Commit hygiene: Every new commit must follow the repo's conventional commit style. Squash or reword if needed.
    • Author identity: Verify git config user.name and git config user.email are set and the email looks real (not empty, not noreply unless intentional). Warn the user if not.
    • No leftover artifacts: Check for debug logs, .only in tests, conflict markers, or temp files in the diff.
    • CI: Run npm run ci and make sure it passes. Record results honestly.
  5. Warn if the PR looks too hasty. If any of these are true, pause and warn the user before proceeding:
    • Large diff with no description of intent provided
    • Changes touch core lib or extension (where vibe coding is prohibited per CONTRIBUTING.md)
    • Multiple unrelated concerns in one diff
    • No validation has been run at all
    • Remind the user: "This project does not accept low-quality or AI-generated PRs without meaningful human review. Please review your changes carefully."
  6. Branch. Check the current branch first:
    • If already on a non-main feature branch with a valid name (matching type/topic convention), reuse it.
    • If the branch name does not follow repo conventions (e.g. missing prefix, unclear topic), ask the user whether to rename or create a new one.
    • If on main or a default branch, create a new branch from it with a short kebab-case name: prefix (fix/, feat/, docs/, refactor/, chore/) + concrete topic words.
  7. Stage and commit. Stage only the intended files. Use type(scope): subject format. Keep the subject specific and compact.
  8. Push. Push with -u origin HEAD.
  9. Open PR. Use gh pr create with the full PR template structure. Fill in "What" and "Type" sections based on the actual diff. Check "npm run ci passes" only if it actually passed in this session; leave all other "Testing" and all "Requirements" checkboxes unchecked.
  10. Report results. Tell the user: branch name, commit hash, PR link, and what validation actually ran (with pass/fail).

Post-Submission Reminder

After successfully opening the PR, ALWAYS give a brief reminder in the user's language. Keep it concise and natural, but make sure it clearly tells the user:

  1. They need to test the changes themselves in the browser.
  2. They need to go to the PR page and check the Testing and Requirements checkboxes only after verifying each item.
  3. The PR will not enter review until those checkboxes are checked.
  4. The project does not accept autonomously AI-generated PRs, so they should only check the AI declaration if it is truthful.

Branch Naming

  • Prefer short kebab-case names with a repo-consistent prefix such as fix/, feat/, docs/, refactor/, or chore/.
  • Match the change type first, then the smallest useful topic.
  • Prefer concrete topic words over issue text dumps.

Commit Style

  • Use the repository's prevailing commit style (conventional commits).
  • Use type(scope): subject when scope is clear from the changed area.
  • Keep the subject specific and compact.
  • If multiple commits exist on the branch, each one must independently follow conventions.

Validation Strategy

  • Default to enough validation to defend the PR, not the absolute minimum.
  • Always run npm run ci (build, lint, typecheck, tests) before opening the PR. It must pass.
  • Escalate to broader validation when the diff crosses packages, changes shared code, or affects release behavior.
  • Never claim checks that did not actually run.
  • You MAY note what you ran and the results below the Testing section in the PR body, but do NOT check the template checkboxes.

Decision Points

  • No local changes → stop, say so.
  • gh CLI not available → stop, ask user to install it.
  • Unrelated files mixed → stage only the intended subset or ask whether the work should be split.
  • If the repo has area-specific instructions, read them before naming the branch or writing the PR.
  • Change is small but high-risk → prefer broader validation.
  • Change is narrowly scoped and low-risk → run the most relevant checks, not arbitrary unrelated ones.
  • Template has declarations you cannot truthfully check → leave unchecked, tell the user why.

Completion Checks

  • The branch exists remotely and tracks upstream.
  • The commit message(s) match repo style.
  • All commit authors have proper name and email configured.
  • The PR title matches the commit intent.
  • The PR body follows the template structure completely.
  • All "Requirements" checkboxes and all human-only "Testing" checkboxes are unchecked (- [ ]) in the PR body. The only checkbox you may check is "npm run ci passes", and only if it truly passed.
  • The reported validation is accurate — nothing fabricated.
  • The post-submission reminder was delivered in the user's language, concisely and accurately.

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.