Skip to content
Agentmart
Submit a tool

infrastructure-protection

Activate when performing infrastructure, VM, container, or cloud operations.

Skill by intelligentcode-ai

IndexedMIT★ 1
Write a review

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/intelligentcode-ai-infrastructure-protection

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.

We use your email only for this newsletter. Privacy

About

Activate when performing infrastructure, VM, container, or cloud operations. Ensures safety protocols are followed and blocks destructive operations by default. Mirrors agent-infrastructure-protection hook.

Use cases: devops, agent-building

No 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/infrastructure-protection

What's inside

Skill name
infrastructure-protection
Description
Activate when performing infrastructure, VM, container, or cloud operations. Ensures safety protocols are followed and blocks destructive operations by default. Mirrors agent-infrastructure-protection hook.
License
MIT
Instructions
134 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Infrastructure Protection Skill

Apply safety rules for infrastructure and system operations.

## Why This Matters

Infrastructure operations are **enforced by hooks** - destructive operations will be blocked. This skill ensures you understand the rules so your operations aren't rejected.

## Protection Levels

### Read Operations (Always Allowed)
```bash
# Information gathering - safe
govc vm.info
kubectl get pods
docker ps
virsh list
terraform plan
ansible --check
```

### Write Operations (Require Caution)
```bash
# State-changing operations - proceed carefully
govc vm.power -on
kubectl apply
docker run
virsh start
terraform apply
```

### Destructive Operations (Blocked by Default)
```bash
# Dangerous operations - blocked unless explicit
govc vm.destroy
kubectl delete
docker rm -f
virsh undefine
terraform destroy
```

## Protected Platforms

### Virtualization
- VMware (govc, esxcli)
- Hyper-V (PowerShell VM cmdlets)
- KVM/libvirt (virsh)
- VirtualBox (vboxmanage)
- Proxmox (qm, pct)

### Containers
- Docker (docker, docker-compose)
- Kubernetes (kubectl, helm)
- Multipass

### Cloud
- AWS (aws cli)
- Azure (az cli)
- GCP (gcloud)

### Configuration Management
- Terraform
- Ansible
- Packer
- Vagrant

## Blocked Operations List

```bash
# VM/Container destruction
govc vm.destroy
virsh destroy
virsh undefine
docker rm -f
kubectl delete pod --force

# Disk operations
dd if=/dev/zero of=/dev/sda
mkfs
fdisk /dev/sda

# System cleanup
rm -rf /
```

## Safe Operation Patterns

### Before Destructive Operations
1. **Confirm intent**: User explicitly requested destruction
2. **Verify target**: Double-check resource name/ID
3. **Check dependencies**: What depends on this resource?
4. **Backup if needed**: Take snapshot/backup first

### Prefer IaC Over Imperative
```bash
# Preferred: Declarative/IaC
terraform apply
ansible-playbook deploy.yml
kubectl apply -f manifest.yaml

# Avoid: Imperative one-offs
govc vm.create ...
kubectl run ...
docker run ... (for persistent services)
```

## Hook Enforcement

The `agent-infrastructure-protection.js` hook will:
1. **Block** destructive operations without explicit request
2. **Allow** read operations freely
3. **Warn** on write operations
4. **Require** explicit confirmation for dangerous actions

## Emergency Override

In genuine emergencies, users can:
1. Set `emergency_override_enabled: true` in config
2. Provide emergency override token

From intelligentcode-ai/skills, MIT.

More from intelligentcode-ai/skills

Signals

Stars
1
Forks
1
Open issues
0
Last commit (this folder)
Feb 14, 2026 (8 months ago)
Last release
Feb 16, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from intelligentcode-ai

Cite this page

infrastructure-protection skill. Agent Mart. https://agentmart.dev/skills/intelligentcode-ai-infrastructure-protection (last updated 2026-10-24)