No slash command · from drupal-ai-contrib
Manages the Drupal issue lifecycle: reviews prior work, creates/comments/claims issues, and checks out issue forks with three-way fork handling.
Ships in drupal-ai-contrib. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Works the Drupal issue lifecycle so the contribution is meaningful, not duplicate.
Backs /drupal-ai-contrib:issue. Load the knowledge layer via dev-guides-navigator:
drupal/contributing/drupal-issue-lifecycle,
drupal/contributing/issue-forks-merge-requests,
drupal/contributing/contribution-etiquette-rtbc-credit,
drupal/contributing-with-ai/issue-creation.
For an existing issue, review what has already happened:
A contribution that re-does existing work wastes maintainer review time. This review is mandatory; it is not optional context-gathering.
drupal.org classic queue vs. GitLab — detect by following the project's Issues link.
The status taxonomy differs (classic statuses vs. GitLab state::* scoped labels);
handle dual-mode per the issue-lifecycle dev-guide.
drupalorg-cli has no issue:create command. A new
issue is filed through the web UI: the project's Drupal.org issue queue, or its
GitLab issues page if the project has migrated. Draft the issue for the
contributor — title, summary, steps to reproduce, proposed resolution, the component,
and the affected version — then guide them to file it in the web UI and resume with
the new issue ID. Cite drupal/contributing-with-ai/issue-creation. Do not attempt a
CLI creation command.When claiming an issue, handle the issue-fork state in three ways — never clobber existing work:
| State | Action |
|---|---|
| Your existing fork | Check out your fork's issue branch and continue. |
| Someone else's fork/branch | Surface it. Do not clobber. Coordinate via an issue comment before proceeding — their work may be ahead of yours. |
| No fork yet | Provision the fork first via /do:fork (issue comment) or the Drupal.org management page — a fork is never created by pushing or via the API (a push to a non-existent fork 404s). Then add the remote and branch. |
On a migrated (GitLab) project, delegate fork provisioning, remote setup, and push
to the drupal-gitlab skill (its references/merge-requests.md) — it owns the
/do:fork / /do:access flow and the two-host rule: SSH push → git.drupal.org;
HTTPS / glab → git.drupalcode.org (the CDN has no SSH listener). On a legacy-queue
project glab cannot see the issue — use drupalorg / the web UI. Branch naming must
include the issue number (per the issue-forks dev-guide). Target the most recent
development branch (main for core; per-project for contrib).
Prior-work review and issue/MR reads (issue:show, issue:search, mr:list) use
mglaman/drupalorg-cli — the executable on PATH is drupalorg (not drupalorg-cli,
which is only the package name); detect it with command -v drupalorg. These are no-auth
public reads and work on both the legacy queue and migrated projects. Authenticated
GitLab writes — fork provisioning, branch setup, and push — are delegated to the
drupal-gitlab skill (§4). See
${CLAUDE_PLUGIN_ROOT}/skills/drupal-ai-contrib/references/drupalorg-cli.md for the tool,
install, authentication, and the hybrid split (its §Hybrid model). Confirm exact
subcommand names with drupalorg list — names can drift between releases; do not assume.
Pushing needs credentials. Reviewing and reading an issue work over public APIs,
but creating the issue-fork branch and git pushing it need an SSH key registered
on the contributor's drupal.org account (issue-fork remotes are SSH URLs). If a push
is rejected, that missing/unregistered key is the first thing to check — surface it and
point at setup §5 and the reference's Authentication section; never fabricate fork or
push state.
Use fixed subcommands — never build a subcommand name from user input. Before
passing any identifier, validate it: issue IDs must match ^[0-9]+$, project
machine-names must match ^[a-z][a-z0-9_]*$ — and reject anything that does not
match rather than shelling out with it. Never interpolate unsanitized input into a
shell command. Credentials are the contributor's own — never store or transmit them.
Summarize: the issue, its system + status, the prior-work finding, the fork/branch
state and what was done. Point the contributor at the development phase, then verify.
Trigger: /drupal-ai-contrib:issue 3456789
Actions:
Trigger: /drupal-ai-contrib:issue 3456789
Actions:
/do:fork, then (via drupal-gitlab) add the
fork remote and create the issue-number branch.
Result: A clean issue branch checked out, ready for development.| Situation | Handling |
|---|---|
| Issue ID is non-numeric / malformed | Reject before calling drupalorg; ask for a valid ID. |
drupalorg not installed | Surface the install steps from references/drupalorg-cli.md; do not fabricate fork state. |
| User asks to "create an issue" | There is no issue:create — draft the issue and guide the contributor to file it in the web UI (Drupal.org queue or GitLab); resume with the new issue ID. |
git push to the issue fork is rejected | The drupal.org SSH key is likely missing or unregistered — point at setup §5 and references/drupalorg-cli.md §Authentication; do not fabricate push state. |
| Project uses GitLab, not the classic queue | Use the state::* scoped-label taxonomy per the issue-lifecycle dev-guide. |
| Prior work fully resolves the issue | Surface it — the contribution may be unnecessary; let the contributor decide. |
What SKILL.md sets; muted values are Claude Code's defaults
inheritThree short reads, in order
npx claudepluginhub camoa/claude-skills --plugin drupal-ai-contrib8 skills in this plugin
/contribution-guardrailsEnforces the development discipline for AI-assisted Drupal contributions — evidence over assertion, the no-guessing rule for external facts, the verification-gate artifact contracts, and re-verification on post-gate change. Use PROACTIVELY during any development between claiming an issue and verifying it. Use when user says 'guardrails', 'evidence over assertion', 'no guessing', 'verify this fact', 'is this actually tested', or whenever AI-assisted code is being written for a Drupal contribution. MUST apply before claiming any gate passed./contribution-pipelineFetches the real GitLab merge-request pipeline for a Drupal contribution and gates on it — the authoritative final check. Use when the user runs /drupal-ai-contrib:pipeline or asks to check the real pipeline, the CI status, or whether a Drupal contribution is done. A contribution is not complete until the real drupalci pipeline is green./contribution-reviewRuns honest fresh-context review of a Drupal contribution — dispatches isolated reviewer agents with no session narrative to check the work against scope, coding standards, security, and the AI policy. Use when the user runs /drupal-ai-contrib:review or asks for an honest review, a fresh-eyes review, or a pre-submission review of a Drupal contribution. A builder cannot objectively review its own work.Other plugins' skills for the same job