All skills
sailscastshq avatar

/the-frugal-architect

@3e3ad46

Cost-aware architecture skill inspired by The Frugal Architect and adapted for The Boring JavaScript Stack. Treat cost as a first-class non-functional requirement, align system shape to the business model, make trade-offs explicit, observe cost and waste, add cost controls, optimize incrementally, and challenge stale assumptions. Use this skill when shaping infrastructure, architecture, scaling, observability, performance, background jobs, caching, or product-engineering trade-offs.

Use this Skill: https://skilld.dev/gh/sailscastshq/boring-stack/the-frugal-architect

This session only. Nothing lands on disk.

rulesincremental-optimization.md

≈439 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Incremental Optimization

Frugal teams do not wait for a grand rewrite. They make the next worthwhile improvement visible, measured, and repeatable.

The Loop

  1. measure the current path
  2. identify the most likely source of waste
  3. change one lever
  4. measure again
  5. keep, revert, or tune
  6. document the lesson and move to the next hotspot

High-return Places to Look First

In this stack, common waste shows up in:

  • oversized Inertia props
  • repeated database queries and N+1 access
  • browser tests doing work request tests could cover more cheaply
  • cron jobs that run too often or scan too much
  • email workflows that send too much or too eagerly
  • realtime events that fan out more often than users can perceive
  • large assets, uploads, or retained files with weak cleanup
  • background jobs retrying the same failure without new information

Rewrite Last

Before proposing a rewrite, try:

  • better indexing or query shape
  • smaller payloads
  • tighter caching
  • better batching
  • reduced polling
  • cheaper storage classes or retention
  • clearer degradation logic during spikes

Large rewrites are justified only when smaller changes cannot alter the economics enough.

Celebrate Compounding Wins

Incremental improvements matter because they stack:

  • lower steady-state cost
  • smaller incident blast radius
  • faster response during spikes
  • better developer understanding of the system

The goal is not theoretical perfection. The goal is a healthier system that keeps getting cheaper to serve relative to the value it creates.

Source: SKILL.md on GitHub

No alerts17d3 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill provides architectural guidance and principles for cost-aware software development. It contains no executable code, network operations, or security issues.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

Signed by skilld at 3e3ad46. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 6 months ago
Other metadata
metadata
{
  "author": "sailscastshq",
  "version": "1.0.0",
  "tags": "the-frugal-architect, frugality, cost-awareness, architecture, trade-offs, observability, optimization, boring-stack"
}

README badge

README badge for sailscastshq/boring-stack/the-frugal-architect