Data Migration
revfactory/harness-100
Full migration pipeline where an agent team collaborates to perform source analysis, schema mapping, transformation script generation, validation query design, and rollback planning.
The olm:v5 migration script, UpdateTagsService, batch processing, migratedat, ClassifyTagsService deprecated mappings, and data migration from v4 category tables.
$ npx skills add OpenLitterMap/openlittermap-web --skill v5-migration -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OpenLitterMap/openlittermap-web v5-migration --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/OpenLitterMap/openlittermap-web.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.ai/skills/v5-migration .claude/skills/v5-migration && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "v5-migration" agent skill from https://github.com/OpenLitterMap/openlittermap-web/tree/master/.ai/skills/v5-migration into .claude/skills/v5-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "v5-migration", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/OpenLitterMap/openlittermap-web/tree/master/.ai/skills/v5-migrationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add OpenLitterMap/openlittermap-web --skill v5-migration -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OpenLitterMap/openlittermap-web v5-migration --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLitterMap/openlittermap-web.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.ai/skills/v5-migration .agents/skills/v5-migration && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "v5-migration" agent skill from https://github.com/OpenLitterMap/openlittermap-web/tree/master/.ai/skills/v5-migration into .agents/skills/v5-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "v5-migration", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenLitterMap/openlittermap-web --skill v5-migration -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OpenLitterMap/openlittermap-web v5-migration --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLitterMap/openlittermap-web.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.ai/skills/v5-migration .cursor/skills/v5-migration && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "v5-migration" agent skill from https://github.com/OpenLitterMap/openlittermap-web/tree/master/.ai/skills/v5-migration into .cursor/skills/v5-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "v5-migration", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/OpenLitterMap/openlittermap-web.git --path .ai/skills/v5-migration--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add OpenLitterMap/openlittermap-web --skill v5-migration -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OpenLitterMap/openlittermap-web v5-migration --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLitterMap/openlittermap-web.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.ai/skills/v5-migration .gemini/skills/v5-migration && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "v5-migration" agent skill from https://github.com/OpenLitterMap/openlittermap-web/tree/master/.ai/skills/v5-migration into .gemini/skills/v5-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "v5-migration", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install OpenLitterMap/openlittermap-web v5-migrationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add OpenLitterMap/openlittermap-web --skill v5-migration -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/OpenLitterMap/openlittermap-web.git skills-src && mkdir -p .github/skills && cp -r skills-src/.ai/skills/v5-migration .github/skills/v5-migration && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "v5-migration" agent skill from https://github.com/OpenLitterMap/openlittermap-web/tree/master/.ai/skills/v5-migration into .github/skills/v5-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "v5-migration", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OpenLitterMap/openlittermap-web --skill v5-migration -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install OpenLitterMap/openlittermap-web v5-migration --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OpenLitterMap/openlittermap-web.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.ai/skills/v5-migration .opencode/skills/v5-migration && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "v5-migration" agent skill from https://github.com/OpenLitterMap/openlittermap-web/tree/master/.ai/skills/v5-migration into .opencode/skills/v5-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "v5-migration", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
v5-migrationThe olm:v5 migration script, UpdateTagsService, batch processing, migratedat, ClassifyTagsService deprecated mappings, and data migration from v4 category tables.
V5 Migration is an agent skill from OpenLitterMap/openlittermap-web. The olm:v5 migration script, UpdateTagsService, batch processing, migratedat, ClassifyTagsService deprecated mappings, and data migration from v4 category tables.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering Database migrations and Data pipelines and ETL. It works with PHP and Laravel. The repository describes itself as: https://opengeospatialdata.springeropen.com/articles/10.1186/s40965-018-0050-y. The licence is GPL-3.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ac688aa. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
phpFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
V5 Migration loads about 1.7k tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 388 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from OpenLitterMap/openlittermap-web at commit ac688aa, republished under its GPL-3.0 licence (© OpenLitterMap). 388 words, ~1,683 tokens.
.claude/skills/v5-migration/SKILL.md (or your agent's skills folder).php artisan olm:v5 migrates photos from v4 category-based tags (14 separate tables like smoking, food, coffee) to v5 normalized PhotoTags. Processes per-user, in batches, with idempotency via migrated_at.
app/Console/Commands/tmp/v5/Migration/MigrationScript.php — Artisan commandapp/Services/Tags/UpdateTagsService.php — Per-photo v4->v5 conversionapp/Services/Tags/ClassifyTagsService.php — Tag classification + deprecated key mappingapp/Services/Tags/GeneratePhotoSummaryService.php — Summary JSON + XP after migrationapp/Services/Achievements/Tags/TagKeyCache.php — Cached tag ID lookupsapp/Services/Metrics/MetricsService.php — Processes metrics post-migrationmigrated_at prevents reprocessing. Once set, the photo is skipped on subsequent runs. Re-running processes 0 photos.gc_collect_cycles() between users.UpdateTagsService::updateTags() -> GeneratePhotoSummaryService::run() -> MetricsService::processPhoto() -> mark migrated_at.migrated_at set).php artisan olm:v5 # All users
php artisan olm:v5 --user=123 # Single user
php artisan olm:v5 --batch=1000 # Custom batch size
php artisan olm:v5 --skip-locations # Skip location cleanup step// UpdateTagsService::updateTags($photo)
public function updateTags(Photo $photo): void
{
// 1. Read v4 data from old category relationships
[$tags, $customTagsOld] = $this->getTags($photo);
// 2. Classify each tag (handles deprecated key mapping)
$parsed = $this->parseTags($tags, $customTagsOld, $photo->id);
// Returns: ['groups' => [...], 'globalBrands' => [...], 'customTags' => [...]]
// 3. Create v5 PhotoTag + PhotoTagExtraTags records
$this->createPhotoTags($photo, $parsed);
}// Input: ['smoking' => ['butts' => 5, 'cigaretteBox' => 1], 'brands' => ['marlboro' => 3]]
// For each tag:
$result = $this->classifyTags->classify($tagKey);
// 1. Check normalizeDeprecatedTag() — maps old keys to new + materials
// 2. Look up Category by key
// 3. Look up LitterObject by key (or auto-create as crowdsourced)
// 4. Return classification with materials list
// Output groups structure:
[
'groups' => [
'smoking' => [
'category_id' => 2,
'objects' => [
['id' => 45, 'key' => 'butts', 'quantity' => 5, 'materials' => ['plastic', 'paper']],
]
]
],
'globalBrands' => [['id' => 12, 'key' => 'marlboro', 'quantity' => 3]],
'customTags' => [...]
]// Called once at script startup for performance
TagKeyCache::preloadAll();
// Three-layer cache: in-memory array -> Redis hash (24h TTL) -> database
$id = TagKeyCache::idFor('material', 'glass'); // fast lookup
$id = TagKeyCache::getOrCreateId('material', 'glass'); // upsert if missing// In migration loop:
DB::disableQueryLog(); // Prevent query log from growing
gc_collect_cycles(); // Between users
// Batch stats: time, speed (photos/sec), memory delta per batchprotected $signature = 'olm:v5
{--skip-locations : Skip the locations cleanup step}
{--user= : Specific user ID to migrate}
{--batch=500 : Number of photos per batch}';
public function handle(): int
{
$this->ensureProcessingColumns(); // Add processed_* if missing
$this->seedReferenceTables(); // Categories, brands, achievements
TagKeyCache::preloadAll();
DB::disableQueryLog();
$this->runMigration(); // Per-user, batched
}The v5 migration left 189,518 photo_tags rows with category_litter_object_id = NULL because DEPRECATED_TAG_MAP mapped v4 keys to composite names (e.g. beerCan → beer_can) instead of decomposing into object + type (e.g. alcohol.can + type beer). The fallback created runtime litter_objects (crowdsourced=1) without CLO relationships.
Fix commands:
php artisan olm:fix-orphaned-tags — Remaps 71 orphan LOs to canonical CLO/LO/type targets. 74 mapping entries (3 multi-category splits). Batched, transacted, idempotent. Supports --apply, --verify-only, --log.php artisan olm:regenerate-summaries --orphan-fix — Regenerates stale summaries for affected photos. Chunked via chunkById, resumable (skips photos with non-null clo_id in summary), Photo::withoutEvents().php artisan olm:reprocess-metrics --from-file=<ids> — Delta-based MetricsService reprocess for ~1,041 photos with XP changes (special object bonus corrections).Key files:
app/Console/Commands/tmp/v5/Migration/FixOrphanedTags.phpapp/Console/Commands/tmp/v5/Migration/RegenerateSummaries.phpapp/Console/Commands/tmp/v5/Migration/ReprocessPhotoMetrics.phpreadme/TagsCleanupPostMigration.md — Full mapping tables and judgment callsreadme/changelog/production-orphan-fix-runbook.md — Production execution stepsmigrated_at check. This is the idempotency guard. Without it, photos get double-migrated.TagKeyCache::preloadAll(). Cold lookups hit the database per tag. Preload caches first.GeneratePhotoSummaryService after tag creation. Summary must be generated for MetricsService to read.beerBottle split into object + materials. normalizeDeprecatedTag() handles this.ClassifyTagsService::CATEGORY_ALIASES resolves old category keys: coastal→marine, trashdog→pets, dogshit→pets, automobile→vehicles, pathway→unclassified, drugs→unclassified, political→unclassified, stationery→unclassified. The public getCategory(string $rawKey) method checks aliases before DB lookup.globalBrands array — not attached to specific objects during migration.© OpenLitterMap, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .ai/skills/v5-migration of OpenLitterMap/openlittermap-web.
Open the folder on GitHubat commit ac688aa
V5 Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| V5 Migration this skillOpenLitterMap/openlittermap-web | 134 | — | ~1.7k | Automated safety check: Pass | GPL-3.0 | |
| Data Migrationrevfactory/harness-100 | 1.3k | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| MigrationJaguarJack/catch-admin | 935 | — | ~474 | Automated safety check: Pass | Apache-2.0 | |
| Migratesoftspark/ai-toolkit | 179 | — | ~1.3k | Automated safety check: Notes | Apache-2.0 | |
| Configuring Horizoncoollabsio/coolify | 63k | 4 repos | ~898 | Automated safety check: Pass | MIT | |
| Geoflowyaojingang/GEOFlow | 3.8k | — | ~722 | Automated safety check: Pass | AGPL-3.0 |
revfactory/harness-100
Full migration pipeline where an agent team collaborates to perform source analysis, schema mapping, transformation script generation, validation query design, and rollback planning.
JaguarJack/catch-admin
Generate database migration file for CatchAdmin module. An agent skill from JaguarJack/catch-admin.
softspark/ai-toolkit
Run/create DB migrations (Alembic, Prisma, Laravel, Django, Flyway, Drizzle); checks backup.
coollabsio/coolify
A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.
yaojingang/GEOFlow
Operate/develop GEOFlow CLI/Laravel/admin/API, topics/专题 and topic tasks, theme libraries/replication, sites/leads/Agent, channel sync and legacy yao-geoflow-cli/design/template migration.
astronomer/agents
Queries the data warehouse with SQL and answers business questions about data.
OpenLitterMap/openlittermap-web
Styles applications using Tailwind CSS v3 utilities. An agent skill from OpenLitterMap/openlittermap-web.
OpenLitterMap/openlittermap-web
OpenLitterMap v5 architecture reference. An agent skill from OpenLitterMap/openlittermap-web.
OpenLitterMap/openlittermap-web
AchievementEngine, AchievementRepository, milestone checkers, AchievementsSeeder, userachievements pivot, AchievementsController API, and achievement evaluation flow.
OpenLitterMap/openlittermap-web
AdminController, photo approval, tag editing, deletion, MetricsService integration, admin middleware, verification queue, and admin XP.
OpenLitterMap/openlittermap-web
REST API endpoints, route structure, auth guards, request/response contracts, error patterns, and the full API surface for web SPA and mobile clients.
OpenLitterMap/openlittermap-web
ClusteringService, tile keys, dirty tiles/teams, clustering commands, ClusterController GeoJSON API, PhotoObserver dirty marking, and map cluster rendering.
Categories
The olm:v5 migration script, UpdateTagsService, batch processing, migratedat, ClassifyTagsService deprecated mappings, and data migration from v4 category tables. V5 Migration is an agent skill from OpenLitterMap/openlittermap-web. The olm:v5 migration script, UpdateTagsService, batch processing, migratedat, ClassifyTagsService deprecated mappings, and data migration from v4 category tables.
V5 Migration fits situations like: tasks that involve Database migrations; tasks that involve Data pipelines and ETL.
Run `npx skills add OpenLitterMap/openlittermap-web --skill v5-migration -a claude-code`. Or copy the skill folder (.ai/skills/v5-migration in OpenLitterMap/openlittermap-web) into .claude/skills/v5-migration in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OpenLitterMap/openlittermap-web --skill v5-migration -a codex`. Or copy the skill folder (.ai/skills/v5-migration in OpenLitterMap/openlittermap-web) into .agents/skills/v5-migration in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenLitterMap/openlittermap-web --skill v5-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/v5-migration, .gemini/skills/v5-migration, .github/skills/v5-migration and .opencode/skills/v5-migration in your project.
Going by SKILL.md and its folder, V5 Migration needs the command-line tools its instructions call (php).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
V5 Migration is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with V5 Migration: Data Migration (revfactory/harness-100, 1.3k stars), Migration (JaguarJack/catch-admin, 935 stars), Migrate (softspark/ai-toolkit, 179 stars) and Configuring Horizon (coollabsio/coolify, 63k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
OpenLitterMap (a GitHub organization) maintains it in OpenLitterMap/openlittermap-web, which has 134 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on September 14, 2026.
Source: OpenLitterMap/openlittermap-web on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.