diff --git a/defaults.yaml b/defaults.yaml index 2c5fc4f..b7b7196 100644 --- a/defaults.yaml +++ b/defaults.yaml @@ -4,12 +4,21 @@ skills: claude: EdgeBrowser: + ExplainPowerShell: gemini: EdgeBrowser: + ExplainPowerShell: codex: EdgeBrowser: + ExplainPowerShell: opencode: EdgeBrowser: + ExplainPowerShell: + +agents: + MicrosoftAdvisor: + model: fast + tools: Read, Grep, Glob, Bash providers: claude: diff --git a/skills/ExplainPowerShell/SKILL.md b/skills/ExplainPowerShell/SKILL.md new file mode 100644 index 0000000..20c3a91 --- /dev/null +++ b/skills/ExplainPowerShell/SKILL.md @@ -0,0 +1,35 @@ +--- +name: ExplainPowerShell +description: Analyzes and explains the function of a PowerShell script. USE WHEN explaining a PowerShell script, what a script does, or analyzing PS code. +version: 0.1.1 +--- + +# ExplainPowerShell + +A skill for in-depth analysis and explanation of PowerShell scripts, focusing on clarity, security, and code efficiency. + +## Instructions + +When analyzing a PowerShell script, follow these steps: + +1. **Overall Purpose**: Briefly (1-2 sentences) explain the main goal of the script. +2. **Block-by-Block Breakdown**: Divide the script into logical parts (functions, loops, command blocks) and explain what each part does. +3. **Key Parameters and Variables**: Identify important variables and input parameters that affect the script's behavior. +4. **Security and Risks**: Highlight potentially dangerous operations (data deletion, permission changes, network communication) or missing error handling. +5. **Recommendations for Improvement**: Suggest how the code could be made more efficient (e.g., better filtering, using modern cmdlets) or better structured. + +## Output Format + +The explanation should be structured as follows (headings in Czech as per user preference): + +- **Souhrn**: What the script does. +- **Jak to funguje**: Detailed logic breakdown. +- **Bezpečnostní poznámky**: What to watch out for. +- **Tipy**: Possible improvements. + +## Constraints + +- Focus exclusively on PowerShell (Core and Desktop versions). +- If the script contains unclear or potentially dangerous parts, always explicitly highlight them. +- **Always communicate in Czech (the user's language)**, even if the code or these instructions are in English. +- If the script is too long, focus on its main logic and do not list every minor detail that is not critical for its function. diff --git a/skills/ExplainPowerShell/SKILL.yaml b/skills/ExplainPowerShell/SKILL.yaml new file mode 100644 index 0000000..79cebeb --- /dev/null +++ b/skills/ExplainPowerShell/SKILL.yaml @@ -0,0 +1,6 @@ +sources: + - https://learn.microsoft.com/en-us/powershell/ + +gemini: + argument-hint: "[PS skript nebo cesta k souboru]" + user-invocable: true