Developers use Claude Code as an enhanced autocomplete system. They open a file, type a prompt, and hope for the best. The system produces decent output which sometimes reaches great quality. The output exhibits inconsistent results. The system loses track of context and repeats its initial errors.
The solution needs a more organized project, not an extended prompt.
This article showcases a project structure which develops into an AI-powered system used for incident response, that follows Claude Code’s best practices.
The most significant misunderstanding that developers have with AI today is:
“Simply use an LLM and you’re finished!”
Wrong! AI is a system. Not a feature.
A production-grade AI system requires:
Most developers stop at API calls. That’s just the first level! What’s rarely discussed:
repository structure determines how well Claude Code helps you build these layers.
Fix the structure. Everything else falls in place.
This project would be a cloud-based incident management system powered by AI. I’ll be calling it respondly.

Let’s analyze how the overall structure creates a better experience with Claude Code and then analyze each piece of the structure.
Before diving into creating folders, let’s review the essence of Claude Code. In order to think like an engineer, Claude Code essentially needs four pieces of information:
All the folders inside of respondly/ directory performs one of the above roles. There is no accidental folder placement.
CLAUDE.md is one of the most critical files for this project, not documentation but basically the model’s memory. Claude is looking at CLAUDE.md when it starts each time. You can think of it like giving a new engineer an overview of the system on day one (except Claude is given it every time). You should be brief, to the point and keep it to max three sections.
respondly/CLAUDE.md contains:
That is all there is to it. There are no philosophies or lengthy descriptions. It is all just to inform the model.
If CLAUDE.md will get too long, then the model will not have the ability to follow the critical instructions it is supposed to follow. Clarity is always more important than size.
In this folder, it is easy to see how Claude Code transitions from generalist to specialist. Reusable instruction codes enable Claude to create workflows which are repeatable.
When Claude learns a new process, there’s no need to explain it each time. Define it once, then Claude will load that process on demand. Claude ships with three unique skills:

This gives everyone working on the project with Claude Code, a consistent, high-quality output from all users, as it relates to Claude’s use and execution.
Models, as you know, will often forget. Hooks and rules will not. The rules directory contains the rules that MUST ALWAYS happen, no need for anyone to be reminded.
Consider the rules NON-NEGOTIABLES that are inherently part of the project. Therefore, any project created from Claude will automatically include the rules without any reminders.
You do not need to put all the information into one single prompt. This creates an anti-pattern. Rather, build a documentation that Claude can access the required sections at the appropriate time. The respondly/docs directory consists of:
Claude does not need to remember all this documentation; it only needs to know where to obtain the information it requires. Therefore, this alone will reduce a substantial number of mistakes.
There are certain areas of any given codebase that contain hidden complexity. Though on the surface, they initially seem rather straightforward, they aren’t.
For respondly/, these areas of complexity are as follows:
Each of these areas has its own local CLAUDE.md file:
App/security/CLAUDE.md
app/agents/CLAUDE.md
evaluation/CLAUDE.md
Within these files, the CLAUDE system gets a clear understanding of what aspects of this area pose a threat, what errors to steer clear of, and what conventions are essential at the time CLAUDE is working within the confines of that directory.
This isolated process reduces the occurrence of LLM-enabled bugs significantly within high-stakes modules.
Respondly/ has created a multi-agent framework. Inside the respondly/agents/ folder are 4 files:
It is these traits that set an AI production system apart from an AI demo system (i.e. The ability to be modular with respect to intelligence; to be able to run various tests on each individual component of the system; and the ability to view the chain of events that led up to a particular decision being made).
What most individuals tend to overlook:
Prompting is a momentary measure, while structure is a lasting criterion.
An expertly written prompt will only last you throughout one individual session, however an expertly constructed repository will last for the entirety of the project.
When you project is properly structured:
This is not a chatbot. This is an engineer who is native to the project.
The most significant mistake people make while developing AI is treating it as a convenience or advanced search feature. Claude is not that; it is a reasoning engine, which requires context, structure, and memory. Each of the respondly/ folders answers one question: What does Claude need to make his judgment in this moment? If you are consistent with your answer, it will no longer be just a tool; you will have created an engineer within your codebase.
The execution plan is straightforward: create a master CLAUDE.md, develop three skills to be reused for repetitive processes. Then establish rules for what you cannot change; drop a set of local context files in your four largest modules to start the creation of your architecture. After you have created those four files, you have established your foundational building blocks for development. Then you should focus on having your architecture in place before scaling up the number of files and/or functions that you create to support your application. You’ll find that everything else will follow.
A. Developers think using an LLM is enough, but real AI needs structured engineering layers.
A. It acts as model memory, giving concise context on purpose, structure, and rules each session.
A. It organizes context and workflows, enabling consistent, engineer-like reasoning from the model.