Agent skill

Merge New Sample PR

by pnp in pnp/sp-dev-fx-aces

End-to-end review-and-merge workflow for a new-sample PR in pnp/sp-dev-fx-aces.

MITAuto-check passed

Install Merge New Sample PR

skills CLI
$ npx skills add pnp/sp-dev-fx-aces --skill merge-new-sample-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pnp/sp-dev-fx-aces merge-new-sample-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pnp/sp-dev-fx-aces.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/merge-new-sample-pr .claude/skills/merge-new-sample-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
merge-new-sample-pr
GitHub stars
139
Token cost
~1.9k tokens
SKILL.md length
738 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

End-to-end review-and-merge workflow for a new-sample PR in pnp/sp-dev-fx-aces.

  • Works in 8 steps: Confirm PR type and permissions → Run verify-new-sample-pr in full → Run generate-sample-metadata on the same… → …
  • : review and merge PR
  • SKILL.md covers Procedure and Notes
  • Calls git, gh and npm; reaches aka.ms and github.com; needs GITHUB_TOKEN

What it does

Merge New Sample PR is an agent skill from pnp/sp-dev-fx-aces. End-to-end review-and-merge workflow for a new-sample PR in pnp/sp-dev-fx-aces. Use when: "review and merge PR", "process this new sample PR", "merge PR <N after testing", ready to take a new-sample PR all the way from build verification to merged-into-main. Orchestrates verify-new-sample-pr (build + manual test checklist) and generate-sample-metadata (assets/sample.json), then commits just that file, pushes it to the contributor's branch, merges to main matching repo convention, posts a thank-you comment…

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Repository for the Microsoft Viva Connections Adaptive Card sample solutions from Microsoft and community. The licence is MIT.

When your agent uses it

  • : review and merge PR
  • Process this new sample PR
  • Merge PR <N after testing
  • Ready to take a new-sample PR all the way from build verification to merged-into-main

Example prompts

  • “review and merge PR”
  • “process this new sample PR”
  • “merge PR <N after testing”
  • “/merge-new-sample-pr”

Requirements

  • Node.js
  • A credential in GITHUB_TOKEN

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Confirm PR type and permissions
  2. Run verify-new-sample-pr in full
  3. Run generate-sample-metadata on the same checked-out branch
  4. Stage, commit, and push — only the metadata file
  5. Expect (and don't chase) the "Sample validation" false-negative
  6. Wait for explicit merge go-ahead, then merge matching repo convention
  7. Post a thank-you comment on the PR
  8. Clean up

What it can do on your machine

Read from SKILL.md and the folder at commit a3a0b1e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • aka.ms
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GITHUB_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Merge New Sample PR loads about 1.9k tokens when it runs. Until then it costs about 196 tokens; SKILL.md has 738 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~196
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pnp/sp-dev-fx-aces at commit a3a0b1e, republished under its MIT licence (© pnp). 738 words, ~1,917 tokens.

Download SKILL.mdSave it as .claude/skills/merge-new-sample-pr/SKILL.md (or your agent's skills folder).
name
merge-new-sample-pr
description
End-to-end review-and-merge workflow for a new-sample PR in pnp/sp-dev-fx-aces. Use when: "review and merge PR", "process this new sample PR", "merge PR <N> after testing", ready to take a new-sample PR all the way from build verification to merged-into-main. Orchestrates verify-new-sample-pr (build + manual test checklist) and generate-sample-metadata (assets/sample.json), then commits just that file, pushes it to the contributor's branch, merges to main matching repo convention, posts a thank-you comment crediting the contributor with a link to the community call demo request form, and cleans up — pausing for your explicit go-ahead at each consequential step (manual test result, generated metadata review, the merge itself, and the thank-you comment).
argument-hint
<PR number or URL>

Merge New Sample PR (orchestrator)

This is a thin orchestrator over two existing skills — it doesn't duplicate their logic, it sequences them and adds the git/GitHub mechanics needed to actually get a fix committed onto someone else's PR branch and merged:

  1. verify-new-sample-pr — build + manual test checklist
  2. generate-sample-metadata — assets/sample.json

Four hard pause points, matching how impactful/reversible each step is — never skip these or combine them without the user's explicit go-ahead:

  • After build+checklist: wait for the user to confirm manual deploy/test passed
  • After generating sample.json: wait for the user to approve the content
  • Before merging: wait for explicit "merge it" — this is the only step that isn't easily reversible
  • Before posting the thank-you comment: wait for approval of the rendered text — it's a public, PR-visible comment

Procedure

1. Confirm PR type and permissions
bash
gh pr view <PR_NUMBER> --repo pnp/sp-dev-fx-aces --json body --jq '.body'
gh pr view <PR_NUMBER> --repo pnp/sp-dev-fx-aces --json maintainerCanModify,author,headRefName,headRepositoryOwner,state --jq '.'

If it's not a new-sample PR, stop and suggest verify-sample-pr-build instead. If maintainerCanModify is false, stop — see the maintainer-edit-a-PR guidance in repo memory before proceeding (ask the contributor, don't force anything).

2. Run verify-new-sample-pr in full

Follow that skill's procedure exactly: checkout, build, locate .sppkg, check API permissions, extract the deployment/testing checklist, flag README gaps.

STOP and wait for the user to manually deploy/test and report back ("all ok" or a problem). Do not proceed past this point without that confirmation — this is the whole point of that skill.

3. Run generate-sample-metadata on the same checked-out branch

Only if assets/sample.json is missing or needs fixing (check first — some contributors include one). Follow that skill's procedure: gather facts, derive fields, check name uniqueness, write the file.

Show the generated file to the user and wait for approval before touching git — title/description/author wording needs a human look.

4. Stage, commit, and push — only the metadata file

Local npm install/build steps often leave incidental diffs (e.g. package-lock.json version bumps) and this repo may have other unrelated uncommitted files sitting in the working tree (e.g. skill files not yet committed to main). Stage only the new/changed assets/sample.json:

bash
git add samples/<SampleName>/assets/sample.json
git status --short   # confirm nothing else is staged
git commit -m "Add sample.json metadata for <SampleName>"

Push to the contributor's branch to update the same PR (no separate PR):

bash
git push <fork-remote-or-full-fork-url> <PR-branch-name>

Known auth quirks in this Codespace — try in this order if push fails:

  1. Authentication error: ... push access — the default Codespaces GITHUB_TOKEN is scoped only to pnp/sp-dev-fx-aces, not third-party forks. Fix: have the user run unset GITHUB_TOKEN && gh auth login (interactive, needs a personal token with repo scope) — don't attempt this yourself, it needs their browser/device-code interaction.
  2. Authentication error: ... verify locks (even after #1) — this is Git LFS lock verification, unrelated to normal push permissions (repo has no LFS-tracked files). Fix: add -c lfs.https://github.com/<owner>/<repo>.git/info/lfs.locksverify=false before push on the git invocation (global option, not a push flag).
  3. If the named remote was removed in an earlier cleanup, push straight to the fork's full URL instead of re-adding a named remote.
Show full SKILL.md (278 more words)Show less
5. Expect (and don't chase) the "Sample validation" false-negative

The Sample validation PR check will likely fail after pushing — this is expected for brand-new samples using the canonical raw.githubusercontent.com/pnp/sp-dev-fx-aces/main/... thumbnail URLs, since those files don't exist on main until after merge. Confirm (once, cache the finding) that main has no branch-protection rule requiring this check:

bash
gh api repos/pnp/sp-dev-fx-aces/branches/main/protection

If unprotected, this check failing does not block merging. Do not "fix" it by pointing thumbnails at the contributor's fork/branch instead — that's the wrong long-term URL.

6. Wait for explicit merge go-ahead, then merge matching repo convention

This repo merges via merge commit (not squash/rebase) — confirm if unsure:

bash
git log origin/main --oneline -10   # look for "Merge pull request #NNN" pattern

Only after the user explicitly says to merge:

bash
gh pr merge <PR_NUMBER> --repo pnp/sp-dev-fx-aces --merge
7. Post a thank-you comment on the PR

After a successful merge, thank the contributor and invite them to present the sample in a community call. Get their GitHub login from the PR (already fetched in step 1 as author), then post:

Thank you @<author> for this new sample. If you would like to present your work in a community call please fill out the form https://aka.ms/community/request/demo
bash
gh pr comment <PR_NUMBER> --repo pnp/sp-dev-fx-aces --body "Thank you @<author> for this new sample. If you would like to present your work in a community call please fill out the form https://aka.ms/community/request/demo"

Show the exact rendered text (with the real username substituted) to the user before posting — this is a public, PR-visible comment, so confirm the target PR and wording are right before running it. Only post once per merged PR.

8. Clean up
bash
./.github/skills/verify-new-sample-pr/scripts/cleanup-sample-build.sh <abs-path>/samples/<SampleName>
rm -rf <abs-path>/samples/<SampleName>/node_modules
git checkout -- samples/<SampleName>/package-lock.json   # discard incidental npm-install diff, if any
git checkout main && git pull origin main
git branch -D <pr-branch-name>
git status --short   # confirm only pre-existing unrelated changes remain (e.g. uncommitted skill files)

Only remove a fork remote you added yourself for this session if it's no longer needed.

Notes

  • Never push, merge, or clean up without having reached the corresponding pause point above — this skill exists to make the sequence consistent, not to remove the user's checkpoints.
  • If the PR touches more than one sample folder, or isn't a clean new-sample PR, stop and flag it (same as verify-new-sample-pr).
  • See /memories/repo/sp-dev-fx-aces-build-verify.md for the accumulated quirks (disk space, nvm, auth, LFS, validation false-negative) this skill references.

© pnp, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/merge-new-sample-pr of pnp/sp-dev-fx-aces.

Open the folder on GitHubat commit a3a0b1e

Compare with similar skills

Merge New Sample PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Merge New Sample PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Merge New Sample PR this skillpnp/sp-dev-fx-aces139—~1.9kAutomated safety check: PassMIT
Mergeremotion-dev/remotion63k—~508Automated safety check: PassCustom licence
Mergewithastro/astro63k—~153Automated safety check: PassCustom licence
Merge Upsymfony/symfony31k—~4kAutomated safety check: PassMIT
Mergealirezarezvani/claude-skills28k—~587Automated safety check: PassMIT
Merging PRsPostHog/posthog40k—~4.1kAutomated safety check: PassCustom licence

Similar skills

  • Merge

    remotion-dev/remotion

    Official

    Wait for a Remotion pull request to become mergeable, handle merge conflicts, distinguish genuine CI failures from flakes, rerun flaky checks through the flake skill, and merge the PR.

    63k GitHub stars~508 tokensUpdated today
    DevelopmentAuto-check passed
  • Merge

    withastro/astro

    Official

    Handle main-to-next merge tasks including conflict resolution, changeset cleanup, and CI fix-ups.

    63k GitHub stars~153 tokensUpdated today
    Auto-check passed
  • Merge Up

    symfony/symfony

    Cascade-merge maintained Symfony branches from oldest to newest (e.g.

    31k GitHub stars~4k tokensUpdated today
    DevelopmentAuto-check passed
  • Merge

    alirezarezvani/claude-skills

    Merge the winning agent's branch into base, archive losers, and clean up worktrees.

    28k GitHub stars~587 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Merging PRs

    PostHog/posthog

    Official

    Merge a PR into master through the Trunk merge queue and babysit it until it lands.

    40k GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Merges a source branch into the current branch across ToolJet's root repo and its server/ee and frontend/ee submodules, handling conflicts and submodule order.

    41k GitHub stars~2.1k tokensUpdated today
    DevelopmentAuto-check: warnings

More from pnp/sp-dev-fx-aces

  • Generate Sample Metadata

    pnp/sp-dev-fx-aces

    Create or fix the assets/sample.json metadata file for a sample in pnp/sp-dev-fx-aces before merging a new-sample PR.

    139 GitHub stars~2.3k tokensUpdated 11 days ago
    Auto-check passed
  • Verify New Sample PR

    pnp/sp-dev-fx-aces

    Verify a "new sample" PR in pnp/sp-dev-fx-aces builds successfully, then produce a deployment + testing checklist from the sample README so it can be manually deployed and tested before merging.

    139 GitHub stars~2k tokensUpdated 11 days ago
    Auto-check passed
  • Verify Sample PR Build

    pnp/sp-dev-fx-aces

    Verify that the SPFx ACE sample(s) touched by a pull request in this repo build successfully before merging.

    139 GitHub stars~1.5k tokensUpdated 11 days ago
    Auto-check passed

Questions about Merge New Sample PR

What does Merge New Sample PR do?

End-to-end review-and-merge workflow for a new-sample PR in pnp/sp-dev-fx-aces. Merge New Sample PR is an agent skill from pnp/sp-dev-fx-aces. End-to-end review-and-merge workflow for a new-sample PR in pnp/sp-dev-fx-aces.

When should I use Merge New Sample PR?

Merge New Sample PR fits situations like: : review and merge PR; process this new sample PR; merge PR <N after testing; ready to take a new-sample PR all the way from build verification to merged-into-main.

How do I install Merge New Sample PR in Claude Code?

Run `npx skills add pnp/sp-dev-fx-aces --skill merge-new-sample-pr -a claude-code`. Or copy the skill folder (.github/skills/merge-new-sample-pr in pnp/sp-dev-fx-aces) into .claude/skills/merge-new-sample-pr in your project. Claude Code loads it when a task matches its description.

How do I install Merge New Sample PR in Codex?

Run `npx skills add pnp/sp-dev-fx-aces --skill merge-new-sample-pr -a codex`. Or copy the skill folder (.github/skills/merge-new-sample-pr in pnp/sp-dev-fx-aces) into .agents/skills/merge-new-sample-pr in your project. Codex loads it when a task matches its description.

Can I use Merge New Sample PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pnp/sp-dev-fx-aces --skill merge-new-sample-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/merge-new-sample-pr, .gemini/skills/merge-new-sample-pr, .github/skills/merge-new-sample-pr and .opencode/skills/merge-new-sample-pr in your project.

What does Merge New Sample PR need to run?

Going by SKILL.md and its folder, Merge New Sample PR needs the command-line tools its instructions call (git, gh and npm) and credentials named GITHUB_TOKEN. Our summary lists: Node.js; A credential in GITHUB_TOKEN.

Does Merge New Sample PR access the network?

SKILL.md names 2 domains. In commands or code: aka.ms and github.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Merge New Sample PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Merge New Sample PR use?

Merge New Sample PR is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Merge New Sample PR use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Merge New Sample PR?

Skills that share tags, products or a category with Merge New Sample PR: Merge (remotion-dev/remotion, 63k stars), Merge (withastro/astro, 63k stars), Merge Up (symfony/symfony, 31k stars) and Merge (alirezarezvani/claude-skills, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Merge New Sample PR?

pnp (a GitHub organization) maintains it in pnp/sp-dev-fx-aces, which has 139 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 28, 2026.

Source: pnp/sp-dev-fx-aces on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.