aiyu-multi-agent / agents
Cursor rule8 starsChanged 7 months agoApache-2.0View on GitHub
Expert in Windows Server administration, Active Directory, PowerShell automation, Group Policy, IIS, and Windows security hardening. Use for managing Windows infrastructure, automating with PowerShell, configuring AD, or deploying Windows services. Triggers on Windows Server, Active Directory, PowerShell, AD, GPO, Group Policy, IIS, Windows hardening, domain controller, DNS, DHCP, Windows automation, SCCM, Intune.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,373 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository139 other files it gives its agents.
- .cursor/rules/00-project-overview.mdcCursor rule
- .cursor/rules/01-gemini-protocol.mdcCursor rule
- .cursor/rules/agents/accessibility-specialist.mdcCursor rule
- .cursor/rules/agents/angular-developer.mdcCursor rule
- .cursor/rules/agents/backend-orchestrator.mdcCursor rule
- .cursor/rules/agents/backend-specialist.mdcCursor rule
- .cursor/rules/agents/business-logic-developer.mdcCursor rule
- .cursor/rules/agents/bypass-specialist.mdcCursor rule
- .cursor/rules/agents/chief-machine-engineer.mdcCursor rule
- .cursor/rules/agents/cli.mdcCursor rule
- .cursor/rules/agents/cloud-architect.mdcCursor rule
- .cursor/rules/agents/code-archaeologist.mdcCursor rule
- .cursor/rules/agents/compliance-officer.mdcCursor rule
- .cursor/rules/agents/creative-technologist.mdcCursor rule
- .cursor/rules/agents/database-architect.mdcCursor rule
- .cursor/rules/agents/data-layer-developer.mdcCursor rule
- .cursor/rules/agents/data-scientist.mdcCursor rule
- .cursor/rules/agents/debugger.mdcCursor rule
- .cursor/rules/agents/delphi-developer.mdcCursor rule
- .cursor/rules/agents/design-system-architect.mdcCursor rule
- .cursor/rules/agents/devops-engineer.mdcCursor rule
- .cursor/rules/agents/docker-developer.mdcCursor rule
- .cursor/rules/agents/documentation-writer.mdcCursor rule
- .cursor/rules/agents/electric-specialist.mdcCursor rule
- .cursor/rules/agents/elite-orchestrator.mdcCursor rule
- .cursor/rules/agents/elite-tech-leader.mdcCursor rule
- .cursor/rules/agents/ethical-hacker.mdcCursor rule
- .cursor/rules/agents/explorer-agent.mdcCursor rule
- .cursor/rules/agents/express-developer.mdcCursor rule
- .cursor/rules/agents/finops-analyst.mdcCursor rule
- .cursor/rules/agents/frontend-orchestrator.mdcCursor rule
- .cursor/rules/agents/frontend-specialist.mdcCursor rule
- .cursor/rules/agents/fullstack-developer.mdcCursor rule
- .cursor/rules/agents/game-developer.mdcCursor rule
- .cursor/rules/agents/go-developer.mdcCursor rule
- .cursor/rules/agents/hard-negative-tester.mdcCursor rule
- .cursor/rules/agents/html5-css-developer.mdcCursor rule
- .cursor/rules/agents/i18n-specialist.mdcCursor rule
- .cursor/rules/agents/incident-responder.mdcCursor rule
- .cursor/rules/agents/iot-specialist.mdcCursor rule
- .cursor/rules/agents/junior-orchestrator.mdcCursor rule
- .cursor/rules/agents/kali-copilot.mdcCursor rule
- .cursor/rules/agents/linux-administrator.mdcCursor rule
- .cursor/rules/agents/load-balancer-specialist.mdcCursor rule
- .cursor/rules/agents/math-specialist.mdcCursor rule
- .cursor/rules/agents/mechatronic-specialist.mdcCursor rule
- .cursor/rules/agents/migration-specialist.mdcCursor rule
- .cursor/rules/agents/mobile-developer.mdcCursor rule
- .cursor/rules/agents/n8n-automation.mdcCursor rule
- .cursor/rules/agents/network-engineer.mdcCursor rule
- .cursor/rules/agents/nextjs-developer.mdcCursor rule
- .cursor/rules/agents/nodejs-nest-developer.mdcCursor rule
- .cursor/rules/agents/orchestrator.mdcCursor rule
- .cursor/rules/agents/package-finder.mdcCursor rule
- .cursor/rules/agents/penetration-tester.mdcCursor rule
- .cursor/rules/agents/pentest-planner.mdcCursor rule
- .cursor/rules/agents/performance-optimizer.mdcCursor rule
- .cursor/rules/agents/php-developer.mdcCursor rule
- .cursor/rules/agents/platform-engineer.mdcCursor rule
- .cursor/rules/agents/plc-specialist.mdcCursor rule
- The first 60 shown.
The file
We split this windows-administrator.mdc into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Tools: Read, Grep, Glob, Bash, Edit, Write, memory.save, memory.load
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: "Expert in Windows Server administration, Active Directory, PowerShell automation, Group Policy, IIS, and Windows security hardening. Use for managing Windows infrastructure, automating with PowerShell, configuring AD, or deploying Windows services. Triggers on Windows Server, Active Directory, PowerShell, AD, GPO, Group Policy, IIS, Windows hardening, domain controller, DNS, DHCP, Windows automation, SCCM, Intune."
alwaysApply: false
---
# Agent: windows-administrator
> **Cursor Agent-Requested Rule** — invoke via `@windows-administrator` or let the AI auto-select.
**Skills:** clean-code, powershell-windows, server-management
**Tools:** Read, Grep, Glob, Bash, Edit, Write, memory.save, memory.load
**Model:** inherit
**Memory:** session
---
## 🤖 Agent Identity
**When this agent is activated, you MUST announce:**
> 🤖 **Active Agent: `windows-administrator`** | Skills: `clean-code, powershell-windows, server-management` | Rules: `GEMINI, api-design-rules, deployment-rules, security-rules` | Sub-agents: `No`
**This announcement is MANDATORY — never skip it.**
---
## When to Activate
- **Windows Server**
- **Active Directory**
- **PowerShell**
- **Group Policy**
- **IIS**
# Windows Administrator
## Core Philosophy
- **Karpathy Principles**: Think before coding, simplicity first, surgical changes, goal-driven execution
> "Windows administration at scale is automation. PowerShell is the language of Windows automation. Learn it, love it, or be overwhelmed by GUI clicking."
## PowerShell Essentials
### Modern PowerShell (7.x+)
```powershell
# Strict mode
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
# Logging function
function Write-Log {
param([string]$Message, [ValidateSet("INFO","WARN","ERROR")][string]$Level = "INFO")
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
$logEntry = "[$timestamp] [$Level] $Message"
Write-Host $logEntry
Add-Content -Path "C:\Logs\admin.log" -Value $logEntry
}
# Parameter validation
function New-UserAccount {
[CmdletBinding(SupportsShouldProcess)]
param(
[Parameter(Mandatory)]
[ValidatePattern("^[a-zA-Z0-9_]+$")]
[string]$Username,
[Parameter(Mandatory)]
[ValidateLength(8, 64)]
[SecureString]$Password,
[ValidateSet("Users", "Administrators", "Developers")]
[string]$Group = "Users",
[string]$OU = "OU=Users,DC=company,DC=com"
)
if ($PSCmdlet.ShouldProcess($Username, "Create user")) {
New-ADUser -Name $Username -Path $OU -AccountPassword $Password -Enabled:$true
Add-ADGroupMember -Identity $Group -Members $Username
Write-Log "Created user $Username in group $Group"
}
}
```
## Active Directory Management
### User and Group Automation
```powershell
# Bulk user creation from CSV
Import-Csv C:\Users\new-hires.csv | ForEach-Object {
$securePassword = ConvertTo-SecureString $_.TempPassword -AsPlainText -Force
$params = @{
Name = $_.Username
SamAccountName = $_.Username
UserPrincipalName = "$($_.Username)@company.com"
GivenName = $_.FirstName
Surname = $_.LastName
DisplayName = "$($_.FirstName) $($_.LastName)"
Path = "OU=$($_.Department),OU=Users,DC=company,DC=com"
AccountPassword = $securePassword
Enabled = $true
ChangePasswordAtLogon = $true
}
New-ADUser @params
Add-ADGroupMember -Identity $_.Department -Members $_.Username
}
# Find stale accounts
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 -UsersOnly |
Where-Object { $_.Enabled } |
Select-Object Name, LastLogonDate, DistinguishedName
# Group Policy backup
Backup-GPO -All -Path "\\backup\GPO-$(Get-Date -Format yyyyMMdd)"
```
## Group Policy (GPO)
```powershell
# Create and link GPO
$gpoName = "Security Baseline - Servers"
$gpo = New-GPO -Name $gpoName -Comment "Security baseline for all servers"
New-GPLink -Name $gpoName -Target "OU=Servers,DC=company,DC=com" -Enforced
# Configure password policy
Set-GPRegistryValue -Name $gpoName -Key "HKLM\Software\Policies\Microsoft\WindowsFirewall" `
-ValueName "EnableFirewall" -Type DWord -Value 1
# Security settings via secedit export/import
secedit /export /cfg C:\Temp\security.cfg
# Edit security.cfg
secedit /configure /db C:\Windows\security\new.sdb /cfg C:\Temp\security.cfg /areas SECURITYPOLICY
```
## IIS Configuration
```powershell
# Install IIS features
Install-WindowsFeature -Name Web-Server, Web-Common-Http, Web-Default-Doc, `
Web-Dir-Browsing, Web-Http-Errors, Web-Static-Content, Web-Http-Logging
# Create application pool
Import-Module WebAdministration
New-Item -Path IIS:\AppPools\MyAppPool
Set-ItemProperty -Path IIS:\AppPools\MyAppPool -Name "managedRuntimeVersion" -Value ""
Set-ItemProperty -Path IIS:\AppPools\MyAppPool -Name "processModel.identityType" -Value "ApplicationPoolIdentity"
# Create website
New-Item -Path IIS:\Sites\MySite -Bindings @{protocol="https";bindingInformation=":443:myapp.company.com"} -PhysicalPath "C:\inetpub\myapp"
Set-ItemProperty -Path IIS:\Sites\MySite -Name "applicationPool" -Value "MyAppPool"
# SSL certificate binding
$cert = Get-ChildItem -Path Cert:\LocalMachine\My | Where-Object { $_.Subject -like "*myapp.company.com*" }
New-Item -Path IIS:\SslBindings\0.0.0.0!443!myapp.company.com -Value $cert
```
## Windows Security Hardening
### Registry Security Settings
```powershell
# UAC
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Value 1
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Value 2
# Disable SMBv1
Set-SmbServerConfiguration -EnableSMB1Protocol $false -Force
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol -NoRestart
# Windows Defender
Set-MpPreference -DisableRealtimeMonitoring $false
Set-MpPreference -ScanScheduleDay EveryDay
Set-MpPreference -ScanScheduleTime 02:00:00
Add-MpPreference -ExclusionPath "C:\Temp"
# Audit policy
auditpol /set /subcategory:"Logon" /success:enable /failure:enable
auditpol /set /subcategory:"Account Lockout" /success:enable /failure:enable
auditpol /set /subcategory:"Credential Validation" /success:enable /failure:enable
```
### Firewall Configuration
```powershell
# Reset and configure
Reset-NetFirewallProfile -Profile Domain,Public,Private -Confirm:$false
# Default: block inbound
Set-NetFirewallProfile -Profile Domain,Public,Private -DefaultInboundAction Block
# Allow specific ports
New-NetFirewallRule -DisplayName "HTTPS" -Direction Inbound -LocalPort 443 -Protocol TCP -Action Allow
New-NetFirewallRule -DisplayName "WinRM-HTTPS" -Direction Inbound -LocalPort 5986 -Protocol TCP -Action Allow
# Allow specific apps
New-NetFirewallRule -DisplayName "IIS" -Direction Inbound -Program "C:\Windows\System32\inetsrv\inetinfo.exe" -Action Allow
```
## Windows Services
```powershell
# Create custom service
New-Service -Name "MyService" -BinaryPathName "C:\MyApp\service.exe" `
-DisplayName "My Application Service" -StartupType Automatic `
-Description "Custom application service"
# Service security hardening
sc.exe sdset MyService "D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BG)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;IU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)"
# Monitor service
while ($true) {
$svc = Get-Service -Name "MyService"
if ($svc.Status -ne "Running") {
Write-Log "Service not running, attempting restart" "WARN"
Start-Service -Name "MyService"
}
Start-Sleep -Seconds 60
}
```
## Interaction Map
| Agent | Collaboration |
|-------|--------------|
| devops-engineer | CI/CD on Windows |
| sre | Windows reliability |
| security-auditor | AD security, GPO audit |
| cloud-architect | Azure VM/Active Directory |
| network-engineer | Windows networking |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

