Home / hasansezertasan / infra-copilot · .ai-rulez/skills/prune/SKILL.md · GitHub

prune skillA

prune is agent-read markdown (skill) from hasansezertasan/infra-copilot: Remove spent one-shot `import {}` and `moved {}` blocks after their apply landed, proving per block that state already holds the address and ending on a plan of No changes. Use once an import applied, never before..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# infra-copilot: prune

Delete the **one-shot instruction blocks** an adoption leaves behind. `import {}` and
`moved {}` execute once **against a given state**; after that run applies, the resources are
managed by their addresses and the blocks are inert. Nothing else removes them, so they
accumulate. Scope is one leaf at a time — blocks under `terraform/modules/` are out, see
guardrail 5.

This file is a **router**: the reusable machinery — actor model, handoff, resume,
preflight — lives in [`../infra-copilot/references/protocol.md`](../infra-copilot/references/protocol.md); the manifest in
[`../infra-copilot/references/steps.yaml`](../infra-copilot/references/steps.yaml) (**phase 5**, `prune-spent-imports`); the
canonical runbook in [`../infra-copilot/references/docs/prune.md`](../infra-copilot/references/docs/prune.md).

> **Why not the last step of `import`?** The apply has to land between the two, so they can
> never be the same pull request. `import` ends on *imports, not creates*; this ends on *No
> changes*. Two end states, days apart, usually two different sessions.

## Guardrails

The only workflow here that deletes, and both failure directions hit live infrastructure:
…

Read the whole file at its exact version.

How to install

Latest version
mdr add hasansezertasan/infra-copilot/prune@git:20260919.03032c0
Exact content
mdr add hasansezertasan/infra-copilot/prune@sha256:0973d9b5cf552b35

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_oxbn4wz4uaa5xru5.svg)](https://markdownregistry.com/a/art_oxbn4wz4uaa5xru5)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260919.03032c0 latest2026-09-19 03032c0 5,623 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5623 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

hasansezertasan/infra-copilot · 2 stars · license MIT · pushed 2026-09-24 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_oxbn4wz4uaa5xru5
GET https://markdownregistry.com/api/v1/resolve?ref=hasansezertasan/infra-copilot/prune
GET https://markdownregistry.com/api/v1/blob/0973d9b5cf552b35ebdfa7d84f55daa82d991461e03cc25f712f00c57dff714e

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from hasansezertasan/infra-copilot

add skill
hasansezertasan/infra-copilot · .ai-rulez/skills/add/SKILL.md · Provision something new in an already-bootstrapped infra repo: a managed GitHub repo, a resource on an existing…
git:20260924.310f154 · audit A · 2 stars
import skill
hasansezertasan/infra-copilot · .ai-rulez/skills/import/SKILL.md · Adopt infrastructure that already exists at a provider into Terraform without recreating it, verifying the plan shows…
git:20260919.03032c0 · audit A · 2 stars
infra-copilot skill
hasansezertasan/infra-copilot · .ai-rulez/skills/infra-copilot/SKILL.md · Route infrastructure work to the correct infra-copilot workflow: setup for a greenfield bootstrap, import for existing…
git:20260919.03032c0 · audit A · 2 stars
setup skill
hasansezertasan/infra-copilot · .ai-rulez/skills/setup/SKILL.md · Greenfield bootstrap of a Terraform + Cloudflare + GitHub infra repo with either HCP Terraform (cloud block) or…
git:20260918.dae0821 · audit A · 2 stars
status skill
hasansezertasan/infra-copilot · .ai-rulez/skills/status/SKILL.md · Read-only health check: runs every step's check across the whole manifest and reports what is green, which step is the…
git:20260910.8f1e416 · audit A · 2 stars
AGENTS.md agents
hasansezertasan/infra-copilot · AGENTS.md
git:20260924.310f154 · audit A · 2 stars
add skill
hasansezertasan/infra-copilot · skills/add/SKILL.md · Provision something new in an already-bootstrapped infra repo: a managed GitHub repo, a resource on an existing…
git:20260924.310f154 · audit A · 2 stars
import skill
hasansezertasan/infra-copilot · skills/import/SKILL.md · Adopt infrastructure that already exists at a provider into Terraform without recreating it, verifying the plan shows…
git:20260924.310f154 · audit A · 2 stars
infra-copilot skill
hasansezertasan/infra-copilot · skills/infra-copilot/SKILL.md · Route infrastructure work to the correct infra-copilot workflow: setup for a greenfield bootstrap, import for existing…
git:20260924.310f154 · audit A · 2 stars
prune skill
hasansezertasan/infra-copilot · skills/prune/SKILL.md · Remove spent one-shot `import {}` and `moved {}` blocks after their apply landed, proving per block that state already…
git:20260924.310f154 · audit A · 2 stars
setup skill
hasansezertasan/infra-copilot · skills/setup/SKILL.md · Greenfield bootstrap of a Terraform + Cloudflare + GitHub infra repo with either HCP Terraform (cloud block) or…
git:20260924.310f154 · audit A · 2 stars
status skill
hasansezertasan/infra-copilot · skills/status/SKILL.md · Read-only health check: runs every step's check across the whole manifest and reports what is green, which step is the…
git:20260924.310f154 · audit A · 2 stars

Every file in hasansezertasan/infra-copilot

Other files named prune

prune skill
simota/agent-skills · prune/SKILL.md · Cleaning up the skill ecosystem: auditing the agent roster for overlap and inactivity, proposing merges and sunset…
git:20260917.965f4f9 · audit A · 80 stars
prune skill
matthewp/tideway · skills/prune/SKILL.md · Find and remove unused CSS in a Tideway project — classes defined in stylesheets but never referenced in markup. Use…
git:20260710.041301b · audit A · 2 stars
prune skill
hasansezertasan/infra-copilot · skills/prune/SKILL.md · Remove spent one-shot `import {}` and `moved {}` blocks after their apply landed, proving per block that state already…
git:20260924.310f154 · audit A · 2 stars

Browse by kind, by grade A, or by owner.