agentleFS
newline53newline53/newline-mcp-server/skills/return-resolution/SKILL.md

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.

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
  1. Distinctive:

    If you have the return UID:

    line 12
  2. Distinctive:

    If you need to find it:

    line 18
  3. Very specific:

    If the transaction has a transfer_uid:

    line 47
  4. Very specific:

    Look for events where transaction_uid matches the original transaction UID.

    line 69

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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-returns

Record from the return:

  • uid
  • original_transaction_uid — the transaction that was returned
  • return_reason — the return reason code or description
  • amount and currency
  • status — e.g. pending, processed
  • processed_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 affected
  • transfer_uid — the originating transfer (if applicable)
  • transaction_type, amount, status
  • custodial_account_uid
  • balance_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_uid and destination_synthetic_account_uid
  • initiating_customer_uid
  • Transfer type (ach, wire, or instant_payment) and its fields
  • usd_transfer_amount and status

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-events

Look 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-items

Filter 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:

  1. Return details — UID, amount, reason code, status
  2. Original transfer — type, amount, direction, date
  3. Affected accounts — which synthetic accounts were impacted
  4. Balance impact — current balance vs. balance before the return
  5. Return reason interpretation — what the reason code means
  6. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.