← 返回
未分类 Key 中文

SherpaMind

Use for SherpaDesk-related requests: ticket lookup, support-history retrieval, account/user/technician analysis, stale-ticket review, workload questions, ope...
用于SherpaDesk相关请求:工单查询、支援历史检索、账户/用户/技术员分析、过期工单审查、工作负荷问题、运营...
kklouzal kklouzal 来源
未分类 clawhub v0.1.7 2 版本 99784.5 Key: 需要
★ 0
Stars
📥 463
下载
💾 1
安装
2
版本
#latest

概述

SherpaMind

Use SherpaMind as the OpenClaw query/action layer over the local SherpaDesk dataset prepared by the backend service.

Repo root and stable entrypoint

Work from the repo root:

cd {baseDir}

When the repo is installed under an OpenClaw skills/ directory, SherpaMind automatically uses the parent workspace as SHERPAMIND_WORKSPACE_ROOT, so runtime state stays in workspace-level .SherpaMind/ rather than inside the skill checkout.

Use the stable runner:

python3 scripts/run.py <command> [args...]

Do not invent alternate runtime paths.

Do not treat OpenClaw as the background scheduler for this backend.

Transparency and operator expectations

SherpaMind is not an instruction-only skill.

When installed and configured for live use, it can:

  • create workspace-local runtime state under .SherpaMind/
  • create staged runtime dirs under .SherpaMind/private/config/, .SherpaMind/private/secrets/, .SherpaMind/private/data/, .SherpaMind/private/state/, .SherpaMind/private/logs/, .SherpaMind/private/runtime/, and .SherpaMind/public/
  • create a local SQLite database and generated public artifacts
  • create a Python runtime venv under .SherpaMind/private/runtime/venv
  • install Python dependencies from PyPI during bootstrap
  • store the SherpaDesk API key locally in .SherpaMind/private/secrets/sherpadesk_api_key.txt
  • optionally store a SherpaDesk API user hint in .SherpaMind/private/secrets/sherpadesk_api_user.txt
  • store non-secret connection/runtime settings in .SherpaMind/private/config/settings.env
  • optionally install and run a user-level systemd background service

Required live staged credentials/config for real SherpaDesk use:

  • staged API key under .SherpaMind/private/secrets/sherpadesk_api_key.txt
  • staged org/instance settings in .SherpaMind/private/config/settings.env

If the user only wants query guidance or offline inspection of an existing local dataset, do not imply that fresh credentials or service installation are unnecessary for live sync.

Choose the lightest path that answers the question

Exact facts, counts, status, and workload

Start with structured commands:

  • python3 scripts/run.py dataset-summary
  • python3 scripts/run.py report-api-usage
  • python3 scripts/run.py report-enrichment-coverage
  • python3 scripts/run.py insight-snapshot
  • python3 scripts/run.py report-ticket-counts
  • python3 scripts/run.py report-status-counts
  • python3 scripts/run.py report-priority-counts
  • python3 scripts/run.py report-technician-counts
  • python3 scripts/run.py report-ticket-log-types
  • python3 scripts/run.py report-attachment-summary
  • python3 scripts/run.py recent-tickets
  • python3 scripts/run.py open-ticket-ages
  • python3 scripts/run.py recent-account-activity
  • python3 scripts/run.py recent-technician-load
  • python3 scripts/run.py account-summary ""
  • python3 scripts/run.py technician-summary ""
  • python3 scripts/run.py ticket-summary ""

Examples:

  • open-ticket count → report-status-counts
  • technician backlog/load → technician-summary ""
  • account snapshot → account-summary ""
  • ticket inspection / retrieval-ready context → ticket-summary ""

Fuzzy investigation, prior-art lookup, and support-history recall

Use retrieval commands:

  • python3 scripts/run.py search-ticket-docs ""
  • python3 scripts/run.py search-ticket-docs "" --account "" --status Open --department ""
  • python3 scripts/run.py search-ticket-chunks ""
  • python3 scripts/run.py search-ticket-chunks "" --account "" --status Open --technician ""
  • python3 scripts/run.py search-ticket-chunks "" --priority High --category "" --class-name ""
  • python3 scripts/run.py search-vector-index ""
  • python3 scripts/run.py search-vector-index "" --account "" --status Open
  • python3 scripts/run.py search-vector-index "" --technician "" --priority High --category ""
  • python3 scripts/run.py search-vector-index "" --department "" --class-name "" --submission-category "" --resolution-category ""

Default retrieval workflow:

  1. Start with keyword/text search when the issue words are concrete.
  2. Widen to vector search when wording may vary or keyword recall looks thin.
  3. Use account/technician/status/priority/category/department/class/submission/resolution filters when they materially narrow the search.
  4. Answer from retrieved evidence instead of jumping to canned conclusions.

Quick factual context from generated artifacts

Read these when a concise derived artifact is enough:

  • {baseDir}/.SherpaMind/public/docs/index.md
  • {baseDir}/.SherpaMind/public/docs/insight-snapshot.md
  • {baseDir}/.SherpaMind/public/docs/stale-open-tickets.md
  • {baseDir}/.SherpaMind/public/docs/recent-account-activity.md
  • {baseDir}/.SherpaMind/public/docs/recent-technician-load.md
  • {baseDir}/.SherpaMind/public/docs/runtime/status.md
  • {baseDir}/.SherpaMind/public/docs/accounts/index.md
  • {baseDir}/.SherpaMind/public/docs/technicians/index.md
  • {baseDir}/.SherpaMind/public/docs/tickets/index.md
  • {baseDir}/.SherpaMind/public/docs/accounts/*.md
  • {baseDir}/.SherpaMind/public/docs/technicians/*.md
  • {baseDir}/.SherpaMind/public/docs/tickets/ticket_*.md

Preferred answer flow

For broad questions like “what’s been going on with account X lately?” or “have we seen this before?”:

  1. Pull one structural summary first.
  2. Pull retrieval evidence second.
  3. Use generated public docs only when they add concise context.
  4. Give the user an answer grounded in the retrieved evidence.

Prefer factual retrieval over hand-authored interpretation.

End-to-end install and onboarding on another OpenClaw instance

If the user asks to install SherpaMind properly end-to-end into an OpenClaw instance, first check the host prerequisites and report any missing pieces plainly before continuing.

Minimum prerequisites to check:

  • python3 is present
  • Python venv/pip bootstrap works on that host
  • the host has network access for Python package installation
  • systemctl --user is available if background service mode is expected

If any prerequisite is missing, stop and tell the user exactly what is missing and what needs to be fixed.

Then use this flow from the installed skill bundle root:

  1. audit bootstrap/readiness first
    • python3 scripts/run.py bootstrap-audit
  2. bootstrap the skill-local runtime
    • python3 scripts/bootstrap.py
  3. run the setup flow
    • python3 scripts/run.py setup
  4. verify runtime state
    • python3 scripts/run.py doctor
  5. stage the SherpaDesk API key
    • python3 scripts/run.py stage-api-key --from-file
  6. discover organizations/instances
    • python3 scripts/run.py discover-orgs
  7. write the chosen org/instance into non-secret settings
    • python3 scripts/run.py configure --org-key --instance-key
  8. seed the local dataset
    • python3 scripts/run.py seed
  9. generate/refine the derived artifacts if needed
    • python3 scripts/run.py generate-public-snapshot
    • python3 scripts/run.py generate-runtime-status
  10. confirm the install is actually usable
    • python3 scripts/run.py dataset-summary
    • python3 scripts/run.py insight-snapshot
    • python3 scripts/run.py report-vector-index-status
  11. only then decide whether unattended background mode is wanted
    • python3 scripts/run.py install-service
    • python3 scripts/run.py service-status

Default expectation on Linux is that setup initializes the DB, cleans up any old SherpaMind cron jobs, and can generate an initial public snapshot. Treat user-level systemd installation as a later, explicit operator choice rather than part of the earliest bootstrap steps.

If service installation fails because the target host lacks usable systemctl --user, continue the bootstrap/config/seed flow anyway, report the service limitation clearly, and use python3 scripts/run.py service-run-once or python3 scripts/run.py service-run as the fallback operational mode instead of pretending the service installed.

If install/runtime/use issues or meaningful feature gaps are discovered while operating SherpaMind, check . If a matching issue exists, add supporting detail; otherwise open a new issue with clear reproduction/context. Keep issue content anonymized and public-safe.

Lifecycle and maintenance commands

Use these for setup/maintenance, not routine user queries:

  • python3 scripts/bootstrap.py
  • python3 scripts/run.py workspace-layout
  • python3 scripts/run.py doctor
  • python3 scripts/run.py backfill-technician-stubs
  • python3 scripts/run.py backfill-ticket-entity-stubs
  • python3 scripts/run.py bootstrap-audit
  • python3 scripts/run.py setup
  • python3 scripts/run.py migrate-legacy-state
  • python3 scripts/run.py archive-legacy-state
  • python3 scripts/run.py cleanup-legacy-cron
  • python3 scripts/run.py stage-api-key --from-file
  • python3 scripts/run.py discover-orgs
  • python3 scripts/run.py configure --org-key --instance-key
  • python3 scripts/run.py install-service
  • python3 scripts/run.py restart-service
  • python3 scripts/run.py service-status
  • python3 scripts/run.py generate-public-snapshot
  • python3 scripts/run.py generate-runtime-status

Boundaries

  • Treat SherpaMind as read-only unless the project explicitly grows write behavior later.
  • Keep attachment handling metadata-only by default.
  • Do not auto-download attachment bodies by default.
  • Treat docs, chunks, vector rows, and public Markdown artifacts as replaceable derived caches.
  • Let SherpaMind prepare and expose data; let OpenClaw interpret it at answer time.

References

Read these only when needed. Keep the action layer in this file lean; use the reference files for deeper architecture, retrieval, automation, and API details.

  • {baseDir}/README.md — current live project overview and command surface
  • {baseDir}/references/openclaw-query-model.md — query/retrieval model
  • {baseDir}/references/architecture-doctrine.md — backend vs skill-front boundary
  • {baseDir}/references/retrieval-architecture.md — retrieval and vector design
  • {baseDir}/references/bootstrap-onboarding.md — audit-first install/onboarding model
  • {baseDir}/references/automation.md — service/install/update model
  • {baseDir}/references/delta-sync-strategy.md — hot/warm/cold sync behavior
  • {baseDir}/references/api-reference.md — verified API/auth behavior

版本历史

共 2 个版本

  • v0.1.7 当前
    2026-05-03 06:41 安全 安全
  • v0.1.6
    2026-03-31 01:07 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MikroTik Encyclopedia

kklouzal
以文档优先的MikroTik RouterOS工作流程,针对MikroTik相关问题、故障排查、命令规划、实时CLI/API操作、配置审查、日志分析。
★ 0 📥 572
business-ops

Discord

steipete
当需要通过discord工具控制Discord时使用:发送消息、添加反应、发布或上传表情包、上传表情、创建投票、管理帖子/置顶/搜索、获取权限或成员/角色/频道信息,或在Discord私信或频道中处理管理操作。
★ 78 📥 37,991
business-ops

Stripe

byungkyu
Stripe API 集成,支持托管 OAuth,实现对客户、订阅、发票、产品、价格和支付的可写金融集成。
★ 27 📥 25,964