ProgramIn Studio All articles
Tooling

The Hundred-Line Rule: Seven Small Tools That Keep Our Studio Ticking

ProgramIn Studio
The Hundred-Line Rule: Seven Small Tools That Keep Our Studio Ticking

Photo: developer writing small automation scripts on laptop with terminal and code editor, via cdn.pixabay.com

Every small studio ends up with a shadow IT department. Not deliberately — it accumulates. A cron job here, a spreadsheet with a macro there, a Slack webhook somebody wired up in 2022 and nobody dares touch. Before long you are maintaining six half-finished internal tools and nobody can remember what three of them do.

We have a rule that keeps this in check: if a tool cannot be explained on one screen and deleted in an afternoon, it does not get built. Everything below passed that test. Most of them are under a hundred lines.

The filter we apply first

Before writing a single line, four questions.

Does it save at least an hour a week? If not, it is a hobby.

Does it fail loudly? A silent tool is worse than no tool, because you stop checking it.

Is there exactly one owner? Shared ownership means no ownership.

Can we delete it in an afternoon? If the answer is no, the design is wrong.

Then: boring stack, always. Node or Python, SQLite or a JSON file, GitHub Actions for the cron, a free tier somewhere. Nothing that needs a Kubernetes cluster in order to send a reminder email.

1. The invoice chaser

Late payment is the small-studio tax. Ours is a scheduled script that reads open invoices from FreeAgent and sends a polite nudge at seven, fourteen and thirty days past due. It runs at nine in the morning on weekdays, because a nudge that lands at 3am reads like a robot.

# chase.py - weekdays at 09:00 via GitHub Actions
import os, datetime, requests

API = 'https://api.freeagent.com/v2'
H = {'Authorization': 'Bearer ' + os.environ['FA_TOKEN']}

invoices = requests.get(API + '/invoices?status=open', headers=H).json()
for inv in invoices['invoices']:
    due = datetime.date.fromisoformat(inv['due_on'])
    age = (datetime.date.today() - due).days
    if age in (7, 14, 30):
        requests.post(API + '/invoices/' + inv['url'].split('/')[-1] + '/send_reminder', headers=H)

That is the whole thing. It has probably paid for itself eleven times over.

2. The project health dashboard

One static HTML page, refreshed hourly, showing each live project as a traffic light. Green means time booked this week and no overdue invoices. Amber means one of those is slipping. Red means both. Data comes from Harvest and FreeAgent, cached in SQLite so a flaky API does not blank the page.

No charts, no filters, no authentication beyond a shared password. It is a glance, not a product.

3. The client feedback parser

Clients send feedback in prose. Four paragraphs of it, usually, with the actual change requests buried in paragraph three. We built a tiny page where you paste the email and get back a numbered list, which then gets pasted into the ticket system.

const tidy = raw => raw.split(/\n+/)
  .map(l => l.replace(/^(hi|hello|just to say)/i, '').trim())
  .filter(Boolean)
  .map((l, i) => `${i + 1}. ${l}`)
  .join('\n');

A small model call handles the messy middle; the cleaning pass above is what stops the output looking like a robot wrote it. The rule is that a human reads the list before it becomes a ticket. Always.

4. The standup digest

Three people do not need a standup. Three people do need to know what the other two did yesterday. A GitHub Action runs at 08:15, gathers merged pull requests, commits and closed issues from the previous working day, and posts a short summary to Slack.

on:
  schedule:
    - cron: '15 8 * * 1-5'
jobs:
  digest:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: node digest.js
        env:
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

Fifteen lines of YAML, forty of JavaScript, and the Monday morning 'what actually happened last week' conversation disappears.

5. The renewal watcher

This one exists because we once let a domain lapse over a bank holiday weekend. It checks weekly: domain expiry for every client site, SSL certificate dates, the Companies House confirmation statement, insurance renewals, and our own software licences.

It emails a single digest. If the digest does not arrive on Monday, that absence is itself the signal that something is broken.

6. The deploy announcer

When a release goes out, the tool drafts a two-line changelog entry from commit titles, posts it to a shared channel, and produces a plain-English version for the client. It saves maybe ten minutes per deploy and, more usefully, it means nobody has to remember to tell the client at all.

7. The Friday timesheet nudge

A Slack message at four o'clock on Friday with a link to Harvest and a count of unbooked hours per person. Nothing clever about it. It exists purely so that a whole week never has to be reconstructed from memory on Monday morning.

The maintenance trade-offs nobody mentions

Each of these is a liability as well as an asset. Six months from now, half the dependencies will have moved on and the person who wrote tool four may be heads-down on a deadline.

Our mitigations are unglamorous. Every tool has a README with a single paragraph saying what it does and how to run it locally. Every tool alerts on failure — a Slack ping is plenty. Versions are pinned. And once a quarter we do a cull: anything that has not fired in three months gets deleted, with a commit message explaining why. That last habit is the one that stops the shadow IT department forming.

Where we draw the line

We do not build anything that stores client personal data, handles payments, or faces the public internet without authentication. That is not a technical limit — it is a liability limit. Those things go to a vendor with a support contract and a data processing agreement we can file alongside the rest of the paperwork.

The rest is fair game. Small, dull, disposable tools that do one thing and then get out of the way. That is the whole trick, really: a studio that automates the boring bits has more hours left for the parts clients actually pay for.

All Articles

Related Articles

Copilots on Probation: What a Month of Measured AI Use Actually Told Us

Copilots on Probation: What a Month of Measured AI Use Actually Told Us