Skip to content

fix(skillgen): skip tags older than the default branch version - #527

Merged
harlan-zw merged 1 commit into
mainfrom
fix/skillgen-default-branch-tags
Oct 7, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
fix/skillgen-default-branch-tags

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

Related to nuxt/scripts#950

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

nuxt/scripts publishes 2.0.0 betas from main and keeps a 1.x branch for 1.3 maintenance releases. A v1.3.13 tag would match its own package.json, pass provenance, and open a pull request on main that rewrites the v2 Skill with 1.x guidance. Skillgen pull requests always target the default branch, so a release older than that branch has no Skill to update there. prepareTag now skips it with TAG_OLDER_THAN_DEFAULT_BRANCH, comparing versions with semver precedence, prereleases included.

When a package holds several Skills, the Skill named after a scoped package now resolves with its scope, as generate-package-skill names it (@nuxtjs/seo as nuxtjs-seo), as well as without it. The /skillgen page and the runbook state the new tag rule.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

A tag cut from a maintenance branch, such as 1.3.13 while main is at
2.0.0-beta.14, matched its own package.json and opened a pull request
on main that rewrote the v2 Skill with 1.x guidance. The pull request
always targets the default branch, so a release older than it never
has a Skill to update there.

A Skill directory named with the package scope, as generate-package-skill
names @nuxtjs/seo (nuxtjs-seo), now resolves when a package has several
Skills.
@harlan-zw harlan-zw added the harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. label Oct 7, 2026
@harlan-github-agent harlan-github-agent Bot added harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. and removed harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. labels Oct 7, 2026
@harlan-zw
harlan-zw merged commit e850063 into main Oct 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant