Agent skill

Repo Context

by nduc99911 in nduc99911/repo-context-mcp

Use repo-context-mcp tools to map, search, and pack repository context before large edits or PR review.

MITAuto-check: notesAgent Workflows

Install Repo Context

skills CLI
$ npx skills add nduc99911/repo-context-mcp --skill repo-context -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nduc99911/repo-context-mcp repo-context --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nduc99911/repo-context-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/repo-context .claude/skills/repo-context && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
repo-context
GitHub stars
105
Token cost
~233 tokens
SKILL.md length
90 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Use repo-context-mcp tools to map, search, and pack repository context before large edits or PR review.

  • Works in 3 steps: Call repo_map first to see structure and… → Call search_code for symbols, error… → Call pack_context with focus keywords…
  • Tasks that involve Codebase knowledge for agents
  • SKILL.md covers Rules and CLI fallback (no MCP)
  • Calls npx

What it does

Repo Context is an agent skill from nduc99911/repo-context-mcp. Use repo-context-mcp tools to map, search, and pack repository context before large edits or PR review.

Its SKILL.md is about 230 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Codebase knowledge for agents and MCP servers. It works with Model Context Protocol and TypeScript. The repository describes itself as: MCP server: repo map, code search, and token-aware context packs for AI coding agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Codebase knowledge for agents
  • Tasks that involve MCP servers

Example prompts

  • “/repo-context”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Call repo_map first to see structure and entrypoints.
  2. Call search_code for symbols, error strings, or feature names.
  3. Call pack_context with focus keywords before drafting a large patch or review.

What it can do on your machine

Read from SKILL.md and the folder at commit 767a264. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Repo Context loads about 233 tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 90 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~29
When it runs · the whole SKILL.md, loaded when a task matches
~233

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:19
    Do not pack `node_modules`, secrets, or `.env` files (the server already skips common cases).

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nduc99911/repo-context-mcp at commit 767a264, republished under its MIT licence (© nduc99911). 90 words, ~233 tokens.

Download SKILL.mdSave it as .claude/skills/repo-context/SKILL.md (or your agent's skills folder).
name
repo-context
description
Use repo-context-mcp tools to map, search, and pack repository context before large edits or PR review.

repo-context skill

When exploring an unfamiliar codebase or preparing a change:

  1. Call repo_map first to see structure and entrypoints.
  2. Call search_code for symbols, error strings, or feature names.
  3. Call pack_context with focus keywords before drafting a large patch or review.

Rules

  • Prefer pack_context over reading dozens of files one-by-one.
  • Always set root if the workspace is a monorepo subdirectory.
  • Keep max_tokens reasonable (8k–16k) for review; raise only when needed.
  • Do not pack node_modules, secrets, or .env files (the server already skips common cases).

CLI fallback (no MCP)

bash
npx repo-context-mcp map .
npx repo-context-mcp search "TODO" .
npx repo-context-mcp pack . --focus auth --max-tokens 8000

© nduc99911, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/repo-context of nduc99911/repo-context-mcp.

Open the folder on GitHubat commit 767a264

Compare with similar skills

Repo Context next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Repo Context compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Repo Context this skillnduc99911/repo-context-mcp105—~233Automated safety check: NotesMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k4 repos~1.2kAutomated safety check: PassMIT
MCP Server Builder with mcp-usemcp-use/mcp-use11k—~923Automated safety check: PassApache-2.0
Source Driven Developmentshashankswe2020-ux/whoop-mcp1654 repos~2kAutomated safety check: PassMIT
OpenpetsOpenPetsHQ/openpets1.3k—~2.1kAutomated safety check: PassMIT

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 4 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Builds, modifies, debugs, migrates and verifies TypeScript MCP servers and MCP Apps with the mcp-use framework, treating the installed package's types as the source of truth.

    11k GitHub stars~923 tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Source Driven Development

    shashankswe2020-ux/whoop-mcp

    Grounds every implementation decision in official documentation.

    165 GitHub starsUsed in 4 repos~2k tokens
    Agent WorkflowsAuto-check passed
  • Openpets

    OpenPetsHQ/openpets

    A skill your agent uses whenever the user wants to build, extend, debug, test, validate, locally load, package, or publish an OpenPets plugin; work with the OpenPets Plugin SDK v3, plugin manifest…

    1.3k GitHub stars~2.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Chatgpt App Builder

    alpic-ai/skybridge

    Guide developers through creating and updating ChatGPT plugins.

    2.2k GitHub stars~1k tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed

Categories

Questions about Repo Context

What does Repo Context do?

Use repo-context-mcp tools to map, search, and pack repository context before large edits or PR review. Repo Context is an agent skill from nduc99911/repo-context-mcp. Use repo-context-mcp tools to map, search, and pack repository context before large edits or PR review.

When should I use Repo Context?

Repo Context fits situations like: tasks that involve Codebase knowledge for agents; tasks that involve MCP servers.

How do I install Repo Context in Claude Code?

Run `npx skills add nduc99911/repo-context-mcp --skill repo-context -a claude-code`. Or copy the skill folder (skills/repo-context in nduc99911/repo-context-mcp) into .claude/skills/repo-context in your project. Claude Code loads it when a task matches its description.

How do I install Repo Context in Codex?

Run `npx skills add nduc99911/repo-context-mcp --skill repo-context -a codex`. Or copy the skill folder (skills/repo-context in nduc99911/repo-context-mcp) into .agents/skills/repo-context in your project. Codex loads it when a task matches its description.

Can I use Repo Context in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nduc99911/repo-context-mcp --skill repo-context -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/repo-context, .gemini/skills/repo-context, .github/skills/repo-context and .opencode/skills/repo-context in your project.

What does Repo Context need to run?

Going by SKILL.md and its folder, Repo Context needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Repo Context access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Repo Context safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Repo Context use?

Repo Context is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Repo Context use?

About 233 tokens (SKILL.md is roughly 932 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Repo Context?

Skills that share tags, products or a category with Repo Context: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MCP Server Builder with mcp-use (mcp-use/mcp-use, 11k stars) and Source Driven Development (shashankswe2020-ux/whoop-mcp, 165 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Repo Context?

nduc99911 (a GitHub user) maintains it in nduc99911/repo-context-mcp, which has 105 GitHub stars. The repository was last updated on August 12, 2026.

Source: nduc99911/repo-context-mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.