Create a Custom Role for One Job with Members and AI
A new role with exactly the capabilities the job needs, checked before and after, and given to nobody until you choose.
Prerequisites
A site connected to WPVibe running Members 3.3 or newer (tested on 3.3.1, free) on WordPress 6.9 or newer, with an administrator account. Read-only mode turned off in Members > Settings > AI (MCP), since this recipe makes a change.
My WordPress site uses the Members plugin. Create a new role called [role name] for [who it is for and what they should be able to do, for example a writer who drafts posts and uploads images but can't publish]. Don't give it to anyone yet. 1. Run discover_abilities with category members. If the abilities this needs are not there, stop and tell me to install or update the free Members plugin (3.3 or newer, on WordPress 6.9 or newer). If only some are missing, tell me they may be switched off in Members > Settings > AI (MCP). 2. Run members/list-roles. If a role with that name already exists, tell me and stop. Run members/get-role on the existing role closest to the job, and members/list-capabilities with the groups that matter (for example type-post, type-page or type-product; run it with no group to see every group name, and capabilities other plugins added are often under custom) to find the exact capability names. 3. Show me the plan: each capability the role will grant and what it allows in plain words, and any it will deny. Always grant read, or the person can't open the dashboard. Deny only capabilities they must not get even if they are later given a second role: when Members' explicit deny setting is on (it is by default), a deny on any of a user's roles wins. Never grant any of these unless I named them myself: manage_options, install_plugins, activate_plugins, update_plugins, delete_plugins, edit_plugins, install_themes, switch_themes, edit_themes, delete_themes, update_themes, edit_theme_options, edit_files, update_core, unfiltered_html, list_users, create_users, edit_users, delete_users, remove_users, promote_users, list_roles, create_roles, edit_roles, delete_roles, restrict_content, manage_woocommerce, import, export. Wait for my yes. 4. On my yes, run members/create-role with name, grant and deny. Don't use members/clone-role: it copies every capability of the source role, including ones other plugins added. If it fails with members_read_only, stop and tell me to turn off Read-only mode in Members > Settings > AI (MCP), then ask you again. 5. Run members/get-role with role ROLE_SLUG (the slug create-role returned) and show me what it grants and denies, so I can check nothing else slipped in. 6. Tell me how to give it to someone: in Users, edit the person and pick the role. If Members' multiple roles setting is on (it is by default), the roles are checkboxes: untick their old role too, or they keep everything it grants. Don't assign it yourself. Give me the sentence to undo it: Delete the ROLE_SLUG role with members/delete-role (Members asks to confirm, and WPVibe shows its approval page). Remind me I can turn Read-only mode back on in Members > Settings > AI (MCP).
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Create a Custom Role for One Job with Members and AI” recipe from the WPVibe cookbook on my connected site.
You are adding a writer, a shop assistant or a client, and none of WordPress’s roles fits: Author can publish, Editor can change everyone’s posts, Administrator can change everything. Building a role by hand means picking from a long list of capability names.
The AI starts from the closest existing role, looks up the exact capabilities through Members, and shows you each one it will grant or deny in plain words. Powerful ones, like installing plugins or editing users, stay out unless you name them. After your yes it creates the role, reads it back so you can check it, and leaves giving it to someone to you.
Turn off Read-only mode in Members > Settings > AI (MCP) first, and back on when you are done. The new role has no users, so nothing changes for anyone until you give it to someone on the Users screen. Untick their old role when you do, or they keep everything it grants. To change an existing role, use this recipe; without Members, this one sets up a limited account for a contractor.
Outcome
A new role with only the capabilities you approved, ready to give to someone on the Users screen.