sitecore

Automates Sitecore instance operations via SharpPS.Shells PowerShell and SPE Remoting.

Updated Jul 24, 2026
One-click install
npx skills add https://github.com/gweone/agent-plugins --skill sitecore-gweone
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sitecore
Source: https://github.com/gweone/agent-plugins/tree/main/plugin/sharpps-sitecore/skills/sitecore
Command: npx skills add https://github.com/gweone/agent-plugins --skill sitecore-gweone

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with a running Sitecore instance from a SharpPS-scaffolded solution involves many non-obvious pitfalls: module installation without admin rights, self-signed certificate trust failures, nonexistent SPE cmdlets, wrong serialization formats, and blocked live writes from Claude Code. This Skill encodes the live-verified correct procedures so you avoid those traps. ## Core Features & Use Cases - Module Bootstrap: Install and import SharpPS.Shells and the SPE client module with CurrentUser scope when admin rights are unavailable, including the self-signed cert trust override required by New-SPESession. - Remote Item Creation: Create Template, Template Section, Template Field, rendering, and datasource items on a live instance through New-SPESession and Invoke-RemoteScript, using Add-BaseTemplate and low-level New-Item rather than nonexistent convenience cmdlets. - Unicorn Serialization: Serialize newly created items with Export-UnicornItem (not SPE's Export-Item), locate the real Rainbow physical root path, handle 30-character filename truncation, and retrieve files from remote instances via Receive-RemoteItem. - Use Case: You need to scaffold a new SXA rendering with its datasource template and sample datasource item on a remote Sitecore instance, then commit the serialized YAML to your local repo. This Skill walks you through the session setup, item creation, Unicorn export, and file retrieval end to end. ## Quick Start Ask the AI to create a new rendering with its datasource template and a sample datasource item on your Sitecore instance using SPE Remoting, then serialize them with Unicorn and pull the YAML files into the local repo.

Frequently Asked Questions about sitecore

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Sitecore templates and renderings remotely with PowerShell?

Open a session with New-SPESession, then run New-Item inside Invoke-RemoteScript using the system Template, Template Section, and Template Field IDs. Use Add-BaseTemplate for base templates; Add-ItemTemplateSection and Add-ItemTemplateField do not exist as SPE cmdlets.

How do I install SharpPS.Shells without admin rights?

Register the SharpPSGallery PSRepository manually, then run Install-Module SharpPS.Shells with -Scope CurrentUser instead of running launcher.ps1, whose AllUsers scope fails on non-elevated shells. Also install the separate SPE module from PSGallery for New-SPESession.

Why does New-SPESession fail against a local HTTPS Sitecore instance?

New-SPESession does not trust self-signed certificates automatically. Set the classic ICertificatePolicy override and SecurityProtocol in the same PowerShell process as the session and every Invoke-RemoteScript call, since ServicePointManager state does not persist across processes.

Should I use Export-Item or Export-UnicornItem to serialize Sitecore items?

Use Export-UnicornItem -Recurse whenever a Unicorn configuration's predicate covers the target path, since it writes Rainbow YAML matching the repo layout. Fall back to SPE's Export-Item only when no Unicorn config covers the path, as it produces the older .item format.

How do I download serialized files from a remote Sitecore instance?

Use the client-side Receive-RemoteItem cmdlet with the SPE session, passing the absolute server-side file path as -Path and a local -Destination. Alternatively, return file contents as strings from Invoke-RemoteScript and write them locally.

Why does Claude Code block live SPE write operations?

Claude Code's auto mode classifier treats New-SPESession and Invoke-RemoteScript calls that modify a live instance as high-risk writes and blocks them by default. Proceeding requires an explicit user-approved project permission entry in a local, gitignored settings file.