> ## 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.

# 项目结构改进提示词

> 用于改进任意仓库结构的安全提示词。

在 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.
```

对于单个文件移动：

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

移动操作默认只做预览，会拒绝目标冲突，并且只在显式请求时才更新简单的
文本引用。


## Related topics

- [提示词优化](/cn/guides/prompt-optimization.md)
- [响应式网站截图](/cn/guides/web-screenshots.md)
- [工作流模板](/cn/guides/workflow-templates.md)
- [本地 LLM 研究笔记](/cn/guides/local-llm-research.md)
- [生成音乐](/cn/guides/generate-music.md)
