---
title: "Troubleshooting"
description: "Fix the 10 most common OrchestKit problems: plugin not found, hooks not firing, skills not loading and more. Each issue gives the symptom, cause and fix."
canonical: "https://orchestkit.dev/docs/troubleshooting"
---

# Troubleshooting

Fix the 10 most common OrchestKit problems: plugin not found, hooks not firing, skills not loading and more. Each issue gives the symptom, cause and fix.

import { Callout } from 'fumadocs-ui/components/callout';
import { MinCC } from '@/components/count';

This page covers the most frequent issues OrchestKit users encounter, ordered by how often they come up. For hook-specific debugging, see [Hook Debugging](/docs/troubleshooting/hook-debugging). For broader questions about how OrchestKit works, see the [FAQ](/docs/troubleshooting/faq).

---

## 1. Plugin Not Found After Installation

**Symptom:** Claude Code does not recognize `/ork:` commands or shows "no matching skill."

**Cause:** The plugin is not installed in the right location, or Claude Code has not reloaded.

**Fix:**

```bash
# Verify the plugin is installed
claude plugin list

# If missing, add the marketplace and reinstall
claude plugin marketplace add yonatangross/orchestkit
claude plugin install ork@orchestkit

# If installed but not detected, quit Claude Code and start it again
```

<Callout type="info">
If you installed via git clone, make sure you ran `npm run build` after cloning. The `plugins/` directory is generated and must be built from `src/`.
</Callout>

---

## 2. Hooks Not Firing

**Symptom:** Expected behavior does not happen: skills are not auto-suggested, dangerous commands are not blocked, or memory is not injected.

**Cause:** Hooks are disabled, hooks.json is missing, or the TypeScript bundles are not compiled.

**Fix:**

```bash
# Run diagnostics
/ork:doctor

# Check if hooks.json exists
ls src/hooks/hooks.json

# Rebuild hooks from TypeScript
cd src/hooks && npm run build

# Verify the compiled bundles exist
ls src/hooks/dist/
```

If `/ork:doctor` reports hooks as unhealthy, the most common cause is missing compiled bundles in `dist/`. The TypeScript source in `src/hooks/src/` must be compiled before hooks can execute.

See [Hook Debugging](/docs/troubleshooting/hook-debugging) for deeper investigation steps.

---

## 3. Skills Not Loading

**Symptom:** Invoking `/ork:skillname` returns "skill not found" or agents do not have expected skills injected.

**Cause:** The skill is not listed in the plugin manifest, or the SKILL.md frontmatter is malformed.

**Fix:**

```bash
# Verify skill exists in source
ls src/skills/your-skill/SKILL.md

# manifests/ork.json sets "skills": "all", so a skill ships unless it is
# listed in skillsExclude (those move to the ork-extras plugin)
grep "your-skill" manifests/ork.json && echo "excluded from the core plugin"

# Validate skill structure
npm run test:skills

# Rebuild the plugin
npm run build
```

Common frontmatter issues:
- Missing required `name` or `description` fields
- `user-invocable: true` missing for command skills
- Invalid YAML syntax (tabs instead of spaces, unclosed quotes)

---

## 4. Memory Not Persisting Across Sessions

**Symptom:** Decisions stored with `/ork:memory remember` do not appear in the next session.

**Cause:** The MCP memory server is not configured, or local memory files are not being written.

**Fix:**

```bash
# Check memory system health
/ork:memory status

# Verify local memory files exist
ls .claude/memory/

# Check if MCP memory server is running
claude mcp list
```

The memory system has 3 tiers. If Tier 1 (Graph) is not configured, decisions fall back to Tier 2 (Local files). If those are not writable, nothing persists.

| Tier | Check | Fix |
|------|-------|-----|
| 1. Graph | `claude mcp list` shows memory server | Configure MCP memory server |
| 2. Local | `.claude/memory/` directory exists | Create it: `mkdir -p .claude/memory` |
| 3. CC Native | `MEMORY.md` exists in project memory | Automatic, no action needed |

---

## 5. Agent Spawn Failures

**Symptom:** Running `/ork:implement` or `/ork:review-pr` fails with "agent not found" or agents produce empty results.

**Cause:** Claude Code version is too old, the requested model is unavailable, or the agent definition file is malformed.

**Fix:**

```bash
# Check Claude Code version (requires >= 2.1.332)
claude --version

# Verify agent definition exists
ls src/agents/backend-system-architect.md

# Validate agent frontmatter
npm run test:agents

# Rebuild plugin
npm run build
```

If the Claude Code version is below <MinCC />, upgrade:

```bash
npm install -g @anthropic-ai/claude-code@latest
```

---

## 6. Build Errors After Editing src/

**Symptom:** `npm run build` fails after modifying skills, agents, or hooks.

**Cause:** A manifest references a skill or agent that does not exist, or a new file has invalid frontmatter.

**Fix:**

```bash
# Run the full test suite to identify the issue
npm test

# Common: skill listed in skillsExclude but missing from src/
# ("skills" in the manifest is the string "all", so there is no list to diff)
comm -23 <(jq -r '.skillsExclude[]' manifests/ork.json | sort) \
         <(ls src/skills/ | sort)

# Common: hook referenced in hooks.json but not compiled
cd src/hooks && npm run build
```

<Callout type="warn">
Never edit files in `plugins/` directly. They are generated by `npm run build` and will be overwritten. Always edit in `src/` and rebuild.
</Callout>

---

## 7. Pre-Push Hook Hanging

**Symptom:** `git push` hangs on "Running quick lint tests..." and never completes.

**Cause:** The pre-push hook runs `./tests/run-all-tests.sh --lint`, which can hang on large test suites or when external services are unreachable.

**Fix:**

For safe changes (docs, config, test fixes), bypass the hook:

```bash
git push --no-verify
```

For the permanent fix, investigate which test is hanging:

```bash
# Run tests with verbose output to find the stall
./tests/run-all-tests.sh --lint --verbose
```

<Callout type="warn">
Only use `--no-verify` for changes you are confident about. For substantial code changes, let the pre-push hook run to catch issues before they reach CI.
</Callout>

---

## 8. Count Drift After Adding Skills or Hooks

**Symptom:** Tests fail with "Skills: declared 113, actual 115" or similar count mismatches.

**Cause:** Adding a skill or hook updates the source files but not the count references scattered across the codebase.

**Fix:**

```bash
# Run the count validation script
bash bin/validate-counts.sh

# Update counts in all locations
# The script will tell you which files need updating
```

Files that reference counts and must stay in sync:
- `CLAUDE.md` (updated automatically by linter hooks)
- `README.md`
- `manifests/ork.json`
- `tests/skills/structure/test-skill-md.sh`
- `tests/hooks/split-bundles.test.ts`

<Callout type="info">
Count drift is the most common consistency bug in OrchestKit. After adding any skill, agent, or hook, always run `bash bin/validate-counts.sh` before committing.
</Callout>

---

## 9. Git Operations Blocked

**Symptom:** A command or file edit is refused by a permission rule, or a push fails because the branch is protected.

**Cause:** OrchestKit's safety hooks are preventing a potentially destructive operation.

**Fix:**

The `permissions.deny` rules that `/ork:setup` writes to your settings deny commands like `git push --force origin main` and `rm -rf /`. This is intentional. `/ork:doctor` audits them.

If the operation is legitimate:

1. Check the hook output for which rule triggered
2. If it is a branch protection rule: create a feature branch instead of committing to `main`
3. If it is a protected-file rule (`Edit(**/.env)`, `Edit(**/*.pem)` and the like): make that change yourself, outside Claude Code
4. If a rule is wrong for you: edit the `permissions.deny` list in your settings; if an OrchestKit hook blocked it, share its reason in a GitHub issue

---

## 10. Slow Performance

**Symptom:** Skills take a long time to execute, sessions feel sluggish, or agent spawns are delayed.

**Cause:** Too many hooks executing synchronously, large context windows, or unoptimized hook bundles.

**Fix:**

```bash
# Check hook execution time
/ork:doctor

# There is no per-hook off switch. To test whether OrchestKit is the cause,
# start Claude Code with all plugins and hooks off for one run:
claude --safe-mode

# Verify split bundles are working (should be 10 bundles, not 1 monolith)
ls src/hooks/dist/
```

Performance tips:
- OrchestKit uses 10 split bundles instead of a monolith to reduce load time
- 6 hooks use fire-and-forget async execution for non-blocking background work
- If a specific hook is slow, confirm with `--safe-mode` that hooks are the cause, then report the issue with the hook name
- Context window usage above 85% triggers automatic result condensing in memory searches

---

## Still Stuck?

- Run `/ork:doctor` for a full health diagnostic
- Check [Hook Debugging](/docs/troubleshooting/hook-debugging) for hook-specific issues
- Read the [FAQ](/docs/troubleshooting/faq) for common questions
- [Open a GitHub issue](https://github.com/yonatangross/orchestkit/issues) with the error message and `/ork:doctor` output
