powershell

Enhance PowerShell tab and argument completion via PSReadLine and Register-ArgumentCompleter.

1.4k|36|Updated Mar 17, 2020
One-click install
npx skills add https://github.com/carapace-sh/carapace --skill powershell-carapace-sh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: powershell
Source: https://github.com/carapace-sh/carapace/tree/main/skills/powershell
Command: npx skills add https://github.com/carapace-sh/carapace --skill powershell-carapace-sh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PowerShell users often struggle with inconsistent or manual completion workflows for commands, parameters, and external tools; this Skill standardizes and enhances the completion experience across PSReadLine, registered completers, and predictive IntelliSense.

Core Features & Use Cases

  • Context-aware completion for cmdlets, parameters, and native commands via Register-ArgumentCompleter and PSReadLine integration.
  • Support for external tooling integration patterns (e.g., dotnet, docker) through external completers and replacement of TabExpansion2.
  • Predictive IntelliSense and plugin-based predictions to speed up PowerShell workflows across shells and environments.

Quick Start

Install and configure PowerShell completion with PSReadLine integration for context-aware command, parameter, and script completions.

Frequently Asked Questions about powershell

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up PowerShell tab completion for external commands like dotnet and docker?

PowerShell tab completion for external commands is configured using Register-ArgumentCompleter and PSReadLine integration to deliver context-aware parameter and command completions across your shell environment.

What is predictive IntelliSense in PowerShell and how does it speed up command entry?

Predictive IntelliSense in PowerShell uses plugin-based predictions to suggest commands dynamically. It integrates with PSReadLine to speed up workflows by anticipating inputs based on your shell history and context.

Can I replace TabExpansion2 to customize native command argument completion in PowerShell?

Yes, you can replace TabExpansion2 to customize native command argument completion. This allows integration of external completers for tools like dotnet and docker, providing context-aware suggestions.

Does this PowerShell completion approach work without additional dependencies?

Yes, this PowerShell completion approach works without additional dependencies. It leverages native PowerShell internals and PSReadLine to enhance argument completion and predictive IntelliSense directly.

Why does my PowerShell completion behave inconsistently across different scripts and native commands?

PowerShell completion behaves inconsistently when completers are not registered properly. Standardizing via Register-ArgumentCompleter and PSReadLine ensures uniform context-aware completion across cmdlets and external tools.

What is the best way to standardize command and parameter completion across PowerShell environments?

The best way to standardize PowerShell completion is to use PSReadLine integration alongside registered argument completers. This ensures context-aware predictions and consistent parameter suggestions across different shell environments.