Skip to content

microsoft/power-platform-skills / plugins/power-pages/skills/import-solution

import-solution

Verified

Imports a Dataverse solution zip into a target environment, with optional staged import for dependency checking before committing. Use when asked to: "import solution", "install solution", "deploy solution zip", "push solution to environment", "deploy to staging", "deploy to production", or "install site in new environment".

FileKindSize
SKILL.mdskill md37.6 KB
scripts/validate-import.jsscript1.9 KB

scripts/validate-import.js

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

// Validates that import-solution completed: checks for docs/alm/last-import.json marker.
// Verifies the import completed without failures.
// Gracefully exits 0 when no import marker is found (not an import-solution session).

const fs = require('fs');
const { approve, block, runValidation, findProjectRoot, readDeferralMarker } = require('../../../scripts/lib/validation-helpers');
const { almPath } = require('../../../scripts/lib/alm-paths');

runValidation(async (cwd) => {
  if (readDeferralMarker(findProjectRoot(cwd) || cwd)) return approve();  // ALM deferred — silent-approve.
  const projectRoot = findProjectRoot(cwd) || cwd;
  const markerPath = almPath(projectRoot, 'lastImport');

  // No import marker — not an import-solution session
  if (!fs.existsSync(markerPath)) return approve();

  let marker;
  try {
    marker = JSON.parse(fs.readFileSync(markerPath, 'utf8'));
  } catch {
    return block('docs/alm/last-import.json exists but could not be parsed. The import-solution skill may have failed to write the marker.');
  }

  // Check required fields
  if (!marker.solutionName) {
    return block('docs/alm/last-import.json is missing solutionName. The import may not have completed.');
  }
  if (!marker.targetEnvironment) {
    return block('docs/alm/last-import.json is missing targetEnvironment. The import may not have completed.');
  }
  if (!marker.importedAt) {
    return block('docs/alm/last-import.json is missing importedAt timestamp. The import may not have completed.');
  }

  // Check for component failures
  if (marker.componentResults) {
    const { failure = 0, success = 0 } = marker.componentResults;
    if (failure > 0 && success === 0) {
      return block(`Solution import for '${marker.solutionName}' had ${failure} component failure(s) and 0 successes. The import did not complete successfully.`);
    }
    // Partial failures are warnings, not blocks — the import may still be usable
  }

  return approve();
});
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 321kUpdated 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: 197kUpdated 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