aposd

aposd is a skill for Claude Code from mhenke/john-ousterhout-skills. It costs 30 tokens per session (3,761 once invoked), scanned A, original, MIT.

Always-on design guidance for coding agents based on principles from A Philosophy of Software Design, a book about keeping software understandable and well-structured.

In plain words
What is it for?
Use it during implementation, design analysis, modular decomposition, interface design, and code review. It does not cover debugging, profiling, deployment, or security auditing.
Why use it?
It gives coding tasks consistent advice about module boundaries, interfaces, naming, abstraction, and error handling, reducing design problems that can make later changes harder.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions subagents.

Part of the aposd-skills plugin — 4 skills shipped together

Good fit Use it during implementation, design analysis, modular decomposition, interface design, and code review. It does not cover debugging, profiling, deployment, or security auditing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mhenke/john-ousterhout-skills/aposd
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mhenke/john-ousterhout-skills --skill aposd
Clone the repo
git clone --depth 1 https://github.com/mhenke/john-ousterhout-skills

Made for: Claude Code.

Or install aposd-skills, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aposd

README.md
[![agentmods](https://agentmods.dev/badge/skills/mhenke/john-ousterhout-skills/aposd/github.svg)](https://agentmods.dev/skills/mhenke/john-ousterhout-skills/aposd)
Your own site
<a href="https://agentmods.dev/skills/mhenke/john-ousterhout-skills/aposd"><img src="https://agentmods.dev/badge/skills/mhenke/john-ousterhout-skills/aposd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aposd

Your own site · 80×15
<a href="https://agentmods.dev/skills/mhenke/john-ousterhout-skills/aposd"><img src="https://agentmods.dev/badge/skills/mhenke/john-ousterhout-skills/aposd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,761 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.03761
Opus 5 $0.00015 $0.01880
Sonnet 5 $0.00006 $0.00752
Haiku 4.5 $0.00003 $0.00376

Measured 11d ago against content hash 8bb494e155ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

aposd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/deep-module.py, templates/error-suppressor.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/aposd/SKILL.md · 375 lines

How it starts

The opening of the file, as written. The whole thing — 375 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Content source: CLAUDE.md is the single source of truth for the 15 behavioral rules — make changes to those there first, then copy here. Sections unique to this file (Setup, Quick Reference, Common Mistakes, Invocation Modes) are maintained here directly. See ADR-005 (Intentional Condensation). Examples in references/.

APOSD behavioral guidelines

Design-quality guardrails for every coding task. APOSD applies 15 principles from A Philosophy of Software Design (Ousterhout) — always-on behavioral guidance that pushes toward deeper modules, cleaner interfaces, and less error handling for callers. No explicit invocation needed for everyday coding.

Scope

In scope: Design analysis, modular decomposition, interface design, naming, error-handling strategy, abstraction layering, code review with a design lens.

Deliberately out of scope:

  • Low-level debugging or performance profiling
  • Framework-specific patterns (React, Django, etc.)
  • CI/CD configuration, deployment, infrastructure
  • Security auditing — see the dedicated security skills

Boundary with sibling skills: This skill provides design principles and behavioral guidance. The sibling skills below cover formal evaluation passes:

Skill Purpose When to Use
aposd (this skill) Always-on design principles during coding Every task with design decisions
aposd-critique Principles-based design evaluation Deep design review, second opinion on complexity
aposd-audit Severity-scored design audit Before major refactoring, baseline current state

When Not to Use

This skill is designed for non-trivial design decisions. Skip it for:

  • Trivial one-line fixes (typo, variable rename, config change)
  • Mechanical refactors with no design impact (rename a method, extract a constant)
  • Exploratory code where the design is intentionally provisional

The tradeoff note at the top of Principles covers this: "For trivial tasks, use judgment."

Read the full file on GitHub · 375 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 375 lines · 30 tokens per session scan A 8bb494e155ee

Subscribe to this mod's changes

aposd is a skill published in the GitHub repository mhenke/john-ousterhout-skills (6 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 3,761 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

Cognitive Load Analyzer

Evaluate interface complexity by measuring information density, decision points, visual hierarchy, and task completion paths to reduce user cognitive burden.

PramodDutta/qaskills · 29 tokens

software-code-review

Evaluate source code for correctness, quality, security, style conformance, and maintainability, producing a structured review report with findings and recommendations. Use when the user wants to review, critique, audit, evaluate, or inspect source code — checking for bugs, logic errors, unhandled error paths…

stencila/stencila · 111 tokens

software-design-review

Critically review a software design specification and suggest concrete improvements. Use when the user wants to review, critique, audit, evaluate, or strengthen a design spec, technical specification, feature design, architecture proposal, or implementation plan. Focus on clarity, completeness, correctness…

stencila/stencila · 84 tokens

systems-thinking

Analyzes complex business problems through systems thinking by mapping causal loops, identifying reinforcing and balancing feedback dynamics, and diagnosing system archetypes like Fixes That Fail, Shifting the Burden, and Limits to Growth. Use when quick fixes keep backfiring, growth plateaus unexpectedly, departments…

fatihguner/foreman · 78 tokens

software-design-creation

Create software design specifications for new features or standalone software. Use when the user needs help turning a brief idea into a concrete design spec by eliciting missing requirements, clarifying scope, defining users and constraints, outlining architecture and interfaces, identifying risks and assumptions, and…

stencila/stencila · 70 tokens

tldr-code

Token-efficient code analysis via 5-layer stack (AST, Call Graph, CFG, DFG, PDG). 95% token savings.

parcadei/Continuous-Claude-v3 · 33 tokens