paper-branch-by-title
Use when the user starts a new paper, asks to create a new paper while already on another paper branch, mentions creating a dedicated paper branch, or inputs "/paper-branch". This skill must reuse git-flow-branch-creator and create a title-based branch name so each paper is isolated on its own branch.
Paper Branch By Title
Purpose
Create one dedicated git branch per paper title, so different papers are managed independently.
Trigger Phrases
- "创建新论文"
- "新开一篇论文"
- "在这个仓库再写一篇新论文"
- "new paper"
- "create branch for this paper"
Required Reuse
Always invoke git-flow-branch-creator first, then enforce title-based naming.
Workflow
- Ask for paper title if missing.
- Run
git-flow-branch-creatorto reuse its branch-type analysis and base-branch choice. - Build branch slug from paper title:
- lowercase
- replace spaces and separators with
- - keep letters, digits, CJK, and
- - collapse repeated
- - trim leading/trailing
-
- Create branch name:
feature/paper-<title-slug>
- If branch exists, append numeric suffix:
feature/paper-<title-slug>-2,-3, ...
- Create and switch branch, then report:
- paper title
- final branch name
- source branch
Example
Title: Laser Ultrasonic Debonding Detection Survey
Branch:
feature/paper-laser-ultrasonic-debonding-detection-survey