.agents/commands/comet/work-on-github-issue.md
Command: cursor work-on-github-issue
Fetch a GitHub issue by link, build full context (title, description, comments, labels, assignees, milestone), and generate an actionable implementation plan.
This workflow will:
main.https://github.com/comet-ml/opik/issues/1234"This command needs GitHub MCP configured. Set MCP config/env, run
make cursor(Cursor) ormake claude(Claude CLI), then retry."
Stop here.
main, propose a new branch following Opik naming convention:
{USERNAME}/issue-{ISSUE-NUMBER}-{ISSUE-SUMMARY}
https://github.com/comet-ml/opik/issues/1234andrescrz/issue-1234-add-cursor-git-workflow-ruleis:open assignee:@me (max 10).#1234 — Title (State) and stop if issue not found.[author @ date] summary with important snippets..agents/rules/* (git workflow, security, code style, routing).agents/skills/opik-backend/*.agents/skills/opik-frontend/*.agents/skills/python-sdk/* and .agents/skills/typescript-sdk/*git stash push -m "WIP: before issue-{ISSUE-NUMBER}"main, create branch following Opik conventions:
# Ensure you're on main and pull latest
git checkout main
git pull origin main
# Create task-specific branch
git checkout -b {USERNAME}/issue-{ISSUE-NUMBER}-{ISSUE-SUMMARY}
git stash popBased on GitHub context and Opik agent guidance, suggest implementing the feature/bugfix:
.agents/rules/* and domain guidance in .agents/skills/*Commit Message Format: Follow shared conventions from .agents/rules/git-workflow.mdc.
First Commit (PR-title source, required):
[<TICKET-KEY>] [BE/FE/SDK/DOCS] <type>: <description>
where <TICKET-KEY> is OPIK-####, issue-####, or NA.
Follow-up Commits (preferred):
<type>(<scope>): <description>
where <type> is one of: feat, fix, refactor, test, docs, chore.
Last-resort fallback (discouraged):
Revision N: <description>
Component Types:
[BE] - Backend changes (Java, API endpoints, services)[FE] - Frontend changes (React, TypeScript, UI components)[SDK] - SDK changes (Python, TypeScript SDKs)[DOCS] - Documentation updates, README changes, comments, swagger/OpenAPI documentationExamples:
[OPIK-1234] [BE] feat: add create trace endpoint
[issue-1234] [FE] fix: guard project custom metrics empty state
[OPIK-1234] [DOCS] docs: update API documentation
[NA] [SDK] chore: align SDK lint configuration
feat(experiments): add run-level metadata capture
The command is successful when:
make cursor (Cursor) or make claude (Claude CLI)End Command