{"id":"d53fd6b8-68ee-41f8-bca3-f3044450d0f3","shortId":"5RyfDj","kind":"skill","title":"codat","tagline":"Codat integration. Manage Companies, Accounts, Bills, Invoices, Payments, Suppliers and more. Use when the user wants to interact with Codat data.","description":"# Codat\n\nCodat is a universal API for business data. It's used by lenders, insurers, and fintech companies to access accounting, banking, and commerce data from their small business customers.\n\nOfficial docs: https://docs.codat.io/\n\n## Codat Overview\n\n- **Company**\n  - **Connection**\n    - **Authorization** — Information on how the company authorized the connection.\n    - **Data connection**\n      - **Dataset** — A single unit of data, such as a customer or invoice.\n      - **Data type** — The type of data to retrieve.\n- **Transaction**\n\nWhen to use which actions: Use action names and parameters as needed. The structure above clarifies the relationships between resources.\n\n## Working with Codat\n\nThis skill uses the Membrane CLI to interact with Codat. Membrane handles authentication and credentials refresh automatically — so you can focus on the integration logic rather than auth plumbing.\n\n### Install the CLI\n\nInstall the Membrane CLI so you can run `membrane` from the terminal:\n\n```bash\nnpm install -g @membranehq/cli@latest\n```\n\n### Authentication\n\n```bash\nmembrane login --tenant --clientName=<agentType>\n```\n\nThis will either open a browser for authentication or print an authorization URL to the console, depending on whether interactive mode is available.\n\n**Headless environments:** The command will print an authorization URL. Ask the user to open it in a browser. When they see a code after completing login, finish with:\n\n```bash\nmembrane login complete <code>\n```\n\nAdd `--json` to any command for machine-readable JSON output.\n\n**Agent Types** : claude, openclaw, codex, warp, windsurf, etc. Those will be used to adjust tooling to be used best with your harness\n\n### Connecting to Codat\n\nUse `membrane connection ensure` to find or create a connection by app URL or domain:\n\n```bash\nmembrane connection ensure \"https://www.codat.io/\" --json\n```\nThe user completes authentication in the browser. The output contains the new connection id.\n\nThis is the fastest way to get a connection. The URL is normalized to a domain and matched against known apps. If no app is found, one is created and a connector is built automatically.\n\nIf the returned connection has `state: \"READY\"`, skip to **Step 2**.\n\n#### 1b. Wait for the connection to be ready\n\nIf the connection is in `BUILDING` state, poll until it's ready:\n\n```bash\nnpx @membranehq/cli connection get <id> --wait --json\n```\n\nThe `--wait` flag long-polls (up to `--timeout` seconds, default 30) until the state changes. Keep polling until `state` is no longer `BUILDING`.\n\nThe resulting state tells you what to do next:\n\n- **`READY`** — connection is fully set up. Skip to **Step 2**.\n- **`CLIENT_ACTION_REQUIRED`** — the user or agent needs to do something. The `clientAction` object describes the required action:\n  - `clientAction.type` — the kind of action needed:\n    - `\"connect\"` — user needs to authenticate (OAuth, API key, etc.). This covers initial authentication and re-authentication for disconnected connections.\n    - `\"provide-input\"` — more information is needed (e.g. which app to connect to).\n  - `clientAction.description` — human-readable explanation of what's needed.\n  - `clientAction.uiUrl` (optional) — URL to a pre-built UI where the user can complete the action. Show this to the user when present.\n  - `clientAction.agentInstructions` (optional) — instructions for the AI agent on how to proceed programmatically.\n\n  After the user completes the action (e.g. authenticates in the browser), poll again with `membrane connection get <id> --json` to check if the state moved to `READY`.\n\n- **`CONFIGURATION_ERROR`** or **`SETUP_FAILED`** — something went wrong. Check the `error` field for details.\n\n### Searching for actions\n\nSearch using a natural language description of what you want to do:\n\n```bash\nmembrane action list --connectionId=CONNECTION_ID --intent \"QUERY\" --limit 10 --json\n```\n\nYou should always search for actions in the context of a specific connection.\n\nEach result includes `id`, `name`, `description`, `inputSchema` (what parameters the action accepts), and `outputSchema` (what it returns).\n\n## Popular actions\n\n| Name | Key | Description |\n|---|---|---|\n| List Companies | list-companies | List all companies that have been created in Codat |\n| List Connections | list-connections | List all connections for a specific company |\n| List Invoices | list-invoices | List all invoices for a company |\n| List Bills | list-bills | List all bills (accounts payable) for a company |\n| List Customers | list-customers | List all customers for a company |\n| List Suppliers | list-suppliers | List all suppliers/vendors for a company |\n| List Bank Accounts | list-bank-accounts | List all bank accounts for a company connection |\n| List Payments | list-payments | List all payments for a company |\n| List Accounts | list-accounts | List all accounts (chart of accounts) for a company |\n| List Journal Entries | list-journal-entries | List all journal entries for a company |\n| Get Company | get-company | Retrieve a single company by its ID |\n| Get Connection | get-connection | Retrieve a single connection by its ID |\n| Create Company | create-company | Create a new company in Codat to represent a business whose data you want to access |\n| Create Connection | create-connection | Create a new connection to an external platform for a company |\n| Update Company | update-company | Update an existing company's name, description, or tags |\n| Delete Company | delete-company | Permanently delete a company and all its connections and data |\n| Delete Connection | delete-connection | Delete a connection and revoke credentials |\n| Trigger Data Sync | trigger-data-sync | Trigger a refresh of all data types for a company |\n| Get Balance Sheet | get-balance-sheet | Get the balance sheet financial statement for a company |\n| Get Profit and Loss | get-profit-and-loss | Get the profit and loss (income statement) for a company |\n\n### Running actions\n\n```bash\nmembrane action run <actionId> --connectionId=CONNECTION_ID --json\n```\n\nTo pass JSON parameters:\n\n```bash\nmembrane action run <actionId> --connectionId=CONNECTION_ID --input '{\"key\": \"value\"}' --json\n```\n\nThe result is in the `output` field of the response.\n\n\n### Proxy requests\n\nWhen the available actions don't cover your use case, you can send requests directly to the Codat API through Membrane's proxy. Membrane automatically appends the base URL to the path you provide and injects the correct authentication headers — including transparent credential refresh if they expire.\n\n```bash\nmembrane request CONNECTION_ID /path/to/endpoint\n```\n\nCommon options:\n\n| Flag | Description |\n|------|-------------|\n| `-X, --method` | HTTP method (GET, POST, PUT, PATCH, DELETE). Defaults to GET |\n| `-H, --header` | Add a request header (repeatable), e.g. `-H \"Accept: application/json\"` |\n| `-d, --data` | Request body (string) |\n| `--json` | Shorthand to send a JSON body and set `Content-Type: application/json` |\n| `--rawData` | Send the body as-is without any processing |\n| `--query` | Query-string parameter (repeatable), e.g. `--query \"limit=10\"` |\n| `--pathParam` | Path parameter (repeatable), e.g. `--pathParam \"id=123\"` |\n\n\n## Best practices\n\n- **Always prefer Membrane to talk with external apps** — Membrane provides pre-built actions with built-in auth, pagination, and error handling. This will burn less tokens and make communication more secure\n- **Discover before you build** — run `membrane action list --intent=QUERY` (replace QUERY with your intent) to find existing actions before writing custom API calls. Pre-built actions handle pagination, field mapping, and edge cases that raw API calls miss.\n- **Let Membrane handle credentials** — never ask the user for API keys or tokens. Create a connection instead; Membrane manages the full Auth lifecycle server-side with no local secrets.","tags":["codat","application","skills","membranedev","agent-skills","claude-code-skill","claude-skills","membrane"],"capabilities":["skill","source-membranedev","skill-codat","topic-agent-skills","topic-claude-code-skill","topic-claude-skills","topic-membrane","topic-skills"],"categories":["application-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/membranedev/application-skills/codat","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add membranedev/application-skills","source_repo":"https://github.com/membranedev/application-skills","install_from":"skills.sh"}},"qualityScore":"0.467","qualityRationale":"deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 35 github stars · SKILL.md body (7,874 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T18:59:42.164Z","embedding":null,"createdAt":"2026-04-18T22:32:05.984Z","updatedAt":"2026-05-18T18:59:42.164Z","lastSeenAt":"2026-05-18T18:59:42.164Z","tsv":"'/path/to/endpoint':984 '10':579,1049 '123':1057 '1b':343 '2':342,412 '30':381 'accept':605,1010 'access':42,786 'account':6,43,661,690,694,698,715,718,721,724 'action':96,98,414,430,435,494,519,556,571,586,604,612,896,899,911,935,1073,1099,1111,1120 'add':226,1003 'adjust':250 'agent':237,419,508 'ai':507 'alway':583,1060 'api':28,443,950,1115,1130,1142 'app':273,317,320,466,1067 'append':957 'application/json':1011,1029 'as-i':1034 'ask':203,1138 'auth':142,1078,1154 'authent':127,165,178,286,441,449,453,521,970 'author':60,66,182,201 'automat':131,331,956 'avail':193,934 'balanc':861,865,869 'bank':44,689,693,697 'base':959 'bash':159,166,222,277,363,569,897,909,979 'best':255,1058 'bill':7,654,657,660 'bodi':1015,1023,1033 'browser':176,211,289,524 'build':356,393,1096 'built':330,486,1072,1076,1119 'built-in':1075 'burn':1085 'busi':30,51,780 'call':1116,1131 'case':941,1127 'chang':385 'chart':722 'check':533,548 'clarifi':107 'claud':239 'cli':120,146,150 'client':413 'clientact':425 'clientaction.agentinstructions':502 'clientaction.description':470 'clientaction.type':431 'clientaction.uiurl':479 'clientnam':170 'codat':1,2,21,23,24,56,114,124,261,629,776,949 'code':216 'codex':241 'command':197,230 'commerc':46 'common':985 'communic':1090 'compani':5,40,58,65,617,620,623,641,652,665,676,687,701,713,727,741,743,746,750,767,770,774,802,804,807,811,818,821,825,859,875,894 'complet':218,225,285,492,517 'configur':540 'connect':59,68,70,259,264,271,279,295,305,335,347,353,366,404,437,456,468,529,574,593,631,634,637,702,755,758,762,788,791,795,829,833,836,839,902,914,982,1148 'connectionid':573,901,913 'connector':328 'consol':186 'contain':292 'content':1027 'content-typ':1026 'context':589 'correct':969 'cover':447,938 'creat':269,325,627,766,769,771,787,790,792,1146 'create-compani':768 'create-connect':789 'credenti':129,842,974,1136 'custom':52,80,667,670,673,1114 'd':1012 'data':22,31,47,69,76,83,88,782,831,844,848,855,1013 'dataset':71 'default':380,998 'delet':817,820,823,832,835,837,997 'delete-compani':819 'delete-connect':834 'depend':187 'describ':427 'descript':562,599,615,814,988 'detail':553 'direct':946 'disconnect':455 'discov':1093 'doc':54 'docs.codat.io':55 'domain':276,312 'e.g':464,520,1008,1046,1054 'edg':1126 'either':173 'ensur':265,280 'entri':730,734,738 'environ':195 'error':541,550,1081 'etc':244,445 'exist':810,1110 'expir':978 'explan':474 'extern':798,1066 'fail':544 'fastest':300 'field':551,926,1123 'financi':871 'find':267,1109 'finish':220 'fintech':39 'flag':372,987 'focus':135 'found':322 'full':1153 'fulli':406 'g':162 'get':303,367,530,742,745,754,757,860,864,867,876,881,885,993,1000 'get-balance-sheet':863 'get-compani':744 'get-connect':756 'get-profit-and-loss':880 'h':1001,1009 'handl':126,1082,1121,1135 'har':258 'header':971,1002,1006 'headless':194 'http':991 'human':472 'human-read':471 'id':296,575,597,753,765,903,915,983,1056 'includ':596,972 'incom':890 'inform':61,461 'initi':448 'inject':967 'input':459,916 'inputschema':600 'instal':144,147,161 'instead':1149 'instruct':504 'insur':37 'integr':3,138 'intent':576,1101,1107 'interact':19,122,190 'invoic':8,82,643,646,649 'journal':729,733,737 'json':227,235,282,369,531,580,904,907,919,1017,1022 'keep':386 'key':444,614,917,1143 'kind':433 'known':316 'languag':561 'latest':164 'lender':36 'less':1086 'let':1133 'lifecycl':1155 'limit':578,1048 'list':572,616,619,621,630,633,635,642,645,647,653,656,658,666,669,671,677,680,682,688,692,695,703,706,708,714,717,719,728,732,735,1100 'list-account':716 'list-bank-account':691 'list-bil':655 'list-compani':618 'list-connect':632 'list-custom':668 'list-invoic':644 'list-journal-entri':731 'list-pay':705 'list-suppli':679 'local':1161 'logic':139 'login':168,219,224 'long':374 'long-pol':373 'longer':392 'loss':879,884,889 'machin':233 'machine-read':232 'make':1089 'manag':4,1151 'map':1124 'match':314 'membran':119,125,149,155,167,223,263,278,528,570,898,910,952,955,980,1062,1068,1098,1134,1150 'membranehq/cli':163,365 'method':990,992 'miss':1132 'mode':191 'move':537 'name':99,598,613,813 'natur':560 'need':103,420,436,439,463,478 'never':1137 'new':294,773,794 'next':402 'normal':309 'npm':160 'npx':364 'oauth':442 'object':426 'offici':53 'one':323 'open':174,207 'openclaw':240 'option':480,503,986 'output':236,291,925 'outputschema':607 'overview':57 'pagin':1079,1122 'paramet':101,602,908,1044,1052 'pass':906 'patch':996 'path':963,1051 'pathparam':1050,1055 'payabl':662 'payment':9,704,707,710 'perman':822 'platform':799 'plumb':143 'poll':358,375,387,525 'popular':611 'post':994 'practic':1059 'pre':485,1071,1118 'pre-built':484,1070,1117 'prefer':1061 'present':501 'print':180,199 'proceed':512 'process':1039 'profit':877,882,887 'programmat':513 'provid':458,965,1069 'provide-input':457 'proxi':930,954 'put':995 'queri':577,1040,1042,1047,1102,1104 'query-str':1041 'rather':140 'raw':1129 'rawdata':1030 're':452 're-authent':451 'readabl':234,473 'readi':338,350,362,403,539 'refresh':130,852,975 'relationship':109 'repeat':1007,1045,1053 'replac':1103 'repres':778 'request':931,945,981,1005,1014 'requir':415,429 'resourc':111 'respons':929 'result':395,595,921 'retriev':90,747,759 'return':334,610 'revok':841 'run':154,895,900,912,1097 'search':554,557,584 'second':379 'secret':1162 'secur':1092 'see':214 'send':944,1020,1031 'server':1157 'server-sid':1156 'set':407,1025 'setup':543 'sheet':862,866,870 'shorthand':1018 'show':495 'side':1158 'singl':73,749,761 'skill':116 'skill-codat' 'skip':339,409 'small':50 'someth':423,545 'source-membranedev' 'specif':592,640 'state':337,357,384,389,396,536 'statement':872,891 'step':341,411 'string':1016,1043 'structur':105 'supplier':10,678,681 'suppliers/vendors':684 'sync':845,849 'tag':816 'talk':1064 'tell':397 'tenant':169 'termin':158 'timeout':378 'token':1087,1145 'tool':251 'topic-agent-skills' 'topic-claude-code-skill' 'topic-claude-skills' 'topic-membrane' 'topic-skills' 'transact':91 'transpar':973 'trigger':843,847,850 'trigger-data-sync':846 'type':84,86,238,856,1028 'ui':487 'unit':74 'univers':27 'updat':803,806,808 'update-compani':805 'url':183,202,274,307,481,960 'use':13,34,94,97,117,248,254,262,558,940 'user':16,205,284,417,438,490,499,516,1140 'valu':918 'wait':344,368,371 'want':17,566,784 'warp':242 'way':301 'went':546 'whether':189 'whose':781 'windsurf':243 'without':1037 'work':112 'write':1113 'wrong':547 'www.codat.io':281 'x':989","prices":[{"id":"13b92127-50de-45f0-9ee0-866971bd62c8","listingId":"d53fd6b8-68ee-41f8-bca3-f3044450d0f3","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"membranedev","category":"application-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T22:32:05.984Z"}],"sources":[{"listingId":"d53fd6b8-68ee-41f8-bca3-f3044450d0f3","source":"github","sourceId":"membranedev/application-skills/codat","sourceUrl":"https://github.com/membranedev/application-skills/tree/main/skills/codat","isPrimary":false,"firstSeenAt":"2026-04-18T22:32:05.984Z","lastSeenAt":"2026-05-18T18:59:42.164Z"}],"details":{"listingId":"d53fd6b8-68ee-41f8-bca3-f3044450d0f3","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"membranedev","slug":"codat","github":{"repo":"membranedev/application-skills","stars":35,"topics":["agent-skills","claude-code-skill","claude-skills","membrane","skills"],"license":null,"html_url":"https://github.com/membranedev/application-skills","pushed_at":"2026-04-28T08:45:44Z","description":null,"skill_md_sha":"36c6b934b3cf060b401c261d79f2678b47b827b6","skill_md_path":"skills/codat/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/membranedev/application-skills/tree/main/skills/codat"},"layout":"multi","source":"github","category":"application-skills","frontmatter":{"name":"codat","license":"MIT","description":"Codat integration. Manage Companies, Accounts, Bills, Invoices, Payments, Suppliers and more. Use when the user wants to interact with Codat data.","compatibility":"Requires network access and a valid Membrane account (Free tier supported)."},"skills_sh_url":"https://skills.sh/membranedev/application-skills/codat"},"updatedAt":"2026-05-18T18:59:42.164Z"}}