Regitize date customize
Redistribute Git author and committer dates evenly across a branch, starting at a user-supplied date and ending at today, while preserving snapshots and merge topology. Use when the user invokes regitize-date-customize with a start date, asks to stretch or spread commits over time, or wants historical commit timestamps normalized into a chosen date range.From its SKILL.md
npx -y skills add gadost/regitize --skill regitize-date-customizeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.9 KB, 590 tokens by cl100k_base, as published. Nobody here has run it
Regitize Date Customize
Rewrite commit timestamps without changing messages, authors, file trees, or merge topology. Never push rewritten history.
Workflow
-
Obtain
start-from-datefrom the invocation or user request. AcceptYYYY-MM-DDor an ISO 8601 timestamp. If absent, ask for it. -
Locate this skill directory so its bundled scripts can be executed by absolute path.
-
Verify the repository and target branch. Default to the current local branch. Refuse a detached
HEADunless the user names a local branch. -
Inspect
git status --shortandgit log --graph --decorate --format='%h %aI %cI %s'. -
Run:
node <skill-dir>/scripts/plan-dates.mjs <start-from-date> --output <repo-git-dir>/regitize/date-plan.jsonAdd
--end <ISO-date>only if the user explicitly requested an endpoint other than now. Add--dates authoror--dates committeronly when requested; the default rewrites both. -
Run
node <skill-dir>/scripts/rewrite-history.mjs --plan <plan-path>without--applyto validate. -
Show the user the branch, number of commits, exact start and end instants, rewritten fields, first three scheduled commits, and last three scheduled commits. Explain that all descendant SHAs will change. Dates are generated in UTC; a date-only start means local midnight converted to UTC.
-
Stop and obtain explicit approval for that exact schedule.
-
After approval only, run the same rewrite command with
--apply. If the history contains signatures or special commit metadata, obtain the separate acknowledgement requested by the validator and update the plan flags described in references/date-behavior.md. -
Verify the new log and report the old head, new head, and backup ref. Do not force-push unless the user separately asks for it.
Scheduling rules
- Order commits parent-before-child using Git topological order.
- For two or more commits, place the first exactly at the start and the last exactly at the end; distribute the rest at equal time intervals.
- For one commit, use the end instant because one point cannot occupy both endpoints.
- Rewrite both author and committer dates by default.
- Do not alter messages, identities, trees, parent relationships, branches, or tags.
- Regenerate the plan if
expectedHeadno longer matches.
Resources
scripts/plan-dates.mjsproduces the deterministic schedule and JSON plan.scripts/rewrite-history.mjsvalidates and applies the approved plan.- references/date-behavior.md defines parsing, plan flags, and recovery.
What ships with it: 5 files
11.9 KB alongside SKILL.md, 3 of them executable
agents/
- openai.yaml225 B
references/
- date-behavior.md1.0 KB
scripts/
- git.mjsruns1.7 KB
- plan-dates.mjsruns3.0 KB
- rewrite-history.mjsruns6.0 KB