[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CYEYRD2SMAEB6YTFNTRDE9":3,"skill-same:01M7CYEYRD2SMAEB6YTFNTRDE9":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7CYEYRD2SMAEB6YTFNTRDE9","umbraco-cms-source",null,"How to read Umbraco CMS source at the release tag the project targets, from a local clone of umbraco\u002FUmbraco-CMS or from GitHub through `gh`. Use when you need to see how the CMS implements something: a base class, an extension point's contract, a backoffice element, a service's behavior.","mattbrailsford\u002Fumbraco-devkit","mattbrailsford","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F527305?v=4","01M7CY974D4XX1P90YSXQC1T39","Matt Brailsford","01M7CY9751PSRA3EHBH03G936J",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-cms-source\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: umbraco-cms-source\ndescription: >-\n  How to read Umbraco CMS source at the release tag the project targets, from a local clone\n  of umbraco\u002FUmbraco-CMS or from GitHub through `gh`. Use when you need to see how the CMS\n  implements something: a base class, an extension point's contract, a backoffice element, a\n  service's behavior.\n\n---\n\n# umbraco-cms-source\n\nThe CMS source is the ground truth for how Umbraco behaves. Reading it from a local clone is\nmuch faster than fetching files one at a time from GitHub, and `git grep` searches a whole\nrelease in one call. Read it at the release the project actually targets: code on `main` or a\nnewer major can have APIs, names, or layouts the project's version doesn't.\n\n## Find the clone\n\nThe clone's path lives in the project's `CLAUDE.local.md` (personal, gitignored, set up by\n`project-init`), on a line like:\n\n```markdown\n- Umbraco CMS source: \u002FUsers\u002Fjane\u002FCode\u002FUmbraco-CMS\n```\n\nUse that path as `$CMS` in the commands below. If it starts with `~`, expand it to the full\nhome-folder path first: inside quotes, `~` isn't expanded and git can't find the folder. If there's no such line, or the path isn't a\ngit repo, use the GitHub fallback below. Don't clone it yourself from here; `project-init` offers\nthat, with the user's yes.\n\nThen find the remote that points at `umbraco\u002FUmbraco-CMS`. In a direct clone it's `origin`;\nin a clone of someone's fork it's usually `upstream`. Check once per session:\n\n```bash\nREMOTE=$(git -C \"$CMS\" remote -v | awk 'tolower($2) ~ \u002F[\\\u002F:]umbraco\\\u002Fumbraco-cms(\\.git)?$\u002F {print $1; exit}')\n```\n\nIf `$REMOTE` comes back empty, no remote points at Umbraco's repo: use the GitHub fallback below.\n\n## Pick the tag\n\n1. Get the exact CMS version the project targets: the `Umbraco.Cms.*` package version in\n   `Directory.Packages.props` or the `.csproj`. `CLAUDE.md`'s Stack section has the major if\n   the exact version isn't pinned.\n2. The tag is `release-\u003Cversion>`, e.g. `release-17.6.1`. For a major-only target, take the\n   newest tag in that major:\n   ```bash\n   git -C \"$CMS\" tag -l \"release-17.*\" --sort=-v:refname | head -1\n   ```\n3. If the tag isn't there, fetch the major's tags, then look again:\n   ```bash\n   git -C \"$CMS\" fetch --quiet \"$REMOTE\" \"refs\u002Ftags\u002Frelease-17.*:refs\u002Ftags\u002Frelease-17.*\"\n   ```\n   Fetch only the tags you need. A plain `fetch --tags` also updates every branch ref, and\n   one stale ref in the user's clone can make it fail.\n4. If the project supports more than one CMS major, check each major's tag. Behavior that\n   differs between them is a multi-version finding, not a detail to average out.\n\n## Read, search, list\n\nRead straight from the tag. These commands never touch the clone's working tree or current\nbranch:\n\n```bash\n# Read one file\ngit -C \"$CMS\" show \"${tag}:src\u002FUmbraco.Core\u002FServices\u002FContentService.cs\"\n\n# Search the whole release (narrow with a pathspec when you can)\ngit -C \"$CMS\" grep -n -w \"class ContentService\" \"${tag}\" -- 'src\u002F*.cs'\n\n# List files under a folder\ngit -C \"$CMS\" ls-tree -r --name-only \"${tag}\" -- src\u002FUmbraco.Web.UI.Client\u002Fsrc\u002Fpackages\u002Fcore\u002F\n```\n\nWrite `\"${tag}:path\"` with braces. In zsh, `$tag:s` is read as a modifier on `$tag`. Match\nwhole words with `-w`, not `\\b`: macOS `git grep -E` has no `\\b` and matches nothing,\nwith no error.\n\nWhere to look: from `release-17.1.0`, the CMS has its own `CLAUDE.md` at the repo root and in each\nproject under `src\u002F` (`src\u002FUmbraco.Core\u002FCLAUDE.md`, `src\u002FUmbraco.Web.UI.Client\u002FCLAUDE.md`, and\nso on). Read the one for the area you need, at the same tag, before searching. It maps that\nproject's folders and names its conventions. Older tags don't have them; list the folder\ninstead. For a backoffice extension, each feature package's\n`manifests.ts` under `src\u002FUmbraco.Web.UI.Client\u002Fsrc\u002Fpackages\u002F` shows how a built-in extension\nof the same type is registered.\n\n## Rules\n\n- **Never change the clone.** No `checkout`, `switch`, `pull`, `reset`, or edits. It may be the\n  user's own working copy. Fetching tags is the only write, and it only adds tags.\n- **Quote the tag you read.** When a design, review finding, or decision relies on CMS\n  source, name the file and tag (`release-17.6.1:src\u002F...`) so the claim can be checked.\n- **Source beats memory and docs.** If what you remember about a CMS API, or what the docs\n  (`umbraco-docs`) say, differs from the source at the project's tag, the source wins.\n\n## No clone: GitHub fallback\n\nUse `gh` against `umbraco\u002FUmbraco-CMS` at the same tag:\n\n```bash\ngh api \"repos\u002Fumbraco\u002FUmbraco-CMS\u002Fcontents\u002Fsrc\u002FUmbraco.Core\u002FServices\u002FContentService.cs?ref=${tag}\" \\\n  -H \"Accept: application\u002Fvnd.github.raw\"\ngh search code \"class ContentService\" --repo umbraco\u002FUmbraco-CMS\n```\n\n`gh search code` only searches the default branch, not a tag. Confirm anything it finds by\nreading the file at the project's tag before relying on it.\n\nWithout a signed-in `gh`, read the same file over plain HTTPS at the tag:\n`https:\u002F\u002Fraw.githubusercontent.com\u002Fumbraco\u002FUmbraco-CMS\u002F${tag}\u002Fsrc\u002FUmbraco.Core\u002FServices\u002FContentService.cs`.\nThere's no search this way, so find the path first (the docs, a stack trace, or the\nnamespace).\n","# umbraco-cms-source\n\nThe CMS source is the ground truth for how Umbraco behaves. Reading it from a local clone is\nmuch faster than fetching files one at a time from GitHub, and `git grep` searches a whole\nrelease in one call. Read it at the release the project actually targets: code on `main` or a\nnewer major can have APIs, names, or layouts the project's version doesn't.\n\n## Find the clone\n\nThe clone's path lives in the project's `CLAUDE.local.md` (personal, gitignored, set up by\n`project-init`), on a line like:\n\n```markdown\n- Umbraco CMS source: \u002FUsers\u002Fjane\u002FCode\u002FUmbraco-CMS\n```\n\nUse that path as `$CMS` in the commands below. If it starts with `~`, expand it to the full\nhome-folder path first: inside quotes, `~` isn't expanded and git can't find the folder. If there's no such line, or the path isn't a\ngit repo, use the GitHub fallback below. Don't clone it yourself from here; `project-init` offers\nthat, with the user's yes.\n\nThen find the remote that points at `umbraco\u002FUmbraco-CMS`. In a direct clone it's `origin`;\nin a clone of someone's fork it's usually `upstream`. Check once per session:\n\n```bash\nREMOTE=$(git -C \"$CMS\" remote -v | awk 'tolower($2) ~ \u002F[\\\u002F:]umbraco\\\u002Fumbraco-cms(\\.git)?$\u002F {print $1; exit}')\n```\n\nIf `$REMOTE` comes back empty, no remote points at Umbraco's repo: use the GitHub fallback below.\n\n## Pick the tag\n\n1. Get the exact CMS version the project targets: the `Umbraco.Cms.*` package version in\n   `Directory.Packages.props` or the `.csproj`. `CLAUDE.md`'s Stack section has the major if\n   the exact version isn't pinned.\n2. The tag is `release-\u003Cversion>`, e.g. `release-17.6.1`. For a major-only target, take the\n   newest tag in that major:\n   ```bash\n   git -C \"$CMS\" tag -l \"release-17.*\" --sort=-v:refname | head -1\n   ```\n3. If the tag isn't there, fetch the major's tags, then look again:\n   ```bash\n   git -C \"$CMS\" fetch --quiet \"$REMOTE\" \"refs\u002Ftags\u002Frelease-17.*:refs\u002Ftags\u002Frelease-17.*\"\n   ```\n   Fetch only the tags you need. A plain `fetch --tags` also updates every branch ref, and\n   one stale ref in the user's clone can make it fail.\n4. If the project supports more than one CMS major, check each major's tag. Behavior that\n   differs between them is a multi-version finding, not a detail to average out.\n\n## Read, search, list\n\nRead straight from the tag. These commands never touch the clone's working tree or current\nbranch:\n\n```bash\n# Read one file\ngit -C \"$CMS\" show \"${tag}:src\u002FUmbraco.Core\u002FServices\u002FContentService.cs\"\n\n# Search the whole release (narrow with a pathspec when you can)\ngit -C \"$CMS\" grep -n -w \"class ContentService\" \"${tag}\" -- 'src\u002F*.cs'\n\n# List files under a folder\ngit -C \"$CMS\" ls-tree -r --name-only \"${tag}\" -- src\u002FUmbraco.Web.UI.Client\u002Fsrc\u002Fpackages\u002Fcore\u002F\n```\n\nWrite `\"${tag}:path\"` with braces. In zsh, `$tag:s` is read as a modifier on `$tag`. Match\nwhole words with `-w`, not `\\b`: macOS `git grep -E` has no `\\b` and matches nothing,\nwith no error.\n\nWhere to look: from `release-17.1.0`, the CMS has its own `CLAUDE.md` at the repo root and in each\nproject under `src\u002F` (`src\u002FUmbraco.Core\u002FCLAUDE.md`, `src\u002FUmbraco.Web.UI.Client\u002FCLAUDE.md`, and\nso on). Read the one for the area you need, at the same tag, before searching. It maps that\nproject's folders and names its conventions. Older tags don't have them; list the folder\ninstead. For a backoffice extension, each feature package's\n`manifests.ts` under `src\u002FUmbraco.Web.UI.Client\u002Fsrc\u002Fpackages\u002F` shows how a built-in extension\nof the same type is registered.\n\n## Rules\n\n- **Never change the clone.** No `checkout`, `switch`, `pull`, `reset`, or edits. It may be the\n  user's own working copy. Fetching tags is the only write, and it only adds tags.\n- **Quote the tag you read.** When a design, review finding, or decision relies on CMS\n  source, name the file and tag (`release-17.6.1:src\u002F...`) so the claim can be checked.\n- **Source beats memory and docs.** If what you remember about a CMS API, or what the docs\n  (`umbraco-docs`) say, differs from the source at the project's tag, the source wins.\n\n## No clone: GitHub fallback\n\nUse `gh` against `umbraco\u002FUmbraco-CMS` at the same tag:\n\n```bash\ngh api \"repos\u002Fumbraco\u002FUmbraco-CMS\u002Fcontents\u002Fsrc\u002FUmbraco.Core\u002FServices\u002FContentService.cs?ref=${tag}\" \\\n  -H \"Accept: application\u002Fvnd.github.raw\"\ngh search code \"class ContentService\" --repo umbraco\u002FUmbraco-CMS\n```\n\n`gh search code` only searches the default branch, not a tag. Confirm anything it finds by\nreading the file at the project's tag before relying on it.\n\nWithout a signed-in `gh`, read the same file over plain HTTPS at the tag:\n`https:\u002F\u002Fraw.githubusercontent.com\u002Fumbraco\u002FUmbraco-CMS\u002F${tag}\u002Fsrc\u002FUmbraco.Core\u002FServices\u002FContentService.cs`.\nThere's no search this way, so find the path first (the docs, a stack trace, or the\nnamespace).\n",{"name":5,"description":7},"main","a2f9c28bc56802b4e6db01e03972e497b30ad001","plugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-cms-source",1,"https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit","https:\u002F\u002Fgithub.com\u002Fmattbrailsford","https:\u002F\u002Fmattbrailsford.dev","AI Staff Engineer @umbraco ","2026-11-12 18:33:53",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add mattbrailsford\u002Fumbraco-devkit --skill umbraco-cms-source",{"tool":39,"command":40},"bunx","bunx skills add mattbrailsford\u002Fumbraco-devkit --skill umbraco-cms-source",{"tool":42,"command":43},"pnpm","pnpm dlx skills add mattbrailsford\u002Fumbraco-devkit --skill umbraco-cms-source","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-cms-source\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7CYGRPVNP8H9YNHGMZ6CP3C","user-stories","Writes, splits and refines user stories with Given\u002FWhen\u002FThen acceptance criteria in STORIES.md, feeding bdd-specs. Use when turning a feature request or a vague ask into a testable backlog entry.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fuser-stories\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CYGJB26N83DXKMDEKY2X48","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.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-security\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CYGBEZ2Q4AXDDNADWW4Q9H","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.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-performance\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CYG59CZN1K2KERB0SSDGSY","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`.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-package-conventions\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CYG0J10QH8J2GS825WTTET","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.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-marketplace\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CYFT7MSYW4GRDSQRDPG020","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.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-extensibility\u002FSKILL.md",[],[]]