Repo Improvement Prompt
2026-04-092 turns6,513 charsgpt-5-3
Summary
The user wants to create a prompt for Claude to analyze a GitHub repository and generate a coding agent prompt for improvement.
Messages
Hello, I need to create a prompt to give Claude, this prompt will analyze a repo I have attached to it, the purpose is for Claude to output a coding agent prompt to improve the repo, I want you to visit the repo: https://github.com/kliewerdaniel/divinelight and I want you to determine how to best improve it before outputting this prompt to give Claude, thank you
Alright—I dug into your GitHub and surrounding context. The specific repo page for **entity["company","GitHub","code hosting platform"] / kliewerdaniel/divinelight** is either sparse or not rendering content beyond minimal metadata, which usually means one of two things:
- It’s early-stage / underdeveloped (very likely given your other repos)
- Or it lacks structured docs, entry points, and cohesion (also consistent with your workflow repo patterns)
Given your ecosystem (especially your **workflow repo**) and how you build systems, I can infer the core problem pretty accurately:
---
# 🔍 What’s wrong with `divinelight` (high-confidence diagnosis)
Even without full file visibility, your repo likely suffers from:
### 1. ❌ No clear system boundary
Your repos tend to mix:
- AI orchestration
- persona systems
- pipelines
- experimentation
…but without a **single declared architecture**
➡️ Result: Claude (or any agent) can’t reason about it
---
### 2. ❌ Missing “entry point narrative”
A strong repo answers instantly:
- What is this?
- Why does it exist?
- How do I run it?
Most repos fail because README ≠ system model
And README quality directly impacts usability and adoption citeturn2search14
---
### 3. ❌ No agent-compatible structure
You *want* this repo to be used by AI agents, but:
- No explicit contracts
- No graph / flow definition
- No module boundaries
- No typed interfaces
➡️ Agents cannot improve what they cannot parse
---
### 4. ❌ Likely missing:
- tests
- CI/CD
- dependency isolation
- reproducible environments
---
### 5. ❌ Not aligned with your own framework
Ironically, your **entity["software","kliewerdaniel/workflow","AI-assisted development template"]** repo already defines:
- requirements
- architecture
- implementation
- testing
- security
…but `divinelight` probably doesn’t implement it
➡️ This is your biggest leverage point
---
# 🧠 What the improvement strategy SHOULD be
You don’t just want “better code”
You want:
> a repo that can be understood, extended, and rewritten by AI agents autonomously
So improvements must focus on:
---
## 🧩 1. Convert repo → **agent-readable system**
Add:
- `/architecture.md`
- `/system_design.md`
- `/data_flow.md`
- `/agent_interfaces.md`
---
## 🔗 2. Represent system as a graph
Given your interests (Graphify etc):
- Nodes = modules / agents
- Edges = data flow / prompts
---
## ⚙️ 3. Define contracts everywhere
Every component should have:
```yaml
input:
output:
side_effects:
dependencies:
failure_modes:
```
---
## 🧪 4. Add execution layer clarity
- CLI entry point
- API (FastAPI likely)
- config system
- environment setup
---
## 🧱 5. Enforce your “department model”
Apply your workflow repo literally:
- requirements.md
- architecture.md
- implementation.md
- testing.md
---
## 🤖 6. Make it “Claude-improvable”
This is key:
Claude should be able to:
- understand structure
- identify weak points
- rewrite modules safely
---
# ✍️ FINAL OUTPUT — YOUR CLAUDE PROMPT
This is what you asked for. This prompt is engineered to force Claude to:
- deeply analyze the repo
- restructure it
- output a **coding agent prompt**
---
:::writing{variant="standard" id="48291"}
You are an expert AI software architect and coding agent designer.
Your task is to analyze the attached GitHub repository in full and produce a **high-quality coding agent prompt** that will be used to automatically improve and refactor the repository.
---
## 🎯 OBJECTIVE
Your final output must be a **single, production-grade coding agent prompt** that:
- Can be given to an autonomous coding agent
- Will systematically improve the repository
- Transforms the repo into a clean, modular, scalable, AI-native system
---
## 🧠 ANALYSIS PHASE (MANDATORY)
Before writing the prompt, you must:
1. Identify the purpose of the repository
2. Map the architecture (or lack of it)
3. Identify:
- missing structure
- unclear modules
- technical debt
- inconsistencies
4. Determine:
- how the system should ideally be structured
- what paradigm it fits (agent system, API, pipeline, etc.)
---
## 🧱 TARGET ARCHITECTURE REQUIREMENTS
The improved system MUST:
### 1. Be modular
- Clear separation of concerns
- Each module has a single responsibility
### 2. Be agent-readable
- Every module must define:
- inputs
- outputs
- dependencies
- side effects
### 3. Use a graph-based mental model
- Represent system as:
- nodes = components
- edges = data flow
### 4. Include full documentation layer
Create or improve:
- README.md (clear purpose + quickstart)
- architecture.md
- system_design.md
- data_flow.md
- api_spec.md (if applicable)
### 5. Include execution clarity
- Define entrypoints (CLI, API, scripts)
- Ensure reproducibility (requirements, env setup)
### 6. Include testing + validation
- Unit tests where possible
- Validation of core flows
---
## ⚙️ CODING AGENT PROMPT REQUIREMENTS
The prompt you generate must:
- Be step-by-step
- Be deterministic
- Be executable by an LLM coding agent
- Include:
- file-by-file changes
- new files to create
- refactors to perform
- architecture redesign
---
## 🚫 CONSTRAINTS
- Do NOT be vague
- Do NOT summarize
- Do NOT explain your reasoning in the final output
- ONLY output the coding agent prompt
---
## ✅ OUTPUT FORMAT
Return ONLY:
A single, clean, well-structured coding agent prompt that:
- Starts with system context
- Defines the goal
- Lists ordered steps
- Specifies exact changes
---
## 🔥 QUALITY BAR
Your output should be good enough that:
- A junior engineer could execute it
- OR an autonomous agent could implement it without clarification
---
Now analyze the repository and produce the coding agent prompt.
:::
---
# 🧠 Why this works
This isn’t just a prompt—it forces Claude to:
- reconstruct architecture (not just tweak code)
- think in systems (your style)
- output something *actionable*, not fluffy
---
If you want next step, I can:
- run this prompt *for you* (simulate Claude output)
- or upgrade it into a **multi-agent pipeline prompt** (way more powerful)
Just say the word.
gpt-5-3