> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codealive.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Skills & Plugins

> Install CodeAlive skills for intelligent codebase exploration patterns

## Overview

CodeAlive offers three integration methods that complement each other:

> [card] MCP Server
>
> **Provides tools.** Gives your agent direct access to the v3 Tool API set via the Model Context Protocol: `get_data_sources`, `semantic_search`, `grep_search`, repository ontology/tree/read tools, `fetch_artifacts`, `get_artifact_relationships`, ArtifactQuery tools, and stateless `chat`.

> [card] Agent Skill
>
> **Teaches workflows.** Teaches your agent effective query patterns, cost-aware tool selection, and multi-step exploration workflows.

> [card] Claude Code Plugin
>
> **Bundles everything.** Includes the skill plus authentication hooks and a code exploration subagent. Claude Code only.

The skill and MCP server work best together: the MCP server provides the tools, and the skill teaches the agent how to use them effectively.

## Installing the Skill

**1. Via Installer (Recommended)**

The universal installer auto-detects your agents and installs the skill:

```bash theme={null}
npx @codealive/installer
```

Select "CodeAlive Skill" when prompted. See the [Installation Guide](https://docs.codealive.ai/installation.md) for details.

**2. Via npx**

Install the skill directly using the skills CLI:

```bash theme={null}
npx skills add CodeAlive-AI/codealive-skills@codealive-context-engine
```

This works with any agent that supports the [skills.sh](https://skills.sh/) standard.

**3. Manual Installation**

Copy the `skills/codealive-context-engine` folder into your agent's skills directory:

| Agent | Project scope | User scope |
| - | - | - |
| Claude Code | `.claude/skills/` | `~/.claude/skills/` |
| Cursor | `.cursor/skills/` | `~/.cursor/skills/` |
| GitHub Copilot | `.github/skills/` | `~/.copilot/skills/` |
| Windsurf | `.windsurf/skills/` | `~/.codeium/windsurf/skills/` |
| Gemini CLI | `.gemini/skills/` | `~/.gemini/skills/` |
| Codex | `.codex/skills/` | `~/.codex/skills/` |
| Goose | `.goose/skills/` | `~/.config/goose/skills/` |
| Amp | `.agents/skills/` | `~/.config/agents/skills/` |
| Roo Code | `.roo/skills/` | `~/.roo/skills/` |
| OpenCode | `.opencode/skill/` | `~/.config/opencode/skill/` |
| OpenClaw | `skills/` | `~/.openclaw/skills/` |

## Installing the Claude Code Plugin

For Claude Code users, the plugin provides the best experience — it includes the skill plus Claude-specific enhancements.

**1. Add the Marketplace**

In Claude Code, run:

```
/plugin marketplace add CodeAlive-AI/codealive-skills
```

**2. Install the Plugin**

```
/plugin install codealive@codealive-marketplace
```

The plugin includes:

* The CodeAlive Context Engine skill
* Authentication hooks for automatic API key injection
* A code exploration subagent for guided analysis

> [!TIP]
>
> Already using the plugin in Claude Code and want another agent (for example Codex CLI) to load the same skill files? See [Share the plugin with Codex CLI](https://docs.codealive.ai/integrations/share-plugin-with-codex.md) for a symlink-based bridge that follows every `claude plugin update`.

## Setup & Authentication

After installing, run the interactive setup:

```bash theme={null}
python setup.py
```

This will ask for your [API key](https://app.codealive.ai/settings/api-keys), verify it, and store it securely in your OS credential store.

For self-hosted CodeAlive, set `CODEALIVE_BASE_URL` to your deployment origin, for example `https://codealive.yourcompany.com`. `https://host/api` is also accepted and normalized automatically.

### API Key Resolution Order

1. `CODEALIVE_API_KEY` environment variable
2. OS credential store:

| Platform | Store | Manual command |
| - | - | - |
| macOS | Keychain | `security add-generic-password -a "$USER" -s "codealive-api-key" -w "KEY"` |
| Linux | Secret Service | `secret-tool store --label="CodeAlive API Key" service codealive-api-key` |
| Windows | Credential Manager | `cmdkey /generic:codealive-api-key /user:codealive /pass:"KEY"` |

## Available Tools

The skill provides local scripts for the complete Tool API v3 workflow plus an offline version check:

| Tool | Script | Speed | Cost | Best For |
| - | - | - | - | - |
| **List Data Sources** | `datasources.py` | Instant | Free | Discovering indexed repos and workspaces |
| **Semantic Search** | `search.py` | Fast | Low | Finding relevant artifacts by meaning |
| **Grep Search** | `grep.py` | Fast | Low | Exact text and regex matches with line previews |
| **Fetch Artifacts** | `fetch.py` | Fast | Low | Retrieving full content for search results |
| **Artifact Relationships** | `relationships.py` | Fast | Low | Expanding call graph, inheritance, and references for one artifact |
| **Chat with Codebase** | `chat.py` | Slow | High | Synthesized answers, architectural explanations |
| **Get Version** | `get_version.py` | Instant | Free | Return the installed skill version as JSON without authentication or a network request |

Check the installed version locally:

```bash theme={null}
python scripts/get_version.py
# {"name": "codealive-context-engine", "version": "3.0.0"}
```

**Cost guidance:** `semantic_search` and `grep_search` should be the default starting point. Chat invokes an LLM on the server side, is stateless in v3, can take substantially longer than retrieval, and is usually unnecessary unless you specifically request a synthesized answer after search.

**Call sites.** `relationships.py` shows *where* each call is written, not just that it exists — so the agent can read the two relevant lines instead of fetching the whole calling artifact:

```
  • my-org/backend::src/db.py::query
      📍 src/db.py:42
      ↪ called at src/svc.py:17
      ↪ called at src/svc.py:88  (~60% confident)
      ↪ … 3 more call site(s) not shown
```

There is no flag for this — positions appear whenever they are known.

> [!WARNING]
>
> A call with **no `called at` line** means the position is **not indexed yet** (the repository was indexed before call sites existed, or that one edge could not be located) — never that the call does not happen. A confidence such as `~60% confident` marks an approximate position; **no confidence shown means the position is exact**. `… N more` means the list was capped. For incoming calls the file shown is the **caller's** file.

## Supported Agents

The skill works with 30+ agents that support the [skills.sh](https://skills.sh/) standard, including:

Cursor, GitHub Copilot, Windsurf, Gemini CLI, Codex, Goose, Amp, Roo Code, OpenCode, OpenClaw, Claude Code, and many more.

## Troubleshooting

> [accordion] API key not configured
>
> Run the setup script:
>
> ```bash theme={null}
> python setup.py
> ```
>
> Or set the environment variable:
>
> ```bash theme={null}
> export CODEALIVE_API_KEY="your_key"
> ```

> [accordion] Skill not detected by agent
>
> 1. Verify the skill files are in the correct directory for your agent
> 2. Check that the `SKILL.md` file exists in the skill folder
> 3. Restart your agent

> [accordion] Python not found
>
> The skill requires Python 3.8+. No third-party packages are needed — it uses only the standard library.

> [accordion] Credential store errors
>
> If the OS credential store fails:
>
> * macOS: Ensure Keychain Access is unlocked
> * Linux: Install `libsecret-tools` (`sudo apt install libsecret-tools`)
> * Windows: Run as Administrator
> * Fallback: Use the `CODEALIVE_API_KEY` environment variable

> [!TIP]
>
> For more solutions, see the [Troubleshooting Guide](https://docs.codealive.ai/troubleshooting.md).

## Related Resources

> [card] [Installation Guide](https://docs.codealive.ai/installation.md)
>
> Universal installer for all components

> [card] [MCP Integration](https://docs.codealive.ai/integrations/mcp.md)
>
> Set up the MCP server for direct tool access

> [card] [GitHub](https://github.com/CodeAlive-AI/codealive-skills)
>
> Skills source code

> [card] [skills.sh](https://skills.sh)
>
> Agent skills standard


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.