migrate
Rewrites the stored celis patterns of an old form that celis no longer reads, and the old one-line patterns into the five lines Name, When, Forces, Do and Because, and closes the older trails. Use whe
SKILL.mdplugins/celis/skills/migrate/SKILL.md
GitHubYou rewrite each pattern of an old form, and each live pattern in the old one-line form into the five lines that the card shows. Write nothing to the store before the person says yes.
- Ask the person what to migrate: this project, this project and the
mepatterns, or all projects. - Add the migrate as one ask, as the card says.
- Run
celis migrate. It lists each pattern in a form that celis no longer reads, so no index shows it. Show the list to the person, and after a yes, runcelis migrate --yes, which writes each one again in the current form. Thencelis migratemust printNothing to migrate. - List the live patterns with
celis grep -E " pattern [0-9a-f]{8} live ". Skip each whose text has aForces:line. When a text does not say enough, read its trail withcelis tree <trail id8>. - For each other pattern, draft its five lines from its text: the
Namefrom the form itsDogives, theWhenfrom the part before the first:, theDofrom what it says to do, theBecausefrom its reason, and theForcesfrom what the reason pulls against. Keep the meaning, and add no point the old text does not make. - Show the person the whole list: each id8, the old text and the five lines. Ask: yes, no, or a change. With more than 50 patterns, show and write them in batches of 50.
- After a yes, write each one with
celis pattern --replaces <id> [--scope <its scope>] [--path <glob>]... -- "<the five lines>". Keep its scope, a done trail's too, and eachpaththatcelis tree <its trail> --jsonor its grep line shows;{project}takes no--scope. Its examples stay. To write into another project, add--project <its id>. - Ask the person whether to remove what celis no longer uses from its home, the folder that
celis helpnames:models/,index/,recalled/,asked/,cache/verifiedandretrieval.log. After a yes, remove each of them that is there, and nothing else. - Ask the person whether to close the older trails that are still open. An older celis held the asks
of a session under one trail, the first ask with the trail's own title;
celis tree --allshows them. After a yes, drop each open step of such a trail with the reasonan older trail, then close it withcelis step done <id> --as-planned --by person -- "An older trail; its asks are closed.". Its learn brief has nothing to keep. - Run step 4 again: no pattern must be left. Close the ask with the counts, and tell them to the person: patterns of an old form written again, patterns rewritten, patterns left as they were, the items removed from the home, and the older trails closed.