arn-assessing
This skill should be used when the user says "assessing", "arness assessing", "assess", "assess codebase", "technical review", "codebase assessment", "find…
This skill should be used when the user says "cleanup", "infra cleanup", "arn infra cleanup", "clean up resources", "destroy expired resources", "check ttl", "check expired", "ttl cleanup", "remove old deployments", "destroy dev environment", "tear down", "teardown infra",
$ npx -y skills add AppsVortex/arness --skill arn-infra-cleanup --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/arn-infra-cleanupContext preview
The summary Claude sees to decide when to auto-load this skill.
This skill should be used when the user says "cleanup", "infra cleanup", "arn infra cleanup", "clean up resources", "destroy expired resources", "check ttl", "check expired", "ttl cleanup", "remove old deployments", "destroy dev environment", "tear down", "teardown infra",
name: arn-infra-cleanup description: >- This skill should be used when the user says "cleanup", "infra cleanup", "arn infra cleanup", "clean up resources", "destroy expired resources", "check ttl", "check expired", "ttl cleanup", "remove old deployments", "destroy dev environment", "tear down", "teardown infra", "destroy resources", "cleanup ephemeral", "check for expired resources", "clean up infra", "resource cleanup", "destroy old resources", "prune resources", "delete expired deployments", "decommission", or wants to check for and destroy expired ephemeral infrastructure resources. This skill also supports periodic monitoring via `/loop 6h /arn-infra-cleanup` for session-duration TTL enforcement. version: 1.0.0
Check for expired ephemeral infrastructure resources across three TTL sources (issue tracker, TTL registry, resource manifest) and destroy them with user confirmation. Supports periodic monitoring via `/loop` for session-duration TTL enforcement.
This skill never auto-destroys resources. Every destruction requires explicit user confirmation with a summary of what will be destroyed and its associated cost.
Read `## Arness` from the project's CLAUDE.md. If no `## Arness` section exists or Arness Infra fields are missing, inform the user: "Arness Infra is not configured for this project yet. Run `/arn-infra-wizard` to get started — it will set everything up automatically." Do not proceed without it.
Check the **Deferred** field. If `Deferred: yes`, inform the user: "Infrastructure is in deferred mode. Cleanup is not available until infrastructure is fully configured. Run `/arn-infra-assess` to un-defer." Stop.
Extract:
---
Check all three TTL sources in priority order. Collect a unified list of resources with expired or near-expiry TTLs.
**Source 1: Issue Tracker (highest priority)**
If issue tracking is configured (Platform is github or Issue tracker is jira):
For GitHub:
gh issue list --label "arn-infra-cleanup" --state open --json number,title,body,createdAt
For Jira: Query issues with label `arn-infra-cleanup` in the configured Jira project.
Parse each cleanup issue:
**Source 2: TTL Registry (secondary)**
Check for the TTL registry file:
Read .arness/infra/ttl-registry.md
If the file exists, parse resource entries with their TTL timestamps. The TTL registry is a fallback for environments without issue tracking or for resources created outside the normal deployment flow.
Expected format:
# TTL Registry | Resource | Environment | Provider | Created | TTL Expiry | Destroy Command | |----------|-------------|----------|---------|------------|-----------------| | [name] | [env] | [provider] | [timestamp] | [expiry] | [command] |
**Source 3: Resource Manifest (tertiary)**
Read the resource manifest:
Read <resource-manifest-path>
Filter resources where:
---
Merge results from all three sources, deduplicating by resource ID. For each expired resource, compile:
**If no expired resources are found:**
Present: "No expired resources found. All TTLs are current."
If there are resources with TTLs approaching expiry (within 1 hour), list them as early warnings: "The following resources will expire soon:
Stop here (or if running via `/loop`, wait for the next interval).
**If expired resources are found:**
Continue to Step 3.
---
Present each expired resource group (grouped by environment):
"The following resources have expired TTLs and are candidates for cleanup:
**Environment: [env]**
| Resource | Type | Provider | Expired | Cost Since Creation | Destroy Command | |----------|------|----------|---------|--------------------| --------------- | | [name] | [type] | [provider] | [time since expiry] | $[amount] | [command] |
**Total cost of expired resources:** $[total] (estimated charges since TTL expired)
Ask (using `AskUserQuestion`):
**"How would you
Arness — H not required. Structured AI workflows for Claude Code. From first idea to production deploy. Seven entry commands. That's all you need to remember.
This skill should be used when the user says "assessing", "arness assessing", "assess", "assess codebase", "technical review", "codebase assessment", "find…
This skill should be used when the user says "arness code assess", "arn-code-assess", "assess codebase", "technical review", "codebase assessment", "find…
This skill should be used when the user says "fix CVEs", "patch vulnerabilities", "apply security patches", "resolve security advisories", "batch CVE fix",…
This skill should be used when the user says "scan for CVEs", "CVE scan", "check for vulnerabilities", "find vulnerabilities", "check security advisories",…
This skill should be used when the user says "batch implement", "implement all", "batch execution", "implement all features", "parallel implement", "implement…
This skill should be used when the user says "batch merge", "merge batch", "arness batch merge", "arn-code-batch-merge", "merge all PRs", "merge batch PRs",…