agentleFS
brianonbased-devbrianonbased-dev/HoloScript/.claude/skills/migrate/SKILL.md

migrate

Skill9 starsChanged 3 months agoMITView on GitHub

Schema and API migration helper for HoloScript. When breaking changes happen to traits, compilers, or the .holo format, generates migration guides, updates examples, and patches downstream consumers. Ensures backward compatibility or clean breaks.

39 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use a11y, incident and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CorentinGCSkill

    a11y

    Accessibilité web — rôles ARIA, navigation clavier, contraste, labels, focus management, semantic HTML. Appliqué automatiquement lors de la création de composants UI.

    Also in 3 projects that use this

  • pvnarpSkill

    incident

    Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.

    Also in 3 projects that use this

  • diego-tobalinaSkill

    logging

    Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.

    Also in 3 projects that use this

  • AnthropicSkill

    tech-debt

    Identify, categorize, and prioritize technical debt. Trigger with "tech debt", "technical debt audit", "what should we refactor", "code health", or when the user asks about code quality, refactoring priorities, or maintenance backlog.

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When HoloScript makes breaking changes (new trait schema, compiler API changes, .holo format updates), this skill helps identify affected …

    line 22
  2. Distinctive:

    Create a migration guide for consumers upgrading between versions.

    line 46
  3. Distinctive:

    Verify all consumers compile after a migration.

    line 65
  4. Very specific:

    Check packages/plugins/ too — plugins are downstream consumers

    line 90

“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/holoscript:migrate — Migration Helper

Command: $ARGUMENTS

Overview

When HoloScript makes breaking changes (new trait schema, compiler API changes, .holo format updates), this skill helps identify affected code and generate migration paths.

Subcommands

detect — Detect Breaking Changes

Analyze recent commits for API surface changes.

cd C:/Users/Josep/Documents/GitHub/HoloScript

echo "=== Public API Changes (since last tag) ==="
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo HEAD~20)
git diff $LAST_TAG..HEAD -- "dist/index.d.ts" "packages/core/src/types/" | head -100

echo "=== Trait Schema Changes ==="
git diff $LAST_TAG..HEAD -- "packages/core/src/constants/" | head -50

echo "=== Compiler Interface Changes ==="
git diff $LAST_TAG..HEAD -- "packages/core/src/compilers/CompilerBase.ts" | head -50

guide — Generate Migration Guide

Create a migration guide for consumers upgrading between versions.

Steps:

  1. Diff public API types between versions
  2. Identify removed/renamed exports
  3. Generate before/after code examples
  4. List required changes per consumer package

patch — Auto-Patch Downstream

Apply mechanical fixes to downstream packages affected by a migration.

cd C:/Users/Josep/Documents/GitHub/HoloScript

# Find all imports of the changed API
grep -r "import.*from.*@holoscript/core" packages/ --include="*.ts" -l

validate — Validate Migration Completeness

Verify all consumers compile after a migration.

cd C:/Users/Josep/Documents/GitHub/HoloScript

# Build everything — any broken import will fail
pnpm build 2>&1 | grep -E "error|Error|failed" | head -20

# Run type check
pnpm tsc --noEmit 2>&1 | head -30

Common Migration Patterns

Change TypeDetectionFix Pattern
Trait renamedgrep old name in constants/Find-replace across trait files
Compiler method signaturediff CompilerBase.tsUpdate all *Compiler.ts subclasses
.holo syntax changeparser test failuresUpdate examples/ and tests/
Package export removeddist/index.d.ts diffAdd re-export or update consumers
Type narrowingtsc --noEmit errorsAdd type guards or casts

Important

  • Never auto-patch without showing the diff first — migrations can be subtle
  • Check packages/plugins/ too — plugins are downstream consumers
  • Trait constants in packages/core/src/constants/ are the most common migration source
  • dist/index.d.ts is hand-crafted via generate-types.mjs — never edit it directly

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.