Skip to Main Content
Michigan State University

Vibe Coding Guide: Using GenAI for Coding Support: Tips

Resources to support MSU students, faculty, staff, and community members in learning about and using generative artifical intelligence (GenAI) for coding.

General Tips

Below are general tips and best practices for vibe coding:

  1. Form precise prompts
  2. Stay organized
    • Use version control and build in pieces
    • Test features as you add them
    • If your tool allows, use a new chat for each new edit
  3. Be patient
    • Review the code and suggested changes
    • Try to avoid frustration when debugging
    • Allow yourself to step away if needed

Accessibility

When creating programs or applications for an audience, it's essential to consider accessibility metrics to ensure all users can effectively interact with and benefit from the content.

Michigan State University (MSU) plans to adopt the the World Wide Web Consortium's Web Content Accessibility Guidelines (WCAG) 2.2 at Conformance Level AA as its official Technical Guidelines beginning January 1, 2026, which all University information and communication must meet to be considered compliant (Digital Accessibility Policy). 

The code created by GenAI tools may not follow WCAG guidelines unless specifically prompted by the user. Here are some potential prompts that could improve the accessibility of a vibe coding project:

  • What WCAG 2.2 rules does this application break?
  • Write alt text for the images in this program.
  • Does the visual presentation of text and images of text have a contrast ratio of at least 4.5:1? And does the visual presentation of non-text components have a contrast ratio of at least 3:1?
  • How can this application's code be improved to enhance navigability for people using screen readers or other assistive technology?
  • What are other ways I can ensure this program is accessible and meeting all WCAG 2.2 rules for Level AA conformance? 

While these prompts may help improve the accessibility of a program or application, it is important to review the results and assess their accuracy.