← スキル一覧に戻る

powershell-scripts-workflows
by danielshue
Notebook Automation for Coursera
⭐ 0🍴 1📅 2026年1月25日
SKILL.md
name: powershell-scripts-workflows description: Safely run and modify PowerShell scripts under scripts/ (module import conventions, common tasks, and verification steps). examples:
- "Update a script in scripts/ to reuse functions from scripts/modules"
- "Add a new safe flag to a script and document it in scripts/README.md"
- "Validate script/module changes by running scripts/test-modules.ps1"
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
- Identify the script(s) under
scripts/involved in the request. - Find the module imports near the top of the script and prefer calling module functions.
- If logic is reusable across scripts, add it to the appropriate module under
scripts/modules/and call it. - Keep parameter behavior backward compatible where practical.
- Update
scripts/README.mdif flags/behavior change. - 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 pipelinescripts/manage-version.ps1— version + release automation (rollback-aware)scripts/format-csharp-advanced.ps1— advanced formattingscripts/check-csharp-test-documentation.ps1— test doc coveragescripts/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 fromCore/Prerequisites.psm1 - No drift between scripts (one source of truth)
scripts/test-modules.ps1still passes
References
- Scripts overview: scripts/README.md
- Module system: powershell-module-system
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です