Skip to content

microsoft/power-platform-skills / plugins/power-pages/skills/create-site

create-site

Verified

Creates a new Power Pages site from an SPA or non-SPA template, or scaffolds an SPA from scratch using React, Angular, Vue, or Astro. Guides requirements discovery, template selection, provisioning, design, validation, and deployment. Use when the user wants to create, build, use a template for, or scaffold a new Power Pages website or portal.

FileKindSize
SKILL.mdskill md155.6 KB
assets/angular/angular.jsonconfig1.6 KB
assets/angular/gitignoreother484 B
assets/angular/package.jsonmanifest743 B
assets/angular/powerpages.config.jsonconfig187 B
assets/angular/public/.gitkeepother0 B
assets/angular/src/app/app.component.tsscript365 B
assets/angular/src/app/app.config.tsscript319 B
assets/angular/src/app/app.routes.tsscript278 B
assets/angular/src/app/components/layout.component.tsscript167 B
assets/angular/src/app/pages/about.component.tsscript151 B
assets/angular/src/app/pages/home.component.tsscript24.0 KB
assets/angular/src/index.htmlother703 B
assets/angular/src/main.tsscript208 B
assets/angular/src/styles.cssother333 B
assets/angular/tsconfig.app.jsonconfig153 B
assets/angular/tsconfig.jsonconfig542 B
assets/astro/astro.config.mjsscript139 B
assets/astro/gitignoreother358 B
assets/astro/package.jsonmanifest285 B
assets/astro/powerpages.config.jsonconfig264 B
assets/astro/public/.gitkeepother0 B
assets/astro/src/components/Footer.astroother70 B
assets/astro/src/components/Header.astroother70 B
assets/astro/src/layouts/Layout.astroother946 B
assets/astro/src/pages/about.astroother87 B
assets/astro/src/pages/index.astroother22.6 KB
assets/astro/src/styles/theme.cssother333 B
assets/astro/tsconfig.jsonconfig42 B
assets/create-site-plan.htmlother30.2 KB
assets/non-spa-creation-status-template.htmlother35.0 KB
assets/react/gitignoreother419 B
assets/react/index.htmlother759 B
assets/react/package.jsonmanifest488 B
assets/react/powerpages.config.jsonconfig165 B
assets/react/src/App.tsxother362 B
assets/react/src/components/Layout.tsxother139 B
assets/react/src/main.tsxother325 B
assets/react/src/pages/About.tsxother50 B
assets/react/src/pages/Home.tsxother23.9 KB
assets/react/src/styles/theme.cssother333 B
assets/react/tsconfig.jsonconfig509 B
assets/react/vite.config.tsscript169 B
assets/shared/power-pages-icon.pngbinary22.2 KB
assets/template-browser.htmlother6.5 KB
assets/vue/env.d.tsscript186 B
assets/vue/gitignoreother419 B
assets/vue/index.htmlother757 B
assets/vue/package.jsonmanifest412 B
assets/vue/powerpages.config.jsonconfig165 B
assets/vue/src/App.vueother146 B
assets/vue/src/components/Layout.vueother34 B
assets/vue/src/main.tsscript160 B
assets/vue/src/pages/About.vueother37 B
assets/vue/src/pages/Home.vueother23.2 KB
assets/vue/src/router/index.tsscript319 B
assets/vue/src/styles/theme.cssother333 B
assets/vue/tsconfig.jsonconfig560 B
assets/vue/vite.config.tsscript163 B
references/design-aesthetics.mdmarkdown617 B
scripts/list-site-templates.jsscript4.6 KB
scripts/render-non-spa-status.jsscript14.0 KB
scripts/resolve-non-spa-context.jsscript5.6 KB
scripts/validate-site.jsscript15.7 KB
workflows/non-spa-site.mdmarkdown36.3 KB

scripts/list-site-templates.js

View on GitHub
#!/usr/bin/env node

// Discovers non-SPA Create Website templates from the release-pinned public
// samples catalog. The environment EDM toggle remains administrator-confirmed
// because Microsoft does not publish a supported API for reading it.

const {
  BOOTSTRAP_5_DOCUMENTATION_URL,
  BOOTSTRAP_5_TEMPLATE_NAMES,
  normalizeBootstrapVersion,
  parseBootstrapVersionArgs,
  normalizeNonSpaModelVersion,
} = require('../../../scripts/lib/site-templates');
const {
  fetchCatalog,
  isCreateWebsiteApiTemplate,
} = require('../../../scripts/lib/template-catalog');
const {
  normalizeNonSpaTemplate,
} = require('../../../scripts/lib/non-spa-template-catalog');

function parseArgs(argv) {
  const values = new Set(argv);
  const modelIndex = argv.findIndex(
    (value) => value === '--modelVersion' || value === '--model-version'
  );
  return {
    administratorConfirmed:
      values.has('--administratorConfirmed') || values.has('--administrator-confirmed'),
    modelVersion: modelIndex >= 0 ? argv[modelIndex + 1] : null,
    bootstrapVersion: parseBootstrapVersionArgs(argv) ?? null,
  };
}

function buildResult({
  administratorConfirmed = false,
  modelVersion,
  bootstrapVersion = null,
  catalogResult,
} = {}) {
  const selectedModel = normalizeNonSpaModelVersion(modelVersion);
  const selectedBootstrap = bootstrapVersion === null ? null : normalizeBootstrapVersion(bootstrapVersion);
  if (selectedModel !== 'Enhanced' || selectedBootstrap !== 5) {
    throw new Error(
      'New non-SPA site creation supports only --modelVersion Enhanced with --bootstrapVersion 5',
    );
  }
  if (!catalogResult?.ok) {
    throw new Error(`Non-SPA template catalog unavailable: ${catalogResult?.error || 'unknown error'}`);
  }
  const requiredToggleState = 'enabled';
  const discoveredTemplates = catalogResult.catalog.templates
    .filter(isCreateWebsiteApiTemplate)
    .map((template) => normalizeNonSpaTemplate(template, catalogResult));
  const templates = selectedBootstrap === 5
    ? discoveredTemplates.filter((template) => BOOTSTRAP_5_TEMPLATE_NAMES.includes(template.name))
    : discoveredTemplates;
  if (templates.length === 0) {
    throw new Error('Non-SPA template catalog contains no templates for the selected creation path');
  }
  return {
    modelVersion: selectedModel,
    bootstrapVersion: selectedBootstrap,
    capability: administratorConfirmed
      ? {
          status: 'confirmed',
          source: 'administrator-confirmation',
          requiredToggleState,
          reason:
            `An environment administrator confirmed that Switch to enhanced data model is ` +
            `${requiredToggleState} for ${selectedModel} site creation.`,
        }
      : {
          status: 'indeterminate',
          source: 'public-api-unavailable',
          requiredToggleState,
          reason:
            'No documented public API reads the environment-level EDM creation toggle. ' +
            `An environment administrator must verify it is ${requiredToggleState} for ` +
            `${selectedModel} site creation.`,
        },
    catalog: {
      source: 'power-pages-samples',
      environmentSpecific: false,
      owner: catalogResult.owner,
      repo: catalogResult.repo,
      requestedRef: catalogResult.ref,
      resolvedRef: catalogResult.resolvedRef,
      commitSha: catalogResult.sha,
      releaseName: catalogResult.releaseName || null,
      releaseUrl: catalogResult.releaseUrl || null,
      templates: templates.map((template) => ({ ...template })),
      ...(selectedBootstrap === 5 ? {
        bootstrapCompatibility: {
          source: BOOTSTRAP_5_DOCUMENTATION_URL,
          omittedTemplateNames: discoveredTemplates
            .filter((template) => !BOOTSTRAP_5_TEMPLATE_NAMES.includes(template.name))
            .map((template) => template.name),
          reason:
            'Only existing catalog entries in documented new Bootstrap 5 template families are included. ' +
            'Administrator confirmation covers the Enhanced data model toggle, not the downloaded ' +
            'Bootstrap assets; validate their version after download.',
        },
      } : {}),
    },
  };
}

async function run(argv = process.argv.slice(2), deps = {}) {
  const catalogResult = await (deps.fetchCatalog || fetchCatalog)();
  return buildResult({ ...parseArgs(argv), catalogResult });
}

async function main() {
  try {
    process.stdout.write(`${JSON.stringify(await run(), null, 2)}\n`);
  } catch (error) {
    process.stderr.write(`${error.message}\n`);
    process.exitCode = 1;
  }
}

if (require.main === module) {
  main();
}

module.exports = {
  parseArgs,
  normalizeModelVersion: normalizeNonSpaModelVersion,
  normalizeNonSpaTemplate,
  buildResult,
  run,
};
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall