Context hub setup

From rjmurillo/ai-agents · View interactive version

Context hub setup is an AI agent skill from the GitHub repository rjmurillo/ai-agents. Check the Serena and Context7 plugin prerequisites and report what is missing, with the install command for each. Use when you say `set up context hub`, `check my plugin prerequisites`, or `troubleshoot MCP connectivity`. Do NOT use to actually gather context for a task (use context-gather), and do

How to use this skill

Skill file

Context Hub Setup

Check the plugins the context skills depend on, and report what is missing.

Migrated from .claude/commands/context-hub-setup.md under ADR-064, which makes

skills the single user-invocable surface.

Triggers

set up context hub, check my plugin prerequisites,

troubleshoot MCP connectivity, what plugins am I missing

Prerequisites

Context Hub requires these plugins to be installed:

  1. Serena - Symbol-level code analysis (required for using-serena-symbols). The memory skills work without it (ADR-126)
  2. Context7 - Framework documentation (recommended for /context-gather)

Process

Step 1: Check Plugin Prerequisites

First, check if the required plugins are installed:

claude plugins list

Look for:

If Serena is not installed:

To use Serena symbol analysis, install the Serena plugin:

  claude plugins install serena

Or search for it in the marketplace:

  claude plugins search serena

If Context7 is not installed:

For framework documentation in /context-gather, install Context7:

  claude plugins install context7 --marketplace pleaseai/claude-code-plugins

Or search for it:

  claude plugins search context7

Step 2: Verify Complete Setup

Report status of all components:

Context Hub Setup Status:
-------------------------
Serena Plugin:  [Installed / Not installed - run: claude plugins install serena]
Context7 Plugin: [Installed / Not installed - run: claude plugins install context7 --marketplace pleaseai/claude-code-plugins]

Commands available:
- context-gather - Multi-source context retrieval

Memory search reads committed files rather than querying a server:

( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/memory/scripts/search_memory.py "topic"; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 )

It reads the markdown under .serena/memories/, so it works whether or not the

Serena MCP server is reachable. The plugin-root prefix resolves the script in a

vendored install, where a bare .claude/ path does not exist.

Step 3: Quick Test (Optional)

Offer to test the setup:

Test Serena (if installed):

Ask Claude to use Serena's get_symbols_overview on a file in your project

Test Context7 (if installed):

Ask about a framework: "How does FastAPI dependency injection work?"

Troubleshooting

Plugin issues:

Notes

Completion Criteria

The Context Hub setup is complete when ALL of the following are true:

| Criterion | Verification |

|-----------|------------|

| Serena plugin status reported | Output shows "Installed" or explicit "Not installed" message |

| Context7 plugin status reported | Output shows "Installed" or explicit "Not installed" message |

| Setup status block printed | Step 2 status block has been emitted to the user |

Stop Condition

After printing the Step 2 status block, the command is complete. Do not continue polling, re-checking, or offering additional tests unless the user explicitly requests a re-run with /context-hub-setup again.

If the user chooses to run the optional Step 3 quick tests, those are supplementary and do not affect completion status.

Verification

Anti-Patterns

| Avoid | Why | Instead |

|-------|-----|---------|

| Reporting a missing plugin without its install command | The user has to go find the command, which is the whole job | Print the install line beside the status |

| Polling or re-checking after the status block | The stop condition is explicit; a re-check reads as progress and is noise | Stop once Step 2 has printed |

| Calling Serena or Context7 an MCP server | They install through the plugin command, so the wrong noun sends the user to the wrong fix | Say plugin, and give the plugin install command |

| Treating a missing Serena as a blocked memory search | Memory search reads committed markdown and works with the MCP layer down | Report the gap and note that memory search still works |

Extension Points

so a plugin cannot be checked without being reported.

different plugin manager changes those lines and nothing else.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.