{"type_of":"article","id":4808239,"title":"I Vibe-Coded My Way Out of Angular Upgrades","description":"Do you also hate upgrading Angular versions? Because I do. I maintain a few open-source projects, and...","readable_publish_date":"Oct 15","slug":"i-vibe-coded-my-way-out-of-angular-upgrades-4fkh","path":"/gramli/i-vibe-coded-my-way-out-of-angular-upgrades-4fkh","url":"https://dev.to/gramli/i-vibe-coded-my-way-out-of-angular-upgrades-4fkh","comments_count":65,"public_reactions_count":93,"collection_id":null,"published_timestamp":"2026-10-15T07:10:18Z","language":"en","subforem_id":1,"ai_disclosure_level":"not_disclosed","ai_disclosure_label":"Not Disclosed","positive_reactions_count":93,"cover_image":"https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F294m2kq52bb6uybxx6mq.jpg","social_image":"https://media2.dev.to/dynamic/image/width=1200,height=627,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F294m2kq52bb6uybxx6mq.jpg","canonical_url":"https://dev.to/gramli/i-vibe-coded-my-way-out-of-angular-upgrades-4fkh","created_at":"2026-10-06T17:44:34Z","edited_at":null,"crossposted_at":null,"published_at":"2026-10-15T07:10:18Z","last_comment_at":"2026-11-08T10:04:50Z","reading_time_minutes":3,"tag_list":"ai, vibecoding, angular, showdev","tags":["ai","vibecoding","angular","showdev"],"body_html":"\u003cp\u003eDo you also hate upgrading Angular versions? Because I do. I maintain a few open-source projects, and upgrading Angular is probably my least favorite maintenance task. That's also why my frontend updates often get postponed for far too long.\u003c/p\u003e\n\n\u003cp\u003eBut we have AI now, right? It should be able to handle this with some instructions. So I decided to create (or rather vibe-code) an \u003cstrong\u003eAngular Update Skill for Codex\u003c/strong\u003e.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"creating-the-skill\" href=\"#creating-the-skill\"\u003e\n  \u003c/a\u003e\n  Creating the skill\n\u003c/h2\u003e\n\n\u003cp\u003eUpgrading Angular isn't just about running \u003ccode\u003eng update\u003c/code\u003e. There are several things I normally have to take care of, so I created a prompt describing what the skill should do:\u003c/p\u003e\n\n\u003cul\u003e\n\u003cli\u003eFollow the official \u003ca href=\"https://angular.dev/update-guide\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eAngular Update Guide\u003c/a\u003e.\u003c/li\u003e\n\u003cli\u003eCreate a separate Git branch for the upgrade.\u003c/li\u003e\n\u003cli\u003eHandle migrations and dependency updates.\u003c/li\u003e\n\u003cli\u003eValidate that everything still builds and works.\u003c/li\u003e\n\u003cli\u003eFollow the same good practices I would use when upgrading Angular manually.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cp\u003e(Updating NuGet packages in .NET feels so much simpler.)\u003c/p\u003e\n\n\u003cp\u003eCodex generated the first version of the skill, and surprisingly, it worked!\u003c/p\u003e\n\n\u003cp\u003eWell... locally.\u003c/p\u003e\n\n\u003ch3\u003e\n  \u003ca name=\"first-problem-npm-ci\" href=\"#first-problem-npm-ci\"\u003e\n  \u003c/a\u003e\n  First problem: npm ci\n\u003c/h3\u003e\n\n\u003cp\u003eAfter pushing my changes to GitHub, the CI pipeline failed with:\u003cbr\u003e\n\u003c/p\u003e\n\n\u003cdiv class=\"highlight js-code-highlight\"\u003e\n\u003cpre class=\"highlight plaintext\"\u003e\u003ccode\u003enpm ci can only install packages when your package.json and package-lock.json are in sync.\n\u003c/code\u003e\u003c/pre\u003e\n\u003cdiv class=\"highlight__panel js-actions-panel\"\u003e\n\u003cdiv class=\"highlight__panel-action js-fullscreen-code-action\"\u003e\n    \u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"\u003e\u003ctitle\u003eEnter fullscreen mode\u003c/title\u003e\n    \u003cpath d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\u003e\u003c/path\u003e\n\u003c/svg\u003e\n\n    \u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"\u003e\u003ctitle\u003eExit fullscreen mode\u003c/title\u003e\n    \u003cpath d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\u003e\u003c/path\u003e\n\u003c/svg\u003e\n\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\n\n\n\u003cp\u003eClassic \"works on my machine\" problem. The skill had managed to update Angular, but it hadn't properly validated that a clean installation would work. So I added another validation step: run \u003ccode\u003enpm ci\u003c/code\u003e before considering the upgrade complete. This way, the agent can catch problems with the lock file before they reach CI.\u003c/p\u003e\n\n\u003ch3\u003e\n  \u003ca name=\"second-problem-npm-publishing\" href=\"#second-problem-npm-publishing\"\u003e\n  \u003c/a\u003e\n  Second problem: npm publishing\n\u003c/h3\u003e\n\n\u003cp\u003eThen I ran into another issue when trying to publish my Angular library to npm:\u003cbr\u003e\n\u003c/p\u003e\n\n\u003cdiv class=\"highlight js-code-highlight\"\u003e\n\u003cpre class=\"highlight plaintext\"\u003e\u003ccode\u003enpm error code E404\nnpm error 404 Not Found - PUT https://registry.npmjs.org/gramli-angular-mydatepicker - Not found\n\u003c/code\u003e\u003c/pre\u003e\n\u003cdiv class=\"highlight__panel js-actions-panel\"\u003e\n\u003cdiv class=\"highlight__panel-action js-fullscreen-code-action\"\u003e\n    \u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"\u003e\u003ctitle\u003eEnter fullscreen mode\u003c/title\u003e\n    \u003cpath d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\u003e\u003c/path\u003e\n\u003c/svg\u003e\n\n    \u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"\u003e\u003ctitle\u003eExit fullscreen mode\u003c/title\u003e\n    \u003cpath d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\u003e\u003c/path\u003e\n\u003c/svg\u003e\n\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\n\n\n\u003cp\u003eAt first, the error wasn't particularly helpful. After some investigation, I found that my publishing environment was using Node.js 22 with npm 10.\u003c/p\u003e\n\n\u003cp\u003eHowever, according to the \u003ca href=\"https://docs.npmjs.com/trusted-publishers\" target=\"_blank\" rel=\"noopener noreferrer\"\u003enpm trusted publishing documentation\u003c/a\u003e, trusted publishing requires:\u003c/p\u003e\n\n\u003cul\u003e\n\u003cli\u003eNode.js 22.14.0 or higher\u003c/li\u003e\n\u003cli\u003enpm 11.5.1 or higher\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cp\u003eSo I updated the skill again to prefer the latest Node.js LTS version compatible with the target Angular version, while also making sure the npm version meets any publishing requirements.\u003c/p\u003e\n\n\u003ch3\u003e\n  \u003ca name=\"third-problem-the-skill-was-getting-too-big\" href=\"#third-problem-the-skill-was-getting-too-big\"\u003e\n  \u003c/a\u003e\n  Third problem: the skill was getting too big\n\u003c/h3\u003e\n\n\u003cp\u003eAfter all these improvements, the skill was becoming quite large. That might not matter much with generous token limits, but I also wanted it to be usable by people working with more limited AI budgets. So I shortened the instructions, removed unnecessary repetition, and kept the important validation steps. The main skill went from 1,252 words to 701 words, with the complete bundle becoming approximately 40% shorter.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"testing-it-on-real-projects\" href=\"#testing-it-on-real-projects\"\u003e\n  \u003c/a\u003e\n  Testing it on real projects\n\u003c/h2\u003e\n\n\u003cp\u003eOf course, generating a skill is one thing. Actually using it is another. So far, I've used the current version on three of my open-source projects:\u003c/p\u003e\n\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eAngular 21 → 22:\u003c/strong\u003e \u003ca href=\"https://github.com/Gramli/angular-mydatepicker/pull/12\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eangular-mydatepicker PR #12\u003c/a\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eAngular 19 → 22:\u003c/strong\u003e \u003ca href=\"https://github.com/Gramli/FileApi/pull/13\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eFileApi PR #13\u003c/a\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eAngular 21 → 22:\u003c/strong\u003e \u003ca href=\"https://github.com/Gramli/AuthApi/pull/113\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eAuthApi PR #113\u003c/a\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cp\u003eThe Angular 19 → 22 upgrade was especially interesting because it required migrations across three major versions. In the AuthApi project, the upgrade also involved replacing PrimeNG with Optimus UI because of the PrimeNG licensing changes.\u003c/p\u003e\n\n\u003cp\u003eAll three upgrades have now been merged.\u003c/p\u003e\n\n\u003ch2\u003e\n  \u003ca name=\"three-projects-later\" href=\"#three-projects-later\"\u003e\n  \u003c/a\u003e\n  Three Projects Later\n\u003c/h2\u003e\n\n\u003cp\u003eThe current version works pretty well, at least on my smaller projects. It's not perfect, though. Some Angular projects are much more complicated than mine, so the skill would probably need to be adapted for them. But it already helped me upgrade three projects, and I learned a few things along the way.\u003c/p\u003e\n\n\u003cp\u003eThe best part? I finally updated my Angular projects in just ONE WEEK instead of postponing them again. 😁\u003c/p\u003e\n\n\u003cp\u003eI wanted to share this with the community because it might help someone else. If you want to try the skill or improve it, you can find it here:\u003c/p\u003e\n\n\u003cp\u003e\u003cstrong\u003e\u003ca href=\"https://github.com/Gramli/Gramli.Framework/tree/main/src/angular-skills/angular-update\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eAngular Update Skill on GitHub\u003c/a\u003e\u003c/strong\u003e\u003c/p\u003e\n\n","body_markdown":"Do you also hate upgrading Angular versions? Because I do. I maintain a few open-source projects, and upgrading Angular is probably my least favorite maintenance task. That's also why my frontend updates often get postponed for far too long.\n\nBut we have AI now, right? It should be able to handle this with some instructions. So I decided to create (or rather vibe-code) an **Angular Update Skill for Codex**.\n\n## Creating the skill\n\nUpgrading Angular isn't just about running `ng update`. There are several things I normally have to take care of, so I created a prompt describing what the skill should do:\n\n- Follow the official [Angular Update Guide](https://angular.dev/update-guide).\n- Create a separate Git branch for the upgrade.\n- Handle migrations and dependency updates.\n- Validate that everything still builds and works.\n- Follow the same good practices I would use when upgrading Angular manually.\n\n(Updating NuGet packages in .NET feels so much simpler.)\n\nCodex generated the first version of the skill, and surprisingly, it worked!\n\nWell... locally.\n\n### First problem: npm ci\n\nAfter pushing my changes to GitHub, the CI pipeline failed with:\n\n```plaintext\nnpm ci can only install packages when your package.json and package-lock.json are in sync.\n```\n\nClassic \"works on my machine\" problem. The skill had managed to update Angular, but it hadn't properly validated that a clean installation would work. So I added another validation step: run `npm ci` before considering the upgrade complete. This way, the agent can catch problems with the lock file before they reach CI.\n\n### Second problem: npm publishing\n\nThen I ran into another issue when trying to publish my Angular library to npm:\n\n```plaintext\nnpm error code E404\nnpm error 404 Not Found - PUT https://registry.npmjs.org/gramli-angular-mydatepicker - Not found\n```\n\nAt first, the error wasn't particularly helpful. After some investigation, I found that my publishing environment was using Node.js 22 with npm 10.\n\nHowever, according to the [npm trusted publishing documentation](https://docs.npmjs.com/trusted-publishers), trusted publishing requires:\n\n- Node.js 22.14.0 or higher\n- npm 11.5.1 or higher\n\nSo I updated the skill again to prefer the latest Node.js LTS version compatible with the target Angular version, while also making sure the npm version meets any publishing requirements.\n\n### Third problem: the skill was getting too big\n\nAfter all these improvements, the skill was becoming quite large. That might not matter much with generous token limits, but I also wanted it to be usable by people working with more limited AI budgets. So I shortened the instructions, removed unnecessary repetition, and kept the important validation steps. The main skill went from 1,252 words to 701 words, with the complete bundle becoming approximately 40% shorter.\n\n## Testing it on real projects\n\nOf course, generating a skill is one thing. Actually using it is another. So far, I've used the current version on three of my open-source projects:\n\n- **Angular 21 → 22:** [angular-mydatepicker PR #12](https://github.com/Gramli/angular-mydatepicker/pull/12)\n- **Angular 19 → 22:** [FileApi PR #13](https://github.com/Gramli/FileApi/pull/13)\n- **Angular 21 → 22:** [AuthApi PR #113](https://github.com/Gramli/AuthApi/pull/113)\n\nThe Angular 19 → 22 upgrade was especially interesting because it required migrations across three major versions. In the AuthApi project, the upgrade also involved replacing PrimeNG with Optimus UI because of the PrimeNG licensing changes.\n\nAll three upgrades have now been merged.\n\n## Three Projects Later\n\nThe current version works pretty well, at least on my smaller projects. It's not perfect, though. Some Angular projects are much more complicated than mine, so the skill would probably need to be adapted for them. But it already helped me upgrade three projects, and I learned a few things along the way.\n\nThe best part? I finally updated my Angular projects in just ONE WEEK instead of postponing them again. 😁\n\nI wanted to share this with the community because it might help someone else. If you want to try the skill or improve it, you can find it here:\n\n**[Angular Update Skill on GitHub](https://github.com/Gramli/Gramli.Framework/tree/main/src/angular-skills/angular-update)**","user":{"name":"Daniel Balcarek","username":"gramli","twitter_username":"dbalcare","github_username":"Gramli","user_id":3669374,"website_url":"https://gramli.github.io/","profile_image":"https://media2.dev.to/dynamic/image/width=640,height=640,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3669374%2F0ad6f20b-8faa-45a4-a8ef-ef83e702d37b.png","profile_image_90":"https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3669374%2F0ad6f20b-8faa-45a4-a8ef-ef83e702d37b.png"},"flare_tag":{"name":"showdev","bg_color_hex":"#091b47","text_color_hex":"#b2ffe1"}}