> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Arka is an open-source AI terminal agent (PyPI package: arka-agent, GPL-2.0).
> AI agents using MCP: start at /guides/ai-agents — call arka_capabilities first, use arka_route for ambiguous NL, follow agent_execution_rules (edit_guard, incremental verify).
> Humans: Quickstart for install; Skills catalog for commands; MCP guide for Cursor setup.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# Project structure improvement prompt

> किसी भी repository की structure सुधारने के लिए एक सुरक्षित prompt।

इसे Arka के साथ उपयोग करें:

```text theme={null}
Inspect this repository before changing anything. Build a repo graph and identify
the highest-impact structural problems using dependency centrality, tests,
coupling, duplicate logic, and feature boundaries. Propose a small, ordered
refactor plan. Do not change behavior, public APIs, button order, URLs, or
configuration contracts. For each move, show source, destination, import/reference
updates, risks, and a rollback path. Ask for approval before applying moves. After
approval, make surgical edits, run only tests covering edited files after each
step, then run the broader project gate and report the exact files and results.
Preserve modules that are already clear and do not reorganize for aesthetics alone.
```

एक single file move के लिए:

```bash theme={null}
arka move_file src/old.py src/new.py
arka move_file src/old.py src/new.py --yes --update-refs
```

Moves default रूप से preview करते हैं, destination collisions को अस्वीकार करते
हैं, और केवल तभी सरल textual references update करते हैं जब स्पष्ट रूप से अनुरोध
किया गया हो।


## Related topics

- [AI agent guide — MCP पर Arka उपयोग करें](/hi/guides/ai-agents.md)
- [Prompt optimization](/hi/guides/prompt-optimization.md)
- [Repo map](/hi/guides/repo-map.md)
- [Repository structure audit](/hi/guides/structure.md)
- [किसी repository को reverse-engineer करें](/hi/guides/repo-reverse.md)
