Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

grepai-troubleshootinggrepai 故障排除

Agent Skill

grepai-troubleshooting 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,135

周安装

414

GitHub Stars

16

下载量

3,246
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:grepai-troubleshooting(grepai 故障排除)
来源仓库:https://github.com/yoanbernabeu/grepai-skills
仓库路径:skills/grepai-troubleshooting
安装命令:
npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-troubleshooting
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-troubleshooting

简介

用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 它根据关键词或任务场景在代码或文档中匹配内容片段。
  • 使用方式依赖具体仓库结构和搜索模式,需结合上下文调整参数。
  • 安装命令:npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-troubleshooting。
  • 注意确认权限范围和是否允许读取项目文件,避免误触敏感路径。

SKILL.md

GrepAI Troubleshooting

This skill provides solutions for common GrepAI issues and diagnostic procedures.

When to Use This Skill

  • GrepAI not working as expected
  • Search returning poor results
  • Index not updating
  • Connection or configuration errors

Quick Diagnostics

Run these commands to understand your setup:

# Check GrepAI version
grepai version

# Check project status
grepai status

# Check Ollama (if using)
curl http://localhost:11434/api/tags

# Check config
cat .grepai/config.yaml

Common Issues


Issue: "Index not found"

Symptom:

Error: Index not found. Run 'grepai watch' first.

Cause: No index has been created for this project.

Solution:

# Initialize if needed
grepai init

# Create the index
grepai watch

Issue: "Cannot connect to embedding provider"

Symptom:

Error: Cannot connect to Ollama at http://localhost:11434

Causes:

  1. Ollama not running
  2. Wrong endpoint configured
  3. Firewall blocking connection

Solutions:

  1. Start Ollama:
ollama serve
  1. Check endpoint in config:
embedder:
  endpoint: http://localhost:11434  # Verify this
  1. Test connection:
curl http://localhost:11434/api/tags

Issue: "Model not found"

Symptom:

Error: Model 'nomic-embed-text' not found

Cause: The embedding model hasn't been downloaded.

Solution:

# Download the model
ollama pull nomic-embed-text

# Verify
ollama list

Issue: Search returns no results

Symptom: Searches return empty or very few results.

Causes:

  1. Index is empty
  2. Files are being ignored
  3. Query too specific

Solutions:

  1. Check index status:
grepai status
# Should show files > 0 and chunks > 0
  1. Verify files are being indexed:
# Check ignore patterns in config
cat .grepai/config.yaml | grep -A 20 "ignore:"
  1. Try broader query:
grepai search "function"  # Very broad test

Issue: Search returns irrelevant results

Symptom: Results don't match what you're looking for.

Causes:

  1. Query too vague
  2. Boosting not configured
  3. Wrong content indexed

Solutions:

  1. Improve query (see grepai-search-tips skill):
# Bad
grepai search "auth"

# Good
grepai search "user authentication middleware"
  1. Configure boosting to penalize tests:
search:
  boost:
    enabled: true
    penalties:
      - pattern: /tests/
        factor: 0.5
  1. Check what's indexed:
grepai status

Issue: Index is outdated

Symptom: Recent file changes aren't appearing in search results.

Causes:

  1. Watch daemon not running
  2. Debounce delay
  3. File not in indexed extensions

Solutions:

  1. Check daemon status:
grepai watch --status
  1. Restart daemon:
grepai watch --stop
grepai watch --background
  1. Force re-index:
rm .grepai/index.gob
grepai watch

Issue: "Config not found"

Symptom:

Error: Config file not found at .grepai/config.yaml

Cause: GrepAI not initialized in this directory.

Solution:

grepai init

Issue: Slow indexing

Symptom: Initial indexing takes very long.

Causes:

  1. Large codebase
  2. Slow embedding provider
  3. Not enough ignore patterns

Solutions:

  1. Add ignore patterns:
ignore:
  - node_modules
  - vendor
  - dist
  - build
  - "*.min.js"
  1. Use faster model:
embedder:
  model: nomic-embed-text  # Smaller, faster
  1. Use OpenAI for speed (if privacy allows):
embedder:
  provider: openai
  model: text-embedding-3-small
  parallelism: 8

Issue: Slow searches

Symptom: Search queries take several seconds.

Causes:

  1. Very large index
  2. GOB storage on large codebase
  3. Embedding provider slow

Solutions:

  1. Check index size:
ls -lh .grepai/index.gob
  1. For large indices, use Qdrant:
store:
  backend: qdrant
  1. Limit results:
grepai search "query" --limit 5

Issue: Trace not finding symbols

Symptom: grepai trace callers returns no results.

Causes:

  1. Function name spelled wrong
  2. Language not enabled for trace
  3. Symbols index out of date

Solutions:

  1. Check exact function name (case-sensitive)
  2. Enable language in config:
trace:
  enabled_languages:
    - .go
    - .js
    - .ts
  1. Re-build symbol index:
rm .grepai/symbols.gob
grepai watch

Issue: MCP not working

Symptom: AI assistant can't use GrepAI tools.

Causes:

  1. MCP config incorrect
  2. GrepAI not in PATH
  3. Working directory wrong

Solutions:

  1. Test MCP server manually:
grepai mcp-serve
  1. Check GrepAI is in PATH:
which grepai
  1. Verify MCP config:
# Claude Code
cat ~/.claude/mcp.json

# Cursor
cat .cursor/mcp.json

Issue: Out of memory

Symptom: GrepAI crashes or system becomes slow.

Causes:

  1. Large embedding model
  2. Very large index in GOB format
  3. Too many parallel requests

Solutions:

  1. Use smaller model:
embedder:
  model: nomic-embed-text  # Smaller
  1. Use PostgreSQL or Qdrant instead of GOB
  2. Reduce parallelism:
embedder:
  parallelism: 2

Issue: API key errors (OpenAI)

Symptom:

Error: 401 Unauthorized - Invalid API key

Solutions:

  1. Check environment variable:
echo $OPENAI_API_KEY
  1. Ensure variable is exported:
export OPENAI_API_KEY="sk-..."
  1. Check key format in config:
embedder:
  api_key: ${OPENAI_API_KEY}  # Uses env var

Diagnostic Commands

Full System Check

#!/bin/bash
echo "=== GrepAI Diagnostics ==="

echo -e "\n1. Version:"
grepai version

echo -e "\n2. Status:"
grepai status

echo -e "\n3. Config:"
cat .grepai/config.yaml 2>/dev/null || echo "No config found"

echo -e "\n4. Index files:"
ls -la .grepai/ 2>/dev/null || echo "No .grepai directory"

echo -e "\n5. Ollama (if using):"
curl -s http://localhost:11434/api/tags | head -5 || echo "Ollama not responding"

echo -e "\n6. Daemon:"
grepai watch --status 2>/dev/null || echo "Daemon not running"

Reset Everything

If all else fails, complete reset:

# Remove all GrepAI data
rm -rf .grepai

# Re-initialize
grepai init

# Start fresh index
grepai watch

Getting Help

If issues persist:

  1. Check GrepAI documentation: https://yoanbernabeu.github.io/grepai/
  2. Search issues: https://github.com/yoanbernabeu/grepai/issues
  3. Create new issue with:

- GrepAI version (grepai version) - OS and architecture - Config file (remove secrets) - Error message - Steps to reproduce

Output Format

Diagnostic summary:

🔍 GrepAI Diagnostics

Version: 0.24.0
Project: /path/to/project

✅ Config: Found (.grepai/config.yaml)
✅ Index: 245 files, 1,234 chunks
✅ Embedder: Ollama (connected)
✅ Daemon: Running (PID 12345)
❌ Issue: [Description if any]

Recommended actions:
1. [Action item]
2. [Action item]

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.07%
按下载量换算1,073

Claude

30.59%
按下载量换算993

Cursor

19.48%
按下载量换算632

Gemini CLI

9.52%
按下载量换算309

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills