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

@zhaiye/codebase-ontology

v0.1.0

Published

Agent skill for generating codebase ontology YAML files.

Readme

Codebase Ontology Skill

一个给 AI agent 使用的 skill,用于阅读代码库,并在目标 codebase 中生成业务 Ontology 五要素 YAML 文档。

生成结果会写入目标 codebase 的 .ontology/ 目录,并按五要素拆分:

.ontology/
  README.md
  index.yaml
  object-types/object-types.yaml
  properties/properties.yaml
  link-types/link-types.yaml
  action-types/action-types.yaml
  functions/functions.yaml

安装

使用 npm 全局安装:

npm install -g @zhaiye/codebase-ontology

安装到 Codex 全局 skills:

codebase-ontology install --agent codex

安装到 Claude Code 全局 skills:

codebase-ontology install --agent claude

同时安装到 Codex 和 Claude Code:

codebase-ontology install --agent all

安装到当前项目:

codebase-ontology install --agent codex --scope project
codebase-ontology install --agent claude --scope project

项目级安装路径分别是:

Codex:      .codex/skills/codebase-ontology/
Claude:     .claude/skills/codebase-ontology/

使用

在目标代码库中,让 agent 使用该 skill:

使用 $codebase-ontology 为当前代码库生成 .ontology 五要素 YAML 文档。

也可以直接描述任务:

请分析这个 codebase,生成业务 ontology,并把五要素分别写到 .ontology 目录下。

CLI

查看将安装到哪里:

codebase-ontology doctor

预览安装但不写文件:

codebase-ontology install --agent all --dry-run

指定安装目录:

codebase-ontology install --target-dir ~/.codex/skills

卸载:

codebase-ontology uninstall --agent codex --yes

仓库结构

SKILL.md
references/ontology-output-structure.md
agents/openai.yaml
bin/codebase-ontology.js
package.json