Link the current git branch to an existing recall-mcp feature KB, or create a new KB for it. Use when the current branch has no KB mapping — a smoke test or the sessionStart hint reported "Branch X has no feature KB" — or a branch was renamed and KB auto-load stopped working.
Installs into .claude/skills of the current project.
Are you the author of Recall Link Feature?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nguyenquangsang-recall-link-feature)
---
name: recall-link-feature
description: Link the current git branch to an existing recall-mcp feature KB, or create a new KB for it. Use when the current branch has no KB mapping — a smoke test or the sessionStart hint reported "Branch X has no feature KB" — or a branch was renamed and KB auto-load stopped working.
---
# Link a branch to a feature KB
## When to use
- You renamed a git branch and the KB auto-load stopped working
- The hook said "Branch X has no feature KB" but a KB already exists for this feature
Never run it when the current branch already auto-loads a KB correctly — this is for repairing a missing or broken link.
## Steps
### Step 1 — Get current branch
Run `git branch --show-current`.
### Step 2 — Ask user
> "Branch `{branch}` has no KB linked. What would you like to do?
>
> 1. Link to an existing KB (branch was renamed or reusing a KB)
> 2. Create a new KB for this branch"
### Step 3A — If linking to existing KB
Call `list_features()`. Show a numbered list of slugs with their summaries.
Ask: "Which KB should `{branch}` link to? (enter number)"
After user picks `{slug}`:
1. Ask: "Replace old branch name, or keep both?"
2. Call `update_feature_index(slug="{slug}", field="branch", value="{branch}", append=<True if "keep both" else False>)` — `confirm` defaults to False, so this writes nothing and returns a diff.
3. Show that diff verbatim, then call it again with `confirm=True` to write.
4. Confirm: "[recall-mcp] Branch `{branch}` linked to KB `{slug}`."
Never edit `features.md` directly with Edit for this — always go through `update_feature_index`.
### Step 3B — If creating new KB
Run `/recall-init` with name and slug derived from the branch name.