@majiayu000/commerce-credit
BManage customer credit accounts, credit holds, and credit applications. Use when checking credit availability, placing holds on orders, or reviewing credit applications.
Install
agr install @majiayu000/commerce-credit --target claudeWrites 2 files into .claude/skills/, pinned to git-b178911c.
- .claude/skills/commerce-credit/SKILL.md
- .claude/skills/commerce-credit/metadata.json
Document
name: commerce-credit description: Manage customer credit accounts, credit holds, and credit applications. Use when checking credit availability, placing holds on orders, or reviewing credit applications.
Commerce Credit
Manage customer credit limits, perform credit checks, process credit applications, and place or release credit holds.
How It Works
- Create credit accounts for customers with limits and risk ratings.
- Run credit checks before order approval.
- Place credit holds on orders that exceed limits or have past-due balances.
- Process credit applications with approval workflow.
- Track credit transactions (charges, payments, adjustments).
- Release holds after payment or approval override.
Usage
- MCP tools:
create_credit_account,get_credit_account,update_credit_account,check_credit,place_credit_hold,release_credit_hold,submit_credit_application,review_credit_application,record_credit_transaction,get_customer_credit_summary. - Writes require
--apply.
Credit Account Statuses
- Active, Suspended, OnHold, Closed, PendingReview
Risk Ratings
- Low, Medium, High, Critical
Hold Types
- OverLimit: order would exceed credit limit
- PastDue: customer has past-due invoices
- Manual: manually placed by credit manager
- NewCustomer: first-time buyer review
- HighRisk: elevated risk rating
Credit Application Statuses
- Pending -> UnderReview -> Approved/Denied/MoreInfoNeeded (or Withdrawn)
Credit Transaction Types
- Charge, Payment, CreditMemo, Adjustment, WriteOff, LimitChange
Output
{"status":"credit_check","customer_id":"cust_123","approved":true,"credit_limit":10000.00,"available_credit":7500.00,"order_amount":2000.00}
Present Results to User
- Credit check result (approved/denied/requires_approval).
- Current limit, used, and available credit.
- Active holds with reasons.
- Credit application decision and terms.
Troubleshooting
- Order on hold: check hold type; release after payment or manager override.
- Credit check denied: customer over limit or has past-due balance.
- Application stuck: verify all required business information is provided.
References
- references/credit-management.md
- /home/dom/stateset-icommerce/crates/stateset-core/src/models/credit.rs
- /home/dom/stateset-icommerce/crates/stateset-embedded/src/credit.rs
Repository README
Describes majiayu000/claude-skill-registry-data as a whole, which may contain artifacts other than this one. Where this artifact had no useful description of its own, its summary was taken from here.
Claude Skill Registry (Data)
This repo contains the archived skill contents (the heavy, browsable skill files).
Canonical layout
- Category folders at repo root (e.g.
development/,documents/,data/, ...) - Each skill lives under a category:
<category>/<skill>/SKILL.md+<category>/<skill>/metadata.json - Case conflicts are resolved with
{name}-{owner}-{repo}suffixes (fallback:-{short-hash}).
Archive status
- Live badges above are sourced from
claude-skill-registry-corestats.json. - Counts in this README are intentionally dynamic, not hardcoded.
- If the badges look stale, refresh the
corebuild/index pipeline rather than editing numbers here.
Where the index + site live
- Core repo: https://github.com/majiayu000/claude-skill-registry-core
- Main repo (merged publish artifact): https://github.com/majiayu000/claude-skill-registry
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-b178911c3b262026-07-31