xskill-registry-db-first

XSkill data-access principle: the filesystem is the source of truth and workers sync files into the database; panel and business read requests must read only from the database; the core agent loop may write directly to disk. Applicable when changing or reviewing read paths such as dashboard, recommend, team, pipeline, ecosystems, and when auditing whether business-side disk scanning has been introduced.

Last repository push
GitHub Stars
129
Forks
27
Issues / PRs
34

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "xskill-registry-db-first" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-591d319d15d47f7a15d1d8ce309ffbcde8e0632da9e9375ef486a17cc0d5395e. Verify the upstream source and version against https://github.com/SkillNerds/xskill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

XSkill data-access principle: the filesystem is the source of truth and workers sync files into the database; panel and business read requests must read only from the database; the core agent loop may write directly to disk. Applicable when changing or reviewing read paths such as dashboard, recommend, team, pipeline, ecosystems, and when auditing whether business-side disk scanning has been introduced.

0 Downloads

Introduction source: third_party · SkillNerds · 0.0.1 Reference

SkillPi interpretation

Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: xskill-registry-db-first
description: >-
  XSkill 数据访问原则:文件系统是内容真相,由 worker 同步进库;面板与业务读
  请求只走数据库;内核 agent loop 可直接写盘。适用于改 dashboard、recommend、
  team、pipeline、ecosystems 等读路径,以及审查是否又引入业务侧扫盘。

XSkill 盘与库

改读数据相关代码,或审查业务请求是否又在扫盘时,先看本 skill。

各库职责与每张表的 schema 见 databases.md。

架构

整体分三层。

文件系统存内容真相,例如 skill 目录里的文件。这些内容不会在每次面板请求时被重新扫描聚合。

有 worker 定期把文件系统上需要给业务侧查询的信息同步进 SQLite。同步可以按文件是否变化做增量。新的「盘到库」需求应并进已有扫描过程,而不是再开一轮同等规模的全量遍历。

面板、对外 API、推荐与其它业务读请求,一律通过数据库访问投影后的数据。业务侧不自己搭扫盘逻辑去凑结果。

内核里的 agent loop 在跑管线时可以直接读写文件系统,这是写真相的一侧,与业务读路径分开。

规则

业务面新增或修改请求时,所需数据从对应数据库取。不允许在业务请求路径里私自增加扫盘、全目录遍历、按请求反复读盘聚合。

若发现库与盘不一致,应修同步入口,而不是在查询里临时扫盘兜底。

若有新的文件系统到数据库的同步需求,去改现有的扫描同步 worker,把新投影挂进同一次遍历。不要为每个新需求再加一轮 N 加一的全量扫盘,以保持 IO 可控。

新建业务库前先查 databases.md。已有库能覆盖的,不要平行再造一套真相。

多实例或独立 home 访问库时,路径要显式,避免误连全局默认库。

检查

  1. 这次读的数据属于哪一个库?见 databases.md。
  2. 改的是业务读路径,还是内核写盘 / worker 同步?三者不要混用扫盘策略。
  3. 若要加盘到库同步,是否已并进现有 worker 的同一轮扫描?
  4. PR 是否在面板或 API 热路径新增了扫盘?有则打回。

Version history

  1. v0.7.0 GitHub ↗
    Original release notes

    v0.7.0 Generate 读轨迹改为 traj_search、traj_cards、atom_search、read_traj,wiki 可增量记进度。SKILL.md 还是 stub 时 commit_generate_main 拒绝提交。 `xskill init` 可跳过连接:回车、空地址或空 token 都完成本机引导。已连接用户再跑 init 不会断连。 另有 traj 与 atom 的 CLI,以及可选 OTel(`xskill[obs]`,设 XSKILL_OTEL_ENDPOINT)。 安装: pip install -U xskill 指定本版: pip install -U xskill==0.7.0 PyPI:https://pypi.org/project/xskill/0.7.0/

  2. v0.6.31 GitHub ↗
    Original release notes

    v0.6.31 - `xskill rebuild --force` 不再因 `.git/objects` Directory not empty 中断(#231) - 全量 rebuild 会留下 `xskill import` 纳入的技能,只清蒸馏产物 - `xskill upload` 本来就在 skillhub 目录,不在这次清仓范围 PyPI: https://pypi.org/project/xskill/0.6.31/

  3. v0.6.30 GitHub ↗
    Original release notes

    v0.6.30 - team `xskill import` 成功后钉到发起人推荐列表(有 user_name 才钉,匿名不钉),立刻出现在「我的」 - 技能库登录后可点空心星 pin 进自己的推荐流;已推送显示「推给我」,已钉显示 pinned·自己 / admin / 全局 - import 后写入 skills_catalog,技能库列表能立刻看到新技能(#225) https://pypi.org/project/xskill/0.6.30/

  4. v0.6.29 GitHub ↗
    Original release notes

    ## v0.6.29 Stable cut of the 0.6.29a line. - Recommend: relevance polling / interest centers, backfill fix - Install ledger SQLite + orphan reclaim - Dashboard「我的」页、推送对象 / routing、take_n - pymilvus optional (`xskill[milvus]`) - SkillHub exact match Top1 PyPI: https://pypi.org/project/xskill/0.6.29/

  5. v0.6.28 GitHub ↗
    Original release notes

    ## v0.6.28 本次正式版重点解决高并发蒸馏、海量 baby candidates 的可恢复编辑,以及团队 Skill 搜索和下载路径的一致性。`v0.6.27` 用户可直接升级,旧配置会在内存中自动兼容,不会改写用户的 YAML。 ### 主要变化 - **四池并行 agent-worker**:split、cluster、edit、embed 使用独立线程池,并增加共享 LLM 限流、Embedding 并发限制、Atom 去重恢复、串行文件写入和 worker 状态接口。 - **SkillEdit 冷启动断点续跑**:baby 默认按 FIFO 每 5 个原子产生一个真实 checkpoint;`commit_baby` 精确消费框架绑定的 candidate ID。429、上下文超长等失败会按 `N → floor(N/2) → 1` 缩批,成功后恢复默认 N;candidates 清空后由框架晋升 main。 - **更可读的 SkillEdit 日志**:每个 skill 使用单一追加日志,记录 turn/round、token 阈值、工具摘要、消费 ID、重试缩批、spill 和 compact;上下文优先 spill,compact 仅作为兜底。 - **统一团队搜索**:生成的 repository skills 与 SkillHub 进入同一 BM25 + semantic + RRF 语料和排序;baby-only skill 不进入用户检索结果,main/staging 分配保持稳定。 - **搜索与下载语义修复**:`xskill search` 默认只返回紧凑元数据;原有自动下载行为迁移到 `xskill search --download`。`xskill download <skill-id>` 支持持久安装、交互式多选、重复 `--agent` 和非交互 `-y`。 - **共享安装与用户编辑修复**:显式目标不再被 detector 假阴性阻断;共享 symlink/junction 不再触发错误的 copy reverse-sync。 - **兼容与隐私边界**:兼容 v0.6.27 的 `watcher.max_concurrent`、`watcher.cluster_batch_size` 和旧 rate-limit 字段;用户可见 Skill 内容不再依赖无法访问的服务器 atom/traj 引用。 ### 升级 ```bash python -m pip install --upgrade xskill==0.6.28 ``` Python 要求仍为 3.9 及以上。已有 v0.6.27 配置无需手工迁移;显式的新四池配置始终优先。 ### 验证 - Python 3.9、3.10、3.11、3.12 发布测试全部通过。 - Linux、macOS、Windows 的 UT/IT、smoke、connect lifecycle 与 CodeQL 门禁通过。 - 11 个 SkillEdit BDD 场景通过,其中 aimock 真实贯通 Agno/OpenAI HTTP、tool calls、Git checkpoint 与 candidate 消费。 - SkillEdit mutation testing:47/47 mutants killed。 - SkillHub search/dashboard/sync 发布 smoke 通过。 - wheel、sdist、包内容校验和 Twine check 通过。 ### 相关变更 - [#134 四池并行 agent-worker](https://github.com/SkillNerds/xskill/pull/134) - [#136 v0.6.27 配置兼容](https://github.com/SkillNerds/xskill/pull/136) - [#140 atom 引用的服务器边界](https://github.com/SkillNerds/xskill/pull/140) - [#141 统一 repository 与 SkillHub 搜索](https://github.com/SkillNerds/xskill/pull/141) - [#145 搜索、下载与共享链接用户编辑](https://github.com/SkillNerds/xskill/pull/145) - [#147 SkillEdit baby checkpoint 与断点续跑](https://github.com/SkillNerds/xskill/pull/147) - [#148 aimock BDD 与 mutation testing](https://github.com/SkillNerds/xskill/pull/148) **完整差异**:https://github.com/SkillNerds/xskill/compare/v0.6.27...v0.6.28

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value82/100

Highlights

  • 提供清晰的 XSkill 数据访问三层架构原则,解决业务侧扫盘与数据一致性痛点
  • 适用于多个核心模块(dashboard、recommend、team、pipeline、ecosystems)的读路径改造
Trigger Precision88/100

Highlights

  • 触发词精准覆盖具体业务场景与模块,边界清晰,便于开发者识别适用场景
Structure and Standards75/100

Highlights

  • 结构清晰,分架构、规则、检查三部分,提供可操作的检查清单
Execution Reliability65/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    SKILL.md 中引用了 databases.md 文件,但该文件未传入 ZIP 包

    Recommendation: 请补充 databases.md 文件,或在文档中移除对该文件的引用

Highlights

  • 原则描述准确,逻辑闭环,提供了具体的审查检查项
Evidence Verifiability (mean of the first four)78/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.