# g0

> GroundZero (g0) is the package manager for AI coding.

Latest version **0.4.1** (published 2025-11-15) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install g0
pnpm add g0
yarn add g0
bun add g0
```

Provides the command `g0`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2025-11-15 |
| First published | 2025-10-30 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 (+12 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 615 |
| Author | Eric Lee |
| Maintainers | hyericlee |
| Keywords | cli, ai, coding, package-manager, rules, commands, agents, groundzero, g0, gpm |

## Links

- npm: https://www.npmjs.com/package/g0
- Repository: https://github.com/groundzero-ai/cli
- Homepage: https://groundzero.enulus.com
- Issues: https://github.com/groundzero-ai/cli/issues
- npm.io page: https://npm.io/package/g0

## Dependencies (9)

- [tar](https://npm.io/package/tar.md) ^6.2.0
- [junk](https://npm.io/package/junk.md) ^4.0.1
- [nanoid](https://npm.io/package/nanoid.md) ^5.0.7
- [semver](https://npm.io/package/semver.md) ^7.7.2
- [js-yaml](https://npm.io/package/js-yaml.md) ^4.1.0
- [prompts](https://npm.io/package/prompts.md) ^2.4.2
- [commander](https://npm.io/package/commander.md) ^14.0.0
- [hash-wasm](https://npm.io/package/hash-wasm.md) ^4.12.0
- [gray-matter](https://npm.io/package/gray-matter.md) ^4.0.3

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.4.1 (latest) — 2025-11-15
- 0.4.0 — 2025-11-09
- 0.3.7 — 2025-11-05
- 0.3.6 — 2025-11-03
- 0.3.3 — 2025-10-31
- 0.3.0 — 2025-10-30

## README

# GroundZero Package Manager

<a href="https://www.npmjs.com/package/g0" target="blank">
  <img src="https://img.shields.io/npm/v/g0?style=flat-square" alt="Npm package for GroundZero package manager">
</a>
<a href="https://discord.gg/W5H54HZ8Fm"  target="blank">
  <img src="https://img.shields.io/badge/Discord-%235865F2.svg?&logo=discord&logoColor=white&style=flat-square" alt="GroundZero Discord">
</a>
<br /><br />

GroundZero (g0) is the package manager for AI coding.

Save and sync rules, slash commands, agents, and more.  
Build reusable formulas for use across multiple projects and AI coding platforms.

Learn more in the [official documentation](https://groundzero.enulus.com/docs).

Looking to discover, download, or publish formulas?  
Check out the official [GroundZero formulas registry](https://groundzero.enulus.com). 

> [!NOTE]  
> For latest news and updates, follow the creator's X (Twitter) account
> [@hyericlee](https://x.com/hyericlee)
> or official [@groundzero_ai](https://x.com/groundzero_ai)

## Installation

npm
```bash
npm install -g g0
```
## Use Cases

### Reuse files across multiple codebases
Reuse rules, slash commands, and more across multiple codebases.
```bash title="Terminal"
# In current codebase
g0 save essentials
# In another codebase
g0 install essentials
```  

### Sync files across multiple platforms
Automatically sync your rules, slash commands, and more across multiple platform.
```bash title="Terminal"
# Current codebase has .cursor, .claude, .opencode directories
g0 save essentials .cursor/commands/essentials
# GroundZero CLI automatically generates/syncs the same command files across all platforms.

# Before save:
# .cursor/commands/essentials/clean-code.md

# After save:
# .cursor/commands/essentials/clean-code.md
# .claude/commands/essentials/clean-code.md
# .opencode/command/essentials/clean-code.md
```  

### Modular management of files
Create domain specific formulas for modular reuse.
```bash title="Terminal"
# Create typescript formula
g0 add typescript .cursor/rules/typescript
g0 save typescript

# Create scalable-nextjs formula
g0 add scalable-nextjs .cursor/rules/nextjs
g0 save scalable-nextjs

# Create scalable-nestjs formula
g0 add scalable-nestjs .cursor/rules/nestjs
g0 save scalable-nestjs

# Create mongodb formula
g0 add mongodb .cursor/rules/mongodb
g0 save mongodb

# In your NextJS codebase
g0 install typescript
g0 install scalable-nextjs

# In your NestJS codebase
g0 install typescript
g0 install scalable-nestjs
g0 install mongodb
```  

## Usage

> [!TIP]  
> Formulas are essential to how GroundZero works. We highly recommend reading [What are Formulas?](https://groundzero.enulus.com/docs/what-are-formulas) to understand how formulas work.

### Add files/dirs to formula
```bash title="Terminal"
g0 add <formula-name> <path-to-dir-or-file>
```  
Adds dirs or files to the formula.  

### Save a formula
```bash title="Terminal"
g0 save <formula-name>
```  
Save the set of dirs and files as a formula for reuse and cross-platform sync.

### List formulas
```bash title="Terminal"
g0 list
```  
Use the list command to show all formulas currently saved to the local registry.  

### Show formula details
```bash title="Terminal"
g0 show <formula-name>
```  
The show command outputs the details of the formula and lists all included files.

### Install a formula
```bash title="Terminal"
g0 install <formula-name>
```  
Use the install command to add all files under the specified formula to the codebase at cwd.

### Uninstall a formula
```bash title="Terminal"
g0 uninstall <formula-name>
```  
Use the uninstall command to remove all files for the specified formula from the codebase at cwd.

> [!TIP]  
> Learn more by heading over to the [official docs](https://groundzero.enulus.com/docs).

## Supported Platforms

GroundZero performs installation and platform sync of files for supported AI coding platforms outlined by the table below.  
Files and paths will be automatically converted to platform specific designations during `save` and `install`.

> [!NOTE]  
> GroundZero only searches and includes markdown files under supported platform directories and the root `ai/` directory.

| Platform | Directory | Root file | Rules | Commands | Agents | Skills |
| --- | --- | --- | --- | --- | --- | --- |
| Augment Code | .augment/ | | rules/ | commands/ | | |
| Claude Code | .claude/ | CLAUDE.md | | commands/ | agents/ | skills/ |
| Codex | .codex/ | AGENTS.md | | prompts/ | | |
| Cursor | .cursor/ | AGENTS.md | rules/ | commands/ | | |
| Factory | .factory/ | AGENTS.md | | commands/ | droids/ | |
| Kilo Code | .kilocode/ | AGENTS.md | rules/ | workflows/ | | |
| Kiro | .kiro/ | | steering/ | | | |
| OpenCode | .opencode/ | AGENTS.md | | command/ | agent/ | |
| Qwen Code | .qwen/ | QWEN.md | | | agents/ | |
| Roo | .roo/ | AGENTS.md | | commands/ | | |
| Warp | .warp/ | WARP.md | | | |
| Windsurf | .windsurf/ | | rules/ | | | |

## Contributing

We would love your help building the future of package management for AI coding.  

Feel free to create [PRs](https://github.com/groundzero-ai/cli/pulls) and [Github issues](https://github.com/groundzero-ai/cli/issues) for:
- Bugs
- Feature requests
- Support for new platforms
- Missing standard behavior
- Documentation

## Links

- [Official Website and Registry](https://groundzero.enulus.com)
- [Documentation](https://groundzero.enulus.com/docs)
- [Discord](https://discord.gg/W5H54HZ8Fm)
- [X (Twitter)](https://x.com/groundzero_ai)

---
_Source: https://npm.io/package/g0 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
