[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CYA7MKTNEKJ5VEPJ8H4KFN":3,"skill-same:01M7CYA7MKTNEKJ5VEPJ8H4KFN":57},{"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},"01M7CYA7MKTNEKJ5VEPJ8H4KFN","bdd-specs",null,"Writes behavior-driven executable specs (Feature > Scenario > Specification, one assertion per test) from a feature's STORIES.md and PLAN.md, in C# or Lit\u002FTypeScript, using the project's existing test framework. Use when stories are final and it's time to write the tests, or when asked to spec out, write tests first, or do BDD\u002FTDD.","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\u002Fbdd-specs\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bdd-specs\ndescription: >-\n  Writes behavior-driven executable specs (Feature > Scenario > Specification, one assertion\n  per test) from a feature's STORIES.md and PLAN.md, in C# or Lit\u002FTypeScript, using the\n  project's existing test framework. Use when stories are final and it's time to write the\n  tests, or when asked to spec out, write tests first, or do BDD\u002FTDD.\n\n---\n\n# BDD specs\n\nSpecs are written before the `builder` subagent implements a task — see \"Open question\"\nbelow if your team wants to relax that. The spec is the design artifact: it encodes the\nintended behavior from the stories, is marked pending until the code exists, and is\n`feature-build`'s definition of done for the task.\n\nThis skill states the discipline once and applies it to whichever layer(s) a feature actually\ntouches — backend (C#), frontend (Lit + TypeScript), or both. The shape (Feature > Scenario >\nSpecification, one assertion, happy-then-sad, pending by default, a real-entry-point spec) is\nidentical either way; only the syntax it's expressed in differs. Don't duplicate this\ndiscipline into a second, stack-specific skill — extend the relevant reference file instead.\n\n## *🎯 Why: Design for Change*\n\nOne assertion per Specification means a failing spec names exactly what broke. Segregating\nhappy path from sad path means you can change one behavior without re-reading the whole\nsuite. The spec suite is the change-budget for the codebase — treat generating it as\nseriously as generating the code it will gate.\n\n## Gate: require the design and the stories first\n\nRead the feature's plan folder.\n\n1. **`SPEC.md`** — if it's missing, still a stub, or full of `TODO`, **stop**. Tell the\n   user: \"No design yet — run `feature-design` first, so specs are grounded in real extension\n   points and API shapes instead of invented ones.\"\n2. **`STORIES.md`** — if it's missing, empty, or full of placeholder text, **stop**.\n   Tell the user: \"No stories yet — run `feature-plan` first, so specs come from real\n   acceptance criteria instead of invented ones.\"\n\nDo not draft design or stories yourself under this skill — that's `feature-design`'s and\n`user-stories`'s job. If both gates pass, proceed.\n\n## Which layer(s) does this feature touch?\n\nCheck `SPEC.md`'s \"Endpoints\" section and its screen sections, and read only the reference\nfile(s) that layer needs:\n\n- **Endpoints isn't \"None\"** → read `references\u002Fbackend-csharp.md`.\n- **At least one screen section** → read `references\u002Ffrontend-lit.md`.\n- Both present → read both, and generate both as separate spec files in their respective\n  projects. A story that spans both layers gets a spec in each — don't try to force one file\n  to cover both.\n\n## Hard rules (apply to every spec, either layer)\n\n1. **Happy path first, and exhaustive.** Cover every success outcome the story implies\n   before any failure case.\n2. **Sad path is segregated** into its own scenario grouping, never interleaved with\n   happy-path specs.\n3. **Exactly one assertion per test.** No multiple assertion calls in one test, no looped\n   assertions across a collection — assert on the collection shape instead (a single-item or\n   count check), or split into one test per element being checked.\n4. **At least one spec per feature exercises the real entry point** — for a backend story, a\n   Management API controller action through an in-memory test server, or a service resolved\n   from DI exactly as Umbraco's Composer would wire it up; for a frontend story, the actual\n   custom element rendered and driven through its public attributes\u002Fproperties\u002Fevents, not an\n   internal method called directly. Fakes\u002Fmocks are fine for collaborators the spec doesn't\n   own; the entry point itself must be real.\n5. **Match the project's existing test conventions** before inventing new ones — reuse its\n   builders, fakes\u002Fmocks, and fixtures rather than writing ad hoc setup per spec.\n6. **New specs are pending by default**, marked so the runner reports them as skipped, not\n   failed, until a `builder` task makes them pass: `[Ignore(\"Pending\")]` in NUnit,\n   `[Fact(Skip = \"Pending\")]` in xUnit, `it.skip` in Mocha. A spec left active against code\n   that doesn't exist yet fails the whole suite, and the next task can't tell its own failures\n   from these.\n7. Never invent acceptance criteria. If a story is underspecified, stop and send the user\n   back to `user-stories` to tighten it.\n\nBefore reporting, reread every spec you wrote against rules 3 and 6: one assertion each, and\neach one marked pending. These two slip most often.\n\n## *Examples and per-stack mechanics*\n\n- **`references\u002Fbackend-csharp.md`** — test framework detection, the shape mapped onto\n  NUnit (or xUnit), a full worked example, file\u002Fnaming convention.\n- **`references\u002Ffrontend-lit.md`** — test framework detection, the shape mapped onto native\n  `describe`\u002F`it` blocks, a full worked example, file\u002Fnaming convention.\n\n## Open question: before or alongside implementation?\n\nThis skill assumes specs are written and pending before `feature-build` dispatches the\n`builder` for the matching task — strict TDD. Writing tests alongside the implementation\ninstead, with the same one-assertion\u002Fhappy-then-sad rigor applied after the fact, is equally\nlegitimate. Confirm which stance a project wants once, early (e.g. in its `CLAUDE.md`), rather\nthan letting it drift task by task.\n","# BDD specs\n\nSpecs are written before the `builder` subagent implements a task — see \"Open question\"\nbelow if your team wants to relax that. The spec is the design artifact: it encodes the\nintended behavior from the stories, is marked pending until the code exists, and is\n`feature-build`'s definition of done for the task.\n\nThis skill states the discipline once and applies it to whichever layer(s) a feature actually\ntouches — backend (C#), frontend (Lit + TypeScript), or both. The shape (Feature > Scenario >\nSpecification, one assertion, happy-then-sad, pending by default, a real-entry-point spec) is\nidentical either way; only the syntax it's expressed in differs. Don't duplicate this\ndiscipline into a second, stack-specific skill — extend the relevant reference file instead.\n\n## *🎯 Why: Design for Change*\n\nOne assertion per Specification means a failing spec names exactly what broke. Segregating\nhappy path from sad path means you can change one behavior without re-reading the whole\nsuite. The spec suite is the change-budget for the codebase — treat generating it as\nseriously as generating the code it will gate.\n\n## Gate: require the design and the stories first\n\nRead the feature's plan folder.\n\n1. **`SPEC.md`** — if it's missing, still a stub, or full of `TODO`, **stop**. Tell the\n   user: \"No design yet — run `feature-design` first, so specs are grounded in real extension\n   points and API shapes instead of invented ones.\"\n2. **`STORIES.md`** — if it's missing, empty, or full of placeholder text, **stop**.\n   Tell the user: \"No stories yet — run `feature-plan` first, so specs come from real\n   acceptance criteria instead of invented ones.\"\n\nDo not draft design or stories yourself under this skill — that's `feature-design`'s and\n`user-stories`'s job. If both gates pass, proceed.\n\n## Which layer(s) does this feature touch?\n\nCheck `SPEC.md`'s \"Endpoints\" section and its screen sections, and read only the reference\nfile(s) that layer needs:\n\n- **Endpoints isn't \"None\"** → read `references\u002Fbackend-csharp.md`.\n- **At least one screen section** → read `references\u002Ffrontend-lit.md`.\n- Both present → read both, and generate both as separate spec files in their respective\n  projects. A story that spans both layers gets a spec in each — don't try to force one file\n  to cover both.\n\n## Hard rules (apply to every spec, either layer)\n\n1. **Happy path first, and exhaustive.** Cover every success outcome the story implies\n   before any failure case.\n2. **Sad path is segregated** into its own scenario grouping, never interleaved with\n   happy-path specs.\n3. **Exactly one assertion per test.** No multiple assertion calls in one test, no looped\n   assertions across a collection — assert on the collection shape instead (a single-item or\n   count check), or split into one test per element being checked.\n4. **At least one spec per feature exercises the real entry point** — for a backend story, a\n   Management API controller action through an in-memory test server, or a service resolved\n   from DI exactly as Umbraco's Composer would wire it up; for a frontend story, the actual\n   custom element rendered and driven through its public attributes\u002Fproperties\u002Fevents, not an\n   internal method called directly. Fakes\u002Fmocks are fine for collaborators the spec doesn't\n   own; the entry point itself must be real.\n5. **Match the project's existing test conventions** before inventing new ones — reuse its\n   builders, fakes\u002Fmocks, and fixtures rather than writing ad hoc setup per spec.\n6. **New specs are pending by default**, marked so the runner reports them as skipped, not\n   failed, until a `builder` task makes them pass: `[Ignore(\"Pending\")]` in NUnit,\n   `[Fact(Skip = \"Pending\")]` in xUnit, `it.skip` in Mocha. A spec left active against code\n   that doesn't exist yet fails the whole suite, and the next task can't tell its own failures\n   from these.\n7. Never invent acceptance criteria. If a story is underspecified, stop and send the user\n   back to `user-stories` to tighten it.\n\nBefore reporting, reread every spec you wrote against rules 3 and 6: one assertion each, and\neach one marked pending. These two slip most often.\n\n## *Examples and per-stack mechanics*\n\n- **`references\u002Fbackend-csharp.md`** — test framework detection, the shape mapped onto\n  NUnit (or xUnit), a full worked example, file\u002Fnaming convention.\n- **`references\u002Ffrontend-lit.md`** — test framework detection, the shape mapped onto native\n  `describe`\u002F`it` blocks, a full worked example, file\u002Fnaming convention.\n\n## Open question: before or alongside implementation?\n\nThis skill assumes specs are written and pending before `feature-build` dispatches the\n`builder` for the matching task — strict TDD. Writing tests alongside the implementation\ninstead, with the same one-assertion\u002Fhappy-then-sad rigor applied after the fact, is equally\nlegitimate. Confirm which stance a project wants once, early (e.g. in its `CLAUDE.md`), rather\nthan letting it drift task by task.\n",{"name":5,"description":7},"main","a2f9c28bc56802b4e6db01e03972e497b30ad001","plugins\u002Fumbraco-devkit\u002Fskills\u002Fbdd-specs",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 bdd-specs",{"tool":39,"command":40},"bunx","bunx skills add mattbrailsford\u002Fumbraco-devkit --skill bdd-specs",{"tool":42,"command":43},"pnpm","pnpm dlx skills add mattbrailsford\u002Fumbraco-devkit --skill bdd-specs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fbdd-specs\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fbackend-csharp.md","REFERENCE","参考文档",5506,"https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fbdd-specs\u002Freferences\u002Fbackend-csharp.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Ffrontend-lit.md",3751,"https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fbdd-specs\u002Freferences\u002Ffrontend-lit.md",[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"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":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"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":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"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":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"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",[],[]]