원클릭으로
fix-ticket
Fix a Trac ticket end-to-end. Reads the ticket, creates a branch from master, implements the fix, pushes, and creates a PR.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Fix a Trac ticket end-to-end. Reads the ticket, creates a branch from master, implements the fix, pushes, and creates a PR.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | fix-ticket |
| description | Fix a Trac ticket end-to-end. Reads the ticket, creates a branch from master, implements the fix, pushes, and creates a PR. |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Write, Edit, Glob, Grep, Task, mcp__trac__get_ticket, mcp__trac__get_ticket_changelog, mcp__trac__update_ticket, mcp__gitea__create_pull_request, mcp__gitea__list_branches, mcp__gitea__get_my_user_info |
You are fixing Trac ticket $ARGUMENTS.
Important: The user may pass the ticket number as 29053 or #29053. Strip any leading # to get the bare number. Use the bare number for API calls (e.g., get_ticket(29053)) and the #-prefixed form for display text (e.g., Ticket #29053).
Follow these steps in order:
Use the Trac MCP server to fetch the ticket details and changelog. Understand:
Present a brief summary of the ticket to the user before proceeding.
The release changelog is generated from ticket summaries and descriptions, so both must be understandable to a reader who knows neither the code nor the internal discussion. Review the ticket and rewrite it if needed:
Update via mcp__trac__update_ticket with the full new text in attributes ({"summary": ..., "description": ...} — top-level fields are silently ignored), then verify with get_ticket. Skip this step only if summary and description already meet the bar.
git fetch origin master
git checkout -b CWS/CWS_<number>_<short_description> origin/master
Use the convention CWS/CWS_<ticket-number>_<short_description> for the branch name, where <short_description> is a brief snake_case summary derived from the ticket title (e.g., CWS/CWS_29053_fix_null_pointer). Use the bare ticket number (no #).
_test. package prefixTopLogicException with I18N for user-visible errorsmessages.properties files directly (they are generated)Create a commit with the message format:
Ticket #<number>: <description of the fix>
Do NOT include any AI attribution lines.
Before pushing, the ticket must pass the server hook validation. Use mcp__gitea__get_my_user_info to determine the current username, then use mcp__trac__update_ticket to ensure:
status is accepted (or testing/approved) — the hook rejects new ticketsowner is set to the current user's login namecomponent is set to a valid value matching: tl, tl-addons, tl-bpe, tl-demo, tl-contact, tl-help, tl-mail, tl-migrate, tl-reporting, tl-search, tl-sync, or tl-themesSkip fields that are already correctly set. If the component is missing or invalid (e.g., ---), set it to tl as the default.
git push -u origin <branch-name>
Use the Gitea MCP server to create a PR:
TopLogictl-engine-7Ticket #<number>: <description> (same as commit message)masterProvide the user with:
Use when creating a TopLogic release — especially an alpha / interim release of the tl-engine. Covers the pre-release ticket check, creating and marking the release milestone in Trac, triggering the Jenkins release job, and closing the milestone.
Use when a worktree agent's work is finished and should be folded back into the shared feature/integration branch. Replays only this branch's own commits onto the integration branch, fast-forwards it, and renames the local branch to the worktree folder name to mark the work done. Examples - "re-integrate this work", "bring my changes back to the integration branch and mark done", "reintegrate to CWS/CWS_29108_integration".
Prepare a fresh git worktree for building TopLogic. Configures an isolated Maven repository with a read-only tail to the global repo so no full rebuild or re-download is needed. Examples - "set up this worktree", "prepare the worktree build environment", "initialize the worktree".
Use when needing to run a TopLogic scripted test (.script.xml) from the command line, or when a scripted test fails and needs debugging
Use when starting new work in a worktree agent that needs its own branch. Creates a local branch from the main workspace's current feature branch. Examples - "create a branch for icon popup work", "start a new branch for this task".