Agent skill

Conventions Scale

by stella in stella/stella

Apply when making architectural decisions, designing endpoints or workers, adding database tables, or changing data-volume behavior.

Apache-2.0Auto-check passed

Install Conventions Scale

skills CLI
$ npx skills add stella/stella --skill conventions-scale -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install stella/stella conventions-scale --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/stella/stella.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/conventions-scale .claude/skills/conventions-scale && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
conventions-scale
GitHub stars
258
Token cost
~1.5k tokens
SKILL.md length
786 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
Apache-2.0

At a glance

Apply when making architectural decisions, designing endpoints or workers, adding database tables, or changing data-volume behavior.

  • SKILL.md covers Principle, Required Shape, Valkey Usage Doctrine and Evidence Before Exceptions
  • Calls bun

What it does

Conventions Scale is an agent skill from stella/stella. Apply when making architectural decisions, designing endpoints or workers, adding database tables, or changing data-volume behavior.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Open-source legal workspace. The licence is Apache-2.0.

Example prompts

  • “/conventions-scale”

What it can do on your machine

Read from SKILL.md and the folder at commit 269655d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bun

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Conventions Scale loads about 1.5k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 786 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from stella/stella at commit 269655d, republished under its Apache-2.0 licence (© stella). 786 words, ~1,475 tokens.

Download SKILL.mdSave it as .claude/skills/conventions-scale/SKILL.md (or your agent's skills folder).
name
conventions-scale
description
Apply when making architectural decisions, designing endpoints or workers, adding database tables, or changing data-volume behavior.

Scalability Conventions

Apply when making architectural decisions, designing endpoints or workers, adding database tables, or changing data-volume behavior.

Principle

Design for 2,000–5,000+ lawyers and millions of documents without requiring a rewrite. Choose the scalable shape when it costs roughly the same. When it is materially more expensive, isolate the simpler implementation behind a clear contract so callers do not depend on its limitations.

Required Shape

Bounded reads. Never return or scan an unbounded growing collection in a request or repair job. List endpoints accept a normalized limit and opaque cursor and return Page<T> from apps/api/src/lib/pagination.ts: { items, nextCursor, limit }. Offset pagination, totalCount, and unbounded lists require explicit justification.

Tenant isolation. Stella already uses PostgreSQL RLS plus query-level authorization. Workspace reads and writes go through authorized scopedDb and include the tenant boundary in the query. SafeId and handler permission checks complement RLS; none replaces the others. Root DB access is reserved for demonstrated system-level operations with an explicit deny-by-default policy.

Stateless services. API processes must work behind a load balancer with N replicas. Do not depend on process-local mutable state for ownership, queues, locks, required caches, or progress. Use durable queues, database leases, compare-and-set transitions, and external caches where appropriate.

Bounded background work. Workers use durable checkpoints, deterministic job identity, bounded concurrency, backpressure, and per-item failure records. A retry or overlapping run must converge instead of duplicating effects.

Streaming and batching. Stream large files and exports; do not buffer them entirely in memory. Batch database and remote operations and avoid per-row network/query fan-out. Put explicit ceilings on batch size, payload size, parallelism, retries, and execution time.

Configuration-owned limits. Growing-domain limits live in the owning slice's named configuration or shared limit primitives, not as scattered magic numbers. Defaults, hard ceilings, and normalized server-applied values must be distinguishable.

Indexes and access paths. Add an index with every new request-path filter, sort, or join; lead composite indexes with tenant scope. Check the query plan for large-table or high-frequency paths rather than inferring performance from the schema.

Short transactions. Keep external I/O outside transactions and design for an external pooler. Long-running workflows persist progress between short transactions.

Replaceable providers. AI, search, object storage, email, conversion, and connector providers stay behind typed boundaries. Business logic must not depend on one provider's model names, pagination quirks, or retry semantics.

Show full SKILL.md (405 more words)Show less

Valkey Usage Doctrine

Valkey runs as a single node today. The code must already tolerate losing it and must already be legal on a cluster, so growing the deployment (managed Multi-AZ, then cluster mode) is a connection-module change, not an application rewrite. Two requirements, each with a named enforcement mechanism.

1. Valkey holds only ephemeral coordination. Queue transport, pub/sub events, TTL'd counters and caches, short locks. Never a fact that exists nowhere else: every value must be reconstructible from PostgreSQL, object storage, or the request that produced it. A Valkey flush must degrade the system, never corrupt it, and every consumer must have a written degraded path (fail open, in-memory fallback, durable replay, or an explicit captured error).

Enforced by: no-restricted-imports in oxlint.config.ts confines @/api/lib/redis-client to a named allowlist of coordination facades, so a new store cannot appear without review; and apps/api/src/lib/redis-outage.test.ts pins each facade's degraded behavior against a real client aimed at a closed port.

2. Every usage is cluster-legal. Keys carry a {hashtag} naming the colocation unit; a multi-key command or Lua script may only touch keys that share one hashtag. No KEYS, no numbered databases, no SELECT. SCAN is per-node, so it may only ever be an optimization over a durable source of truth, never the only way to find something. Pub/sub carries no durability guarantee: a subscriber must tolerate lost, duplicated, and out-of-order messages, and reconcile from the database on reconnect.

Enforced by: apps/api/src/lib/redis-keys.ts builds every non-queue key and brands the result, so a raw string cannot reach a key position; and the require-coordination-key oxlint rule rejects string literals in the key argument of a Valkey command outside that module.

Queue keys are the documented exception. BullMQ owns its own key layout under a prefix, and changing that prefix strands every in-flight job. The prefix therefore flips only at the cluster migration itself, behind a queue drain. The decision and its drain step are recorded at the connection factory in apps/api/src/lib/redis-client.ts.

Evidence Before Exceptions

Do not keep a hand-maintained list of today's scale gaps in this skill; it becomes stale. Inspect live baselines and code instead:

  • bun scripts/perf-hotspots.ts for current network/query debt;
  • affected query plans and table cardinality for database work;
  • scripts/typecheck-baseline.ts for type-instantiation growth;
  • bundle and route network baselines for frontend changes.

When accepting a temporary limitation, record its bound, the replacement boundary, the signal that triggers migration, and the strongest guard that prevents new code from making it worse.

© stella, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/conventions-scale of stella/stella.

Open the folder on GitHubat commit 269655d

Compare with similar skills

Conventions Scale next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Conventions Scale compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Conventions Scale this skillstella/stella258—~1.5kAutomated safety check: PassApache-2.0
System Architecture DesignerJeffallan/claude-skills12k—~1.2kAutomated safety check: PassMIT
Architecture Patternswshobson/agents40k—~2kAutomated safety check: PassMIT
Architecture Patternsdavila7/claude-code-templates32k4 repos~483Automated safety check: PassMIT
Design Systemaffaan-m/ECC275k—~698Automated safety check: PassMIT
Design Guidepaperclipai/paperclip99k1 repos~3.1kAutomated safety check: PassMIT

Similar skills

  • System Architecture Designer

    Jeffallan/claude-skills

    Guides system architecture design end to end: gathering requirements, matching them to a pattern, documenting trade-offs with ADRs, and reviewing.

    12k GitHub stars~1.2k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Architecture Patterns

    wshobson/agents

    Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.

    40k GitHub stars~2k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Architecture Patterns

    davila7/claude-code-templates

    Master proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to build maintainable, testable, and scalable systems.

    32k GitHub starsUsed in 4 repos~483 tokens
    DevelopmentAuto-check passed
  • Design System

    affaan-m/ECC

    Generate a design system from an existing codebase or audit one for visual consistency: extract tokens (colors, typography, spacing, shadows) into design-tokens.json and CSS custom properties with…

    275k GitHub stars~698 tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Design Guide

    paperclipai/paperclip

    Paperclip UI design system guide for building consistent, reusable frontend components.

    99k GitHub starsUsed in 1 repo~3.1k tokens
    Frontend & DesignAuto-check passed
  • Audits a design against Dieter Rams' ten principles of good design, scores each with evidence, and hands off a make-plan prompt for a new, refined or redesigned outcome.

    98k GitHub stars~4.6k tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from stella/stella

All 24 skills in this repo
  • Plan

    stella/stella

    Create a concise, evidence-backed implementation plan in the repository planning area when the user explicitly asks for a plan.

    258 GitHub stars~917 tokensUpdated today
    Auto-check passed
  • Answer From Sources

    stella/stella

    Answers data-protection (GDPR) questions grounded in the regulation and supervisory guidance, with a citation for every claim.

    258 GitHub stars~735 tokensUpdated today
    Auto-check passed
  • Check Against Rules

    stella/stella

    Reviews a non-disclosure agreement against the firm's NDA checklist and reports findings with citations.

    258 GitHub stars~856 tokensUpdated today
    Auto-check passed
  • Intake To Draft

    stella/stella

    Collects the facts of an unpaid invoice, then drafts a payment demand letter.

    258 GitHub stars~537 tokensUpdated today
    Auto-check passed
  • Conventions Perf

    stella/stella

    Apply when a performance-guard check (network baseline, bundle baseline, DB query count, loader-prefetch lint, RC bailouts) fails or when touching a hot route/endpoint.

    258 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Apply when writing or reviewing React effects in apps/web. An agent skill from stella/stella.

    258 GitHub stars~2.8k tokensUpdated today
    Auto-check passed

Questions about Conventions Scale

What does Conventions Scale do?

Apply when making architectural decisions, designing endpoints or workers, adding database tables, or changing data-volume behavior. Conventions Scale is an agent skill from stella/stella. Apply when making architectural decisions, designing endpoints or workers, adding database tables, or changing data-volume behavior.

How do I install Conventions Scale in Claude Code?

Run `npx skills add stella/stella --skill conventions-scale -a claude-code`. Or copy the skill folder (.agents/skills/conventions-scale in stella/stella) into .claude/skills/conventions-scale in your project. Claude Code loads it when a task matches its description.

How do I install Conventions Scale in Codex?

Run `npx skills add stella/stella --skill conventions-scale -a codex`. Or copy the skill folder (.agents/skills/conventions-scale in stella/stella) into .agents/skills/conventions-scale in your project. Codex loads it when a task matches its description.

Can I use Conventions Scale in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add stella/stella --skill conventions-scale -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/conventions-scale, .gemini/skills/conventions-scale, .github/skills/conventions-scale and .opencode/skills/conventions-scale in your project.

What does Conventions Scale need to run?

Going by SKILL.md and its folder, Conventions Scale needs the command-line tools its instructions call (bun).

Does Conventions Scale access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Conventions Scale safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Conventions Scale use?

Conventions Scale is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Conventions Scale use?

About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Conventions Scale?

Skills that share tags, products or a category with Conventions Scale: System Architecture Designer (Jeffallan/claude-skills, 12k stars), Architecture Patterns (wshobson/agents, 40k stars), Architecture Patterns (davila7/claude-code-templates, 32k stars) and Design System (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Conventions Scale?

stella (a GitHub organization) maintains it in stella/stella, which has 258 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 8, 2026.

Source: stella/stella on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.