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.

rulesobservability-and-controls.md

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

Observability and Controls

Do not optimize what you cannot see. Do not trust a system that has no levers.

Minimum Visibility

For the feature or architecture under review, aim to know:

  • request volume, latency, and error rate
  • database query count, query time, and the slowest queries
  • job volume, runtime, retries, and backlog
  • storage growth and retention behavior
  • email volume and provider spend
  • cache hit rate and the cost of misses
  • third-party API usage, rate-limit pressure, and overage risk

Where practical, connect these to a business signal:

  • signups
  • active teams or users
  • orders
  • messages sent
  • files stored
  • incidents prevented

Design Cost Controls Early

Useful controls include:

  • quotas and rate limits
  • retention windows and cleanup jobs
  • concurrency limits on workers and fanout
  • cache TTLs and purge controls
  • graceful degradation for non-critical features
  • hard fail-safes around runaway jobs or external API calls
  • budget alerts for infrastructure and third-party services

Separate Critical and Optional Work

Classify components like this:

  • Tier 1: must work even during spikes
  • Tier 2: should work, but can slow down
  • Tier 3: can be delayed, sampled, batched, or turned off

This makes better decisions possible:

  • keep auth and checkout healthy first
  • let secondary analytics or enrichment lag behind
  • reduce fanout or polling before you scale every server tier

Make Cost Visible to Product Too

Cost is not just an infrastructure concern.

  • product decisions change payload size, notification volume, storage retention, and support load
  • engineering should expose the cost shape of feature ideas early
  • product should understand which UX choices are cheap, expensive, or only expensive at scale

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