Migrate

From reggiechan74/JobOps · View interactive version

Migrate is an AI agent skill from the GitHub repository reggiechan74/JobOps. Migrate legacy JobOps output files into the v2.0 application-centric layout - dry-run preview with user-editable mapping

How to use this skill

Skill file

JobOps Legacy Migration

This skill moves files from the legacy v1.x output layout

(OutputResumes/, Briefing_Notes/, Scoring_Rubrics/,

Intelligence_Reports/) into the v2.0 application-centric layout. It is

a standalone runnable version of Step 9 of /jobops:setup.

Flags:


Configuration

Read .jobops/config.json. If missing, stop with:

JOBOPS NOT CONFIGURED

Run /jobops:setup to initialize your workspace.

Use config.directories.applications_root and

config.directories.company_intelligence as destinations.


Step 1: Scan legacy folders

Look for files in any of:

If all four are absent or empty, print:

Nothing to migrate. Legacy folders are empty or missing.

…and exit with success.


Step 2: Dry-run parse

For each file, attempt to parse {Company}_{Role}_{YYYYMMDD} (or, for

Intelligence_Reports, {Company}_{AgentType}_{YYYYMMDD}) using the

patterns below.

Pattern-to-folder mapping:

and Briefing_Notes/.

Patterns (tried in order within each folder's applicable set):

  1. ^([A-Za-z0-9]+)_([A-Za-z0-9]+)_(\d{8})\.md$
  2. ^(?:Step\d+_)?(?:Draft_|Provenance_Analysis_|Final_Resume_|Cover_Letter_|Briefing_|Interview_Prep_)?([A-Za-z0-9]+)_([A-Za-z0-9]+)_(\d{8})\.md$
  3. ^Rubric_([A-Za-z0-9]+)_([A-Za-z0-9]+)_(\d{8})\.md$
  4. ^([A-Za-z0-9]+)_(Corporate|Legal|Leadership|Compensation|Culture|Market)_Intelligence_(\d{8})\.md$ — applied only to files inside Intelligence_Reports/.

Capture groups for patterns 1–3: (Company)_(Role)_(Date).

Capture groups for pattern 4: (Company)_(AgentType)_(Date).

Compose destinations:

Files that do not match any pattern are added to an "unresolved" list.


Step 3: Preview

Print planned moves grouped by destination app folder (or company folder),

then the unresolved list. Include total counts.

If --dry-run was passed, stop here and exit with success.


Step 4: User-editable mapping

Offer:

  1. Execute as shown — run the moves.
  2. Edit mapping — drop into an inline editor where the user can

reassign specific files to different app folders, different destination

filenames, or mark as "skip".

  1. Cancel — exit without moving anything.

Step 5: Execute

For each confirmed move:


Step 6: Update config

Read .jobops/config.json. Set:

Write back atomically.


Step 7: Summary

Print:

Exit.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.