smithery/danielshue

powershell-scripts-workflows

Safely run and modify PowerShell scripts under scripts/ (module import conventions, common tasks, and verification steps).

Installation

$ npx skills add smithery/danielshue --skill powershell-scripts-workflows

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/danielshue.

npx skills add smithery/danielshue

Browse all from smithery/danielshue

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,639 B
  • docs SUMMARY.md 158 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

PowerShell Scripts Workflows (scripts/)

When to use

Use this skill when the user asks to:

  • Update build/release tooling under scripts/*.ps1
  • Run scripts locally (CI build, version/release ops, formatting, artifact download)
  • Ensure scripts continue to use shared modules under scripts/modules/

Repo conventions

  • Scripts are PowerShell Core friendly and generally run via pwsh.
  • Prefer importing and using module functions from scripts/modules/.
  • Avoid inlining complex logic in scripts if a module is the right home.

Step-by-step procedure

  1. Identify the script(s) under scripts/ involved in the request.
  2. Find the module imports near the top of the script and prefer calling module functions.
  3. If logic is reusable across scripts, add it to the appropriate module under scripts/modules/ and call it.
  4. Keep parameter behavior backward compatible where practical.
  5. Update scripts/README.md if flags/behavior change.
  6. Validate:

- pwsh -NoProfile -ExecutionPolicy Bypass -File scripts/test-modules.ps1 - Run the specific script with the safest relevant flags.

Common scripts

  • scripts/build-ci-local.ps1 — local CI build pipeline
  • scripts/manage-version.ps1 — version + release automation (rollback-aware)
  • scripts/format-csharp-advanced.ps1 — advanced formatting
  • scripts/check-csharp-test-documentation.ps1 — test doc coverage
  • scripts/download-latest-artifact.ps1 — download CI artifacts

Verification

After modifying scripts or modules, prefer:

  • pwsh -NoProfile -ExecutionPolicy Bypass -File scripts/test-modules.ps1
  • Run the most relevant script path end-to-end with safe flags (e.g., -WhatIf, -StatusOnly, -SkipTests).

Examples (input → expected output)

Example: Adjust a script to use a shared module

Input: “Stop duplicating prereq checks across scripts.”

Expected output:

  • Scripts call Test-* functions from Core/Prerequisites.psm1
  • No drift between scripts (one source of truth)
  • scripts/test-modules.ps1 still passes

References

  • Scripts overview: [scripts/README.md](../../../scripts/README.md)
  • Module system: [powershell-module-system](../powershell-module-system/SKILL.md)