agentleFS
newline53newline53/newline-mcp-server/skills/payment-operations/SKILL.md

payment-operations

Skill2 starsChanged 7 months agoApache-2.0View on GitHub

Broad post-payment operations workflow for the Newline MCP server. Use when you need to investigate transfer failures, inspect transaction lifecycles, review returns, reconcile related records, or explain what happened after a payment was initiated. Prefer this skill for operational support across Claude Code, Codex, Pi, and other Agent Skills compatible harnesses.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this when the user is asking what happened after a payment was created.

    line 9
  2. Distinctive:

    Do not assume a newly created transfer should already be settled.

    line 13
  3. Distinctive:

    Use returns and transaction events to explain failures before suggesting retries.

    line 15
  4. Distinctive:

    If remediation would require creating another transfer, get user confirmation first.

    line 16
  5. Distinctive:

    Use list endpoints to find the right record:

    line 40
  6. Distinctive:

    If there is no transfer, continue from the transaction or return path instead.

    line 61
  7. Distinctive:

    If you need broader context:

    line 81
  8. Distinctive:

    If needed, inspect a specific event:

    line 99
  9. Distinctive:

    Look for returns tied to the original transaction.

    line 111
  10. Distinctive:

    Use this to determine whether the transfer is part of a wider batch and whether other sibling transfers share the same issue.

    line 130
  11. Distinctive:

    If the user asks whether funds moved or balances changed:

    line 135
  12. Very specific:

    Use transaction_uid and balance_after to connect the payment to account-level impact.

    line 143
  13. Distinctive:

    wait and re-check later if still pending

    line 156

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

Payment Operations

A general operations skill for transfer follow-up, exceptions, and issue resolution. Use this when the user is asking what happened after a payment was created.

Guardrails

  • Do not assume a newly created transfer should already be settled.
  • Investigate by UID whenever possible: transfer UID, transaction UID, return UID.
  • Use returns and transaction events to explain failures before suggesting retries.
  • If remediation would require creating another transfer, get user confirmation first.

Step 1 — Start from the Best Identifier Available

If you have a transfer UID

get-newline-transfer  uid=<transfer_uid>

If you have a transaction UID

get-transaction  uid=<transaction_uid>

If you have a return UID

get-return  uid=<return_uid>

If you only have rough context

Use list endpoints to find the right record:

list-newline-transfers
list-transactions
list-returns
list-combined-transfers

Step 2 — Inspect the Transfer Record

From the transfer, capture:

  • uid, status, created_at
  • source_synthetic_account_uid
  • destination_synthetic_account_uid
  • initiating_customer_uid
  • destination_customer_uid
  • usd_transfer_amount
  • transaction_uids
  • which rail block is populated: wire, ach, or instant_payment

If there is no transfer, continue from the transaction or return path instead.

Step 3 — Inspect Related Transactions

For each related UID:

get-transaction  uid=<transaction_uid>

Record:

  • status
  • transaction_type
  • amount, currency
  • synthetic_account_uid
  • custodial_account_uid
  • transfer_uid
  • balance_after
  • timestamps and description

If you need broader context:

list-transactions  transfer_uid=[<transfer_uid>]

Step 4 — Inspect Transaction Events

list-transaction-events

Filter for events tied to the transaction UID(s). Focus on:

  • settlement progress
  • failure states
  • return-related events
  • timing gaps between queued, pending, and settled states

If needed, inspect a specific event:

get-transaction-event  uid=<transaction_event_uid>

Step 5 — Check for Returns

list-returns

Look for returns tied to the original transaction. If one exists, capture:

  • uid
  • original_transaction_uid
  • return_reason
  • amount, currency
  • status
  • processed_at

Then branch into the more focused return-resolution skill if the user needs next steps.

Step 6 — Check Grouped or Batch Context

Some issues are easier to understand via grouped transfers:

list-combined-transfers
get-combined-transfer  uid=<combined_transfer_uid>

Use this to determine whether the transfer is part of a wider batch and whether other sibling transfers share the same issue.

Step 7 — Check Balance Impact When Needed

If the user asks whether funds moved or balances changed:

get-synthetic-account  uid=<synthetic_account_uid>
list-synthetic-line-items
list-custodial-line-items

Use transaction_uid and balance_after to connect the payment to account-level impact.

Step 8 — Summarise Clearly

Explain:

  1. what record you started from
  2. current transfer and transaction status
  3. whether the payment is still processing, settled, failed, or returned
  4. what events support that conclusion
  5. whether balances or line items show the funds movement
  6. the safest next action

Typical next actions:

  • wait and re-check later if still pending
  • correct destination details before retrying
  • review return reason and update account info
  • escalate when the API shows inconsistent states

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.