return-resolution
Skill2 starsChanged 7 months agoApache-2.0View on GitHub
Investigates and resolves a returned Newline banking transfer by tracing the return back to its original transaction and transfer, reviewing the return reason, and checking account balance impact. Use when asked to handle, investigate, or explain a returned payment or ACH return.
In this repository9 other files it gives its agents.
- account-reconciliationSkill
- create-transferSkill
- customer-overviewSkill
- investigate-transferSkill
- making-paymentsSkill
- managing-users-and-accountsSkill
- new-account-setupSkill
- payment-operationsSkill
- transaction-reportingSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
If you have the return UID:
- Distinctive: line 18
If you need to find it:
- Very specific: line 47
If the transaction has a transfer_uid:
- Very specific: line 69
Look for events where transaction_uid matches the original transaction UID.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Return Resolution
Workflow for understanding and resolving a returned transfer on the Newline platform.
Step 1 — Identify the Return
If you have the return UID:
get-return uid=<return_uid>If you need to find it:
list-returnsRecord from the return:
uidoriginal_transaction_uid— the transaction that was returnedreturn_reason— the return reason code or descriptionamountandcurrencystatus— e.g.pending,processedprocessed_at— when the return was settled (null if still pending)
Step 2 — Retrieve the Original Transaction
get-transaction uid=<original_transaction_uid>Record:
synthetic_account_uid— the account affectedtransfer_uid— the originating transfer (if applicable)transaction_type,amount,statuscustodial_account_uidbalance_after— the balance after the original transaction posted
Step 3 — Retrieve the Originating Transfer
If the transaction has a transfer_uid:
get-newline-transfer uid=<transfer_uid>Record:
source_synthetic_account_uidanddestination_synthetic_account_uidinitiating_customer_uid- Transfer type (
ach,wire, orinstant_payment) and its fields usd_transfer_amountandstatus
For ACH returns the ach.sec_code and return reason code together
identify the specific NACHA return category (e.g. R01 Insufficient Funds,
R02 Account Closed, R03 No Account).
Step 4 — Check Transaction Events
list-transaction-eventsLook for events where transaction_uid matches the original transaction UID.
A return event will typically show event_type containing "return" and the
reason in description or metadata.
Step 5 — Check Account Balance Impact
get-synthetic-account uid=<synthetic_account_uid>Compare the current net_usd_balance against the balance_after recorded in
Step 2. The difference should reflect the return credit/debit.
Also check the synthetic line items for a return credit entry:
list-synthetic-line-itemsFilter for the synthetic_account_uid and look for a line item whose
transaction_uid corresponds to the return (typically created after the
original transaction).
Step 6 — Summarise and Recommend
Report:
- Return details — UID, amount, reason code, status
- Original transfer — type, amount, direction, date
- Affected accounts — which synthetic accounts were impacted
- Balance impact — current balance vs. balance before the return
- Return reason interpretation — what the reason code means
- Recommended action based on return reason:
- Insufficient funds (R01) — advise customer to fund account and retry
- Account closed (R02) — update destination account information
- No account / unable to locate (R03) — verify routing and account numbers
- Invalid account number (R04) — correct and resubmit
- Unauthorized (R05/R07/R10) — do not retry; escalate for review
- Duplicate (R06) — investigate for duplicate submission
- Other — review reason description and consult Newline documentation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

