clean-copy

от tldraw

Пересоздать текущую ветку в новой ветке с чистой, повествовательной историей git-коммитов. Использовать, когда требуется создать чистую копию ветки, очистить историю коммитов…

npx skills add https://github.com/tldraw/tldraw --skill clean-copy

Clean copy

Reimplement the current branch on a new branch with a clean, narrative-quality commit history suitable for reviewer comprehension.

Workflow

  1. Gather context:
    • Source branch: git branch --show-current.
    • Working tree: git status --short.
    • Commits since main: git log main..HEAD --oneline.
    • Diff summary: git diff main...HEAD --stat.
  2. Validate the source branch:
    • Ensure there are no uncommitted changes or merge conflicts.
    • Confirm the source branch is up to date with main.
  3. Choose the new branch name:
    • Use the user's requested name when provided.
    • Otherwise use <source-branch>-clean.
  4. Analyze the diff:
    • Study all changes between the source branch and main.
    • Understand the final intended state before recreating it.
  5. Create the clean branch from main.
  6. Plan the commit storyline:
    • Break the implementation into self-contained logical steps.
    • Each step should read like a stage of development in a tutorial.
  7. Reimplement the work:
    • Recreate the final changes step by step.
    • Commit after each coherent idea.
    • Use clear commit subjects and descriptions.
    • Use git commit --no-verify for intermediate commits so hooks do not block temporarily incomplete states.
  8. Verify correctness:
    • Confirm the final clean branch state exactly matches the original source branch.
    • Run the final commit without --no-verify so normal checks run.
  9. Open a pull request using the pr skill.
    • Include a link to the original branch in the PR description.

Rules

  • Never add yourself or an AI tool as an author, contributor, or co-author.
  • Never include AI attribution in commits or PR content.
  • The final clean branch must be identical to the source branch.
  • Do not force push unless the user explicitly asks for it.

Больше skills от tldraw

review-docs
tldraw
Проверка и улучшение документации с параллельной оценкой и итеративным циклом улучшений.
official
commit-changes
tldraw
Создать git-коммит для текущих изменений. Используйте, когда вас просят закоммитить изменения, сделать коммит, сгенерировать сообщение коммита или закоммитить текущее рабочее дерево с…
official
dotcom-release-crew
tldraw
Опубликовать в
official
dotcom-release-marketing
tldraw
Опубликуйте краткое описание на простом языке о том, что выходит в еженедельном релизе tldraw.com (dotcom), в Discord-канале маркетинговой команды. Используйте при подготовке…
official
issue
tldraw
Создать и исследовать issue на GitHub в репозитории tldraw на основе описания пользователя. Используется, когда пользователь упоминает issue, просит создать issue, сообщить об ошибке,…
official
pr
tldraw
Создать или обновить pull request для текущей ветки в репозитории tldraw. Используется, когда пользователь вызывает pr, просит создать PR, обновить существующий PR, запушить…
official
pr-walkthrough
tldraw
Создайте видеообзор пул-реквеста с голосовым сопровождением и слайдами кода. Используйте, когда требуется создать обзор PR, видео PR или обзор…
official
shepherd-pr
tldraw
shepherd-pr — устанавливаемый навык для AI-агентов, опубликованный tldraw/tldraw.
official