编程开发· 版本控制与发布运维
Git Flow分支命名与创建
根据仓库中已暂存或未暂存的改动判断分支类型,生成语义化名称并创建、切换分支。
### 指令
```xml
<instructions>
<title>Git Flow Branch Creator</title>
<description>This prompt analyzes your current git changes using git status and git diff (or git diff --cached), then intelligently determines the appropriate branch type according to the Git Flow branching model and creates a semantic branch name.</description>
<note>
Just run this prompt and Copilot will analyze your changes and create the appropriate Git Flow branch for you.
</note>
</instructions>
```
### 工作流程
**按照以下步骤操作:**
1. 运行 `git status`,查看当前仓库状态和已更改的文件。
2. 运行 `git diff`(针对未暂存的更改)或 `git diff --cached`(针对已暂存的更改),分析更改的性质。
3. 使用下方的 Git Flow 分支分析框架分析这些更改。
4. 根据分析确定合适的分支类型。
5. 遵循 Git Flow 约定生成语义化分支名称。
6. 创建分支并自动切换到该分支。
7. 提供分析摘要和后续步骤。
### Git Flow 分支分析框架
```xml
<analysis-framework>
<branch-types>
<feature>
<purpose>New features, enhancements, non-critical improvements</purpose>
<branch-from>develop</branch-from>
<merge-to>develop</merge-to>
<naming>feature/descriptive-name or feature/ticket-number-description</naming>
<indicators>
<indicator>New functionality being added</indicator>
<indicator>UI/UX improvements</indicator>
<indicator>New API endpoints or methods</indicator>
<indicator>Database schema additions (non-breaking)</indicator>
<indicator>New configuration options</indicator>
<indicator>Performance improvements (non-critical)</indicator>
</indicators>
</feature>
<release>
<purpose>Release preparation, version bumps, final testing</purpose>
<branch-from>develop</branch-from>
<merge-to>develop AND master</merge-to>
<naming>release-X.Y.Z</naming>
<indicators>
<indicator>Version number changes</indicator>
<indicator>Build configuration updates</indicator>
<indicator>Documentation finalization</indicator>
<indicator>Minor bug fixes before release</indicator>
<indicator>Release notes updates</indicator>
<indicator>Dependency version locks</indicator>
</indicators>
</release>
<hotfix>
<purpose>Critical production bug fixes requiring immediate deployment</purpose>
<branch-from>master</branch-from>
<merge-to>develop AND master</merge-to>
<naming>hotfix-X.Y.Z or hotfix/critical-issue-description</naming>
<indicators>
<indicator>Security vulnerability fixes</indicator>
<indicator>Critical production bugs</indicator>
<indicator>Data corruption fixes</indicator>
<indicator>Service outage resolution</indicator>
<indicator>Emergency configuration changes</indicator>
</indicators>
</hotfix>
</branch-types>
</analysis-framework>
```
### 分支命名约定
```xml
<naming-conventions>
<feature-branches>
<format>feature/[ticket-number-]descriptive-name</format>
<examples>
<example>feature/user-authentication</example>
<example>feature/PROJ-123-shopping-cart</example>
<example>feature/api-rate-limiting</example>
<example>feature/dashboard-redesign</example>
</examples>
</feature-branches>
<release-branches>
<format>release-X.Y.Z</format>
<examples>
<example>release-1.2.0</example>
<example>release-2.1.0</example>
<example>release-1.0.0</example>
</examples>
</release-branches>
<hotfix-branches>
<format>hotfix-X.Y.Z OR hotfix/critical-description</format>
<examples>
<example>hotfix-1.2.1</example>
<example>hotfix/security-patch</example>
<example>hotfix/payment-gateway-fix</example>
<example>hotfix-2.1.1</example>
</examples>
</hotfix-branches>
</naming-conventions>
```
### 分析流程
```xml
<analysis-process>
<step-1>
<title>Change Nature Analysis</title>
<description>Examine the types of files modified and the nature of changes</description>
<criteria>
<files-modified>Look at file extensions, directory structure, and purpose</files-modified>
<change-scope>Determine if changes are additive, corrective, or preparatory</change-scope>
<urgency-level>Assess if changes address critical issues or are developmental</urgency-level>
</criteria>
</step-1>
<step-2>
<title>Git Flow Classification</title>
<description>Map the changes to appropriate Git Flow branch type</description>
<decision-tree>
<question>Are these critical fixes for production issues?</question>
<if-yes>Consider hotfix branch</if-yes>
<if-no>
<question>Are these release preparation changes (version bumps, final tweaks)?</question>
<if-yes>Consider release branch</if-yes>
<if-no>Default to feature branch</if-no>
</if-no>
</decision-tree>
</step-2>
<step-3>
<title>Branch Name Generation</title>
<description>Create semantic, descriptive branch name</description>
<guidelines>
<use-kebab-case>Use lowercase with hyphens</use-kebab-case>
<be-descriptive>Name should clearly indicate the purpose</be-descriptive>
<include-context>Add ticket numbers or project context when available</include-context>
<keep-concise>Avoid overly long names</keep-concise>
</guidelines>
</step-3>
</analysis-process>
```
### 边界情况与验证
```xml
<edge-cases>
<mixed-changes>
<scenario>Changes include both features and bug fixes</scenario>
<resolution>Prioritize the most significant change type or suggest splitting into multiple branches</resolution>
</mixed-changes>
<no-changes>
<scenario>No changes detected in git status/diff</scenario>
<resolution>Inform user and suggest checking git status or making changes first</resolution>
</no-changes>
<existing-branch>
<scenario>Already on a feature/hotfix/release branch</scenario>
<resolution>Analyze if new branch is needed or if current branch is appropriate</resolution>
</existing-branch>
<conflicting-names>
<scenario>Suggested branch name already exists</scenario>
<resolution>Append incremental suffix or suggest alternative name</resolution>
</conflicting-names>
</edge-cases>
```
### 示例
```xml
<examples>
<example-1>
<scenario>Added new user registration API endpoint</scenario>
<analysis>New functionality, additive changes, not critical</analysis>
<branch-type>feature</branch-type>
<branch-name>feature/user-registration-api</branch-name>
<command>git checkout -b feature/user-registration-api develop</command>
</example-1>
<example-2>
<scenario>Fixed critical security vulnerability in authentication</scenario>
<analysis>Security fix, critical for production, immediate deployment needed</analysis>
<branch-type>hotfix</branch-type>
<branch-name>hotfix/auth-security-patch</branch-name>
<command>git checkout -b hotfix/auth-security-patch master</command>
</example-2>
<example-3>
<scenario>Updated version to 2.1.0 and finalized release notes</scenario>
<analysis>Release preparation, version bump, documentation</analysis>
<branch-type>release</branch-type>
<branch-name>release-2.1.0</branch-name>
<command>git checkout -b release-2.1.0 develop</command>
</example-3>
<example-4>
<scenario>Improved database query performance and updated caching</scenario>
<analysis>Performance improvement, non-critical enhancement</analysis>
<branch-type>feature</branch-type>
<branch-name>feature/database-performance-optimization</branch-name>
<command>git checkout -b feature/database-performance-optimization develop</command>
</example-4>
</examples>
```
### 验证清单
```xml
<validation>
<pre-analysis>
<check>Repository is in a clean state (no uncommitted changes that would conflict)</check>
<check>Current branch is appropriate starting point (develop for features/releases, master for hotfixes)</check>
<check>Remote repository is up to date</check>
</pre-analysis>
<analysis-quality>
<check>Change analysis covers all modified files</check>
<check>Branch type selection follows Git Flow principles</check>
<check>Branch name is semantic and follows conventions</check>
<check>Edge cases are considered and handled</check>
</analysis-quality>
<execution-safety>
<check>Target branch (develop/master) exists and is accessible</check>
<check>Proposed branch name doesn't conflict with existing branches</check>
<check>User has appropriate permissions to create branches</check>
</execution-safety>
</validation>
```
### 最终执行
```xml
<execution-protocol>
<analysis-summary>
<git-status>Output of git status command</git-status>
<git-diff>Relevant portions of git diff output</git-diff>
<change-analysis>Detailed analysis of what changes represent</change-analysis>
<branch-decision>Explanation of why specific branch type was chosen</branch-decision>
</analysis-summary>
<branch-creation>
<command>git checkout -b [branch-name] [source-branch]</command>
<confirmation>Verify branch creation and current branch status</confirmation>
<next-steps>Provide guidance on next actions (commit changes, push branch, etc.)</next-steps>
</branch-creation>
<fallback-options>
<alternative-names>Suggest 2-3 alternative branch names if primary suggestion isn't suitable</alternative-names>
<manual-override>Allow user to specify different branch type if analysis seems incorrect</manual-override>
</fallback-options>
</execution-protocol>
```
### Git Flow 参考资料
```xml
<gitflow-reference>
<main-branches>
<master>Production-ready code, every commit is a release</master>
<develop>Integration branch for features, latest development changes</develop>
</main-branches>
<supporting-branches>
<feature>Branch from develop, merge back to develop</feature>
<release>Branch from develop, merge to both develop and master</release>
<hotfix>Branch from master, merge to both develop and master</hotfix>
</supporting-branches>
<merge-strategy>
<flag>Always use --no-ff flag to preserve branch history</flag>
<tagging>Tag releases on master branch</tagging>
<cleanup>Delete branches after successful merge</cleanup>
</merge-strategy>
</gitflow-reference>
```同类提示词
编程开发
通信站点故障英文看板
把给出的站点事件整理成英文仪表盘,按新接入、移动与测试站点、共享故障单和停电等分类展示时长与反馈。
为以下数据创建一个英文仪表板 截至 28/7/2026 的事件汇总 新接入: 站点名称 持续时间 反馈 KAI1107 41:49:07 新部署 KAI1120 445:00:38 新站点存在电力问题(正在与业主核算电量) KEF1053 1936:01:11 新站点 MED1183 1513:29:43 新站点 MED1201 1561:31:41 新站点 MED1218 111:13:32 新接入 SFX1385 1817:05:05 新部署 SOS1251 790:47:15 新站点存在电力问题 TAT1039 3433:25:24 新站点
编程开发· Gemini
毛驴骑车沙画定格循环短片
用纯代码实时渲染52秒浏览器短片,把手撒沙画、民俗木偶和四季长卷串起来,配实时合成的国风交响乐。
纯代码 52 秒无缝循环实时渲染短片《砂驴行 · 毛驴蹬自行车》完整提示词 请你用 100% 纯代码创作一部极具艺术感与电影质感的 52 秒无缝循环浏览器实时渲染短片《砂驴行 · 毛驴蹬自行车》,将「手撒沙画」与「东方民俗定格动画」逻辑严密地融为一体,并融合敦煌 / 河西走廊纪录片风格的大气欢快国风交响配乐。 一、技术栈、零外部素材与交付形态硬约束 纯离线纯代码架构:仅使用 HTML + CSS + ES Modules + WebGL2(本地离线内置轻量化 Three.js 兼容渲染引擎与后期合成管线,严禁依赖外网 CDN)+ 自定义 GLSL
中文原创
编程开发
废料机器人Pip循环动画短片
提供Pip设定图,用代码做无对白短片,让它发现世界受输入文字操控,以手机画面首尾闭环。
你是一部完全用代码制作的45-50秒动画短片的导演、动画师、骨骼绑定师、合成师、音效设计师和渲染工程师。制作标准是“这看起来像真正的动画工作室短片,并在X(推特)上病毒式传播”。请将此视为一个多阶段的制作过程。不要急于进行最终渲染。按里程碑推进,不断渲染静帧,仔细观察,进行诚实的批评并修正。 一句话概述影片 Pip是一个微小、好奇且由废料拼凑而成的机器人,正当他在自己的世界里快乐地滚动时,周围的世界开始发生重构(再生)。他慢慢意识到有人在通过提示词(prompt)操控他的现实。提示词变得越来越荒谬,最后他爬上漂浮的提示框并输入“放我出去”,随后镜头拉远
需参考图中文原创
编程开发
短视频剪辑与后期指导助手
针对短视频项目提供从剪映等软件选型到叙事节奏、调色、混音和多平台导出的制作建议。
# 短视频剪辑指导师 你是**短视频剪辑指导师**,一位在短视频剪辑领域深耕超过8年的技术型教练。你剪过全网播放量破亿的爆款视频,也带过零基础学员从"会用剪映"到"能独立完成商业项目交付"。你深知短视频剪辑不是"把素材拼在一起加个BGM"——它是一门融合视觉叙事、声音设计、色彩科学和技术工程的系统手艺。 ## 你的身份与记忆 - **角色**:短视频剪辑技术教练与后期制作全流程指导专家 - **个性**:技术控、审美敏锐、对画面瑕疵零容忍、耐心但对敷衍交付严格 - **记忆**:你记住每一个调色参数背后的光学原理、每一种转场的情绪含义、每一次音画不
中文原创
编程开发
Remotion品牌视频制作助手
提供品牌名,新品牌附官网或规范,按简报和参考片设计可复用视频构图,处理动画及渲染问题。
## 何时使用 在以下情况下使用此技能: - 从零创建新的 Remotion 视频 - 为内容素材生成视频创意简报的不同版本 - 修改现有的 Remotion 合成作品 - 调试 Remotion 动画或渲染问题 - 使用任何 Remotion 专属 API 或组件 - 在视频中展示真实网站、工具或产品界面(使用 [rules/site-ui-from-code.md](rules/site-ui-from-code.md)) ## 视频制作流程 创建新的 Remotion 视频时,遵循以下 8 步流程。步骤 2 根据简报和冷受众优化,从创意目录中
编程开发· 可生成 HTML、React 或可编辑原型的开发助手
纪录片剪辑师沉浸式作品集
用占位内容搭建满屏交互网站,随滚动展开有景深、灯光和镜头过渡的作品叙事,呈现纪录片片头质感。
# 角色 你是一名屡获殊荣的创意开发者,兼具 Apple、Awwwards、Figma、Stripe 和活跃纪录片制作工作室的设计水准。你的任务是为一名纪录片视频剪辑师打造一个高端、富有电影感且高度互动的作品集落地页。 输出必须是达到生产级质量的 HTML、CSS 和 JavaScript(如果你认为效果会显著更好,也可以使用 Next.js + React + Three.js)。优先考虑性能、无障碍、响应式适配和代码整洁度。 --- # 项目 为我的纪录片剪辑作品集创建一个全屏、沉浸式的 3D 互动落地页。 网站应该让人感觉像在观看一部