Admin Store Project Knowledge

system_automation

v1.0.0

关于此技能

安装 Admin Store Project Knowledge,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看功能、使用场景、限制条件与安装命令。

功能特性

admin store — Project Knowledge Base
📁 Cấu Trúc Backend
admin orderlist/backend/src/
← Quy tắc:.agents/software-engineering/skills/db-schema-source-of-truth/SKILL.md
statuses.js ← ORDER STATUS constants — LUÔN DÙNG STATUS. thay vì string literal

# 核心主题

hungnln2102 hungnln2102
[0]
[0]
更新于: 3/27/2026

技能概览

先看适用场景、限制条件和安装路径,再决定是否继续深入。

安装 Admin Store Project Knowledge,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看功能、使用场景、限制条件与安装命令。

核心价值

推荐说明: admin_store Project Knowledge helps agents admin store — project knowledge base. admin_store Project Knowledge helps AI agents handle repository-specific developer workflows with documented implementation details.

适用 Agent 类型

适用场景: admin store — project knowledge base.

赋予的主要能力 · Admin Store Project Knowledge

适用任务: admin store — Project Knowledge Base
适用任务: 📁 Cấu Trúc Backend
适用任务: admin orderlist/backend/src/

! 使用限制与门槛

  • 限制说明: } = require("../config/dbSchema");
  • 限制说明: const { STATUS } = require("../utils/statuses");
  • 限制说明: // hoặc: require("../../utils/statuses")

关于来源内容

The section below is adapted from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

Admin Store Project Knowledge 是什么?

安装 Admin Store Project Knowledge,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看功能、使用场景、限制条件与安装命令。

如何安装 Admin Store Project Knowledge?

运行命令:npx killer-skills add hungnln2102/admin_orderlist。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

Admin Store Project Knowledge 适用于哪些场景?

典型场景包括:适用任务: admin store — Project Knowledge Base、适用任务: 📁 Cấu Trúc Backend、适用任务: admin orderlist/backend/src/。

Admin Store Project Knowledge 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

Admin Store Project Knowledge 有哪些限制?

限制说明: } = require("../config/dbSchema");;限制说明: const { STATUS } = require("../utils/statuses");;限制说明: // hoặc: require("../../utils/statuses")。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add hungnln2102/admin_orderlist。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    Admin Store Project Knowledge 已启用,可立即在当前项目中调用。

! 来源说明

此页面仍可作为安装与查阅参考。继续使用前,请结合上方适用场景、限制条件和上游仓库说明一起判断。

Upstream Repository Material

The section below is adapted from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.

Upstream Source

Admin Store Project Knowledge

安装 Admin Store Project Knowledge,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看功能、使用场景、限制条件与安装命令。

SKILL.md
Readonly
Upstream Repository Material
The section below is adapted from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.
Upstream Source

admin_store — Project Knowledge Base

📁 Cấu Trúc Backend

admin_orderlist/backend/src/
  config/
    dbSchema.js       ← Entry: ORDERS_SCHEMA, RECEIPT_SCHEMA, … (định nghĩa tách file trong config/dbSchema/schemas/, khớp PostgreSQL schema)
                      ← Quy tắc: .agents/software-engineering/skills/db-schema-source-of-truth/SKILL.md
  utils/
    statuses.js       ← ORDER_STATUS constants — LUÔN DÙNG STATUS.* thay vì string literal
    logger.js         ← Winston logger dùng chung
  db/
    index.js          ← Knex instance (db) — dùng cho mọi query
  services/
    adobe-http/       ← HTTP/Browser functions: autoDeleteUsers, addUsersWithProduct (v1)
    renew-adobe/      ← Luồng Renew Adobe (gom chung)
      adobe-renew-v2/ ← Playwright V2: addUsersWithProductV2, facade, runCheckFlow, flows
      orderUserTrackingService.js
      renewAdobePurgeNoLicenseAccount.js
      adobeCheckService.js  ← re-export adobe-renew-v2
    userAccountMappingService.js  ← CRUD bảng user_account_mapping
  scheduler/
    index.js          ← Đăng ký tất cả cron jobs
    tasks/            ← Mỗi task là 1 file, export createXxxTask() factory function
  routes/
    schedulerRoutes.js ← Manual trigger endpoints
  controllers/
    RenewAdobeController.js ← runCheckForAccountId() — crawl snapshot 1 account

🗄️ Database Conventions

Schema: system_automation

  • accounts_admin — Tài khoản admin Adobe org
  • product_system — Mapping variant_id → system_code (renew_adobe, fix_adobe_edu...)
  • user_account_mapping — Mapping user_email ↔ id_order ↔ adobe_account_id

Schema: orders

  • order_list — Toàn bộ đơn hàng

⚠️ QUAN TRỌNG: Cách dùng DB Schema

js
1// LUÔN dùng constants từ dbSchema.js — KHÔNG hardcode tên table/cột 2const { 3 SCHEMA_RENEW_ADOBE, 4 RENEW_ADOBE_SCHEMA, 5 SCHEMA_ORDERS, 6 ORDERS_SCHEMA, 7 tableName, 8} = require("../config/dbSchema"); 9 10const TABLE = tableName(RENEW_ADOBE_SCHEMA.USER_ACCOUNT_MAPPING.TABLE, SCHEMA_RENEW_ADOBE); 11const COLS = RENEW_ADOBE_SCHEMA.USER_ACCOUNT_MAPPING.COLS;

📊 Bảng user_account_mapping — Schema đầy đủ (sau migration 2026-03-19)

ColumnTypeNullableDefaultÝ nghĩa
idintegerNOauto-incrementPK
user_emailtextNOEmail khách hàng
id_ordertextNOMã đơn từ order_list.id_order
adobe_account_idintegerYESnullFK → accounts_admin.id
assigned_attimestamptzNOnow()Lần đầu ghi mapping
updated_attimestamptzNOnow()Lần cập nhật gần nhất
productbooleanNOfalseUser đã được assign product trong org chưa
url_activetextYESnullURL auto-assign nếu product=false

COLS constants:

js
1COLS.PRODUCT = "product" 2COLS.URL_ACTIVE = "url_active"

🔖 Order Status Constants — LUÔN DÙNG STATUS.*

js
1const { STATUS } = require("../utils/statuses"); 2// hoặc: require("../../utils/statuses") 3 4STATUS.UNPAID // "Chưa Thanh Toán" 5STATUS.PROCESSING // "Đang Xử Lý" ← active 6STATUS.PAID // "Đã Thanh Toán" ← active 7STATUS.CANCELED // "Hủy" 8STATUS.REFUNDED // "Đã Hoàn" 9STATUS.PENDING_REFUND // "Chờ Hoàn" 10STATUS.EXPIRED // "Hết Hạn" 11STATUS.RENEWAL // "Cần Gia Hạn" ← active

Active statuses (đơn còn hiệu lực):

js
1const ACTIVE_STATUSES = [STATUS.PROCESSING, STATUS.PAID, STATUS.RENEWAL];

KHÔNG BAO GIỜ hardcode string status trong code logic (comment/JSDoc thì OK).


🤖 Adobe Automation — Luồng & Services

Jobs hiện tại (scheduler/index.js)

CronJobMô tả
00:01updateDatabaseTaskCập nhật trạng thái đơn hàng theo ngày
23:30cleanupExpiredAdobeUsersTaskXóa user hết hạn khỏi org
05:00 + 12:00renewAdobeCheckAndNotifyTaskCheck org, xóa user expired, reassign, notify
07:00notifyFourDaysRemainingTaskThông báo còn 4 ngày
18:00notifyZeroDaysRemainingTaskThông báo hết hạn hôm nay

Services Adobe

ServiceMethodDùng cho
adobe-httpautoDeleteUsers(email, pwd, [emails], opts)Xóa user khỏi org (browser V1)
adobe-httpaddUsersWithProduct(email, pwd, [emails], opts)Add user + product (V1 - cũ)
renew-adobe/adobe-renew-v2addUsersWithProductV2(email, pwd, [emails], opts)Add user + product (V2 Playwright - ưu tiên dùng)
renew-adobe/adobe-renew-v2getOrCreateAutoAssignUrlWithPage(page, orgId, email, pwd, opts)Lấy/tạo URL auto-assign
RenewAdobeControllerrunCheckForAccountId(accountId)Crawl lại snapshot 1 account

userAccountMappingService — API

js
1syncOrdersToMapping() // Đồng bộ đơn hàng → mapping (insert + xóa hết hạn) 2lookupAndRecordIfNeeded(emails, adobeAccId) // Add mapping sau khi assign user 3recordUsersAssigned(emails, idOrder, accId) // Ghi nhận user đã assign 4removeMappingsForAccount(adobeAccountId) // Xóa mapping khi account hết hạn 5removeMappingsByOrders(idOrders) // Xóa mapping theo đơn hàng 6getMappingsForAccount(adobeAccountId) // Lấy danh sách mapping theo account 7getAccountForUser(userEmail) // Lấy accountId của 1 user

🏗️ Quy Ước Code — Scheduler Task

js
1// Pattern chuẩn cho mỗi task — factory function + closure 2function createMyTask() { 3 return async function myTask(trigger = "cron") { 4 logger.info("[CRON] Bắt đầu job...", { trigger }); 5 try { 6 // logic 7 } catch (err) { 8 logger.error("[CRON] Job thất bại", { error: err.message, stack: err.stack }); 9 } 10 }; 11} 12module.exports = { createMyTask };

⚠️ Quy Tắc Bắt Buộc Khi Sửa Code

  1. Không hardcode string status → dùng STATUS.*
  2. Không hardcode tên table/cột → dùng COLS.* + tableName()
  3. Mỗi scheduler task xuất createXxxTask() factory
  4. Delay await new Promise(r => setTimeout(r, 3000)) giữa các account để tránh rate limit Adobe
  5. Luôn try/catch riêng từng account trong vòng lặp — lỗi 1 account không dừng cả job
  6. addUsersWithProductV2 (V2) ưu tiên hơn addUsersWithProduct (V1)
  7. Sau khi add user → gọi runCheckForAccountId(accId) để crawl lại snapshot mới nhất

🔄 RPM Protocol — Adobe Auto Fix (Đang Implement)

Mục tiêu: Task tổng hợp adobeAutoFixTask tự động fix user Adobe bị lỗi.

Trạng thái hiện tại:

  • ✅ B1: Check tài khoản org — runCheckForAccountId
  • ✅ B2: Xóa user hết hạn — cleanupExpiredAdobeUsersTask
  • ✅ B3: Cột product + url_activemigration đã chạy 2026-03-19
  • ✅ B4: Xóa mapping đơn hết hạn — syncOrdersToMapping
  • ⏳ B5: Re-add user (product=false) → addUsersWithProductV2
  • ⏳ B6: Crawl snapshot sau add → runCheckForAccountId
  • ⏳ B7: Update product status + lưu url_active
  • ⏳ B8: Task tổng hợp adobeAutoFixTask.js

相关技能

寻找 Admin Store Project Knowledge 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

本地化技能摘要: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. Claude Code, Cursor, and Windsurf workflows.

333.8k
0
AI

widget-generator

Logo of f
f

本地化技能摘要: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat. It covers ai, artificial-intelligence, awesome-list workflows. Claude Code, Cursor, and Windsurf

149.6k
0
AI

flags

Logo of vercel
vercel

本地化技能摘要: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. Claude Code, Cursor, and Windsurf workflows.

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

本地化技能摘要: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review. It covers autograd, deep-learning, gpu workflows. Claude Code, Cursor, and Windsurf workflows.

98.6k
0
开发者工具