
The Intent-Driven Starter Kit: How to Structure Any Project for AI-Assisted Development
- Mark Kendall
- 3 days ago
- 3 min read
The Intent-Driven Starter Kit: How to Structure Any Project for AI-Assisted Development
Introduction
AI coding tools like Claude Code are dramatically increasing how fast developers can generate code. Microservices, APIs, agents, and integrations that once took days can now be scaffolded in minutes.
But speed without structure leads to chaos.
When teams start generating code directly from prompts without architectural guardrails, repositories quickly become disorganized. Services duplicate each other, APIs diverge, and no one understands the system boundaries.
The solution is not to slow developers down. The solution is to structure repositories so that AI generation happens within architectural constraints.
This article presents a practical starter kit repository structure that allows teams to use AI tools effectively while maintaining architectural integrity.
What Is an Intent-Driven Repository?
An intent-driven repository is organized so that development follows a clear pipeline:
Architecture
↓
Templates
↓
Intent Files
↓
AI Code Generation
↓
Implementation
Instead of starting with code, teams start with intent — a structured description of what the system or feature should do.
AI tools such as Claude Code interpret these intents and generate code using approved templates.
This ensures that generated code fits the architecture rather than bypassing it.
The Intent-Driven Starter Kit Structure
A well-structured repository should look like this:
repo-root/
│
├── architecture/
│ ├── domain-map.md
│ ├── system-context.md
│ ├── platform-blueprint.md
│ └── architectural-decisions/
│
├── templates/
│ ├── microservice-template/
│ ├── rest-api-template/
│ ├── event-consumer-template/
│ └── ui-module-template/
│
├── intents/
│ ├── create-service.intent.md
│
├── services/
│ ├── product-catalog/
│ ├── service-order/
│ └── billing/
│
├── agents/
│ └── repo-introspection-agent/
│
├── docs/
│ └── architecture-overview.md
│
└── README.md
Each section plays a specific role in keeping AI-generated development organized.
The Architecture Folder: Where System Thinking Lives
The architecture folder defines the structure of the system.
architecture/
These documents define:
domain boundaries
system context
infrastructure patterns
architectural decisions
For example, a domain map might define:
Commerce Domain
Product Catalog
Pricing
Orders
Network Domain
Service Order
Resource Inventory
This ensures that teams know where new services belong before they generate them.
The Template Library: Architectural Guardrails
The templates folder contains reusable service scaffolds.
templates/
microservice-template/
rest-api-template/
event-consumer-template/
Templates define architectural standards such as:
logging
observability
security patterns
health checks
CI/CD integration
Instead of generating random services, developers generate services from approved templates.
Example prompt:
Create a service using the enterprise microservice template.
This keeps generated code consistent across teams.
The Intent Folder: The AI Interface
The intents folder is the interface between developers and AI.
Intent files describe what should be built, not how.
Example:
Example intent:
Intent:
Create a Service Order microservice.
Requirements:
- Use the enterprise microservice template
- Expose REST endpoints
- Integrate with Kafka events
- Include observability hooks
AI tools read these intent files and generate code that follows architectural templates.
The Services Folder: Implementation
The services folder contains the actual system implementation.
services/
product-catalog/
service-order/
billing/
These services are typically generated from templates and then refined by developers to implement business logic.
The Agents Folder: Architectural Intelligence
The agents folder contains tools that help teams understand the repository.
Example:
agents/
repo-introspection-agent/
Agents can analyze the repository and answer questions like:
What domains exist?
What templates should I use?
Where should this feature live?
This supports architectural reasoning and helps prevent mistakes.
How Teams Work with the Starter Kit
Once the repository is structured correctly, development becomes much more efficient.
Typical workflow:
Architect defines domain architecture and templates
↓
Team receives a feature request
↓
Developer creates an intent file
↓
AI generates code using templates
↓
Developers refine business logic
This approach allows teams to move quickly while maintaining architectural consistency.
Why This Structure Matters
Without a structured repository, AI coding tools can quickly create system sprawl.
Developers may generate:
duplicate services
inconsistent APIs
conflicting architectures
The intent-driven repository ensures that:
AI generation follows architecture
templates enforce standards
domains define boundaries
teams stay aligned
In other words:
Architecture defines the rails.
AI accelerates the trains.
Key Takeaways
• AI coding tools like Claude Code dramatically increase development velocity.
• Without architectural structure, that velocity can quickly lead to system chaos.
• Intent-driven repositories organize development around architecture, templates, and intent files.
• This structure allows teams to generate code rapidly while maintaining consistency and governance.
• When implemented correctly, the repository becomes a system factory for scalable software development.
Comments