agentleFS
Agentic-AssetsAgentic-Assets/apple-mail-mcp/.agents/skills/cowork-plugin-customizer/SKILL.md

cowork-plugin-customizer

Skill0 starsChanged 4 months agoMITView on GitHub

Customize an already-installed Claude Code plugin for a specific organization's tools and workflows, by filling in its `~~`-prefixed placeholders or tweaking its connectors and skills. Requires the Cowork desktop app: it operates on plugins mounted at mnt/.local-plugins or mnt/.plugins, and cannot run in a remote container or an ordinary repo checkout. Use when a user in Cowork asks to customize, set up, tailor, or configure an installed plugin for their org. Do NOT use it for ordinary source work on a plugin in a git checkout — editing this repo's own `plugin/` tree is normal development, not Cowork customization, and this skill's ad-hoc `zip` packaging step conflicts with the enforced build-artifacts byte-parity gate.

2 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 6 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After locating the plugin, check for ~~-prefixed placeholders: grep -rn '~~\w' /path/to/plugin --include='*.md' --include='*.json'

    line 22
  2. Distinctive:

    Use their response (if any) as additional context throughout the remaining phases.

    line 47
  3. Very specific:

    Use company-internal knowledge MCPs to collect information relevant to the customization scope.

    line 51
  4. Distinctive:

    For scoped customization: Only include items related to the specific section the user asked about.

    line 72
  5. Very specific:

    For generic plugin setup: Run grep -rn '~~\w' /path/to/plugin --include='*.md' --include='*.json' to find all placeholder customization …

    line 73
  6. Distinctive:

    For general customization: Read the plugin files, understand the current config, and based on the user's request, identify what needs to …

    line 74
  7. Distinctive:

    Use user-friendly descriptions that focus on the plugin's purpose:

    line 76
  8. Very specific:

    If user doesn't know or skips, leave the value unchanged (or the ~~-prefixed placeholder, for generic setup).

    line 96
  9. Very specific:

    After customization items have been resolved, connect MCPs for any tools that were identified or changed.

    line 100
  10. Very specific:

    Search the registry: search_mcp_registry(keywords=[...]) using category keywords from references/mcp-servers.md, or search for the specific …

    line 104
  11. Very specific:

    If unconnected: suggest_connectors(directoryUuids=["chosen-uuid"]) — user completes auth

    line 105
  12. Very specific:

    Update the plugin's MCP config file (check plugin.json for custom location, otherwise .mcp.json at root)

    line 106
  13. Very specific:

    After all customizations are applied, package the plugin as a .plugin file for the user:

    line 112
  14. Distinctive:

    After customization, present the user with a summary of what was learned grouped by source.

    line 126
  15. Distinctive:

    If no knowledge MCPs were available in Phase 1, and the user had to answer at least one question manually, include a note at the end:

    line 145

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cowork Plugin Customization

Customize a plugin for a specific organization — either by setting up a generic plugin template for the first time, or by tweaking and refining an already-configured plugin.

Finding the plugin: To find the plugin's source files, run find mnt/.local-plugins mnt/.plugins -type d -name "*<plugin-name>*" to locate the plugin directory, then read its files to understand its structure before making changes. If you cannot find the plugin directory, the user is likely running this conversation in a remote container. Abort and let them know: "Customizing plugins is currently only available in the desktop app's Cowork mode."

Determining the Customization Mode

After locating the plugin, check for ~~-prefixed placeholders: grep -rn '~~\w' /path/to/plugin --include='*.md' --include='*.json'

Default rule: If ~~ placeholders exist, default to Generic plugin setup unless the user explicitly asks to customize a specific part of the plugin.

1. Generic plugin setup — The plugin contains ~~-prefixed placeholders. These are customization points in a template that need to be replaced with real values (e.g., ~~Jira → Asana, ~~your-team-channel → #engineering).

2. Scoped customization — No ~~ placeholders exist, and the user asked to customize a specific part of the plugin (e.g., "customize the connectors", "update the standup skill", "change the ticket tool"). Read the plugin files to find the relevant section(s) and focus only on those. Do not scan the entire plugin or present unrelated customization items.

Legacy commands/ directories: Some plugins include a commands/ directory. The Cowork UI now presents these alongside skills as a single "Skills" concept, so treat commands/*.md files the same way you would skills/*/SKILL.md files when customizing.

3. General customization — No ~~ placeholders exist, and the user wants to modify the plugin broadly. Read the plugin's files to understand its current configuration, then ask the user what they'd like to change.

Important: Never change the name of the plugin or skill being customized. Do not rename directories, files, or the plugin/skill name fields.

Nontechnical output: All user-facing output (todo list items, questions, summaries) must be written in plain, nontechnical language. Never mention ~~ prefixes, placeholders, or customization points to the user. Frame everything in terms of the plugin's capabilities and the organization's tools.

Customization Workflow

Phase 0: Gather User Intent (scoped and general customization only)

For scoped customization and general customization (not generic plugin setup), check whether the user provided free-form context alongside their request (e.g., "customize the standup skill — we do async standups in #eng-updates every morning").

  • If the user provided context: Record it and use it to pre-fill answers in Phase 3 — skip asking questions that the user already answered here.
  • If the user did not provide context: Ask a single open-ended question using AskUserQuestion before proceeding. Tailor the question to what they asked to customize — e.g., "What changes do you have in mind for the brief skill?" or "What would you like to change about how this plugin works?" Keep it short and specific to their request.

    Use their response (if any) as additional context throughout the remaining phases.

Phase 1: Gather Context from Knowledge MCPs

Use company-internal knowledge MCPs to collect information relevant to the customization scope. See references/search-strategies.md for detailed query patterns by category.

What to gather (scope to what's relevant):

  • Tool names and services the organization uses
  • Organizational processes and workflows
  • Team conventions (naming, statuses, estimation scales)
  • Configuration values (workspace IDs, project names, team identifiers)

Sources to search:

  1. Chat/Slack MCPs — tool mentions, integrations, workflow discussions
  2. Document MCPs — onboarding docs, tool guides, setup instructions
  3. Email MCPs — license notifications, admin emails, setup invitations

Record all findings for use in Phase 3.

Phase 2: Create Todo List

Build a todo list of changes to make, scoped appropriately:

  • For scoped customization: Only include items related to the specific section the user asked about.
  • For generic plugin setup: Run grep -rn '~~\w' /path/to/plugin --include='*.md' --include='*.json' to find all placeholder customization points. Group them by theme.
  • For general customization: Read the plugin files, understand the current config, and based on the user's request, identify what needs to change.

Use user-friendly descriptions that focus on the plugin's purpose:

  • Good: "Learn how standup prep works at Company"
  • Bad: "Replace placeholders in skills/standup-prep/SKILL.md"

Phase 3: Complete Todo Items

Work through each item using context from Phase 0 and Phase 1.

If the user's free-form input (Phase 0) or knowledge MCPs (Phase 1) provided a clear answer: Apply directly without confirmation.

Otherwise: Use AskUserQuestion. Don't assume "industry standard" defaults are correct — if neither the user's input nor knowledge MCPs provided a specific answer, ask. Note: AskUserQuestion always includes a Skip button and a free-text input box for custom answers, so do not include None or Other as options.

Types of changes:

  1. Placeholder replacements (generic setup): ~~Jira → Asana, ~~your-org-channel → #engineering
  2. Content updates: Modifying instructions, skills, workflows, or references to match the organization
  3. URL pattern updates: tickets.example.com/your-team/123 → app.asana.com/0/PROJECT_ID/TASK_ID
  4. Configuration values: Workspace IDs, project names, team identifiers

If user doesn't know or skips, leave the value unchanged (or the ~~-prefixed placeholder, for generic setup).

Phase 4: Search for Useful MCPs

After customization items have been resolved, connect MCPs for any tools that were identified or changed. See references/mcp-servers.md for the full workflow, category-to-keywords mapping, and config file format.

For each tool identified during customization:

  1. Search the registry: search_mcp_registry(keywords=[...]) using category keywords from references/mcp-servers.md, or search for the specific tool name if already known
  2. If unconnected: suggest_connectors(directoryUuids=["chosen-uuid"]) — user completes auth
  3. Update the plugin's MCP config file (check plugin.json for custom location, otherwise .mcp.json at root)

Collect all MCP results and present them together in the summary output (see below) — don't present MCPs one at a time during this phase.

Packaging the Plugin

After all customizations are applied, package the plugin as a .plugin file for the user:

  1. Zip the plugin directory (excluding setup/ since it's no longer needed):
    cd /path/to/plugin && zip -r /tmp/plugin-name.plugin . -x "setup/*" && cp /tmp/plugin-name.plugin /path/to/outputs/plugin-name.plugin
  2. Present the file to the user with the .plugin extension so they can install it directly. (Presenting the .plugin file will show to the user as a rich preview where they can look through the plugin files, and they can accept the customization by pressing a button.)

Important: Always create the zip in /tmp/ first, then copy to the outputs folder. Writing directly to the outputs folder may fail due to permissions and leave behind temporary files.

Naming: Use the original plugin directory name for the .plugin file (e.g., if the plugin directory is coder, the output file should be coder.plugin). Do not rename the plugin or its files during customization — only replace placeholder values and update content.

Summary Output

After customization, present the user with a summary of what was learned grouped by source. Always include the MCPs sections showing which MCPs were connected during setup and which ones the user should still connect:

## From searching Slack

- You use Asana for project management
- Sprint cycles are 2 weeks

## From searching documents

- Story points use T-shirt sizes

## From your answers

- Ticket statuses are: Backlog, In Progress, In Review, Done

Then present the MCPs that were connected during setup and any that the user should still connect, with instructions on how to connect them.

If no knowledge MCPs were available in Phase 1, and the user had to answer at least one question manually, include a note at the end:

By the way, connecting sources like Slack or Microsoft Teams would let me find answers automatically next time you customize a plugin.

Additional Resources

  • references/mcp-servers.md — MCP discovery workflow, category-to-keywords mapping, config file locations
  • references/search-strategies.md — Knowledge MCP query patterns for finding tool names and org values
  • examples/customized-mcp.json — Example fully configured .mcp.json

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.