powershell-executor
Runner-first for PowerShell: every instruction is executed via .github/agents/invoke-isolated-powershell.ps1 (Mode detached by default), with…
Skill by ArkadiuszSieracki
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/arkadiuszsieracki-powershell-executor
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/powershell-executor
What's inside
- Skill name
powershell-executor- Description
- Runner-first for PowerShell: every instruction is executed via .github/agents/invoke-isolated-powershell.ps1 (Mode detached by default), with try/catch/finally contract and auditable result.
- License
- Apache-2.0
- Instructions
- 98 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# powershell-executor
Goal: every PowerShell instruction generated by the agent must be execution-safe, auditable, and run in the runner-first model.
## Mandatory contract
1. Instruction MUST be executed via `.github/agents/invoke-isolated-powershell.ps1`.
2. Default execution mode is `-Mode detached`.
3. Instructions are NOT run inline (directly in the agent terminal), except for exceptions explicitly required by the task context.
4. ScriptBlock MUST be wrapped in `try/catch/finally`.
5. ScriptBlock MUST always output a summary with fields:
- `status`
- `succeeded`
- `message`
- `error_type`
- `error_message`
- `duration_ms`
6. ScriptBlock MUST NOT terminate the host via an unhandled error.
7. Execution result is read from the `result_path` and `log_path` fields returned by the runner.
## Preflight (mandatory before publishing instruction)
Before running the runner, execute the contract preflight on the ScriptBlockText content:
```powershell
.github/agents/preflight-powershell-instruction.ps1 -InstructionText <instruction_text>
```
Result:
- `pass`: instruction complies with the contract.
- `fail`: fix the instruction and run preflight again.
## Example runner command (ScriptBlockText)
```powershell
.github/agents/invoke-isolated-powershell.ps1 -Mode detached -ScriptBlockText @'
$startedAt = Get-Date
$summary = [ordered]@{
status = 'fail'
succeeded = $false
message = 'Execution failed.'
error_type = ''
error_message = ''
duration_ms = 0
}
try {
# instruction body
$summary.status = 'pass'
$summary.succeeded = $true
$summary.message = 'Execution succeeded.'
}
catch {
$summary.error_type = $_.Exception.GetType().FullName
$summary.error_message = $_.Exception.Message
}
finally {
$summary.duration_ms = [int][Math]::Round(((Get-Date) - $startedAt).TotalMilliseconds)
$summaryObj = [PSCustomObject]$summary
$summaryObj | ConvertTo-Json -Depth 4 | Write-Output
}
'@
```
After start/completion the runner returns execution metadata. To read the result and detailed execution log use the paths from the `result_path` and `log_path` fields.
## Minimal ScriptBlockText pattern
```powershell
$startedAt = Get-Date
$summary = [ordered]@{
status = 'fail'
succeeded = $false
message = 'Execution failed.'
error_type = ''
error_message = ''
duration_ms = 0
}
try {
# instruction body
$summary.status = 'pass'
$summary.succeeded = $true
$summary.message = 'Execution succeeded.'
}
catch {
$summary.error_type = $_.Exception.GetType().FullName
$summary.error_message = $_.Exception.Message
}
finally {
$summary.duration_ms = [int][Math]::Round(((Get-Date) - $startedAt).TotalMilliseconds)
$summaryObj = [PSCustomObject]$summary
$summaryObj | ConvertTo-Json -Depth 4 | Write-Output
}
```From ArkadiuszSieracki/mastermind-agentic-sdlc-vscode-copilot, Apache-2.0.
More from ArkadiuszSieracki/mastermind-agentic-sdlc-vscode-copilot
- 0.409score
graph-bootstrap-init
ArkadiuszSieracki
Bootstrap skill for graph initialization and refresh.
SkillDFreshness: DClaude Code +9 - 0.409score
groomer-roster-setup
ArkadiuszSieracki
Interactive bootstrap skill for building a project-specific grooming roster.
SkillDFreshness: DClaude Code +9 - 0.409score
repo-discovery-init
ArkadiuszSieracki
Bootstrap skill for repository discovery.
SkillDFreshness: DClaude Code +9 - 0.409score
project-standards-capture
ArkadiuszSieracki
Interactive bootstrap skill for project-specific standards.
SkillDFreshness: DClaude Code +9 - 0.409score
powershell-strict-mode
ArkadiuszSieracki
Rules for writing reliable PowerShell with Set-StrictMode -Version Latest: mandatory @(), avoiding .Count on unknown type, safe null comparisons, variable…
SkillDFreshness: DClaude Code +9 - 0.409score
preflight-profile-setup
ArkadiuszSieracki
Interactive bootstrap skill for preflight profiles.
SkillDFreshness: DClaude Code +9 - 0.406score
copilot-premium-usage-capture
ArkadiuszSieracki
Capture and normalize premium usage data from the Copilot Pro panel.
SkillDFreshness: DClaude Code +9 - 0.406score
db-optimization
ArkadiuszSieracki
PostgreSQL database optimization with EF Core - detect and fix N+1, missing indexes, missing pagination, and incorrect use of AsNoTracking.
SkillDFreshness: DClaude Code +9 - 0.406score
rag-anti-hallucination-workflow
ArkadiuszSieracki
Practical anti-hallucination workflow for RAG: deterministic vs retrieval, query_type/workflow_phase routing, top-k/scoring, grounding/freshness/waste…
SkillDFreshness: DClaude Code +9 - 0.406score
rag-domain-integrity-gate
ArkadiuszSieracki
Fail-fast gate and domain integrity repair in the RAG graph.
SkillDFreshness: DClaude Code +9 - 0.406score
react-performance
ArkadiuszSieracki
React performance optimization - memoization, list virtualization, lazy loading, bundle size.
SkillDFreshness: DClaude Code +9 - 0.406score
agent-capability-routing
ArkadiuszSieracki
Detect missing capabilities and route to a subagent with proper access.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 23, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ArkadiuszSieracki
- 0.409score
preflight-profile-setup
ArkadiuszSieracki
Interactive bootstrap skill for preflight profiles.
SkillDFreshness: DClaude Code +9 - 0.409score
project-standards-capture
ArkadiuszSieracki
Interactive bootstrap skill for project-specific standards.
SkillDFreshness: DClaude Code +9 - 0.409score
groomer-roster-setup
ArkadiuszSieracki
Interactive bootstrap skill for building a project-specific grooming roster.
SkillDFreshness: DClaude Code +9 - 0.409score
powershell-strict-mode
ArkadiuszSieracki
Rules for writing reliable PowerShell with Set-StrictMode -Version Latest: mandatory @(), avoiding .Count on unknown type, safe null comparisons, variable…
SkillDFreshness: DClaude Code +9 - 0.409score
graph-bootstrap-init
ArkadiuszSieracki
Bootstrap skill for graph initialization and refresh.
SkillDFreshness: DClaude Code +9 - 0.409score
repo-discovery-init
ArkadiuszSieracki
Bootstrap skill for repository discovery.
SkillDFreshness: DClaude Code +9
Cite this page
powershell-executor skill. Agent Mart. https://agentmart.dev/skills/arkadiuszsieracki-powershell-executor (last updated 2026-10-24)