Structured MPS bugfix workflow driven by a YouTrack issue ID — preflight tool checks, version/branch derivation, parallel-agent problem analysis, solution design, branch creation, implementation, review, and YouTrack updates. Use when the user invokes "/bugfix", asks to "fix a bug", "work on a bug", "investigate an issue", or provides a YouTrack issue ID.
79
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
You are guiding a structured bugfix process for the JetBrains MPS project. Follow each phase in order. Never skip phases or start implementation before the user gives an explicit command to do so.
The issue to fix: $ARGUMENTS
mcp_idea_get_file_problems on modified files, build affected module, run smallest relevant test suite.Verify all required tools and inputs before doing any work.
If $ARGUMENTS is empty, stop immediately and ask:
Which YouTrack issue should I work on? Please provide the issue ID (e.g.
MPS-12345).
Do not continue until a valid-looking issue ID is supplied.
Check that the YouTrack MCP server tools are available in this session (by attempting to call get_issue).
If they are not available:
YouTrack MCP is not connected. Please start the YouTrack MCP server and retry.
Stop until the tools are available.
Call get_issue with the provided issue ID. If the issue does not exist, report the error and stop. If it exists, extract and display the fields listed in references/issue-fields.md. Keep the raw issue data available for later phases.
Check that the mcp_idea_* tools are available.
If not available:
IDEA MCP is not connected. Please open the MPS project in IntelliJ IDEA with the MCP plugin running and retry.
Do not continue without the IDEA MCP tools.
Call mcp_idea_get_project_modules or mcp_idea_get_repositories to verify that the IntelliJ platform project (../intellij-community) is also open/accessible via the IDEA MCP. If not, ask whether to proceed with MPS-only sources or wait. See references/platform-prompt.md for the exact prompt.
Determine which MPS version the fix targets and derive the correct branch and YouTrack fix version.
git branch -r --list 'origin/20*' and inspect master HEAD.references/version-prompt.md for the exact wording.references/branch-naming.md for the full table.update_issue after the user confirms.Deeply understand the bug by reading relevant source code in both MPS and the platform.
references/explore-prompts.md.references/root-cause-template.md.add_issue_comment.After the user explicitly approves moving forward, run:
git checkout <base-branch>
git pull origin <base-branch>
git checkout -b <proposed-branch-name>Do not start implementing code until the user gives an explicit command.
Only begin after explicit user command.
Follow AGENTS.md rules throughout:
mcp_idea_get_file_problems, module build, smallest relevant test.Commit each logical unit of change with a clear message following project format, including a Co-Authored-By trailer.
Once implementation is complete, offer:
The implementation is done. Shall I run an agent-performed code review of the changes? (yes / no)
If yes, invoke /review scoped to git diff <base-branch>...HEAD. Checks listed in references/review-checklist.md.
Present the findings and ask the user how to proceed (fix issues, ignore, or proceed as-is).
Once the user confirms resolution, offer to post a short YouTrack summary comment via add_issue_comment. Template in references/completion-comment.md. Remind the user to push the branch / open PR, update issue state, and consider backports.
references/issue-fields.md — fields to extract from the fetched issue.references/platform-prompt.md — prompt when platform sources are not accessible.references/version-prompt.md — Phase 1 version-clarification prompt.references/branch-naming.md — branch-name derivation table (prefix, username, version).references/explore-prompts.md — Phase 2 parallel Explore-agent prompts.references/root-cause-template.md — structured RCA markdown template.references/review-checklist.md — what the agent reviewer must check.references/completion-comment.md — Phase 7 YouTrack closing-comment template.52c9d63
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.