OpenParable
Skip to content
← Back to skills

Refine Title

Productivity
refine-title

Refine Title is an Agent Skill for productivity published in the ModelEngine-Group/fit-framework repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

深度分析 Issue 或 PR 内容并重构标题为 Conventional Commits 格式。当用户要求优化标题、重命名 issue/PR 标题、规范化标题格式时触发。参数为 issue 或 PR 编号。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ModelEngine-Group/fit-framework/blob/HEAD/.agents/skills/refine-title/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/refine-title, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

重构标题

针对 GitHub Issue 或 PR,读取其详细描述、标签和代码变更,深度理解其意图,生成符合 type(scope): subject 规范的新标题。

执行步骤

  1. 识别对象与获取信息: 先尝试 Issue,失败则尝试 PR:

    gh issue view <id> --json number,title,body,labels,state
    gh pr view <id> --json number,title,body,labels,state,files
    
  2. 智能分析:

    • 确定 Type: 阅读 body、检查 labels、分析 files
    • 确定 Scope: 分析涉及的模块(fit/waterflow/fel)
    • 生成 Subject: 从 body 中提炼核心意图,20字以内中文
  3. 生成建议与交互,询问用户确认。

  4. 执行修改:

    gh issue edit <id> --title "<new-title>"
    # 或
    gh pr edit <id> --title "<new-title>"
    

注意: 必须先分析内容,不要直接使用原标题。确保用户确认后再执行修改。