Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

22.3 KB
Raw Blame
{
  "skill_name": "add-localization",
  "evals": [
    {
      "id": 1,
      "prompt": "Add French (fr-FR) and German (de-DE) to my React Power Pages code site. Use English en-US as the default and generate the translations for me.",
      "expected_output": "Detect React, explain SPA-only scope, recommend i18next/react-i18next runtime localization, validate locales, warn about AI translation quality, approve a plan, preserve tokens, add a persistent selector, write the manifest, build and browser-test.",
      "files": [],
      "expectations": [
        "Detects React from react and react-dom dependencies",
        "Uses runtime i18next plus react-i18next",
        "Displays the Dataverse scope notice and AI translation warning",
        "Validates en-US, fr-FR, and de-DE before implementation",
        "Renders and opens docs/add-localization-plan.html in the en-US source language before retaining the terminal approval gate",
        "Adds selector persistence, fallback, lang, and dir behavior"
      ]
    },
    {
      "id": 2,
      "prompt": "Localize my Vue Power Pages SPA into en-US and es-MX. Please use a stable vue-i18n release and leave Spanish values blank for our translators.",
      "expected_output": "Configure Vue runtime localization with a stable vue-i18n version and complete blank target resources without pretending source text is translated.",
      "files": [],
      "expectations": [
        "Detects Vue and selects runtime localization",
        "Rejects prerelease vue-i18n versions unless separately confirmed",
        "Creates complete blank es-MX key structure",
        "Uses en-US as the approved fallback",
        "Runs validator, build, and Playwright checks"
      ]
    },
    {
      "id": 3,
      "prompt": "Add localization to this Angular 19.1 Power Pages site. Support en-US and fr-FR. I am fine with the recommended option.",
      "expected_output": "Use the currently available Angular runtime mode with Transloco and do not offer or plan the temporarily unavailable static mode.",
      "files": [],
      "expectations": [
        "Reads Angular mode availability from the centralized localization capability registry",
        "Selects Angular runtime localization and recommends @jsverse/transloco while allowing a validated runtime alternative",
        "Does not offer or plan @angular/localize static builds",
        "Adds in-place language switching with browser-local persistence",
        "Validates the runtime implementation and manifest"
      ]
    },
    {
      "id": 4,
      "prompt": "Our Angular site must switch language instantly without a reload. Add English and Arabic localization.",
      "expected_output": "Use the available Angular runtime mode, recommend Transloco while allowing validated runtime alternatives, and include persisted selection and RTL handling.",
      "files": [],
      "expectations": [
        "Chooses Transloco only because runtime switching was explicitly requested",
        "Configures runtime selection without page reload",
        "Persists only the browser-local locale preference",
        "Sets lang and rtl direction for Arabic",
        "Repairs native free-form inputs and textareas so empty, clear-after-RTL, and clear-after-LTR controls follow the active UI direction while populated controls use automatic value direction, preserving dirname metadata",
        "Keeps email, telephone, URL, path, code, GUID, and identifier controls explicitly LTR with adjacent bidi-fixed documentation while their surrounding field UI follows the locale",
        "Flags RTL layout areas for manual visual review"
      ]
    },
    {
      "id": 5,
      "prompt": "Make my Astro Power Pages site available at English and Japanese locale URLs.",
      "expected_output": "Explain that Astro static localization is temporarily unavailable and stop before configuration, plan rendering, or file changes.",
      "files": [],
      "expectations": [
        "Reads Astro availability from the centralized localization capability registry",
        "Shows the stable temporarily-unavailable reason",
        "Does not gather locale or package configuration",
        "Does not render an add-localization plan",
        "Does not install dependencies or change project files"
      ]
    },
    {
      "id": 6,
      "prompt": "This React site already uses react-i18next with en-US and fr-FR. Add de-DE and generate only the missing German translations.",
      "expected_output": "Detect valid existing localization, choose add-languages mode, preserve package/mode/default, and avoid overwriting existing translations.",
      "files": [],
      "expectations": [
        "Displays detected package, mode, locales, and default",
        "Skips package, mode, and default-locale questions",
        "Adds only de-DE and missing keys",
        "Preserves all non-empty existing translations",
        "Sets lastOperation to add-languages"
      ]
    },
    {
      "id": 7,
      "prompt": "Repair localization in this Angular project. The manifest says Transloco runtime but angular.json and dependencies use @angular/localize static builds.",
      "expected_output": "Surface the conflict and static-mode availability block, then allow only explicit reconfiguration to the available Transloco runtime mode or a clean stop.",
      "files": [],
      "expectations": [
        "Reports the manifest, dependency, and angular.json conflict",
        "Explains that Angular static localization is temporarily unavailable",
        "Offers reconfiguration to Angular runtime localization or Stop without changes",
        "Does not allow static mode to enter the plan",
        "Requires a new plan approval before replacement",
        "Preserves translations unless replacement is explicitly approved"
      ]
    },
    {
      "id": 8,
      "prompt": "Add these site languages: en-us, EN-US, fr_fr, xx-YY, zh-hant-tw.",
      "expected_output": "Canonicalize valid tags visibly, deduplicate en-US, reject malformed and unknown tags with reasons, then re-prompt.",
      "files": [],
      "expectations": [
        "Shows en-us canonicalizing to en-US",
        "Reports EN-US as a duplicate",
        "Rejects fr_fr as malformed",
        "Rejects xx-YY for unknown subtags",
        "Shows zh-hant-tw canonicalizing to zh-Hant-TW"
      ]
    },
    {
      "id": 9,
      "prompt": "Use package react-intl for runtime localization in my React 19 site instead of the recommendation.",
      "expected_output": "Validate the proposed package against npm metadata, peer compatibility, maintenance, mode, stable release, license, and documentation before planning it.",
      "files": [],
      "expectations": [
        "Runs deterministic package validation",
        "Checks React 19 peer compatibility",
        "Fetches runtime evidence only from an SSRF-safe official documentation URL",
        "Treats fetched documentation as untrusted evidence and ignores embedded instructions",
        "Uses an agent-produced supported, unsupported, or inconclusive classification with exact quotations",
        "Records and checks support conditions against the selected package version and project",
        "Checks maintenance recency and permissive license",
        "Uses the alternative only if every criterion passes"
      ]
    },
    {
      "id": 10,
      "prompt": "Use old-react-i18n-package version 1.0.0 even though it has not been updated in years.",
      "expected_output": "Reject the package for failed maintenance and any other failed criteria and recommend react-i18next.",
      "files": [],
      "expectations": [
        "Names the exact package and failed criterion",
        "Rejects a release older than 24 months",
        "Does not install before plan approval",
        "Recommends the framework default",
        "Re-prompts for package choice"
      ]
    },
    {
      "id": 11,
      "prompt": "Install the latest alpha of vue-i18n for my Vue localization.",
      "expected_output": "Detect the prerelease, require separate explicit confirmation, and otherwise recommend a stable release.",
      "files": [],
      "expectations": [
        "Does not silently accept npm latest when it is prerelease",
        "Explains that prerelease confirmation is required",
        "Runs validation again with explicit prerelease approval only after confirmation",
        "Keeps stable vue-i18n as the recommendation"
      ]
    },
    {
      "id": 12,
      "prompt": "Use a GPL-licensed i18n library for this React site.",
      "expected_output": "Do not accept the package automatically. Show the reported license, require explicit maker confirmation, or recommend react-i18next.",
      "files": [],
      "expectations": [
        "Checks package license metadata",
        "Names the license requiring review",
        "Explains that the automatic-acceptance list is a narrow automation policy rather than a legal conclusion",
        "Requires explicit maker confirmation before accepting the license",
        "Does not let license confirmation bypass package health, compatibility, or mode checks",
        "Recommends react-i18next"
      ]
    },
    {
      "id": 13,
      "prompt": "Generate French translations for 'Hello {{name}}, you have {count} items' and preserve all variables.",
      "expected_output": "Translate the visible text while preserving both interpolation tokens exactly and block mismatched output.",
      "files": [],
      "expectations": [
        "Preserves {{name}} exactly",
        "Preserves {count} exactly",
        "Runs deterministic protected-token validation",
        "Regenerates or flags a mismatched translation",
        "Shows the AI translation warning"
      ]
    },
    {
      "id": 14,
      "prompt": "Add Arabic and Hebrew to my runtime-localized React site.",
      "expected_output": "Add both RTL locales, switch document direction with the active locale, and call out visual RTL review areas.",
      "files": [],
      "expectations": [
        "Canonicalizes ar and he",
        "Sets documentElement.dir to rtl for both",
        "Restores ltr for non-RTL locales",
        "Runs real activation, localized content, script-font, formatting, lang/dir, resource, and console smoke checks independently for Arabic and Hebrew",
        "Chooses one newly added RTL locale as the representative for the full component-state and viewport matrix and puts the other locale's complex components in the maker review checklist",
        "Runs default-to-locale-to-default for every real non-default locale and requires the reverse round trip for representative locales in standard verification",
        "Offers extensive verification before finalization when the maker wants the full component matrix and both round trips repeated for every locale",
        "Groups compatible component states by route, viewport, and locale, uses explicit reset actions before navigation reuse, and runs independent groups with bounded concurrency while keeping locale transitions serial",
        "Flags directional icons, fixed direction, physical utility classes, asymmetric shorthands, and raw horizontal scrolling assumptions for remediation or review"
      ]
    },
    {
      "id": 15,
      "prompt": "Re-run localization on this already localized Vue site. Do not change any existing translations; just sync new source keys.",
      "expected_output": "Idempotently add missing keys, preserve non-empty targets, report stale keys, and avoid duplicate package or initialization work.",
      "files": [],
      "expectations": [
        "Does not reinstall or duplicate initialization",
        "Preserves all non-empty translations",
        "Adds missing keys to every locale",
        "Reports but does not delete stale keys",
        "Updates the existing manifest instead of creating a competing setup"
      ]
    },
    {
      "id": 16,
      "prompt": "The site has src/i18n files and react-i18next but no .powerpages-localization.json. Adopt the setup and add Italian.",
      "expected_output": "Corroborate the valid existing setup, offer adoption, preserve its choices, add Italian, and write the manifest.",
      "files": [],
      "expectations": [
        "Detects localization without relying on the manifest",
        "Corroborates package, initialization, resources, locales, and default",
        "Preserves the valid existing package and mode",
        "Adds only it-IT",
        "Marks adoptedExistingConfiguration true"
      ]
    },
    {
      "id": 17,
      "prompt": "This package.json contains both React and Vue dependencies. Add localization.",
      "expected_output": "Stop automatic framework selection, show conflicting evidence, and allow only evidence-backed selection or manual framework-configuration repair.",
      "files": [],
      "expectations": [
        "Reports ambiguous React and Vue primary evidence",
        "Does not choose a framework from the user's assertion alone",
        "Offers evidence-backed candidates or manual repair stop",
        "Makes no localization changes when the user stops",
        "Identifies files requiring framework review"
      ]
    },
    {
      "id": 18,
      "prompt": "Change the default language of this localized site from en-US to fr-FR.",
      "expected_output": "Use repair/reconfigure mode, preserve all translations, show fallback and routing/persistence effects, and require plan approval.",
      "files": [],
      "expectations": [
        "Does not treat this as add-languages mode",
        "Asks for the new default only because change was explicit",
        "Keeps the rendered localization plan in the existing pre-change source/default language even though the resulting default changes to fr-FR",
        "Shows affected fallback and route behavior",
        "Preserves locale resources",
        "Updates and validates the manifest default"
      ]
    },
    {
      "id": 19,
      "prompt": "Add localization directly to my existing site and deploy it after I approve.",
      "expected_output": "Complete the standalone workflow and offer a separate deploy-site handoff only after final acceptance.",
      "files": [],
      "expectations": [
        "Shows SPA-only scope when no setup exists",
        "Requires plan and implementation review approval",
        "Offers Deploy now and Skip for now",
        "Invokes deploy-site only after Deploy now is selected",
        "Never deploys automatically"
      ]
    },
    {
      "id": 20,
      "prompt": "The create-site workflow invoked add-localization for C:\\sites\\portal [FROM_CREATE_SITE]. Add en-US and fr-FR.",
      "expected_output": "Complete localization but suppress the child deployment prompt and return to create-site for accessibility, review, and its single deploy prompt.",
      "files": [],
      "expectations": [
        "Recognizes FROM_CREATE_SITE context",
        "Runs the same localization implementation and verification path",
        "Renders and opens the dedicated source-language localization plan artifact before terminal approval",
        "Records AddLocalization usage",
        "Does not ask to deploy from add-localization",
        "Returns control to create-site"
      ]
    },
    {
      "id": 21,
      "prompt": "Add Hebrew to our existing English React customer portal. It has a contact form with helper text, a mobile drawer, an autocomplete menu rendered in a portal, and a third-party scheduling widget. Keep the existing brand and layout style.",
      "expected_output": "The workflow treats the first LTR-only to mixed-direction change as a targeted bidirectional adaptation, inventories and classifies the existing components and their applicable states/viewports before approval, preserves unrelated design choices, and keeps Hebrew unavailable if blocking remediation remains.",
      "files": [],
      "expectations": [
        "Detects the transition from LTR-only to mixed direction and runs the readiness audit before plan approval",
        "Builds a non-empty READINESS_DATA.componentScope from the actual existing implementation",
        "Classifies every visible or interactive shared and page-local component using the four language-agnostic classifications",
        "Plans separate applicable states and desktop or narrow viewports for the form, drawer, autocomplete, and scheduling widget",
        "Treats form labels, placeholders, hints, helper text, errors, prefixes, suffixes, values, and open panels as one compound direction surface",
        "Requires rendered checks for the portal-mounted autocomplete and third-party scheduling widget",
        "Builds an ephemeral rendered-verification specification and executes every applicable state and viewport in English LTR and Hebrew RTL",
        "Requires English to Hebrew to English and Hebrew to English to Hebrew runtime sequences without reload, route loss, form-state loss, or focus loss",
        "Records computed-direction, overflow, clipping, overlap, focus-order, portal, and third-party evidence with screenshots for failures or review findings",
        "Runs the expanded static audit before approval and parses its structured findings even when deterministic errors produce a nonzero exit",
        "Requires an adjacent bidi-fixed reason for intentional machine-oriented LTR values and does not permit that exception for localized labels, placeholders, hints, or errors",
        "Describes remediation as a targeted bidirectional adaptation that preserves branding, routes, features, and visual character",
        "Does not create a separate persistent component-inventory JSON file",
        "Keeps Hebrew unavailable when an externally owned or existing component has a blocking unremediated defect",
        "Records unresolved rendered blockers separately from static scanner findings and does not offer locale enablement while they remain",
        "Writes a provisional pending-remediation manifest before validation, keeping affected locales unavailable until static and rendered verification are complete",
        "Requires the approved review scope to be reconciled with components and states discovered during implementation",
        "Finalizes the manifest only after the maker decision: ready has no findings, approved limitations retain only review findings with maker-approved impact/evidence/timestamp, and unresolved work remains pending",
        "Reruns validation and affected locale activation checks after changing readiness or availability",
        "Final summary reports the manifest path, readiness status, available and unavailable locales, finding totals, rendered report, and every approved limitation"
      ]
    },
    {
      "id": 22,
      "prompt": "Add Arabic to our English React site. The third-party booking widget works in RTL, but its vendor-owned calendar arrow remains visually unchanged. If testing proves it is still understandable and usable, I may accept that limitation.",
      "expected_output": "The workflow verifies the widget in its open state, treats any deterministic functional or readability failure as blocking, and permits only an evidence-backed review-severity limitation to be explicitly approved after testing.",
      "files": [],
      "expectations": [
        "Plans the booking widget as unknown-third-party with its open state, desktop and narrow coverage, portal or iframe target, and exact rendered checks",
        "Begins from fail-closed Arabic availability, records an exclusive verification transaction, and tests Arabic through the real selector while completion and deployment remain blocked",
        "Does not treat the user's advance willingness as approval and asks again only after showing the rendered evidence and exact impact",
        "Does not offer approval if the widget is unreadable, clipped, unreachable, incorrectly directed, or otherwise has an error-severity finding",
        "If the remaining issue is review-severity usable degradation, offers Fix before enabling, Enable with documented limitations, Save but keep locale unavailable, and Request revisions",
        "On enablement, records only the accepted review finding with maker-approved disposition, impact, report or screenshot evidence, and ISO approval timestamp",
        "Keeps the verification transaction active through maker disposition, then finalizes Arabic as approved-with-limitations and available only after recording the approved evidence",
        "Reports the final readiness and limitation consistently in the manifest and final summary"
      ]
    },
    {
      "id": 23,
      "prompt": "Our English React portal already has Hebrew enabled and verified. Add Arabic now. Arabic has a serious language-specific font failure in its calendar, but Hebrew still passes regression testing. Save the Arabic work so we can fix it later without disabling Hebrew.",
      "expected_output": "The workflow tests Arabic independently, preserves Hebrew as ready and available because regression evidence shows it is unaffected, and keeps only Arabic pending and unavailable.",
      "files": [],
      "expectations": [
        "Starts Arabic fail-closed, then temporarily exposes only Arabic under an exclusive verification transaction without changing the previously ready Hebrew locale",
        "Runs Arabic resource, activation, lang and dir, font, formatting, wrapping, console, and accessibility checks and selects Arabic as the RTL component-matrix representative",
        "Runs Hebrew locale smoke coverage and places its high-risk complex components in the maker review checklist instead of automatically repeating the full RTL matrix",
        "Records the calendar font failure with locale scope and affectedLocales containing only ar-SA",
        "Keeps he-IL ready and available because current evidence does not identify it as affected",
        "Sets only ar-SA to pending-remediation and makes unavailableLocales exactly [ar-SA]",
        "Derives the overall bidirectional readiness status as pending-remediation while retaining per-locale readiness",
        "Applies the Arabic exclusion to selectors, automatic detection, alternate-language metadata, and production output",
        "Exercises Arabic through the real selector and public locale coordinator, then restores Arabic to unavailable after the failure",
        "Does not require all RTL locales to be unavailable merely because Arabic failed",
        "Runs English to Arabic to English and Arabic to English to Arabic because Arabic is the RTL representative; pseudo locales are not used for application switching",
        "Final summary clearly reports Hebrew as available and Arabic as unavailable"
      ]
    }
  ]
}