{"data":{"slug":"discovered-fbeecf153831dd2d046dcd2618865c5bdeadebda4e40aa7a","title":"Claim Step in GitLab Work Item","summary":"Claim a specific step in a GitLab work item's status table, assign it to the operator, and optionally link a merge request (MR). The step's status is set to `~\"workflow::in dev\"` and the assignee is updated to the operator's handle.","url":"https:\/\/skillshunter.net\/skills\/discovered-fbeecf153831dd2d046dcd2618865c5bdeadebda4e40aa7a","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-fbeecf153831dd2d046dcd2618865c5bdeadebda4e40aa7a","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-fbeecf153831dd2d046dcd2618865c5bdeadebda4e40aa7a.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-fbeecf153831dd2d046dcd2618865c5bdeadebda4e40aa7a\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"The script requires a valid GitLab work item URL and step number. Ensure the operator has permission to edit the work item and that the step is not already assigned to another user. The `link-mr` command requires the MR IID to be provided.","instructions":"---\nname: claim-step\ndescription: >\n  Claim a plan step in the status table of a GitLab work item, and link its\n  MR once it exists. Refuses only a step another user is assigned to, then sets the Assignee\n  cell to the operator's handle and the Status cell to\n  `~\"workflow::in dev\"`; later sets the MR cell. Use for \"claim step 2\",\n  \"put me on step 4 of <work item url>\", or \"link the MR to the table\".\n  `\/run-step` calls it, so run it alone only to claim without implementing.\nargument-hint: \"<work item url> <step> | link-mr <work item url> <step> <mr iid>\"\ndisable-model-invocation: true\n---\n\n# Claim a step\n\nRun `scripts\/claim-step.py` (stdlib Python, shells out to `glab api`). The\nwork item URL looks like\n`https:\/\/gitlab.com\/<project>\/-\/work_items\/<iid>`; ask for it when\n`$ARGUMENTS` has none.\n\n| Need | Command |\n| --- | --- |\n| Show the rows | `claim-step.py show <url> [<step>]` |\n| Check without writing | `claim-step.py claim <url> <step> --dry-run` |\n| Claim | `claim-step.py claim <url> <step>` |\n| Set the MR cell | `claim-step.py link-mr <url> <step> <mr iid>` |\n\nEach prints one JSON object; read `status`:\n\n- `ok`, `already_yours` (a no-op), `dry_run`: done.\n- `not_unclaimed`: another user is the step's assignee. Report `row` and\n  stop. An empty Assignee is claimed whatever the Status says. Don't claim a different step unasked.\n- `not_yours`, `mr_already_set`: `link-mr` refuses a row that isn't the\n  operator's or already names another MR. Report it.\n- `no_table`, `no_step`, `bad_url`, `error`: report `message`.\n- `verify_failed`: the row read back differently from what was written.\n  Report both rows and stop; someone edited the table at the same moment.\n\nThe write replaces the whole description, read just before it, so edits to\nother rows survive unless they land in that moment.\n\n## Rules\n\n- `claim` and `link-mr` write to GitLab. Run them only when the operator\n  asked for that write in the current turn, or answered a question that named\n  it. `show` and `--dry-run` write nothing.\n- The columns are found by header name: `#`, `MR`, `Status`, `Assignee`.\n  Other columns and their order don't matter, and only the target cell\n  changes.\n- Claiming is not reversible from here. Clear a claim by hand in the table.\n","use_cases":["Claim a specific step in a GitLab work item for development","Link a merge request to a step in a GitLab work item","Show the current status table of a GitLab work item"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/gitlab.com\/radbatnag\/claude-skills\/-\/blob\/05b55872e4e98b79bc052be748b3abd6dccbabe6\/skills\/claim-step\/SKILL.md","source_commit":"05b55872e4e98b79bc052be748b3abd6dccbabe6","license":null,"version":null,"listing_approved_at":"2026-11-28","created_at":"2026-11-28T07:59:59.000000Z","updated_at":"2026-11-28T18:37:52.000000Z","seo_title":"Claim a Step in GitLab Work Item","seo_description":"Automatically claim a step in a GitLab work item and link a merge request. Assign the step to the operator and update the status to 'in dev'.","seo_keywords":["GitLab work item","claim step","assign step","link merge request","workflow status table"]}}