drupal-mr
БесплатноБез исполняемых скриптовНе проверенCreate or list merge requests for drupal.org projects via git.drupalcode.org. Invoke when user wants to create a merge request for a drupal.org issue, says…
от kanopi★ 18 звёзд на GitHubОб этом скилле
Drupal MR
Create and manage merge requests for drupal.org projects via git.drupalcode.org.
⚠️ Side Effect Warning
This skill has external side effects:
- Clones the project repository to
~/.cache/drupal-contrib/{project}/ - Pushes branches to git.drupalcode.org issue forks (public)
One manual interaction required — Issue fork creation must be done via the drupal.org web UI (CAPTCHA-protected).
Usage
- "Create a merge request for paragraphs issue 3456789"
- "Set up an MR for issue #3456789 in the webform module"
/drupal-mr {project} {issue_number}— Create MR/drupal-mr list [{project}]— List MRs
Prerequisites
SSH key added to git.drupalcode.org:
- Go to: https://git.drupalcode.org/-/user_settings/ssh_keys
- Add your public key (
~/.ssh/id_ed25519.pub) - Verify:
ssh -T [email protected]
HTTPS fallback (if SSH port 22 is blocked):
- Create token at: https://git.drupalcode.org/-/user_settings/personal_access_tokens
- Scopes needed:
read_repository,write_repository
Environment Detection
Tier 1 — Portable (Claude Desktop, Codex, any environment)
When Task() is unavailable:
- Check SSH connectivity — Instruct user to verify:
ssh -T [email protected] - Clone repository — Provide command:
git clone [email protected]:project/{project}.git ~/.cache/drupal-contrib/{project} cd ~/.cache/drupal-contrib/{project} - Open issue page — URL:
https://www.drupal.org/project/{project}/issues/{issue_number} - ⛔ STOP: User clicks "Create issue fork" in the right sidebar, then replies "done"
- Set up remote and branch:
git remote add {project}-{issue_number} [email protected]:issue/{project}-{issue_number}.git git fetch {project}-{issue_number} git checkout -b {issue_number}-{description-slug} - Guide code changes — User makes their changes in the cloned repo
- Push and create MR:
git add . git commit -m "Issue #{issue_number}: {description}" git push {project}-{issue_number} {branch_name} # Git outputs MR creation URL — open in browser to complete
Tier 2 — Claude Code Enhanced
When running in Claude Code with Task() and git/ssh available:
Task(cms-cultivator:drupalorg-mr-specialist:drupalorg-mr-specialist,
prompt="Execute the drupal-mr command with arguments: {arguments}. Check prerequisites (SSH key), clone project to ~/.cache/drupal-contrib/ if needed, guide user through manual issue fork creation, set up branch, push changes, and provide MR creation URL. Return MR URL and next steps.")
The agent handles git operations automatically, pausing for the one required manual step (issue fork creation).
Branch Naming Convention
{issue_number}-{description-slug}
Examples:
3456789-fix-validation-error
3456789-add-ckeditor5-support
Clone Location
All drupal.org projects clone to ~/.cache/drupal-contrib/:
~/.cache/drupal-contrib/
├── paragraphs/
├── webform/
└── easy_lqp/
This location persists across sessions and avoids conflicts with your main projects.
Resuming Work on Existing MR
cd ~/.cache/drupal-contrib/{project}
git fetch --all
git checkout {branch_name}
# Make changes
git add . && git commit -m "Issue #{issue}: additional fixes"
git push {project}-{issue_number} {branch_name}
# MR updates automatically
MR Success Output
**Merge Request Ready**
**Project**: paragraphs
**Issue**: #3456789
**Branch**: 3456789-fix-validation-error
**Local repo**: ~/.cache/drupal-contrib/paragraphs/
**Next Steps**:
1. Complete MR creation via the URL in git push output
2. Update drupal.org issue status to "Needs review"
3. Respond to review feedback
Related Skills
- drupal-issue — Create issue before MR
- drupal-contribute — Full workflow (issue + MR)
- drupal-cleanup — Manage cloned repos
- drupalorg-contribution-helper — Git workflow guidance
Установить drupal-mr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл drupal-mr?
Create or list merge requests for drupal.org projects via git.drupalcode.org. Invoke when user wants to create a merge request for a drupal.org issue, says "create a drupal.org MR", "set up a merge request for issue", or uses /drupal-mr. Has side effects: clones repos to ~/.cache/drupal-contrib/ and pushes to git.drupalcode.org. Requires one manual step (issue fork creation via web UI).
Как установить скилл drupal-mr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл drupal-mr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic