AGENT SKILL

book--a-philosophy-of-software-design--nano

Philosophy of Software Design (John Ousterhout) — Minimal rules — essential one-liners only. Use when asked to apply Philosophy of Software Design principles or review code against Philosophy of Software Design standards.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 13
Forks
2

01 前言 Front Matter

name
book--a-philosophy-of-software-design--nano
origin
github.com/ciembor/agent-rules-books (MIT)
license
MIT
version
1.0.0
description
Philosophy of Software Design (John Ousterhout) — Minimal rules — essential one-liners only. Use when asked to apply Philosophy of Software Design principles or review code against Philosophy of Software Design standards.
compatibility
yana-ai >= 0.14.0

03 SKILL.md 正文

OBEY A Philosophy of Software Design by John Ousterhout

When to use

Use when the main risk is accidental complexity, shallow abstractions, leaky interfaces, or tactical patches.

Primary bias to correct

Working code, small pieces, and familiar wrappers are not automatically simple.

Decision rules

  • Optimize for lower cognitive load and local understandability, not shorter files, familiar patterns, fewer lines, or clever compactness.
  • Prefer deep modules; reject wrappers, layers, helpers, facades, and split-outs that do not hide real complexity.
  • Hide volatile decisions, representations, storage, protocol facts, workflow bookkeeping, and messy edge handling in one owning module.
  • Make interfaces caller-centered and semantic; avoid staged APIs, flags, setup sequences, and mechanism leakage when the module can provide the right operation.
  • If a change feels awkward or spreads widely, improve ownership and abstraction instead of adding tactical special cases.
  • Combine or split by total complexity: keep shared knowledge together and split only at independently understandable boundaries.
  • Treat names and comments as design signals: precise abstraction names, explicit contracts, and no comments that compensate for bad decomposition.
  • Add complexity for performance, trends, patterns, frameworks, tests, or exception handling only when evidence or caller needs justify it.

Trigger rules

  • When adding a helper, layer, option, callback, pattern, or abstraction, prove it removes complexity for callers.
  • When an API requires sequencing, representation, storage, transport, caching, protocol, or file-format knowledge, redesign the boundary.
  • When naming is hard, comments get long, or reviewers are surprised, treat it as design evidence.
  • When one change spreads widely, look for duplicated knowledge, hidden dependencies, temporal coupling, or the wrong owner.
  • When optimizing or adding exception paths, keep the common path simple and require evidence or a stronger invariant.

Final checklist

  • Fewer concepts to hold?
  • More complexity hidden below the right boundary?
  • Fewer special cases, knobs, leaks, and call-order traps?
  • Better names, contracts, ownership, and evidence for any added complexity?

04 同仓库更多 Skills

Horonomos-laps
Horonomos-laps/Yana-AI

openai--sentry--sentry

Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.

★ 13
Horonomos-laps
Horonomos-laps/Yana-AI

ito-basket-compare

Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.

★ 13
Horonomos-laps
Horonomos-laps/Yana-AI

implementing-network-traffic-baselining

Build network traffic baselines from NetFlow/IPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly/daily traffic pattern profiling

★ 13
Horonomos-laps
Horonomos-laps/Yana-AI

detecting-evasion-techniques-in-endpoint-logs

Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.

★ 13
Horonomos-laps
Horonomos-laps/Yana-AI

implementing-microsegmentation-with-guardicore

Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.

★ 13
Horonomos-laps
Horonomos-laps/Yana-AI

ramdisk-tmpfs-patterns

暂无简介

★ 13