npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sayoriqwq/partita

v0.2.3

Published

CLI-backed Codex skill harness for user-defined workflow skills.

Readme

Partita

partita 是 CLI-backed Codex skill harness,用来维护 sayori 自己创建或 maintain 的 skills workspace、workflow skills 和治理机制。

Partita 当前目标是 personal skill workflow/source harness。

Partita 不 owns user-home dotfile materialization、global runtime skill universe、provider runtime、external skill collections、target-repo runtime copies 或 one-off workflow history。

State

  • skills/ 是 self-owned skill source input。
  • primitive/ 存放可复制到 skill-local references 的 primitive reference body source。
  • src/partita/ 负责 Partita-specific verification、pin、skills.sh skill runtime wrapper 和 chezmoi home adapter。
  • tests/ 承载 executable behavior checks。
  • root operating docs 是 README.mdAGENTS.md
  • Turbo/pnpm workspace 保留,即使 packages/ 暂时没有 active package。

当前没有 dispatcher、docs baseline 或 repo-internal materialization layer。

以下 surfaces 已废弃,MUST NOT 恢复,除非用户显式要求从第一性原理重新设计:

  • docs/skills/
  • harness/skills/dispatcher.md
  • partita.materialize.json
  • MIGRATION.md
  • packages/wiki/
  • runtime/references/
  • .codex-plugin/

Map

  • bin/partita.ts 是 TypeScript/Effect CLI entrypoint。
  • src/cli/Main.ts 定义 CLI command surface。
  • src/partita/verifier.ts 校验 Partita source shape,并阻止迁出 surfaces 回流。
  • src/partita/openai-skill-validation.ts 校验 OpenAI/Codex runtime skill folder 的基础可用性。
  • src/partita/partita-skill-validation.ts 在 runtime 层之上校验 Partita source skill contract。
  • src/partita/projection.ts 定义 identity、invocation、metadata 和 selector 的 deterministic projections。
  • src/partita/pin.ts 管理 GitHub git-subtree pins。
  • src/partita/skill.ts 是 skills.sh CLI 的 thin wrapper。
  • src/partita/home.ts 是 chezmoi CLI 的 thin wrapper。

Commands

pnpm verify
pnpm verify-runtime
pnpm verify-source
pnpm primitive-sync
pnpm skill-sync
pnpm skill-status
pnpm skill-verify
pnpm home:status
pnpm home:diff

Npm CLI

Partita CLI 发布为 @sayoriqwq/partita,bin name 是 partita

下游仓库不应该依赖本机 sibling repo 路径;GitHub subtree pin 应通过 package-level CLI 调用:

npx @sayoriqwq/partita pin status --name effect --prefix repos/effect --contract repos/effect.subtree.json
npx @sayoriqwq/partita pin verify --name effect --prefix repos/effect --contract repos/effect.subtree.json
npx @sayoriqwq/partita pin publish --name effect --prefix repos/effect --contract repos/effect.subtree.json --archive out/effect.pta --provenance out/effect.json
pnpm dlx @sayoriqwq/partita pin verify --name effect --prefix repos/effect --contract repos/effect.subtree.json

pin plan 用于生成 GitHub git-subtree pin contract 和 editor settings shape:

npx @sayoriqwq/partita pin plan --name effect --prefix repos/effect --contract repos/effect.subtree.json --repository https://github.com/Effect-TS/effect --branch main --ref <commit-or-split>

默认 contract path 是 repos/<name>.subtree.json,和 repos/<name>/ 并列。

Loop

Partita 不直接写 global runtime skill universe。

Codex global skill installation 由 skills.sh CLI 负责。Partita 的 skill wrapper 只调用 skills.sh CLI,把 ./skills 同步到 flat global skills:

pnpm skill-sync
pnpm skill-status
pnpm skill-verify

用户目录里的唯一 global runtime copy 是 ~/.agents/skills/<name>

skill-sync 运行 npx skills add ./skills -a codex -g --skill '*' -y --full-depth

skill-status 运行 npx skills list -g -a codex --json,并比对 Partita source skill names 和 installed runtime names。

skill-verify 在 status 之上 hard-check runtime folder contents 是否和 Partita source skill directories 一致。

不要同时把 Partita 安装进 personal Codex plugin marketplace;plugin cache 会生成 partita:<skill> 副本,和 flat global skill 形成双入口。

chezmoi 负责 user-home mapping 和 dotfile materialization。

Partita 的 home adapter 只调用 chezmoi,不直接编辑用户目录:

pnpm home:status
pnpm home:diff
partita home apply --write

partita home diff 运行非写入的 chezmoi diff。只有显式传入 --write 时,partita home apply 才运行 chezmoi apply

Pins

partita pin 只支持 GitHub repository + git subtree pin。

Partita is the generic producer for Source Pin publications. The Prelude Contract canonical tree archive protocol is normative for wire framing, entry meaning, the logical tree digest, decoder limits, and compatibility. Partita consumes that codec; it does not define a second Partita-private archive format.

pin publish has these observable boundaries:

  • inputs: the repository root, a GitHub subtree contract, its bounded Source Pin prefix, and separate repository-relative archive/provenance output paths;
  • verification: contract identity, immutable subtree revision, committed Git index and working-tree equality, tracked filesystem kind/mode/bytes, safe relative symbolic links, opaque internal Gitlinks, and output confinement;
  • outputs: one deterministic prelude-canonical-tree-archive-v1 ordinary file and path-independent provenance JSON containing archive format plus the outer source URL, immutable revision, and complete logical tree digest;
  • failures: contract or revision drift, staged/unstaged/untracked content, missing or unsupported entries, unsafe links, prefix Gitlinks, Git/filesystem inspection errors, invalid or aliased output paths, and Contract encoder or provenance validation failures all stop publication.

The provenance treeDigest is the digest recomputed by the Contract encoder from the same verified logical entries carried by the archive; it is not a hash of the archive container bytes. Repeating publication from identical inputs must produce byte-identical archive and provenance files.

Partita does not choose Harness Target locators, routes, anchors, or referenceOnly delivery policy. Effect Harness is a concrete composer of Partita publications; Prelude is the consumer and only materialization host for active Harness-owned Outputs. Explicitly authorized Harness-delivered skills adapt Target-owned surfaces after those stable Outputs are delivered.

默认 contract path 是 subtree prefix 的 sibling 文件。

例如:

partita pin plan --name effect --prefix repos/effect --repository https://github.com/Effect-TS/effect --branch main
partita pin publish --name effect --prefix repos/effect --archive out/effect.pta --provenance out/effect.json

默认读取或生成:

repos/effect.subtree.json

repos/<name>/ 是 read-only external source materialization,不是 Partita-owned skill source。

Pinned upstream 内部的 gitlinks 是 opaque reference boundaries。partita pin verify 只 hard-block pin prefix 本身被 materialize 为 mode 160000 的 gitlink;不会 follow、fetch、checkout、materialize 内部 gitlink,也不要求为它们创建额外 subtree contract。

Verification

partita verify 默认运行完整 project 层。

需要只看某一层时:

partita verify --level runtime
partita verify --level source
partita verify --level project

runtime 只校验 OpenAI/Codex skill folder 可用性。

source 在 runtime 层之上校验 Partita V1 section、marker、description policy、agents/openai.yaml 和 source path。

project 在 source 层之上校验 links、迁出 surface 和 root shape。

Skill

只有在用户明确 skill behavior 后,才能新增 skill。

创建或修改 skill 时,直接维护 skill-local source 和 references。

primitive/ 是 authoring-time copy source。它保存可复制到 skill-local references/ 的概念正文,例如 primitive/case.md

primitive/ 不是 runtime shared reference layer。installed runtime skills MUST NOT 依赖 primitive/,需要的材料必须复制到自己的 references/ 中。

更新 primitive reference copies 时运行:

pnpm primitive-sync

partita primitive sync 会按内置 copy registry 把 primitive/<name>.md 的正文复制到对应 skill-local references/;如果 source 带 frontmatter,copy 时会剥离 frontmatter。partita verify 会检查这些 copies 没有 drift。

runtime skill MUST 自包含执行所需 references;MUST NOT 依赖另一个 skill 的 references/

minimum shape:

skills/<name>/SKILL.md
skills/<name>/agents/openai.yaml
skills/<name>/{scripts,references,assets}/...
skills/expression/<name>/SKILL.md
skills/expression/<name>/agents/openai.yaml
skills/expression/<name>/{scripts,references,assets}/...
skills/link/<name>/SKILL.md
skills/link/<name>/agents/openai.yaml
skills/link/<name>/{scripts,references,assets}/...
skills/orientation/<name>/SKILL.md
skills/orientation/<name>/agents/openai.yaml
skills/orientation/<name>/{scripts,references,assets}/...
skills/maintenance/<name>/SKILL.md
skills/maintenance/<name>/agents/openai.yaml
skills/maintenance/<name>/{scripts,references,assets}/...
skills/primitive/<name>/SKILL.md
skills/primitive/<name>/agents/openai.yaml
skills/primitive/<name>/{scripts,references,assets}/...

每个 Partita skill MUST 有 agents/openai.yaml,因为它承载 skill 的 invocation policy runtime metadata。

description 是 Codex selector surface:保持 40-500 characters,以 Use whenUse for 开头,并包含 Not for

Partita skill creation form 使用 projection 生成 runtime surfaces:

  • identity.slug 投影为 SKILL.md frontmatter name
  • identity.title 投影为 agents/openai.yamlinterface.display_name
  • identity.family + identity.slug 投影为 handle、marker 和 source path。
  • invocation.selector.use_when / do_not_use_when 投影为 frontmatter description## Pattern
  • invocation.policy.allow_implicit_invocation 投影为 agents/openai.yamlpolicy.allow_implicit_invocation

Partita 从 SKILL.md frontmatter 只读取 namedescription

policy.allow_implicit_invocation MUST 位于 agents/openai.yamlpolicy block 下。

source namespaces 只影响 Partita source organization;frontmatter 和 global installed skills 保持 short skill name。

新增或修改 skill 后运行:

pnpm verify

Acknowledgement

早期探索参考了 Waza,其由 Tw93 以 MIT License 发布。

Partita 不 ship Waza 的 skill taxonomy 或 skill contents。