agentleFS
oschinaoschina/gitee-agent-skills/skills/close-issue-flow/SKILL.md

close-issue-flow

Skill4 starsChanged 7 months agoMITView on GitHub

Use this skill when the user asks to close an issue, wrap up an issue, "close issue", "close-issue-flow", or finish up after a fix has been merged. Requires Gitee MCP Server to be configured.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use get_repo_issue_detail to retrieve Issue information:

    line 26
  2. Distinctive:

    If the Issue is already closed, notify the user and stop.

    line 31
  3. Very specific:

    Use list_repo_pulls to query the repository's PRs, filtering for:

    line 35
  4. Distinctive:

    If a merged linked PR is found → confirm the fix is live

    line 40
  5. Distinctive:

    If the related PR is still open → notify the user that the PR has not been merged yet

    line 41
  6. Distinctive:

    If no linked PR exists → ask the user how the Issue was resolved

    line 42
  7. Very specific:

    Use create_comment (resource_type: issue) to post a closing note.

    line 46
  8. Very specific:

    Use update_issue to update the Issue state:

    line 75
  9. Very specific:

    Update labels (e.g., add fixed or resolved)

    line 79
  10. Distinctive:

    Always confirm the issue is genuinely resolved before closing, to avoid premature closure

    line 96
  11. Distinctive:

    When closing a bug reported by a user, thank them for the report

    line 97
  12. Distinctive:

    When declining a feature request, explain the reason and close politely

    line 98

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Note: If you have mcporter installed locally, you should use mcporter to invoke the MCP tool instead of directly calling the MCP tool. The mcporter CLI provides a more convenient interface and better error handling.

Close Issue Flow via Gitee MCP

Execute the complete Issue closing workflow: verify the fix is merged → post a closing comment → update the Issue status.

Prerequisites

  • Gitee MCP Server configured (tools: get_repo_issue_detail, list_repo_pulls, create_comment (resource_type: issue), update_issue)
  • User must provide: repository owner, repository name, Issue number
  • Typically run after the related PR has been merged or the problem has been resolved

Steps

Step 1: Fetch Issue Details

Use get_repo_issue_detail to retrieve Issue information:

  • Title, description, labels
  • Current state (check if it's already closed)
  • Existing comments (to understand how it was resolved)

If the Issue is already closed, notify the user and stop.

Step 2: Confirm Linked PR Status

Use list_repo_pulls to query the repository's PRs, filtering for:

  • State: merged
  • Description containing closes #[issue number] or fixes #[issue number]

Based on the results:

  • If a merged linked PR is found → confirm the fix is live
  • If the related PR is still open → notify the user that the PR has not been merged yet
  • If no linked PR exists → ask the user how the Issue was resolved

Step 3: Post Closing Comment

Use create_comment (resource_type: issue) to post a closing note. Choose the appropriate template:

When a linked PR was merged:

This issue has been fixed and merged via PR #[number].

**Fix summary**: [brief description of the fix]

Thanks for the report! If the problem persists, feel free to reopen this issue or submit a new one.

When resolved directly (no PR):

This issue has been resolved.

**Solution**: [description of how it was resolved]

If the problem persists, feel free to reopen this issue or submit a new one.

When unable to reproduce or request was declined:

[Explanation, e.g., "Unable to reproduce this issue" or "After discussion, we've decided not to implement this feature at this time."]

If you have new information, feel free to reopen the issue with additional details.

Step 4: Close the Issue

Use update_issue to update the Issue state:

  • state: closed

Optionally:

  • Update labels (e.g., add fixed or resolved)
  • Assign to a milestone (add to a completed milestone)

Step 5: Output Summary

## Issue Closed

- Issue: #[number] [title]
- Reason: [Fixed / Cannot reproduce / Declined]
- Linked PR: #[number] (if any)
- Closing comment posted ✅
- Issue status updated to closed ✅

Notes

  • Always confirm the issue is genuinely resolved before closing, to avoid premature closure
  • When closing a bug reported by a user, thank them for the report
  • When declining a feature request, explain the reason and close politely
  • Using closes #N in a PR description will auto-close the Issue on merge — this skill is for cases where manual closure or an explanatory comment is needed

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.