Introduction
New technologies such as artificial intelligence have introduced novel methods of software and web development. Developers utilize AI coding assistants which can analyse and implement a developer’s input. Thus, people can ‘vibe-code’ and convey their vision for an application. Despite this, the quality of an artificially created application is greatly influenced by how well a person can relay their vision.
Simply requesting an AI to make an application is unlikely to yield a working, aesthetically pleasing product. Developers must provide sufficient detail regarding an application’s function and design so that the AI can then successfully implement these. Therefore, the ability to construct good prompts is crucial in order to successfully ‘vibe-code’.
What is prompt engineering?
Prompt engineering is the process of formulating prompts so that an artificial intelligence can understand and deliver desired outputs. Within a ‘vibe-coding’ context, prompts are used by developers to communicate with an AI coding assistant. Unlike traditional software development, rather than a programmer devising all of the code for their application, they convey what they want the application to do and the AI analyses and develops software to fulfil this. Good quality prompts are key in ensuring good quality outputs are created. Whereas poor prompts can cause the AI to have to infer important aspects of an application, good prompts provide a clearer image in the mind of the AI as to what is needed. Developers can effectively formulate prompts by conveying what is to be developed, who the target audience is, highlighting crucial application functions and detailing any relevant design or technological specifics.
Good prompt engineering is especially vital as AI coding assistants do not automatically understand a developer’s aims. Although an AI can swiftly develop code, it will largely base its implementation upon the information it is given within prompts and within the wider project context. For example, if a developer requests the construction of a web-based store, the AI will not automatically recognise whether there should be functionality to create an account, search for goods, place them in a basket and ultimately purchase them. As a result, the AI may develop visually suitable software, yet it may lack core functionality. Good quality prompts can thus limit misinterpretation and encourage the AI to implement software which fulfils a project’s needs. Developers can further enhance their prompt engineering by employing recognised Vibe Coding Prompts methods to support improved communication with an AI coding assistant.
Conveying application features
Clearly articulating an application’s features is fundamental to successfully prompting an AI. Developers must first understand their application’s aims and then effectively convey these in simple terms. Good prompts should highlight the nature of an application, its primary function and the issues that it will address. Furthermore, they should detail who the software is aimed at. As varying user groups may need differing functionality and authorisations and may desire distinct designs, specifying an application’s target audience can help an AI to comprehend how it should be structured.
Whilst it is important to convey what a software application should do, developers should also elaborate on its features. Rather than merely stating that an application should be ‘good for the web’, developers should detail precisely what actions can be performed. There may for example be a requirement for a software application to facilitate user account creation, secure login, profile amendment and information and form searching. Precisely outlining an application’s features allows the AI to develop suitable functionality and to structure the software accordingly. Developers should also recognise and convey which features are fundamental and which are merely enhancements. This ensures that an AI does not waste time developing non-critical features and does not neglect crucial functionality. Effectively conveying an application’s features at the outset can thus lead to improved understanding and greater organisation throughout the software development process.

Specifying features
Defining an application’s features is highly significant in software development. Again, rather than generally outlining what an application should do, developers should detail specific features. For instance, in addition to specifying that a developer wishes to develop a task management application, they should identify how tasks can be created, managed and amended. Ideally a prompt should also detail whether tasks should be listed, shown in a calendar or presented on a dashboard. As above, providing more detailed specifications will enable an AI to better understand an application and to successfully implement interconnecting functionality.
Further, developers can elaborate on how different features should interact. Within a web-store application, for instance, a product database should be integrated with a basket function so that customers can view and add goods to their basket. Moreover, the basket data should inform a check-out function so that an accurate total for an order can be calculated. Thus, an AI can comprehend that an application is made up of interconnecting features. Developers should also convey crucial circumstances, for example what should occur if a basket is empty or if an individual tries to send in an uncompleted form. Additional information of this nature can further aid an AI coding assistant in developing a more comprehensive and reliable application.
Defining design and interface
Alongside detailing functionality, developers should also convey design specifications so that an AI can implement a software application in a manner which reflects their design vision and facilitates a uniform user experience. Key design considerations encompass colour, font, space, menu and button design, and general aesthetic. For example, when constructing a business dashboard, a developer may wish for the application to have a sleek design, a basic menu, good quality fonts and neutral colours. Further, they may desire information to be presented in well-structured cards. These specifications enable an AI to develop a product that is visually in accordance with a developer’s vision.
Developers can also convey how an application’s design should be adapted to various devices. As modern-day applications are commonly used on desktops, tablets and smart-phones, it is important for software to be designed in a ‘responsive’ manner. A suitable prompt may direct an AI to devise a responsive menu, to construct adaptable columnar content and to ensure buttons are easily operable on smaller devices. Additionally, developers can broadly define a design inspiration. For instance, they may wish for their dashboard to share the streamlined nature of contemporary productivity applications. Nevertheless, despite using general design inspiration, developers should convey specific design specifications as it cannot always be guaranteed that an AI will precisely understand a specified design vision. Clearly defining a software application’s design ensures that the interface is not only visually appealing but is also uniform and appropriate for its target audience.

Establishing user functionality
Aside from possessing an appropriate design, an application should also function as desired in response to user engagement. Hence, conveying how an application should operate is an integral element of good prompt engineering. Developers should detail how an application should react when for example a button is clicked, an option is selected, a form is sent in or a person moves from one area of an application to another. For instance, a registration form should provide suitable feedback if an individual inputs incomplete details and a suitable response or progression should be offered upon successful registration. Without such details, an AI may implement interface elements which although seemingly operational, do not operate as desired. Therefore, conveying how an application is to function enables an AI to comprehend how users are expected to engage with it.
Developers should furthermore establish how an application should operate in a variety of contexts. Continuing with the web-store example, an application should detail how it should respond if an individual chooses a booking slot, attempts to book and endeavours to book an unavailable time. Likewise, a search function should specify whether search results are to be shown instantly or whether they should be displayed following a search. Such details help to ensure that an application operates in a clear and easily navigable manner. Developers should also specify suitable indicators of loading, successful operations and errors. As previously mentioned, conveying both successful and erroneous application functionality allows an AI to further comprehend how an application should function and thus increases the likelihood that suitable software will be developed.
Providing context
Considering context is crucial in prompting an AI as it enables the artificial intelligence to recognise the setting within which new code should be implemented. Developers should convey background information about their project, such as the application’s current structure, the computer languages, frameworks and libraries that are being used and the database requirements. For instance, if a developer is enhancing a website, they should convey how the existing login functionality operates and identify which application areas require amendment. Otherwise, an AI may devise code which is incompatible with current files or which incorporates superfluous technology. Giving an AI relevant contextual information can thus lead to more suitable solutions being developed.
In addition to providing background information, developers should convey project constraints and expectations. For example, they may wish an application to access an already existing database or to link to a specific service. Developers should furthermore specify any project constraints, such as a requirement to avoid introducing further dependencies and/or to maintain current functionality. Moreover, in continuing projects, developers can effectively advise an AI of recent project developments, current challenges and future goals. This assists the AI in better understanding a project and lessens the risk of redundant re-development. Good contextual awareness is especially advantageous in extensive ‘vibe-coding’ projects where numerous development areas are reliant upon prior decision making.
Poor vs good Prompts
Understanding the difference between poor and good prompts can support developers in effectively prompting an AI. Poor quality prompts often lack sufficient detail and so an AI must infer much information. Frequently, a prompt such as ‘Develop a website for my business’ provides little detail concerning a site’s function, design and features.
Consequently, an AI may generate an application which does not adhere to a developer’s expectations as it must deduce many factors. Good prompts rectify this by conveying to an AI both the target audience, functionality and design, as well as how an application is expected to operate. Examining contrasting prompts can effectively illustrate how subtle alterations to wording can enhance the relevance and efficacy of prompts.

Example 1 – Creating a website
Poor prompt:
“Build a modern website for my business.”
Good prompt:
“Create a responsive website for a small digital marketing agency. Include a homepage, an About Us section, a Services page, a portfolio section and a Contact page. Use a professional design with a simple navigation menu, readable typography and a consistent colour scheme. Add a contact form with fields for the visitor’s name, email address and message. Ensure that the navigation links work correctly and that the layout adapts to desktop and mobile screens.”
Example 2 – Constructing a task management application
Poor prompt:
“Make a task management app.”
Good prompt:
“Build a task management application that allows users to create, edit, delete and organise tasks. Each task should include a title, description, due date and completion status. Display tasks in an organised dashboard and provide options to filter them by priority and completion status. Include a clear form for adding new tasks and display a confirmation message when a task is successfully created. Ensure that changes are reflected immediately in the task list.”
As these examples show, good prompts explicitly specify what is required. Rather than allowing an AI to infer what a developer requires, good prompts articulate expectations. This can in turn assist in guiding code development and testing.
Refining prompts
Despite supplying detailed prompts, an AI coding assistant may occasionally produce inaccurate code or develop outputs which do not entirely meet a project’s needs. Fortunately, such instances do not necessarily represent a total failure in the development process. Instead, developers can analyse the issue and use this to refine their prompts and improve communication with an AI. Initially, developers should pinpoint precisely what is not functioning correctly. For example, an application may feature a correctly designed interface, but may not be able to store data, or a menu item may not open the correct page. Clearly identifying an issue will help a developer to effectively convey to an AI what the problem is and so avoid requiring the AI to re-develop an application without such information.
Prompt refinement entails adapting prompts to resolve an issue. Whereas advising an AI that an application is not working well is not particularly informative, a developer should describe what is not functioning as intended and identify the desired operation. To illustrate, if a registration form fails to prevent individuals from registering with incomplete details, a more efficacious prompt would be: “Update the registration form validation so that users cannot submit the form when required fields are empty. Display a clear error message beside each incomplete field and allow users to correct their entries before submitting again.” Thus, an AI can effectively comprehend what is not working and what should occur. Having refined a prompt, a developer can then analyse the revised code and test the relevant application functionality to verify that the issue has been resolved.
Splitting development into stages
Many software development projects comprise a number of inter-related development areas. Consequently, it can be challenging to effectively convey all of these within one prompt. Similarly, requesting an AI to develop a whole application may cause it to either inadequately address some areas, or to produce visually disparate and/or hard-to-analyse code. A more efficient method is to segment development into discrete stages. Developers can for example initially develop a basic version of an online learning application. They can then undertake development relating to account creation, displaying courses, lessons and tracking a learner’s progress. Each development aspect can be addressed by devising an individual prompt which enables an AI to centre its attention on a specific area of development.
Dividing a project into stages also facilitates issue identification and maintains developer control. Upon completing each development stage, a developer can analyse the associated code, test an application and request amendments. This avoids errors propagating to multiple areas of an application. Furthermore, as development progresses, a developer can continually refine prompts. For example, having developed an account creation function, a developer can firstly test that account details are being appropriately stored and then prompt an AI to then develop supplementary account functionality. Overall, therefore, segmenting development into stages fosters a more structured process and can aid understanding, control and enhancement of even complex ‘vibe-coding’ projects.
Implementing a standardised prompt format
Good prompt engineering can further be facilitated by employing a standardised prompt format. Doing so ensures that crucial information is provided and also minimises the risk of vital aspects being omitted. Typically, prompts can be sub-divided into areas which relate to a project’s aims, application features, design specifications, functionality, technical specifications and expected output. Particularly in multi-component projects, separating out these areas can effectively enable developers to communicate diverse information without amalgamating it into one potentially unwieldy prompt. Moreover, a standardised format facilitates ease of prompt analysis and refinement.
For example, a prompt may be structured as follows:
Project: Design a responsive personal finance dashboard.
Aim: To enable users to effectively manage and track their income and expenditure.
Features: Enable users to enter financial information, classify expenditure and analyse income. Users should also be able to track their monthly spending.
Design: Implement a sleek dashboard with good quality fonts, uncomplicated menus and well-structured information cards.
Functionality: Enable users to enter and amend financial information. Allow searches to be conducted based on expenditure classifications.
Technical specification: Utilise the current front-end framework for the project and ensure that financial information is correctly stored.
Output: Generate a responsive dashboard with fully operational menus, forms and financial data analysis functionality.
By following such a format, an AI coding assistant can effectively understand how to develop a project. Moreover, developers can easily analyse prompts to identify any omissions prior to code development. Such a format can then be personalised to suit differing applications and project requirements.
Analysis and testing of AI-developed software
Whilst good prompt engineering is key to successful ‘vibe-coding’, developers should also analyse an AI-coded application to assess whether it meets a project’s needs. However, simply because an application can run and/or has an attractive interface, this does not necessarily mean that it has been appropriately developed. Developers can analyse an application to investigate issues relating to functionality, responsiveness, menus, data and application functionality. For example, when constructing an online registration function, developers should analyse whether users can successfully complete a registration form, whether appropriate validation is in place for mandatory fields and whether entered information is correctly stored. Such analysis can highlight underlying issues which may not initially be apparent from an application’s visual presentation.
Analysis can also be used to further enhance future prompts. If for example an application’s search functionality is not returning relevant information, a developer can utilize their analysis to advise an AI as to how searches should correspond to user input and what information should be returned. Equally, it is important for developers to analyse whether alterations to an application’s functionality impact other areas. Regularly analysing a project as a whole – particularly in relation to multi-component projects and/or where existing code is involved – is also beneficial. Altogether, good prompt engineering and ongoing analysis contribute to the enhanced quality of an application and ensure that outputs remain consistent with original aims.

Common Prompt Errors
Too broad prompts are often given to AIs. For example, requesting that an application ‘be improved upon’ or “improve the design”, fails to specify what areas of the programme require work. Furthermore, a prompt can include a wide range of, seemingly, unconnected, areas that need to be developed. This can cause issues as the AI can struggle to recognise what should be emphasised and may fail to fully implement sections of a project. It is also advisable that developers refrain from frequently altering specifications, without justifying which elements should stay the same. Good communication is especially key in ongoing projects as inappropriate alterations could impact on already well working features.
Whilst AI can prove a useful resource to aid programming, it should not always be blindly trusted. An AI can misinterpret specifications and produce programmes that either contain faults or are inappropriate for the required application. Consequently, developers must ensure that they assess the validity and operation of an AI’s recommendations. Alongside this, as opposed to presuming that an AI will retain all pertinent information regarding a project, developers should supply appropriate contextual information. Good communication, assessment of an AI’s output and testing of features are all key in programming. Steering clear of common prompt related errors enables individuals to utilise AI in a more efficient manner and continue to exert significant control over the quality and nature of their programmes.
Conclusion
Good prompt construction is an essential skill that can help to produce successful outputs within the realm of vibe programming. Clearly setting out specifications regarding both the function and design of a programme, together with details of how users will engage with it, and technical specifications, can enable an AI to produce more appropriate responses. Developers can further enhance their performance by supplying suitable background information, analysing poor and good prompts and amending prompts where needed.
Programmes can then be broken down into more manageable components. Despite this, alongside good prompt production, there is still a necessity for continual testing and manual evaluation in order to confirm that software is both operating and meeting required standards. As the field of AI supported programming develops, strong prompt creation skills will continue to be a useful asset to those who aim to construct enhanced programmes, minimise faults and interact more effectively with artificial intelligence.



