# AI Prompt for Code Repository Analysis and Documentation

> A detailed system prompt instructing an AI (specifically Claude code + MiniMax M2.5) to analyze a code repository (pi-mono) and generate comprehensive…

- Type: single prompt
- Written for: [Seedance 2.0](https://orisu.ai/prompts/m/seedance-2.0)
- Category: [Product](https://orisu.ai/prompts/c/product)
- Tags: Tech, Starter, Multi-aspect, Editorial
- Published: 2026-09-07
- Page: https://orisu.ai/prompts/ai-prompt-for-code-repository-analysis-and-documentation

## Prompt

- Model: Seedance 2.0

```text
I am a product manager who doesn't understand technology. I want to thoroughly organize the business logic using Mermaid diagrams. Please help me analyze what valuable points can be extracted here. Help me write several detailed explanation documents, placed in docs/explain/*.md. The documents must extensively use Mermaid syntax to visualize the logic. The more detailed, the better, the more detailed, the better, the more detailed, the better, so that even if I don't understand technology, I can clearly see the direction of the business logic. Thank you for your hard work!
```

Original prompt (zh):

```text
我是一个不懂技术的产品经理, 我想通过 Mermaid 图表深度梳理一下业务。麻烦帮我分析一下这里面有哪些值得挖掘的点。帮我写几篇逻辑详尽的说明文档，放在 docs/explain/*.md 。文档里要大量运用 Mermaid 语法来可视化这些逻辑，越详细越好,越详细越好,越详细越好，哪怕我不懂技术也能一眼看清业务逻辑的走向。辛苦啦！
```

## Example output

- Video: https://assets.orisu.ai/prompt-library/youmind/ai-prompt-for-code-repository-analysis-and-documentation.mp4 (poster: https://assets.orisu.ai/prompt-library/youmind/ai-prompt-for-code-repository-analysis-and-documentation-poster.jpg) — AI Prompt for Code Repository Analysis and Documentation — example output
- ![AI Prompt for Code Repository Analysis and Documentation — example output](https://assets.orisu.ai/prompt-library/youmind/ai-prompt-for-code-repository-analysis-and-documentation-poster.jpg)

## Credit

- Author: 海拉鲁编程客 (https://x.com/hylarucoder)
- Original post: https://x.com/hylarucoder/status/2023985866725785894
- Collected via: youmind.com

## Run it in Orisu

Orisu runs this prompt on your own product, model or brand, with dozens of image and video models under one account. Start free: https://app.orisu.ai/auth/sign-up?utm_source=prompt-library&utm_medium=cta&utm_campaign=prompts&utm_content=ai-prompt-for-code-repository-analysis-and-documentation&utm_term=markdown&prompt=ai-prompt-for-code-repository-analysis-and-documentation

Source: Orisu prompt library, https://orisu.ai/prompts/ai-prompt-for-code-repository-analysis-and-documentation
