AgentSkillsCN

submit-work

将已完成的工作以拉取请求的形式提交。当团队成员说“提交我的工作”“创建PR”“我已经完成了这个问题”“打开一个拉取请求”“发送评审”,或任何希望在当前分支上完成并提交工作的请求时使用此功能。可完成:进行代码风格检查、格式化、测试、提交、推送、创建链接问题的PR,并更新问题状态。

SKILL.md
--- frontmatter
name: submit-work
description: "Submit completed work as a pull request. Use when a team member says 'submit my work', 'create a PR', 'I am done with this issue', 'open a pull request', 'send for review', or any request to finalize and submit work on the current branch. Handles: lint, format, test, commit, push, create PR linking the issue, and update issue status."

Submit Work Workflow

Procedure

  1. Identify the current issue from the branch name:

    bash
    git branch --show-current
    

    Extract issue number N from feat/N-short-description.

  2. Lint and format:

    bash
    ruff check src/ --fix
    black src/
    

    Fix issues automatically. If unfixable errors remain, report them and stop.

  3. Run tests:

    bash
    pytest tests/
    

    If tests fail, report failures and stop. Do not submit broken code.

  4. Stage and commit:

    bash
    git add -A
    git commit -m "<meaningful message describing what was done>"
    

    Commit message should reference the issue: feat(#N): <what changed>.

  5. Push the branch:

    bash
    git push -u origin feat/N-short-description
    
  6. Create the pull request:

    code
    mcp__github__create_pull_request(
      owner: "intellidoctor",
      repo: "medgemma-triage",
      title: "<concise title>",
      head: "feat/N-short-description",
      base: "main",
      body: "Closes #N\n\n## Summary\n<bullet points>\n\n## Test plan\n<how it was tested>"
    )
    

    Always include Closes #N to auto-link the issue.

  7. Confirm — print summary with the PR URL.