跳到正文
cccskills
免费在 GitHub 公开

troubleshoot

Diagnose common cqs issues — stale index, model download, schema mismatch, connection issues.

中文简介正在准备中。当前显示原文说明。

集成工具Hugging Face
查看安装方法

包含的文件(1)

  • SKILL.md2.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Troubleshoot

Guided diagnosis of common cqs issues. Run through checks in order, stop at first problem found.

Checklist

1. Is cqs installed and working?

cqs --version

If not found: cargo install --path . (from source) or check ~/.cargo/bin/ is in PATH.

2. Is the project initialized?

ls -la .cqs/ && cat .cqs/active_slot 2>/dev/null
ls -la .cqs/slots/$(cat .cqs/active_slot 2>/dev/null || echo default)/ 2>/dev/null

The index lives in the active slot: .cqs/slots/<name>/index.db plus HNSW sidecars (index.hnsw*; legacy pre-slot layouts kept files at .cqs/ top level). If missing: cqs init && cqs index.

3. Is the index populated?

Run cqs stats. Check:

  • Chunk count > 0
  • Last update is recent
  • Expected languages are present

If empty: cqs index to rebuild.

4. Schema version mismatch?

cqs stats 2>&1

If you see "SchemaMismatch" or "SchemaNewerThanCq":

  • Older schema: Run /migrate to upgrade
  • Newer schema: Update cqs binary to latest version

Current schema version: check src/store/helpers/mod.rs for CURRENT_SCHEMA_VERSION.

5. Model downloaded?

cqs doctor   # checks model, index, hardware in one pass
ls -la ~/.cache/huggingface/hub/models--onnx-community--embeddinggemma-300m-ONNX/

Default model is EmbeddingGemma-300m (since v1.35.0); alternative presets via CQS_EMBEDDING_MODEL / --model live under their own models--* dirs. If missing or incomplete, cqs downloads on first use. Check network access to huggingface.co. If corrupted: delete the directory and let cqs re-download (blake3 checksums verify integrity).

6. Daemon mode working?

cqs ping
systemctl --user status cqs-watch

cqs ping should report a connected daemon and a sub-100ms round-trip. Common issues:

  • Daemon not running: systemctl --user start cqs-watch (or cqs watch --serve ad hoc)
  • Stale socket from a crash: systemctl --user restart cqs-watch
  • Want to bypass the daemon for one command: CQS_NO_DAEMON=1 cqs <cmd>
  • LLM enrichment failing: check ANTHROPIC_API_KEY is set (see SECURITY.md)

7. Index stale?

Compare cqs stats last update time vs recent file modifications. Fix: cqs index (one-time) or cqs watch (continuous).

8. References broken?

cqs ref list

Check that source paths still exist and chunk counts are > 0. If source moved: cqs ref remove <name> and re-add with new path.

Report

After running checks, summarize:

  • What was checked
  • What failed (if anything)
  • What was fixed or needs fixing

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

archeo

免费

Comment-archaeology sweep - find work items hiding in TODO/FIXME/for-now comments and plan-doc ledgers, judge them, file issues, queue trivial fixes. Good idle-loop activity.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

audit

免费

Run a multi-category code audit on the cqs codebase. Spawns parallel agents per batch.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

Run before modifying a function — impact + test-map + explain in one pass, presented as a modification checklist.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

Trust-boundary security audit of cqs — fans out unbiddable-auditor agents across 6 categories (RT-INJ/RT-FS/RT-RES/RT-DATA/RT-RELAY/RT-EXFIL), attacker mindset, run-the-attack PoC + regression guard.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

Run after making changes, before committing — reviews the current git diff for impact and risk via cqs review.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

cqs

免费

Unified cqs CLI dispatcher — semantic code search, call graph navigation, impact analysis, quality tools, notes, and infrastructure. Use `/cqs <command> [args]` for any cqs operation.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

查看 jamie8johnson 的全部技能

报告此技能的问题