Loading lesson…
Loading lesson…
In the previous chapters, we learned how to use AI IDEs to write code, how to manage code versions with Git, and how to design and implement API interfaces. But when you face a real development task, you may run into questions like these:
The essence of these questions is: how do you use AI tools efficiently in real development scenarios to get work done?
In this lesson, we will learn how to build a systematic AI-assisted development workflow so that you can use AI efficiently across different development scenarios. Through concrete examples, we will show how to use AI in new feature development, bug fixing, code refactoring, and more.
💡 Prerequisites
Before studying this section, it is recommended that you first understand:
- AI IDE Basics - master the basic use of AI IDEs
- Git and GitHub Workflow - understand code version management
- Using Large Models to Help Write API Code - understand the basic concept of AI-assisted development
📚 What you will learn
- Understand AI's role in the development process and its capability boundaries
- Master AI-assisted development strategies for different project types
- Learn how to use Claude Code in scenarios such as new feature development, bug fixing, and code refactoring
- Build a project knowledge base to improve collaboration efficiency with Claude Code
- Master practical techniques for improving AI collaboration efficiency
Before we start using AI to assist development, we first need to understand what AI can and cannot do. Only then can we build the right collaboration model.
Think of AI as a very smart assistant that still needs clear instructions. It can quickly generate a code skeleton based on your description, and it can also read thousands of lines of code in seconds to find the part you need. If there are obvious syntax errors or common security vulnerabilities, it can help you discover them too. Repetitive tasks such as batch-renaming variables, formatting code, and generating documentation comments are especially suitable to hand over to AI.
Put simply, AI is good at work that has clear rules and can be automated.
But AI also has its limitations. It does not understand your business logic. Unless you tell it in detail, it will not know how your company's order flow works. It also cannot make decisions such as technical selection or architecture design that require weighing trade-offs, because those depend on your experience and understanding of the project. AI also does not know your team's special conventions, such as "all APIs must have logging" or "error codes must use enums." You need to configure those rules or tell it explicitly.
Most importantly, code generated by AI cannot be used directly. You must review and test it. It may generate code that looks correct but is actually problematic, and it may ignore certain edge cases.
Once you understand AI's capability boundaries, the collaboration model becomes clear: you are responsible for deciding what to build, making decisions, and ensuring quality; AI is responsible for executing concrete coding work, finding information, and surfacing obvious problems.
It is like working with a junior developer. You tell them what needs to be done, they implement it, and then you review the code. The difference is that AI executes much faster, but its judgment is weaker than a human's.
Different types of projects require different development styles and AI usage strategies. Choosing the right strategy can greatly improve development efficiency.
Project characteristics:
Recommended workflow:
Step 1: Plan the project structure
Before you start coding, first ask AI to help you plan the project structure and technical choices:
I want to build a task management app with these features:
- User registration and login
- Create, edit, and delete tasks
- Task categories and tags
- Task reminders
Please help me:
1. Recommend a suitable tech stack
2. Design the project directory structure
3. Plan the database schema
Step 2: Build the basic framework
Based on the plan, ask AI to create the basic project structure:
Based on the plan we just discussed, help me:
1. Create the project directory structure
2. Initialize config files (package.json, .env, etc.)
3. Create the basic server code
Step 3: Implement features one by one
Implement feature modules one at a time by priority:
Now implement the user registration feature with these requirements:
- Register with email and password
- Store passwords in encrypted form
- Email verification
Key points:
Project characteristics:
Recommended workflow:
Step 1: Understand the project structure
Before changing code, first ask AI to help you understand the project:
This is an e-commerce project, and I need to add a coupon feature.
Please help me:
1. Analyze the overall project structure
2. Find the order-related code
3. See how other similar features are implemented
Step 2: Find reference code
Ask AI to find similar implementations in the project as references:
Find how other promotional features in the project, such as full reduction and discounts, are implemented
Step 3: Follow the existing style
Ask AI to implement the new feature in the style of the existing code:
Please implement the coupon feature by referring to how the full-reduction promotion is implemented.
Keep the same code style and directory structure.
Key points:
Project characteristics:
Recommended workflow:
Describe the requirement directly and implement quickly:
Build a simple todo app with these requirements:
- Add, delete, and mark tasks as completed
- Store data locally
- Keep the UI simple, as long as it works
Iterate quickly:
Add search
Switch it to a dark theme
Add task categories
Key points:
Project characteristics:
Recommended workflow:
Step 1: Locate the problem
User feedback: after clicking the "Submit Order" button, the page freezes
Console error: TypeError: Cannot read property 'id' of undefined
Please help me:
1. Analyze possible causes
2. Find the relevant code
Step 2: Analyze the root cause
Check in what situations this error occurs
Inspect the data flow
Step 3: Apply the fix
Fix this problem, and:
1. Add defensive code to avoid similar issues
2. Add error messages to improve user experience
Key points: