Skip to content

Add a v4 → v5 app-upgrade skill #45

Description

@heskew

The public skills repo doesn't have a companion for app developers porting from Harper v4 to v5. The canonical v5 Migration Guide covers what changed, but it's not packaged as an installable skill — nothing triggers when an agent is editing v4 Harper code.

The internal harper-v4-to-v5-migration skill (in HarperFast/skills-internal) is operator-shaped — focused on Fabric / hosted-cluster cutovers, explicitly defers app-side changes to the canonical guide. Leaves a gap for the dev-shaped case.

What's actually needed

Most of the migration content already exists in the canonical guide — a Claude session that's explicitly asked about upgrading will likely web-search it. The real value-add of a skill would be discovery and unprompted activation, plus a small set of traps that aren't yet in the guide:

  1. Auto-trigger on v4 patterns (from 'harperdb', engines.harperdb, static loadAsInstance = false, etc.) so an agent doing unrelated work in a v4 codebase surfaces the upgrade context unprompted. Even a thin SKILL.md that activates and points at the canonical guide is useful.

  2. Field-tested app-side traps the canonical guide doesn't have (yet):

    • Resource.delete({...}) filter-style trap
    • CJS/ESM interop on certain CommonJS packages (fast-xml-parser XMLParser named-export error)
    • applications.lockdown block trial-and-error
    • import.meta.dirname undefined under the VM loader (pre-5.0.11)
    • @fastify/static < 9 routing break
  3. Optional: pre-baked scan recipes (rg one-liners) that find every v4-ism in a codebase.

Suggested shape

A thin skill — harper-v4-to-v5-upgrade/ with one SKILL.md and maybe one rules/ file. Not a full duplicate of the canonical guide; a trigger + pointer + field-tested traps. ~100 lines total. Internal harper-v4-to-v5-migration skill in HarperFast/skills-internal has reusable content: pre-flight-checks.md scan recipes + Module/Import & Auth/Sessions sections of error-fingerprints.md are largely dev-facing and could be sanitized and ported.

Out of scope

  • Fabric / cluster cutover mechanics (internal-skill territory).
  • v5 onboarding / "how to build on Harper v5" — harper-best-practices already does this.
  • Duplicating the canonical migration guide.

References

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions