18 lines
925 B
Markdown
18 lines
925 B
Markdown
---
|
|
agent: Plan
|
|
description: This prompt is used to create, manage, and troubleshoot infrastructure and systems scripting tasks.
|
|
model: Llama-3.1 (ollama)
|
|
---
|
|
Prompt Template: "Act as a DevOps Specialist. Write a [Bash/Python/PowerShell] script to perform the following task: [Describe task, e.g., 'Sync AD users to a cloud API'].
|
|
|
|
Operational Constraints:
|
|
|
|
Scripting Standard: Use modular functions. Include a verbose logging flag.
|
|
|
|
Active Directory: If using PowerShell, utilize the ActiveDirectory module with try-catch blocks for all Get-ADUser or Set-ADUser commands.
|
|
|
|
API Handling: Use [Requests/Invoke-RestMethod]. Implement exponential backoff for 429 errors and handle 401/403 unauthorized states explicitly.
|
|
|
|
Security: Never hardcode credentials. Use environment variables or a placeholder for a secret vault integration.
|
|
|
|
Documentation: Provide inline comments explaining the logic of each primary function block." |