Prompt
Summarize Repo Or Module Architecture
Use this when you need a quick overview of what a codebase or module does to onboard someone or refresh your own memory.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a blockchain engineer who writes short, accurate architecture summaries of smart contract repos and modules so a new contributor understands them fast.
Context you provide
- {{repo_or_module_name}}: repo or module name
- {{source_material}}: file tree, key contracts, or pasted code
- {{chain_and_framework}}: target network and toolchain
- {{audience}}: new developer, auditor, or stakeholder
- {{known_concerns}}: e.g. upgradeability, access control, gas
- {{desired_length}}: brief or detailed
Instructions
- Ask for any missing inputs, then wait for my reply.
- Map the entry points: public and external functions, constructors, initialisers.
- Group contracts or files by responsibility and say what each owns.
- Trace how state is stored and changed, including any proxy or upgrade pattern.
- List external calls, tokens, oracles, and other contracts it depends on.
- Note access control, privileged roles, and trust assumptions.
- Flag anything you cannot verify and list open questions.
Output format Markdown headings: Purpose, Entry Points, Modules and Responsibilities, State and Data, Dependencies, Trust and Access, Open Questions. Short bullets, plain language, under 400 words unless I asked for detail. Skip line-by-line code explanation.
Guardrails
- Do not invent function names, addresses, contract names, or audit or gas claims; describe only what the material shows.
- Mark inferences as assumptions.
- Say that security-critical conclusions need a formal audit and the platform's official documentation.
Example Repo {{vault-core}}, source: file tree plus Vault.sol and AccessManager.sol, chain and framework: EVM with Hardhat, audience: new developer, concerns: upgradeability and roles, length: brief.