{"id":50865364,"url":"https://github.com/koompi/koompi-biz-skill","last_synced_at":"2026-06-15T00:33:34.019Z","repository":{"id":348665358,"uuid":"1199250146","full_name":"koompi/koompi-biz-skill","owner":"koompi","description":"KOOMPI BIZ AI SKILL: For Simplicity, we also gonna call it Riverbase SKILL for old name backward compat","archived":false,"fork":false,"pushed_at":"2026-06-10T04:29:13.000Z","size":197,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-15T00:32:57.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koompi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-02T07:09:13.000Z","updated_at":"2026-06-10T04:29:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/koompi/koompi-biz-skill","commit_stats":null,"previous_names":["koompi/koompi-bis-skill","koompi/koompi-biz-skill"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koompi/koompi-biz-skill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koompi%2Fkoompi-biz-skill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koompi%2Fkoompi-biz-skill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koompi%2Fkoompi-biz-skill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koompi%2Fkoompi-biz-skill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koompi","download_url":"https://codeload.github.com/koompi/koompi-biz-skill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koompi%2Fkoompi-biz-skill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34343312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-15T00:33:33.274Z","updated_at":"2026-06-15T00:33:33.997Z","avatar_url":"https://github.com/koompi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Riverbase Skill\n\nMachine-readable skill files that let **any AI agent** manage a Riverbase shop entirely through the GraphQL API — no frontend or Mini App needed.\n\n## What is this?\n\nRiverbase is a Telegram-native commerce platform. Shop owners normally manage products, orders, inventory, and settings through a web dashboard or the Telegram Mini App.\n\nThis repo replaces that UI layer with a structured set of **executable GraphQL references** so an AI agent (ChatGPT, Claude, Gemini, your own bot, etc.) can do everything the dashboard can — directly from a conversation.\n\nGive the agent a JWT token and a shop ID, and it can:\n\n- Create and update products, categories, and brands\n- Process orders through PENDING → CONFIRMED → COMPLETED\n- Handle payments (COD, ABA Transfer, direct)\n- Manage inventory across multiple warehouse locations\n- Configure shipping fees, delivery zones, and options\n- Create coupons and discount rules\n- Manage staff roles and permissions\n- Set business hours, announcements, and shop modules\n- **Customize shop layout: header, footer, about page, and blog layout**\n- **Section Explorer: build storefront homepages with 20+ section kinds (hero, promo mosaic, FAQ, testimonials, countdown, video, etc.) — each with per-section background, text color, and draft/published lifecycle**\n- **Discount engine: line-item / cart / shipping / BXGY rules, plus merchant overrides (`forceApply`, `exclusionGroupId`, `exclusiveWithBxgy`) and per-customer caps**\n- **Combo / bundle products** with optional per-component discounting\n- **Shade Finder** (cosmetics try-on) — map product variants to shades over lips / eyes / lashes / cheeks / foundation\n- **Telegram broadcasts + DMs + owner report groups** for shop comms\n- **Receipt printing**: multi-tenant RabbitMQ pipeline, providers + printers, per-printer paper/font/margin configuration, auto-print rules, manual job control\n- **CMS: create and publish blog posts with customizable blog page layouts**\n- Run a loyalty/membership program\n- Send contract quotations\n- Connect custom domains\n- Install and configure plugins\n\n## For Humans\n\nBrowse the skill files to understand the full Riverbase API surface:\n\n```\nSKILL.md                          ← Start here: auth, enums, routing table\nskills/\n  catalog/\n    products.md                   ← Product CRUD, search, variants, archive\n    categories.md                 ← Categories \u0026 subcategories\n    brands.md                     ← Brand CRUD\n  orders/\n    lifecycle.md                  ← Order state machine, POS creation\n    queries.md                    ← List, filter, stats, dashboard\n    payments.md                   ← Payment processing, COD, ABA\n  inventory/\n    locations.md                  ← Warehouse/store locations\n    transactions.md               ← Stock in/out, transfers, adjustments\n    checks.md                     ← Stock balance, availability checks\n  admin/\n    shop.md                       ← Shop settings, GPS, bot, customers\n    modules.md                    ← Feature toggles, business hours\n    team.md                       ← Roles \u0026 members\n    shipping.md                   ← Shipping rules \u0026 delivery options\n    discounts.md                  ← Coupons \u0026 discount rules (force apply, exclusion groups, BXGY, recipes)\n    sections.md                   ← Section Explorer + canvas designs (20+ section kinds, kindConfig, backgrounds, draft/publish lifecycle)\n    shop-layout.md                ← Header, footer, about page \u0026 blog layout customization\n    appearance.md                 ← Theme colors, fonts, border radius, branding\n    pages.md                      ← Custom pages (about, terms, FAQ, contact)\n    seo.md                        ← Meta title, description, favicon, og image\n    customer-auth.md              ← Customer login, Telegram auth\n    customer-service-agent.md     ← Build customer-facing CS bots\n    broadcasts.md                 ← Telegram broadcasts, DMs, owner report groups\n    printing.md                   ← Receipt printer setup, auto-print rules, print jobs\n  advanced/\n    membership.md                 ← VIP tiers \u0026 membership cards\n    quotations.md                 ← Contract quotations \u0026 revisions\n    content.md                    ← Blog posts, events \u0026 CMS/blog layout\n    dns.md                        ← Custom domain management\n    plugins.md                    ← Plugin marketplace\n  superadmin/\n    dashboard.md                  ← Platform-wide metrics \u0026 revenue\n    shops.md                      ← All shops, activate/deactivate\n    users.md                      ← All users, freeze/activate\n    business-categories.md        ← Platform business category CRUD\n```\n\nEach file contains **copy-paste-ready GraphQL** queries and mutations with exact field names, enum values, and variable types — extracted from the production frontend.\n\n## For AI Agents\n\n### Quick Start\n\n1. **Load [`SKILL.md`](SKILL.md)** — it contains auth setup, the enum reference, and a keyword-based router table.\n2. **Run the Bootstrap Query** (in SKILL.md) to resolve the user's `shopId`.\n3. **Load only the sub-file you need** based on what the user is asking. Don't load everything at once.\n4. **Execute the GraphQL** against `https://api.riverbase.org/graphql` with the user's token (raw token in `Authorization` header, no `Bearer` prefix).\n\n### System Prompt Example\n\n```\nYou are an AI shop assistant for Riverbase.\nYou have access to the Riverbase Skill files.\n\nThe user's auth token: \u003cJWT\u003e\nThe user's shop ID: \u003cSHOP_ID\u003e\n\nWhen the user asks you to manage their shop, read SKILL.md to find the \nright sub-skill file, then execute the GraphQL operations described in it.\n\nAlways resolve names to IDs before mutating. Confirm before destructive actions.\nAll prices are String type. Pagination defaults: limit 20, page 1.\n```\n\n### Key Rules\n\n- **IDs first** — always search/list to resolve names to IDs before mutations\n- **Price = String** — all monetary values are `String`, not `Float`\n- **One file at a time** — the router table in SKILL.md tells you which file to load\n- **`shopId` everywhere** — every operation needs it; resolve once at session start\n- **⚠️ Delete/Remove = ALWAYS confirm** — there are 16 destructive mutations across the skill files (listed in SKILL.md). The agent must **never** execute any of them without showing a summary and getting an explicit \"Yes\" or a Telegram confirmation button tap first\n\n## API Reference\n\n| | |\n|---|---|\n| **Production GraphQL** | `https://api.riverbase.org/graphql` |\n| **Staging GraphQL** | `https://staging-lite-api.riverbase.org/graphql` |\n| **Upload Endpoint** | `https://api.riverbase.org/uploads/s3` |\n| **Auth** | `Authorization: \u003ctoken\u003e` (no `Bearer` prefix) |\n| **Method** | `POST` with JSON body `{\"query\": \"...\", \"variables\": {...}}` |\n\n## Updating This Skill\n\nThis skill is maintained at [github.com/koompi/koompi-biz-skill](https://github.com/koompi/koompi-biz-skill).\n\nWhen the platform adds new GraphQL mutations/queries or changes existing ones, the skill files need to be updated to match. To get the latest version:\n\n```bash\n# Option 1: Pull the latest changes (if you cloned the repo)\ngit pull origin main\n\n# Option 2: Clone fresh (replace the existing copy)\nrm -rf koompi-biz-skill\ngit clone https://github.com/koompi/koompi-biz-skill.git\n```\n\n### When to Update\n- New GraphQL mutations or queries are added to the platform\n- Existing mutations change their input/output fields\n- New enums or types are introduced\n- Shop layout, theme, or CMS features are added/changed\n\n### Environment Variables for Agents\n\nAgents need `RIVERBASE_API_URL`, `RIVERBASE_API_KEY`, and `RIVERBASE_SHOP_ID` to connect. These are stored in a `.env` file on disk, **not** in the shell environment.\n\nThe agent MUST read the file directly — do not just check `env` and give up. Execute:\n\n```bash\n# Try the most likely location first\ngrep -E 'RIVERBASE_API_URL|RIVERBASE_API_KEY|RIVERBASE_SHOP_ID' /zeroclaw-data/workspace/.env 2\u003e/dev/null\n\n# If not found, try alternatives\ngrep -E 'RIVERBASE_API_URL|RIVERBASE_API_KEY|RIVERBASE_SHOP_ID' /openclaw-data/workspace/.env /data/workspace/.env /workspace/.env .env 2\u003e/dev/null\n\n# Last resort: search the whole disk\nfind / -maxdepth 4 -name '.env' -exec grep -l 'RIVERBASE' {} \\; 2\u003e/dev/null | head -5\n```\n\n| Variable | Purpose |\n|---|---|\n| `RIVERBASE_API_URL` | GraphQL endpoint (`https://staging-lite-api.riverbase.org/graphql` for staging, `https://api.riverbase.org/graphql` for production) |\n| `RIVERBASE_API_KEY` | Auth token — use in `Authorization` header (no `Bearer` prefix) |\n| `RIVERBASE_SHOP_ID` | Default shop to operate on |\n\n## License\n\nCopyright © Riverbase. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoompi%2Fkoompi-biz-skill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoompi%2Fkoompi-biz-skill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoompi%2Fkoompi-biz-skill/lists"}