一键导入
update-xperience
Update Kentico Xperience NuGet and pnpm packages to latest non-breaking version and commit changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update Kentico Xperience NuGet and pnpm packages to latest non-breaking version and commit changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Builds a scoped CDRepository repository.config from recent CIRepository changes in an Xperience by Kentico project. Use when preparing a deployment package and you need CD filters derived from PR/commit CI diffs while excluding Xperience-update-only noise.
Review a specific code component type throughout the codebase (e.g., Page Builder Widgets, Razor templates, scheduled tasks) and identify inconsistencies in naming, registration, properties, validation, querying, and structure. Use when analyzing component implementations for consistency and estimating AI code generation risk.
| name | update-xperience |
| description | Update Kentico Xperience NuGet and pnpm packages to latest non-breaking version and commit changes. |
Automate updating all Kentico Xperience dependencies (Kentico.Xperience.*
NuGet + @kentico/* pnpm) when a newer version than the one declared in
README.md is available, run required update tasks, and produce a proper
commit. Abort early if no newer version or if breaking changes are detected.
git status --porcelain MUST return no output.main.Directory.Packages.props is
present.If any precondition fails: output a clear message and stop.
This update process includes a CI Store run after the database is updated. To prevent the loss of updated CI state, a CI Restore should always be run before this process begins.
A restore can be run with the ./scripts/Restore-CI.ps1 script, run from the
scripts directory.
dotnet tool restore at the repository rootdotnet list Kentico.Community.Portal.slnx package --outdated and
analyze the output to identify if Xperience by Kentico packages are outdatedDirectory.Packages.props.<PackageVersion Include="Kentico.Xperience.*" Version="X" />
entries where Version equals the current version.Version with the latest version reported by
dotnet-outdated.-preview or -prerelease version and the
version number matches the other Kentico.Xperience.* packages, try to
update it to a new -preview or -prerelease version as well.Kentico.Xperience.Lucene, Kentico.Xperience.MiniProfiler,
Kentico.Xperience.TagManager). These are outside the scope of this task.dotnet restore
package.json files under src/ containing dependencies or
devDependencies starting with @kentico/.corepack pnpm add <package>@latest --save-exact
or if dev dependency: --save-dev --save-exact.pnpm: install (Admin) (ensures
lockfile consistency for Admin client).pnpm: audit fix (Admin) (attempts to resolve
package vulnerabilities) and do not block workflow unless critical.mcp.json file and ensure
their version is updated to match.NET: build (Solution)..NET: test (Solution); if widespread failures
clearly due to API changes, STOP.Update-Xperience.ps1 -AgentMode to update database schema/data to new
package version without interactive confirmation prompts. The -AgentMode
switch ensures --skip-confirmation is passed for non-interactive
automation.This project is using Xperience by Kentico vNEW_VERSION (changelog: https://docs.kentico.com/documentation/changelog#ANCHOR).ANCHOR:
git diff --name-only and ensure expected files modified (props file,
README, package.json / lock files, potentially generated code, database
scripts ignored if unchanged)..NET: build (Solution) to ensure no transient issues.git add Directory.Packages.props README.md **/package.json **/pnpm-lock.yaml
Add any generated files updated by the application update (e.g., under
src/** if present).git commit -m "build(sln): update to Xperience v${latestVersion}"
Provide a concise summary including:
If stopped early (no update or breaking changes), explain reason and suggest manual follow-up steps.
| Scenario | Action |
|---|---|
| Dirty working tree | Abort; ask user to commit/stash changes. |
On main branch | Abort; instruct user to create feature branch. |
| NuGet query fails | Retry with fallback search; if still failing abort. |
| Build fails post-update | Report potential breaking changes; abort. |
| Application update script fails | Report; abort commit. |
ValidateRepoState()
currentVersion = ExtractVersionFromReadme()
latestVersion = QueryLatestNuGet()
if latestVersion <= currentVersion: Stop("No new version")
UpdateCentralPackageVersions(latestVersion)
UpdateKenticoPnpmPackages()
RunTask(".NET: build (Solution)")
if BuildFailed(): Stop("Breaking changes detected")
RunTask("Xperience: Application Update")
UpdateReadmeVersion(latestVersion)
BackupDatabase()
StageAndCommit(latestVersion)
ReportSummary()
name: Update Xperience Packages description: A prompt to guide an agent to update Xperience by Kentico packages in the repository. tasks:
Update-Xperience.ps1 -AgentMode
(non-interactive update applying --skip-confirmation).