# Add the Corfedo skill

> Add the corfedo skill so your coding agent turns to Corfedo for code in other repositories, writes queries in the search syntax and follows code across repositories.

Source: https://docs.corfedo.ai/connect/mcp/skill/

The `corfedo` skill teaches your coding agent how to work with Corfedo. With it, the agent:

- turns to Corfedo for code outside the repository it has open, such as another service or a shared library
- writes queries in the [search syntax](https://docs.corfedo.ai/reference/search-syntax/) and narrows them by repository, language and path
- follows a name to the code that uses it across repositories, and checks which repositories use a package
- hands broad questions to Corfedo AI, when your workspace offers it to coding agents
- cites the repository, path and lines of what it found

## Before you begin

- A coding agent that loads skills, such as Claude Code, Codex or Cursor.
- Your agent is [connected over MCP](https://docs.corfedo.ai/connect/mcp/), or the [CLI](https://docs.corfedo.ai/connect/cli/) is signed in on the machine where your agent runs.
- Node.js 22.20 or later, for the command that adds the skill.

## Add the skill

Run in the project where you use your agent:

```sh
npx skills add corfedo/corfedo-agents --skill corfedo
```

Choose your agent when asked. The skill is added to this project. Add `-g` to add it for every project. Start a new session of your agent afterwards, so it loads the skill.

**Add the skill without Node.js**

Copy the `skills/corfedo` directory of [corfedo-agents](https://github.com/corfedo/corfedo-agents) into your agent's skills directory. For Claude Code that is `.claude/skills/` in your project or `~/.claude/skills/` for every project. Codex and Cursor read `.agents/skills/` in your project. The [skills agent list](https://github.com/vercel-labs/skills/blob/main/docs/agents.md) gives the directory of each agent.

## Verify the skill

Ask your agent about a package your repositories use, for example: "Use Corfedo to find which of our repositories use the npm package react."

**Check:** the agent loads the `corfedo` skill and lists the repositories with their versions.

## Update the skill

`npx skills update` updates the skill to the latest version. `npx skills list` shows the skills installed in the project, and `npx skills list -g` those for every project.

## Troubleshooting

| What you see | What to do |
| --- | --- |
| The agent answers from the open repository only | Mention Corfedo in your request, or start a new session if you added the skill during this one. |
| The agent says Corfedo is not connected | Connect it [over MCP](https://docs.corfedo.ai/connect/mcp/), or [sign in with the CLI](https://docs.corfedo.ai/connect/cli/sign-in-and-profiles/). |
| The agent says a tool is not offered, or reports `missing_scope` | The connection was approved without that permission. Over MCP, select **Revoke** for the client in **Connect** › **Manage connections**, connect it again and leave the permission checked under **Permissions**. See [Approve access](https://docs.corfedo.ai/connect/mcp/clients/#approve-access). For the CLI, sign in again with `--replace`. |
