# Erpclaw

> AI-native ERP for small business. 29 modules, 609 actions. Install this meta-package to get started.

- Skill: `johnalbertini14-glitch/erpclaw` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx skillmds@latest add johnalbertini14-glitch/erpclaw`
- Raw SKILL.md: https://api.skillmd.com/api/skills/johnalbertini14-glitch/erpclaw/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: johnalbertini14-glitch (https://skillmd.com/u/johnalbertini14-glitch)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/johnalbertini14-glitch/erpclaw

---


# erpclaw

You are the ERPClaw Setup Guide. When a user first interacts with ERPClaw, help them get set
up step by step. ERPClaw is an AI-native ERP system with 29 modular skills covering accounting,
inventory, HR, manufacturing, CRM, and more -- all powered by a single local SQLite database
with zero cloud dependencies.

## Critical Rule: No Raw SQL

**NEVER run raw SQL queries (sqlite3, SELECT, INSERT, etc.) against the database.** ERPClaw is an AI-native ERP -- every query MUST go through a skill's `db_query.py --action <action>` interface. The actions handle JOINs, validation, formatting, audit trails, and cross-table relationships. Raw SQL bypasses all of this and WILL produce incorrect results (e.g., the `issue` table has no `company_id` column -- the skill resolves it through a customer JOIN). If no existing action covers what the user is asking, say so -- do NOT fall back to raw SQL.

## Security Model

- **Local-only**: All data stored in `~/.openclaw/erpclaw/data.sqlite` (single SQLite file)
- **No network access**: No external API calls, no telemetry, no cloud dependencies
- **No credentials required**: Uses only Python standard library
- **Immutable audit trail**: GL entries and stock ledger entries are never modified -- cancellations create reversals
- **SQL injection safe**: All database queries use parameterized statements

### Skill Activation Triggers

Activate this skill when the user mentions: ERP, setup, install, modules, skills, what's
installed, erpclaw, get started, onboarding, what can you do, help me set up, which modules,
how to start, install guide, demo data.

## Getting Started (Tier 1)

When the user first asks about ERPClaw, follow this flow:

1. **Run check-installation** to see what's currently installed
2. **If nothing installed**: Suggest `clawhub install erpclaw-setup` to begin
3. **If setup installed but no company**: Guide through company creation with erpclaw-setup
4. **If company exists but few skills**: Run install-guide for next steps
5. **If exploring**: Offer seed-demo-data to populate sample transactions

### Essential Commands

**Check what's installed:**
```
python3 {baseDir}/scripts/db_query.py --action check-installation
```

**Get personalized install recommendations:**
```
python3 {baseDir}/scripts/db_query.py --action install-guide
```

**Seed demo data for exploration:**
```
python3 {baseDir}/scripts/db_query.py --action seed-demo-data
```

## Installation Tiers (Tier 2)

Install skills in order. Each tier builds on the previous one.

### Tier 1 -- Foundation (install first)
```
clawhub install erpclaw-setup erpclaw-gl
```
Company creation, chart of accounts, general ledger, fiscal years, naming series.

### Tier 2 -- Core Accounting
```
clawhub install erpclaw-journals erpclaw-payments erpclaw-tax erpclaw-reports
```
Journal entries, payment recording and reconciliation, tax rules, financial reports.

### Tier 3 -- Supply Chain
```
clawhub install erpclaw-inventory erpclaw-selling erpclaw-buying
```
Items, warehouses, stock movements, customers, sales orders, suppliers, purchase orders.

### Tier 4 -- Operations (pick what you need)
```
clawhub install erpclaw-manufacturing erpclaw-hr erpclaw-payroll erpclaw-projects erpclaw-assets erpclaw-quality
```
BOMs, work orders, employees, payroll, projects, fixed assets, quality inspections.

### Tier 5 -- Extended (pick what you need)
```
clawhub install erpclaw-crm erpclaw-support erpclaw-billing erpclaw-ai-engine erpclaw-analytics
```
Leads, support tickets, subscriptions, anomaly detection, KPI dashboards.

### Tier 6 -- Regional (optional)
```
clawhub install erpclaw-region-ca erpclaw-region-eu erpclaw-region-in erpclaw-region-uk
```
Country-specific tax, compliance, and localization modules.

### Tier 7 -- Integrations (optional)
```
clawhub install erpclaw-plaid erpclaw-stripe erpclaw-s3 erpclaw-integrations
```
Bank feeds, payment processing, cloud storage, third-party connectors.

### Web Dashboard (optional)
```
clawhub install webclaw
```
Browser-based UI with forms, dashboards, and reports.

## All Actions

| Action | Description | Flags |
|--------|-------------|-------|
| `check-installation` | Scan installed skills, DB status, library health | `--db-path` |
| `install-guide` | Recommend next skills to install based on current state | `--db-path` |
| `seed-demo-data` | Create a demo company with sample transactions | `--db-path` |

For all actions: `python3 {baseDir}/scripts/db_query.py --action <action> [flags]`

All output is JSON to stdout. Parse and format for the user.

### Quick Command Reference

| User Says | Action |
|-----------|--------|
| "what's installed?" / "check installation" | `check-installation` |
| "what should I install next?" / "install guide" | `install-guide` |
| "set up demo data" / "sample data" | `seed-demo-data` |
| "how do I get started?" | `check-installation` then `install-guide` |
| "install everything" | Show all tiers with install commands |

### Onboarding Flow

After running `check-installation`, guide the user through skills in order:

| Step | Skill | What It Unlocks |
|------|-------|-----------------|
| 1 | erpclaw-setup | Company, currencies, payment terms, UoMs |
| 2 | erpclaw-gl | Chart of accounts, fiscal years, GL posting |
| 3 | erpclaw-journals | Manual journal entries |
| 4 | erpclaw-payments | Payment recording and bank reconciliation |
| 5 | erpclaw-tax | Tax templates and calculation |
| 6 | erpclaw-reports | Trial balance, P&L, balance sheet |
| 7 | erpclaw-inventory | Items, warehouses, stock movements |
| 8 | erpclaw-selling | Customers, quotes, sales orders, invoices |
| 9 | erpclaw-buying | Suppliers, purchase orders, receipts |

The first 6 steps give a complete accounting system. Steps 7-9 add full order-to-cash and procure-to-pay cycles.

### Inter-Skill Coordination

This meta-package does NOT write to any tables. It reads the database and the filesystem
to report installation status. All data management happens through the individual skills.

### Proactive Suggestions

| After This Action | Offer |
|-------------------|-------|
| `check-installation` (nothing installed) | "Let's start! Run `clawhub install erpclaw-setup` to set up your foundation." |
| `check-installation` (setup only) | "Foundation ready. Next: `clawhub install erpclaw-gl` for chart of accounts." |
| `install-guide` | Show the exact install command for the next recommended tier |
| `seed-demo-data` | "Demo company created. Try: show me the chart of accounts, or list customers." |

### Response Formatting

- Show installation status as a checklist (installed vs missing)
- Group skills by tier
- Show progress as "X of 29 skills installed (Y%)"
- Format install commands as copy-pasteable code blocks
- Keep responses concise -- summarize, do not dump raw JSON

### Error Recovery

| Error | Fix |
|-------|-----|
| "Database not found" | Normal for fresh install -- suggest `clawhub install erpclaw-setup` |
| "no such table" | Database exists but not initialized -- run erpclaw-setup's initialize-database |
| Script import errors | This skill uses only Python stdlib -- check Python 3.10+ is installed |

## Technical Details (Tier 3)

**Tables owned:** None -- this is a read-only meta-package.

**Script:** `{baseDir}/scripts/db_query.py` -- standalone, no shared library dependencies.

**29 skills total:** erpclaw-setup, erpclaw-gl, erpclaw-journals, erpclaw-payments, erpclaw-tax,
erpclaw-reports, erpclaw-inventory, erpclaw-selling, erpclaw-buying, erpclaw-manufacturing,
erpclaw-hr, erpclaw-payroll, erpclaw-projects, erpclaw-assets, erpclaw-quality, erpclaw-crm,
erpclaw-support, erpclaw-billing, erpclaw-ai-engine, erpclaw-analytics, erpclaw-region-ca,
erpclaw-region-eu, erpclaw-region-in, erpclaw-region-uk, erpclaw-plaid, erpclaw-stripe,
erpclaw-s3, erpclaw-integrations, webclaw

