import

Imports a GitHub repository into ContextHub and triggers code intelligence indexing.

Updated May 12, 2026
One-click install
npx skills add https://github.com/contexthub-md/marketplace --skill import-contexthub-md
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: import
Source: https://github.com/contexthub-md/marketplace/tree/main/contexthub/skills/import
Command: npx skills add https://github.com/contexthub-md/marketplace --skill import-contexthub-md

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Onboarding a new codebase into ContextHub normally requires several manual steps: creating a project, downloading the code, indexing it, and wiring up the code graph. This Skill automates that entire flow from a single GitHub URL so the repository becomes searchable and analyzable immediately. ## Core Features & Use Cases - One-command repository import: Accepts a GitHub URL or owner/repo shorthand and creates (or links) a ContextHub project automatically. - Indexing progress tracking: Polls the indexing job and reports download, code graph, and embedding progress to the user. - Verification and context setup: Reloads the OCXP index, confirms indexed files/functions/classes, and sets the new project as the active context. - Use Case: You paste a GitHub URL like https://github.com/owner/repo and the Skill imports it, waits for indexing to finish, verifies the code graph stats, and switches your session to that project. ## Quick Start Ask the assistant to import a repository by providing its GitHub URL, for example: import https://github.com/owner/repo into ContextHub.

Frequently Asked Questions about import

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I import a GitHub repository into ContextHub?

Provide the GitHub URL or owner/repo shorthand to the import skill, which calls ch_import_repo to create a project and queue a download plus indexing job. It then polls the job status, reloads the index, and sets the new project as active.

What repository formats does the ContextHub import accept?

The import accepts a full GitHub URL, an owner/repo shorthand, or a URL pointing to a specific branch such as a /tree/develop path. The tool parses the reference and queues the corresponding download and indexing job.

What happens if the repository is already imported in ContextHub?

The ch_import_repo tool returns an already_exists response with the existing project ID instead of duplicating the import. In that case you should use the connect skill to attach to the existing project.

How can I track code indexing progress after importing a repo?

The import returns a job_id that is passed to ch_get_index_status, which is polled every few seconds until completion. Progress stages such as downloading, code graph indexing, and embedding building are reported to the user.

Does importing a repository work outside Claude Code?

The underlying ch_* tools work on any MCP-capable client such as Claude.ai, ChatGPT, or Cline via the ContextHub MCP server. The skill file itself runs natively on Claude Code and can be installed manually on Cline or Claude.ai.