Schedule my revenue

From gethouston/houston · View interactive version

Schedule my revenue is an AI agent skill from the GitHub repository gethouston/houston. Spread a customer contract into a clean ASC 606 recognition schedule, one artifact per contract organized by customer. I handle the common startup patterns — annual upfront with monthly ratable, usage-based with a floor, implementation-fee deferral, contract modifications (prospective vs. cumulative

How to use this skill

Skill file

Schedule My Revenue

Turn a signed contract into a month-by-month ASC 606 recognition schedule. One JSON artifact per contract, grouped by customer. Common patterns are baked in; the genuinely judgment-heavy stuff (variable consideration, significant financing, non-cash) gets flagged so you can decide. I summarize options, I never decide, and I never post.

When to use

Connections I need

I run external work through Composio. Before this skill runs I check that the categories below are linked. Missing → I name the category, ask you to connect it from the Integrations tab, stop.

If neither is connected I fall back to a dropped contract file (PDF, DOCX, CSV) or pasted summary. If you have nothing to share I stop and ask you to connect Stripe or drop the contract.

Information I need

I read your bookkeeping context first. For every required field that's missing I ask ONE plain-language question (best modality: connected app > file drop > URL > paste) and wait.

Steps

<!-- houston-workflow:v1 -->

  1. Read context. Load context/bookkeeping-context.md, config/context-ledger.json (needs domains.revenue - model + ASC 606 posture + contract source), config/chart-of-accounts.json (needs deferred-revenue + revenue account codes). If domains.revenue missing, ask ONE targeted question with modality hint (connected app > file > URL > paste), persist, continue.
  1. Load contract. Source ranking: connected app (Stripe / HubSpot via Composio - discover slugs at runtime with composio search billing / composio search crm) > dropped file (CSV / PDF / DOCX) > URL > paste. Extract:
  1. Identify performance obligations. Per line item, decide distinct PO or combine:

Output array performanceObligations[]:

`{id, description, standaloneSellingPrice, recognitionPattern:

"ratable" | "point-in-time" | "usage" | "milestone",

startDate, endDate}`.

  1. Compute transaction price. Sum fixed consideration across all POs. Add floor (if any) for usage-based items. Flag - do NOT auto-include - any:

Never invent treatment. Flagged items land in judgmentCalls[] array with options + recommendation.

  1. Allocate transaction price across POs. Use standalone selling price (SSP) as default allocation base. If SSP for implementation fee not observable, use residual approach + flag. Produce allocation[] - {poId, allocatedAmount, method}.
  1. Build monthly recognition schedule. Per PO, apply recognition pattern:

months_in_term, each month from startDate to endDate`.

months_in_contract_life`, straight-line across full term.

Emit schedule[]: `{period, poId, amount, cumulativeRecognized,

method}. cumulativeRecognized` running per PO + total.

  1. Handle contract modifications. If user flags as modification of prior contract (upsell, downsell, term extension):

Treatment decision = judgment call - summarize both options with dollar impact, stop for user confirmation.

  1. Draft supporting journal entry stubs. Per row in schedule[], generate draft journal entry outline (Dr deferred revenue / Cr revenue, or Dr contract asset / Cr revenue as appropriate). Do NOT write to journal-entries.json here - user runs draft-a-journal-entry type=revrec to persist. Include in output JSON so downstream journal entry skill has ready input.
  1. Write artifact. Slugify customer + contractId. Path: revrec/{customer-slug}/{contract-slug}.json. Atomic write: .tmp → rename. Full schema:

```jsonc

{

"id": "<uuid>",

"createdAt": "...",

"updatedAt": "...",

"customer": { "name": "...", "slug": "..." },

"contract": { "id": "...", "slug": "...", "effectiveDate": "...", "endDate": "..." },

"performanceObligations": [ /* step 3 */ ],

"transactionPrice": 120000.00,

"allocation": [ /* step 5 */ ],

"schedule": [ /* step 6 */ ],

"judgmentCalls": [ /* step 4 + step 7 */ ],

"jeStubs": [ /* step 8 */ ],

"status": "draft"

}

```

  1. Append to outputs.json. Read-merge-write. One row per contract artifact: `{id, type: "revrec-schedule", title: "Revenue Recognition

transaction price, term, and any judgment calls>", path,

status: "draft", domain: "close"}`.

  1. Summarize to user. One paragraph: transaction price, term, monthly recognition amount, and - most important - any judgmentCalls blocking finalization. Per judgment call, list options + recommended treatment + dollar impact, wait for confirmation before flipping status: "ready".

Outputs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.