錢包與儲值流程 Skill

Automate wallet recharge and coin accounting with transactional integrity.

Updated Dec 24, 2025
One-click install
npx skills add https://github.com/smile95137a/kuji-client --skill skill-smile95137a
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 錢包與儲值流程 Skill
Source: https://github.com/smile95137a/kuji-client/tree/main/.github%20copy/skills/wallet-recharge-flow
Command: npx skills add https://github.com/smile95137a/kuji-client --skill skill-smile95137a

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill consolidates and enforces a reliable wallet recharge workflow, ensuring gold and bonus balances are updated atomically and transparently tracked.

Core Features & Use Cases

  • Centralized management of gold coins and bonus coins stored in the user record with no separate wallet table.
  • Atomic wallet updates via transactional processing during recharge, drawing, or adjustment.
  • Comprehensive wallet transaction logging to replay or audit each change.

Quick Start

Implement the recharge flow by validating the user and active recharge plans, applying the plan effects to gold/bonus balances, and recording a WalletTransaction entry within a transactional boundary.

Frequently Asked Questions about 錢包與儲值流程 Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I ensure atomic wallet recharge and coin accounting in Java?

To ensure atomic wallet recharge in Java, apply transactional boundaries and optimistic locking when updating gold and bonus balances. This guarantees consistent database state and enables transparent wallet transaction logging for auditing.

Why does wallet recharge cause inconsistent gold and bonus balances?

Inconsistent gold and bonus balances during wallet recharge typically occur without transactional integrity. Applying optimistic locking and transactional processing ensures atomic updates and consistent wallet transaction logging.

What is the best way to log wallet transactions for auditing?

The best way to log wallet transactions is recording a WalletTransaction entry within a transactional boundary during recharge or deduction. This enforces consistent database tracking and allows replaying each balance change.

Do I need a separate wallet table to manage gold and bonus coins?

You do not need a separate wallet table to manage gold and bonus coins. This skill centralizes management by storing and updating balances directly within the user record using transactional processing.

How does optimistic locking work with database transactional integrity?

Optimistic locking enforces transactional integrity by preventing concurrent overwrites during wallet updates. It ensures database consistency when multiple processes attempt to modify gold or bonus balances simultaneously.