How to Use AI in Software Development: 7 Best Practices & Examples for Engineering Teams

Most engineering teams already have access to AI coding tools, but far fewer have a clear plan for how to use them. In our 2026 State of Engineering Management report, only 10% of respondents reported strong enablement and high adoption.

That leaves many developers with the same practical problem. They know artificial intelligence can write code, but they’re less sure where it helps in the rest of the workflow, which tasks to hand off, and how much review the output needs.

This guide explains how to use AI in software engineering from early planning through code review. It opens with a quick look at where AI fits in the development lifecycle and then goes through seven best practices with examples.

Where AI Fits in the Software Development Lifecycle

Where AI Fits in the Software Development Lifecycle

AI has a role in every stage of software development, from the first requirements discussion to production support. Here’s a quick breakdown by stage.

Development stage How teams can use AI Where to learn more
Planning and design Pressure-test requirements, explore architecture options, and spot risks before work starts Best practices #1 and #2
Coding and refactoring Draft boilerplate and routine features, explain unfamiliar code, and clean up existing functions Best practice #3
Testing and code review Write test cases, point out likely bugs, and prepare pull requests for review Best practices #5 and #6
Deployment and maintenance Investigate production issues, analyze logs, and keep documentation up to date Best practice #4 and FAQs

None of this takes developers out of the loop. AI handles a first pass at each stage, and your team reviews, tests, and approves the result before it moves on.

Part 1: Laying the Foundation (Planning & Design)

Part 1: Laying the Foundation (Planning & Design)

Planning is where AI can save you from some of your most expensive mistakes. Use it to test ideas and structure the project before anyone writes code.

1. Use AI to De-Risk Your Project Planning

Vague requirements cause a lot of mid-sprint rework. Say leadership asks for a “simple integration with Salesforce.” Two weeks in, the team finds out it needs bi-directional sync, custom field mapping, and conflict resolution, and the basic API integration won’t scale.

AI makes it easier to find those requirements before work begins. It examines a loose request from several angles and lists the questions your team would otherwise hit mid-sprint. Your prompt can be rough, as long as it ends with a clear ask.

“Need to sync our user data with Salesforce, probably real-time, sales team wants to see everything. What do we need to clarify before we estimate this?”

The AI assistant comes back with questions about API rate limits, data volume, conflict resolution, field mapping, and audit trails. It may also suggest Salesforce’s Bulk API and a review of your current webhook infrastructure.

Here’s how the same project can play out either way.

Phase The Old Way The AI Way
Kickoff Leadership asks for a “simple Salesforce integration” Same request, plus a short AI session to explore the requirements
Before coding The team starts on a basic API integration AI asks about sync direction, field mapping, conflict handling, and rate limits
Mid-project Bi-directional sync and conflict resolution come up as new requirements The team already planned for both
Result The team rebuilds part of the integration The team builds to the full scope from the start

AI can produce the questions, but the answers have to come from the people who own the requirements, such as the sales team or your Salesforce admin. Take the list into kickoff and record the answers in the ticket before the team estimates the work.

Add your team size, stack, and deadline to the prompt so the questions fit your situation. You can also paste in raw meeting notes, and AI will organize them into tasks, milestones, and open questions.

PRO TIP 💡: Jellyfish shows how much of your engineering time goes to unplanned work. If AI-driven planning helps, that share should drop along with mid-sprint surprises.

2. Leverage AI as an Architectural Sounding Board

Architecture choices rarely get enough pushback. A team adopts Kubernetes for 50,000 daily users because everyone else has, and six months later it’s drowning in YAML files with slower deployments.

AI makes a good devil’s advocate for these decisions. It challenges assumptions without office politics or ego and points to the trade-offs that are easy to overlook, like the ones below.

What teams propose What AI points out
“Let’s move to microservices.” “With a five-person team, who manages service discovery, distributed tracing, and inter-service communication?”
“NoSQL will solve our scaling issues.” “How will you handle complex reporting without joins?”
“We should go serverless.” “Your P95 latency target is 200ms. Have you modeled the impact of cold starts?”
“Event sourcing is perfect for this.” “What’s your plan for GDPR compliance and event deletion?”
“GraphQL will simplify our APIs.” “How will you prevent N+1 queries with your team’s current experience?”
“Kubernetes will standardize our deployments.” “You deploy twice a month. Is the orchestration overhead worth it?”

One Reddit developer put it like this:

“It’s great as a talking rubber duck. Especially for planning architecture overhauls. ‘I think we can move from X process to Y technology.’ ‘Have you considered the following limitations?’”

A good prompt asks AI to argue against your plan. Share the proposal along with your traffic, deployment frequency, and on-call setup. Then ask what would have to be true for the plan to work and what would break first as you grow.

Example → A team of eight developers plans to break its monolith into 12 microservices. AI learns they deploy weekly with two people on call and points out that every release would involve 12 services with very little support. The team scales back to three services and keeps most of the benefits.

AI doesn’t know your hiring plans, budget, or how much risk your organization will accept, so the final call belongs to your team. Record the decision and the questions behind it in an architecture decision record so future engineers can see why you made it.

Part 2: The Building Phase (Coding & Documentation)

Part 2: The Building Phase (Coding & Documentation)

The building phase is where AI’s time savings are easiest to see. It can draft boilerplate, tests, and documentation, so developers spend less time on the repetitive work every project needs.

3. Treat AI as a Pair Programmer for Code Generation

Code generation is still the most common way teams use AI. In our latest survey of more than 600 engineering professionals, code writing was the top AI use case at 53%.

The tools behind that work have changed a lot, though. Early coding assistants mostly suggested the next line or function as you typed. Agentic tools like Claude Code, Cursor, and OpenAI Codex can handle much more from a single request:

  • Codebase search and navigation across many files
  • Coordinated edits in several files at once
  • Terminal access to run commands, builds, and tests
  • Multi-step tasks that need little step-by-step direction

Agents take on bigger pieces of work, so it’s even more important to decide what to delegate and what to keep. One Reddit developer described how they think about Cursor:

“I treat Cursor as a Junior dev that occasionally makes mistakes, but also has a complete understanding of the entire codebase and can type code at the speed of light.”

That framing makes the boundaries clear. A junior developer shouldn’t architect your database, but they can write API endpoints and data migrations. The same applies to AI.

Use AI For Keep Under Close Human Review
Boilerplate and CRUD operations Complex business logic with nuanced rules
Test scaffolding and iterative test cases Security-critical implementations
API endpoint creation Payment processing or authentication flows
Data transformation functions Performance-critical algorithms
React/Vue component structure Cryptographic implementations
Database migrations Regulatory compliance code
Error handling patterns Multi-threaded or concurrent code
Documentation comments Machine learning model architecture

AI has seen millions of login forms, but it has never seen your specific authentication flow. It knows REST patterns but not your API conventions.

Speed becomes a liability when developers ship code they don’t fully understand. This quick checklist helps you avoid the most common AI-related problems.

  • Do I understand what this code does?
  • Have I checked for edge cases?
  • Is the error handling appropriate?
  • Will my team be able to maintain this?
  • Does it follow our regular coding standards?
  • Have I tested it with real data?
  • Did it pass our security scans?

The checklist might feel like overhead, but it’s faster than debugging mysterious failures in production. With agent-generated changes, apply it to the full diff, including files you didn’t ask the agent to touch.

PRO TIP 💡: Jellyfish breaks down cycle time by phase, so you can see where AI-generated code slows down. If it moves fast through creation but waits longer in review, tighten your commenting and PR description standards for AI-generated code.

Jellyfish Lifecycle Explorer

4. Automate the Chore of Documentation

Documentation is the vegetable on your development plate. You know you need it, and your future self will thank you for it, but you’ll still push it aside for literally anything else. Then the sprint review arrives, and you scramble to write something, anything.

The work is formulaic enough for AI to handle and painful enough that everyone wants it off their plate. AI agents handle these documentation tasks particularly well:

  • API documentation from code
  • README files
  • Code comments and docstrings
  • Database schema documentation
  • Troubleshooting guides
  • Release notes
  • Architecture decision records
  • Onboarding documentation

With AI on the first draft, a developer’s role changes from documentation writer to documentation editor. Check every endpoint, parameter, and code sample against the code itself, since AI can describe behavior that doesn’t exist.

Example → A team needs to document its authentication system, with 20 endpoints, OAuth flows, and role-based permissions. By hand, that could take several days. AI produces a first draft of the API docs in minutes, and the team spends a few hours correcting technical details and adding examples. The docs are ready the same day.

To keep docs current after that, ask your coding agent to update the related docs in the same pull request as the code change. That way, the team checks code and documentation together.

Part 3: Ensuring Code Quality and Maintenance

Part 3: Ensuring Code Quality and Maintenance

Maintenance work piles up in every codebase, and it rarely makes the top of the sprint. AI can take on a good share of the routine testing and review work, so quality keeps pace with new features.

5. Use AI for Automated Testing and QA Processes

Testing usually loses the priority battle. The feature has to ship, the deadline won’t move, and tests feel like a luxury you can’t afford. So you ship without them and hope nothing breaks (it usually does).

In Tricentis’ 2026 Quality Transformation Report, 6 in 10 organizations said they still deploy untested code, with AI-generated code volume among the main reasons. AI can help testing keep pace with coding.

Here’s where it fits in each phase.

Testing phase How AI helps What to check
Planning Analyzes code changes and points out risky areas that need test coverage Compare the list with what your team knows, like recent incidents or fragile services
Generation Creates unit tests, edge cases, and test data from your functions Check each assertion against the requirement
Execution analysis Finds patterns in test failures and suggests likely root causes Reproduce the failure before you act on the suggested cause
Maintenance Updates existing tests when code changes break them Make sure the fix doesn’t weaken what the test checks

Example → A team needs tests for an inventory module with 50 functions and complex business logic. One developer would need considerable time to write those tests manually. AI drafts the test suite much faster, and the team then reviews it. Developers check assertions against the business rules, add domain-specific edge cases, and remove redundant checks.

Be careful with generated tests. AI writes them from the code it sees, so it can treat existing bugs as expected behavior. Share the requirements or acceptance criteria with the function, and ask for tests that would fail if the logic were wrong.

6. Streamline Version Control and Collaboration

Review delays usually come down to time. Senior engineers handle a stack of PRs alongside their own features, and junior developers wait days for feedback. When the review finally comes back, they have to switch back into code they wrote last week.

AI-generated code makes those queues longer. In Sonar’s 2026 State of Code Developer Survey, 38% of developers said reviewing AI-generated code takes more effort than reviewing code from their colleagues. The good news is that AI can speed up the review side too.

This is where it fits in each stage of a pull request.

Stage How AI helps Your team’s role
Before commit Runs pre-commit checks, finds style issues, and points out potential bugs Decide which findings are valid and fix them before you push
PR creation Writes PR descriptions from diffs and suggests who should review based on code ownership Add the reasoning behind the change and confirm the suggested assignees
During review Explains complex changes in plain English, highlights risk areas, and suggests test cases Focus on the risk areas AI points out and make the merge decision
After merge Updates related documentation, creates follow-up tickets, and notifies affected teams Check doc changes and ticket priorities before they go out

AI feedback works well as a first pass, but a person on your team should still approve every merge.

Example → Suppose a team’s reviews usually take about three days. AI pre-checks could point out formatting issues, missing tests, and obvious security problems before anyone opens the PR. With AI-written descriptions for the larger changes, those reviews might close in about a day.

AI can also help with cross-team coordination. When you change a shared API, it can find the services that call it and draft a notice for the affected teams. Have someone who knows those dependencies confirm the list before the message goes out.

PRO TIP 💡: Jellyfish tracks PR queue and review times across your teams. If AI speeds up coding but review capacity doesn’t keep up, queue times will grow even as individual reviews get quicker.

7. Make Continuous Learning a Team Habit

Every developer hits the same wall when tackling unfamiliar territory. You need to implement something outside your expertise, but you don’t even know what to Google.

You waste hours reading documentation that assumes knowledge you don’t have, or Stack Overflow answers that solve slightly different problems.

Developers already use AI for this kind of learning. When asked how they learned to code in the past year, 52.6% of respondents to the 2026 Stack Overflow Developer Survey named AI code-generation tools or AI-enabled apps, second only to technical documentation.

Here’s how AI guides developers through the learning process:

  • You describe a vague need (“handle real-time updates”) → AI explains your options (WebSockets, SSE, polling)
  • You ask about unfamiliar concepts (“What’s a monad?”) → AI provides examples in your language
  • You need help choosing patterns (“Observer or Pub/Sub?”) → AI compares trade-offs for your use case
  • You want implementation help (“How in Python?”) → AI gives you working code with explanations

This is especially powerful for problems where you lack the vocabulary to even search effectively. One developer explained this perfectly:

“The best part is that I learn new concepts and words that I had no clue about before. So in this way, generative AI fills a gap that was hard to close with Google alone. Google is best when you know what you are looking for. AI tools are great when you don’t even know the right question to ask.”

Remember ⚠️: AI explanations can be incorrect or outdated. Check official docs for anything critical and make sure you understand solutions before you use them. AI accelerates deep learning but doesn’t replace it.

From Best Practices to Real-World Impact with Jellyfish

From Best Practices to Real-World Impact with Jellyfish

You can follow every AI best practice in the book, but you still need hard data to know if any of it works. That data should show who uses AI-powered tools, what changes in delivery speed and code quality, and whether the spend pays off. Most teams have pieces of this in different places, like Git, Jira, and each AI vendor’s dashboard.

Jellyfish AI Impact pulls those pieces together. It connects AI usage with the rest of your engineering data, so you can see how engineering performance changes as AI adoption grows and where to invest next. Here’s what it gives you:

The practices in this guide are a starting point. Schedule an AI impact demo to see how they hold up in your own engineering data.

FAQs

FAQs

How can I ensure AI-generated code meets our software quality standards?

Make code review non-negotiable for all AI output, just like you would for a junior developer’s work. Apply your standard test suites, linting rules, and security scans to everything AI generates before it reaches production. Train your team to review AI code for subtle bugs, edge cases, and patterns that don’t match your codebase conventions.

What’s the difference between an LLM chatbot like ChatGPT and a dedicated coding assistant?

Both rely on large language models (LLMs), so the difference comes down to where and how you use them. ChatGPT is a general-purpose assistant that works well for questions, explanations, and planning, usually in a chat window.

Coding assistants like GitHub Copilot, Cursor, and Claude Code work inside your editor or terminal, which lets them read your project, edit files, and test changes as you work. The line between the two keeps blurring, though. OpenAI’s own coding agent, Codex, works in the IDE and terminal much like these tools do.

What are the best types of coding tasks to start with when using AI?

Begin with unit tests. AI can draft test cases quickly and suggest edge cases you might miss, though you still need to check each assertion against the requirement.

Then use it for standard features like form validation, frontend refactoring, error handling, or API integrations that follow common patterns.

Save complex business logic and system architecture for human brains, at least until you understand exactly how AI handles your specific codebase.

How do you integrate AI into an existing software development workflow?

Start with one team and a few well-defined use cases, such as test generation, documentation, or PR descriptions. Set clear review rules before AI-generated code reaches your main branch, and check that the tools work with your existing IDE, Git, and CI setup. Track adoption and delivery metrics for a few sprints, then expand to more teams based on what you see.

How can I use AI software to improve communication with non-technical stakeholders?

AI can rewrite technical updates in plain language for executives and other non-technical stakeholders. It drops the implementation details and puts the focus on business outcomes, timelines, and progress. You can use it the same way for stakeholder FAQs and presentation slides.

Besides helping to write code, what other complex problems can AI help solve?

AI helps with the complex problems that slow down every engineering team. It:

  • Debugs production issues by correlating errors across logs, metrics, and system components
  • Plans complex migrations with granular steps, risk assessments, and rollback strategies
  • Outlines security vulnerabilities and explains why specific code patterns create risk
  • Optimizes performance by analyzing code paths and recommending targeted improvements
  • Compares technical options and presents trade-offs for architectural decision-making
  • Finds patterns in incident data to help prevent future failures

Think of AI as your analysis assistant that processes massive amounts of information to point out insights you’d probably miss.

What should teams look for in AI development tools?

Start with compatibility. The tool should support your programming languages and frameworks and connect to your existing development tools, from your IDE and Git to your project management system.

Then check the AI models behind it, including any open-source options. Good natural language processing also helps, since the tool needs to understand plain-English requests.

Can AI help with prototyping?

Yes. Developers can describe a feature or user experience flow in plain language and get a working prototype quickly. AI handles repetitive tasks like boilerplate, which leaves more time for problem-solving.

Treat the result as a draft, though. Demo code rarely meets high-quality or scalability standards, and more lines of code isn’t making progress. Rework it before it enters your software development process.

Learn More About AI in Software Development

About the author

Lauren Hamberg

Lauren is Senior Product Marketing Director at Jellyfish where she works closely with the product team to bring software engineering intelligence solutions to market. Prior to Jellyfish, Lauren served as Director of Product Marketing at Pluralsight.

Read more by this author