Vibe Coding Evaluation for LLMs: A Reproducible Scoring and Logging Method

    This article introduces a reproducible "Vibe Coding" evaluation method for testing the coding ability of large language models. Instead of relying on benchmark scores, testers run a real small project end to end: they describe requirements in natural language, let the model generate, modify, and fix code, and evaluate results along five weighted dimensions—requirement understanding, first-pass generation quality, iterative fix ability, context retention, and code quality. The article covers how to choose a test project, what environment details to log, a complete prompt template for a card-flip memory game, acceptance test cases, an iteration logging table, rules for interpreting results with proper sample sizes, and safety checks for model-generated code.

    1. Goals and Scope

    Many developers want to know how good a new model actually is at coding. Benchmark leaderboards give a rough ranking, but they can’t tell you whether a model can deliver working code for a real page on the first try, or how efficiently it fixes errors. This article describes a testing method that walks through the full development workflow of a real small project—what we call a Vibe Coding style evaluation. The tester describes requirements in natural language, lets the model generate, modify, and repair code, and personally reviews results and steers direction, without hand-writing code line by line.

    What this method measures is a composite ability: requirement comprehension, first-generation quality, error fixing, multi-turn context retention, and code taste. None of these show up in a single benchmark score.

    The boundaries of this method should also be stated clearly. It suits page-level development and prototype validation. It is not suitable for evaluating large cross-file refactors, complex backend logic, or safety-critical code. Results from a single project only reflect that model’s performance on that task and cannot be generalized to all coding scenarios.

    2. How to Choose an Evaluation Project

    An evaluation project should meet three conditions.

    First, moderate size. The core functionality should be completable within a single session, while still involving interaction logic, state management, and visual presentation. If the project is just a static template, the result only reflects template generation ability and offers little differentiation.

    Second, a clear reference. Ideally, pick a publicly available effect that has already been proven feasible, such as an interactive animation page or a card-flip demo. A reference lets the tester directly compare “reproduction fidelity” and reduces subjective judgment. Record the reference’s source link and access date so others can verify it.

    Third, coverage of typical pain points. Animation timing, responsive layout, and event interaction are where a model’s grasp of detail is most easily exposed. If the project involves none of these, the test will struggle to reveal weaknesses.

    The example project used throughout this article is a card-flip memory game page. It includes animation timing, click-state management, hover effects, and responsive layout, while its requirements are clearly bounded and easy to verify.

    3. Test Environment and Logging Requirements

    Every test run must record environment information. Without it, results cannot be reproduced. The fields to record are:

    • Model name and version—for example, the specific model identifier, not “some LLM”;
    • Access method: official web UI, API, or third-party client;
    • Sampling parameters, including temperature and maximum output length;
    • Context length limit and whether a fresh session was started for this run;
    • Whether tools such as code execution or search were enabled;
    • Test date and time zone;
    • Runtime environment: browser name and version, operating system, and screen width.

    Run each model at least 5 times, starting a new session every time. Model output is stochastic, and a single run can be accidentally high or low.

    4. The Five-Dimension Scoring Rubric

    Scoring uses a 1–5 scale. The definitions and weights of each dimension are:

    Dimension Weight 1 point 3 points 5 points
    Requirement understanding 15% Misunderstands core requirements; needs repeated explanation Understands the main requirements but misses some details Understands all requirements in one pass; asks clarifying questions or states reasonable assumptions for ambiguous descriptions
    First-pass generation quality 25% Won’t run, or core features missing Runs, but with obvious defects Runs directly; all acceptance cases pass
    Iterative fix ability 25% Fixes introduce new problems, or the model blindly rewrites everything Can locate the problem but needs more than two rounds Locates and fixes the issue in one round based on the error and reproduction steps, with minimal changes
    Context retention 15% Forgets earlier agreements; overwrites existing parameters Most agreements retained; occasional omissions All agreements retained; only the parts that need changing are touched
    Code quality 20% Messy naming; structure hard to maintain Structure basically clear; few comments Accurate naming, sensible module separation, parameters managed centrally

    The weighted total is calculated by multiplying each dimension’s score by its weight and summing the results. A total above 3.5 with no single dimension below 2 counts as “usable for everyday coding.” This threshold is a reference line provided in this article; testers can adjust it to their team’s standards, but any adjustment must be stated in the report.

    5. The Complete Prompt Template

    The prompt should be given in full, with no ellipses standing in for concrete requirements. Below is the complete prompt used in this article, ready to copy:

    Build a single-file web page using pure vanilla HTML, CSS, and JavaScript. Name the file index.html. Do not use any third-party libraries.

    1. Visual design
    The page background is dark (#111827). In the center is a 3-column, 4-row card grid containing 12 cards. Each card is a rounded rectangle 160px wide and 220px tall, with a border radius of 12px. The front of each card shows a number from 1 to 6, each appearing exactly twice, in randomly shuffled order. The back is a solid color (#2563eb).

    2. Interaction behavior

    1. When a card is clicked, it flips 180 degrees around the Y axis over 600 milliseconds, with an ease-in-out curve.
    2. At most two cards may be face-up at the same time. If the two numbers match, both cards stay face-up; if they don’t, both cards automatically flip back after 800 milliseconds.
    3. On hover, the card scales up to 1.05×; when the mouse leaves, it returns to its original size, with a 200-millisecond transition.

    3. Responsive layout
    When the window width is below 720px, the grid switches to 2 columns with 6 cards per row. Card width scales proportionally with the container, but must not exceed 160px. After the window is resized, the layout must finish updating within 200 milliseconds, and the page must not flicker while the window edge is being dragged continuously.

    4. Technical constraints
    All styles go inside a style tag; all logic goes inside a script tag. The flip duration, easing function, auto-flip-back delay, and responsive breakpoint width must be defined centrally in a CONFIG object at the top of the script. Do not hard-code these values anywhere else.

    5. Prohibited items
    Do not add scoring, timers, sound effects, leaderboards, or login features. Do not change any text content beyond the requirements above.

    Output the complete HTML structure and CONFIG definition first, then the complete CSS and JavaScript code. The code must be directly saveable as a file and openable in a browser.

    Acceptance test cases:

    1. The page opens with no console errors.
    2. Clicking two cards with different numbers in sequence: both flip back after 800 milliseconds.
    3. Clicking two cards with matching numbers in sequence: both stay face-up.
    4. Shrinking the window width from 1000px to below 700px: the grid switches to 2 columns.
    5. Changing the flip duration in CONFIG changes the animation speed, with no other code changes needed.

    First-pass success criterion: with no modifications whatsoever, the file runs when opened in a browser, and all 5 acceptance cases pass.

    6. Iterative Fix Log

    When the first version fails, the tester should paste the errors and reproduction steps back to the model in a fixed format and log the outcome of each round. The log table looks like this:

    Round Input Output runnable? Failed acceptance cases Error messages (copied in full) Fixed this round? Time (minutes)
    1 Initial prompt
    2 Round-1 errors and reproduction steps
    3 Round-2 errors and reproduction steps

    When pasting errors back, include three things: the complete error stack, the reproduction steps, and the difference between expected and actual behavior. If you only paste “the page is broken,” the model can usually only blindly rewrite, and fix quality drops noticeably.

    The tester should also record how many lines they manually edited in each round. If the model repeatedly requires the tester to hand-edit dozens of lines before the code runs, its “fix ability” score should be lowered.

    7. How to Interpret Results

    Conclusions must match the sample size. The following three rules prevent over-inference.

    First, when reporting the first-pass rate, state the numerator and denominator. For example: “In 5 independent runs of model X, 3 passed all acceptance cases on the first version—a first-pass rate of 60%.” Writing only “high first-pass usability” with no sample count leaves readers unable to judge credibility.

    Second, if you only ran one project, the conclusion applies only to that project. If results come from a single run of a single project, explicitly label them “single-project observation, not statistically meaningful.”

    Third, results need a comparison baseline. You can use the time a human takes to implement the same thing as a baseline, or compare two models on the same project. Without a baseline, readers have no way to judge whether the outcome is good or bad.

    A results table should include at least these columns: model identifier, number of runs, first-pass successes, average fix rounds, average time, and five-dimension weighted total score.

    8. Common Problems and How to Constrain Them

    One of the most common problems in testing is “over-engineering.” The model may add leaderboards, sound effects, or theme switching beyond the requirements. This can be constrained with a “Prohibited items” section in the prompt, as shown in Section 5 of the template above. The more specific the constraint, the better the model follows it. If the model still adds extra features, record it as a deduction under requirement adherence rather than just mentioning it in a comment.

    Another common problem is overly broad changes during fixes. The model is asked to fix one layout issue but rewrites the entire animation module. For this, add one line to the iteration prompt: “Only modify code directly related to the reported error; keep everything else unchanged.”

    A third case: after multiple turns, the model forgets previously agreed parameter settings. The fix is to re-paste the full contents of the CONFIG object in every round of the prompt, giving the model an explicit reference.

    9. Risks and Safety Reminders

    Before using model-generated code, testers should perform the following checks.

    First, review the code before running it. In particular, check whether it makes requests to external addresses, reads or writes local files, or includes third-party scripts from unknown sources. Running first-generation code in an isolated browser environment or sandbox is recommended.

    Second, check licensing. If the generated code closely resembles an open-source project, copyright and license obligations may apply. When referencing a reference implementation, cite its source and license.

    Third, never put sensitive data into prompts. Keys, account credentials, internal API endpoints, and users’ personal information should never appear in conversations with the model. If real data must be shown, redact it first.

    Finally, use version control as a safety net. Before asking the model to make large changes, commit the current version. If the changes introduce new problems, you can quickly roll back to a known-good state.

    10. Conclusion

    Running a real project through the complete development workflow reflects a model’s everyday performance far better than benchmark scores alone. This method requires testers to do three things: make the project and prompt fully reproducible, write scoring criteria as an executable rubric, and keep conclusions strictly aligned with sample size.

    Following this method, you get a verifiable result: which model has a high first-pass rate on which task, how long one fix round takes, and where human intervention is needed. That information is enough to help a team decide whether a given model is suitable for page-level development and prototype validation work.