agentleFS
median-labsmedian-labs/close-the-books/skills/wind-down/SKILL.md

wind-down

Skill1 starsChanged 2 months agoMITView on GitHub

Draft the closing entries for a company that is being dissolved (settling intercompany balances, extinguishing convertible instruments, final distributions, closing accounts to zero) but only after the owner has answered the questions those entries rest on. Use when a company is shutting down and its final books and final return have to be right.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every entry cites the answer that authorizes it.

    line 82

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

Wind down

The least reversible work in this repo, and the part where being fast is worth the least.

A final set of books is read by people who cannot ask follow-up questions: a tax authority looking at a final return years later, a shareholder asking what happened to their money, a director confirming they were released. Every entry here should still make sense to a stranger with no context.

Two things to settle before the first entry

Which year is being filed, and when it is due. A wind-down usually arrives with a return on extension and a queue holding two years of transactions. Only one of those years is this deadline's work. See scope-the-year.

Whether anything is still posting. A company nobody is running still has its bank rules running, and a rule that auto-adds keeps putting entries into the year on the final return with nobody watching. See stop-the-automation.

Hard gate: this skill refuses to run until it is answered

Liquidating entries rest on facts only the owner has. Missing any of them, the skill stops and names what is missing rather than assuming:

Answer neededWhy nothing can be drafted without it
Target dateDecides the final period, which entries fall inside it, and what the final return covers
Plan for each intercompany or related-party balanceSettled in cash, written off, or distributed. These are three different entries with three different consequences, and the balance is often the largest number on the sheet
Terms of any convertible instrumentsOn dissolution these holders usually rank ahead of common. What they are actually paid decides the entry; the carrying amount does not
Cap tableDecides who receives a final distribution and in what order
Resolution dateThe formal decision to dissolve starts statutory clocks. In the US, Form 966 is due within 30 days of it

Answer them with python3 bin/books.py answer wind_down.<key> "<answer>".

ready-to-file raises these same five under these same ids, so answering one here unblocks the entries and satisfies the filing requirement in one act. It raises them when the books say the company stopped, most often payroll ending part way through a year that runs to December, and the owner confirms it is being closed. It also asks for the certificate of dissolution or the board consent, which is the proof of the date all five rest on.

What it drafts, once it can

python3 bin/books.py wind-down --profile profiles/mine.local.json
  • Settlement or write-off of related-party balances, with the treatment named and the answer it rests on cited on the entry.
  • Extinguishment of convertible instruments against what is actually paid, not against the carrying amount. A difference between them is real and has to land somewhere deliberate.
  • Final distributions, in the order the instruments and the cap table set.
  • Closing remaining balances to zero, so the final balance sheet is a balance sheet and not a residue.

Where a treatment depends on a document the profile does not hold, it emits a question rather than an entry. That is the intended behaviour, not a gap.

Around the entries, and not this skill's job

A dissolution is a filing exercise as much as a bookkeeping one. Depending on where the company is registered and operates, that can include a final return marked final, a statutory notice of the intent to dissolve, dissolution filings in the state of incorporation with taxes current, closing out registrations in other states, final payroll filings, and closing any foreign-subsidiary or foreign-ownership reporting. Several of these carry per-form penalties that dwarf the tax on a company with no profit.

Get the list from whoever prepares the return, early. That conversation is worth having before the books are finished, not after, because it changes what the books need to show.

What good looks like

Every entry cites the answer that authorizes it. Every balance is either zero or explained. The open questions that remain are written down where the accountant and the owner can both see them, rather than living in someone's head.

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.