pr-demo
Starts a pull request's branch on the project's demo site, in its own worktree with its own copy of the demo data, and hands over the address, where the login lives, and a short click-through list of what to try. Use when someone wants to try a PR or branch in the backoffice themselves before approving or merging it.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- pr-demo
- description
- Starts a pull request's branch on the project's demo site, in its own worktree with its own copy of the demo data, and hands over the address, where the login lives, and a short click-through list of what to try. Use when someone wants to try a PR or branch in the backoffice themselves before approving or merging it.
- argument-hint
- [PR number, PR URL, or branch | leave blank for the current branch]
- user-invocable
- true
03 SKILL.md 正文
Try a pull request on the demo site
A good PR description and screenshots show what changed. Clicking through it yourself shows how it feels: the empty states, the odd input, the screen next door. This skill gets the branch running on the demo site with data in it, then gets out of the way.
It never changes code, commits, pushes, or comments on the PR.
Scope
- IN: one PR or branch, started on the project's demo site, with a click-through list.
- OUT: reviewing the code (
pr-reviewfor an outside PR,reviewerfor your own task); fixing what you find (quick-fix, or the plan'sfeature-build); a project with no demo site (say so, and point atproject-init).
Argument
$ARGUMENTS is a PR number or URL, or a branch name. Empty means the current branch.
Workflow
-
Find the branch. For a PR,
gh pr view <number> --json title,body,author,headRefName,baseRefName,files. Note whether the author is on the core team: an outside PR gets step 3 before anything builds. -
Find or make a worktree for it.
git worktree listshows whether the branch is already checked out somewhere.- In a linked worktree: use it as it is, with the demo data already in it.
- Not checked out anywhere: make a worktree for it, named after the branch, and let the
project's
WorktreeCreatehook copy in what it copies (git-workflowowns that rule). For a PR from a fork, fetch it first (gh pr checkout <number>inside the new worktree). Remember you made it: step 7 removes it. - In the main checkout: the demo data there is the original, not a copy. Any migration on the branch, and anything clicked during the demo, changes it for every branch after. Ask before starting the site there, and offer a worktree with a copy instead.
-
For an outside PR, read what would run before building it. Do
pr-review's step 2 scan (build scripts, package sources,postinstallentries, workflows, binaries) on the diff beforedotnet buildornpm installtouch the branch. Flag anything it finds and wait for a yes. -
Check the demo data belongs to this worktree. The site's database must live inside the worktree (such as SQLite under the site folder), as must its media. A connection string to a shared server means the demo writes to data other branches use: ask first. No demo data at all: the site's own install runs on first start, which is fine.
-
Start the site. Use the start command in
CLAUDE.md's "Build & test", run in the background from the worktree. The port comes fromgit wdp-port, never a fixed one. Wait until the backoffice answers, then log in once to check it works. If the build or start fails, stop and report it: a demo that won't start is a finding about the PR. -
Make sure the change has something to show. With a plan folder, start from the "Demo setup" notes in
BUILD-LOG.md. Set up what a note names exactly as written (the same tags, values and settings) so the result it describes still holds; anything you add goes beside it, never into it. Otherwise read the diff for what it needs in the site: a document type using a new property editor, content for a new dashboard to list, a setting turned on. If the demo data doesn't have it, add what shows the change, through the backoffice or the Management API, in this worktree's copy only. List what you added.Make it look like a real site. Write what an editor of this site would really write: real-sounding titles, names and text that match the demo's existing content and languages; a mix of lengths, including one long enough to wrap; the characters real content has (an accent, an ampersand, quotes); an optional field left empty. Add enough of it to reach paging, sorting or an empty state when the change has one, and write out every item: never "add more until there are 12" for the user to finish. Never "Test 1", "foo" or lorem ipsum: placeholder data hides the layout and edge-case problems a click-through is meant to find.
-
Hand over. Give:
- The backoffice address, with the worktree's port.
- Where the login lives (the file or environment variable), not the password itself.
- What you added in step 6.
- The click-through list: each item a click path and what should happen
("Settings › Tag filters › add
internal-as a prefix › the cloud on the home page drops the "internal-notes" tag"). Take it from the plan folder when the branch has one (SPEC.md,STORIES.md, and the click paths inBUILD-LOG.md), otherwise from the PR's description (its "Where to find it" or "How to verify", whenpr-describewrote it). Include the edge cases the spec or PR names, and the screens next to the change that it could have broken.
When the user says they're done: stop the site. Remove a worktree this skill made, unless it has changes the user made in it; then ask. Leave a worktree that already existed.
Hand off
One line: the address, the branch, and whether the worktree was made for this demo. If another skill started this one, return that line and stop. That skill decides what runs next. Otherwise, if the user found a problem, offer the fix route that fits its size.
04 同仓库更多 Skills
user-stories
Writes, splits and refines user stories with Given/When/Then acceptance criteria in STORIES.md, feeding bdd-specs. Use when turning a feature request or a vague ask into a testable backlog entry.
umbraco-security
What Umbraco provides for keeping a package secure, on the server and in the backoffice: Management API authorization and policies, settings that hold secrets, endpoints outside the Management API, sanitizeHTML and escapeHTML, DOMPurify rules for custom elements, and umbHttpClient instead of handling tokens in the browser. Use when writing or reviewing a Management API controller, a secret setting, a custom endpoint, a backoffice template that uses unsafeHTML, or frontend code that calls an API.
umbraco-performance
Keeping a package fast on the sites that install it: the published cache over the services layer, tree traversal, caching lookups and clearing them, data type config and converter cache levels, output cache eviction, light hot paths, and backoffice screens that don't over-fetch. Use when writing, changing or reviewing code that runs per request, per save, per indexed item or at startup (property value converters, notification handlers, indexing), code that loops over every content item (a full rebuild, an import, a sync), or a list or search screen. Not for a site's own templates.
umbraco-package-conventions
Backend conventions for an Umbraco package: async naming, internal by default, Attempt-based results for routine failures, public-API backwards compatibility, and where extension methods live. Use when naming a method, choosing visibility, shaping a service's result, changing a public signature (including adding a dependency to a public class's constructor), or organizing extension methods. For extension mechanisms, see `umbraco-extensibility`.
umbraco-marketplace
Gets a finished package listed on the Umbraco Marketplace: the NuGet tag, the dependency Marketplace reads version support from, the v14+ compatibility gotcha, and umbraco-marketplace.json. Use when a package is ready to publish, or when reviewing its packaging.
umbraco-extensibility
Umbraco's extension mechanisms (Composers, collection builders, notification handlers, attribute discovery) and a catalogue of backend CMS extension points: property value converters, Management API endpoints, content finders, health checks, search indexing, package migrations, background jobs, and more. Use when making a feature extensible or choosing which extension point fits. Not for property editor UI, dashboards, sections or trees, which the official Backoffice Skills plugin covers.