# Clean Up Wrong Path Immediately

> When files are accidentally created in the wrong directory, remove them immediately before proceeding to the correct location.

- **Type:** Skill
- **Install:** `agentstack add skill-surenode-ai-skill-extractor-clean-up-wrong-path-immediately`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [surenode-ai](https://agentstack.voostack.com/s/surenode-ai)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [surenode-ai](https://github.com/surenode-ai)
- **Source:** https://github.com/surenode-ai/skill-extractor/tree/main/examples/mined-skills/clean-up-wrong-path-immediately

## Install

```sh
agentstack add skill-surenode-ai-skill-extractor-clean-up-wrong-path-immediately
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Immediately Clean Up Files Written to Wrong Location

**When to use:** When you realize you've written files to the wrong project directory or path.

## Rule

1. As soon as you realize a file was created in the wrong location, **immediately delete it** before doing anything else.
2. Use `rm -f ` and `rmdir ` to clean up.
3. Confirm cleanup with an echo/message.
4. Only then proceed to the correct location.

**Why**: Stray files in wrong repos cause confusion, potential git commits of garbage, and clutter. The longer they exist, the more likely they'll be forgotten.

**Prevention**: Before writing files, confirm the correct project root by checking for existing project markers (package.json, README, .git, existing index.html).

---
*Mined by skill-extractor from a local repo (confidence 0.7, utility 0.629, trace outcome success). Review & edit as needed.*

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [surenode-ai](https://github.com/surenode-ai)
- **Source:** [surenode-ai/skill-extractor](https://github.com/surenode-ai/skill-extractor)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-surenode-ai-skill-extractor-clean-up-wrong-path-immediately
- Seller: https://agentstack.voostack.com/s/surenode-ai
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
