/fable5-methodology:implementation-standardsfrom fable5-methodology
Enforces concrete coding conventions for naming, function/file size, error handling, input validation, types, comments, tests, and secrets to apply while writing or editing code.
Ships in fable5-methodology. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Precedence when rules conflict: explicit user instruction > existing codebase convention > this skill. Before writing anything in an existing project, read 2–3 neighboring files and copy their naming, error style, import order, and test idiom — even where you'd personally choose differently.
overdueInvoices, not invoiceList2. No new
abbreviations the codebase doesn't already use.fetchUser); booleans are predicates (is_expired, hasAccess);
collections are plural.except: pass
and .catch(() => {}) are forbidden."failed to load config {path}: {err} — run 'app init' to create one".defer, finally, RAII) —
never duplicated manual cleanup on both branches.any, as unknown as, bare interface{}, unsafe) without a comment
naming the forcing constraint.# increment counter).// TODO(shaun): remove after v2 migration.# shortcut: global lock — per-account locks if throughput matters.toBeDefined() / not.toThrow() as
the only assertion is not a test.test_expired_token_returns_401, not test_auth_2.MAX_RETRIES = 3); don't
name obvious arithmetic.The diff contains the requested change and nothing else. No drive-by refactors, renames, or reformatting of untouched lines — note improvement opportunities in your report instead of doing them. Debug prints are removed before delivery.
Task: read a JSON config and return the port.
Weak:
def get_port(f):
try:
return json.load(open(f))["port"]
except:
return 8080
(Leaked file handle; bare except hides typos AND missing file identically; silent default
masks misconfiguration; f says nothing.)
Standard:
DEFAULT_PORT = 8080
def load_port(config_path: Path) -> int:
try:
with config_path.open() as fh:
config = json.load(fh)
except FileNotFoundError:
return DEFAULT_PORT # absent config is expected; malformed config is not
except json.JSONDecodeError as err:
raise ConfigError(f"invalid JSON in {config_path}: {err}") from err
port = config.get("port", DEFAULT_PORT)
if not isinstance(port, int) or not (0 < port < 65536):
raise ConfigError(f"port must be 1-65535, got {port!r} in {config_path}")
return port
The code follows the file's local conventions; every fallible call has an explicit failure story; boundaries validate and interiors trust; each new behavior has a concrete-assertion test; no escape hatches, secrets, dead code, debug prints, or drive-by changes remain in the diff. Then move to verification.
What SKILL.md sets; muted values are Claude Code's defaults
26 skills in this plugin
/architecture-decisionsChoose between competing technical approaches and make design decisions with an explicit trade-off order. Trigger this when a task requires selecting among 2+ viable designs — "should we use X or Y", designing a schema, shaping a public API, choosing a storage/queue/cache mechanism, deciding whether to add a dependency, or deciding whether to introduce an abstraction. Do NOT trigger for initial request parsing (use task-planning), for line-level style questions (use implementation-standards), or when the codebase already has an established pattern for this exact problem — in that case, follow the existing pattern without deliberation./codebase-explorationMap an unfamiliar repository before changing anything in it — structure sweep, entry points, configs, test baseline, targeted tracing, and mental-model confirmation. Trigger this the FIRST time you work in a repo (or an unfamiliar subsystem of a known repo) in a session, before your first edit there — whenever the user says "fix/add/change X" in code you have not yet mapped. Do NOT trigger for repos or areas you already mapped this session, for single-file scripts with no surrounding project, or for parsing the request itself (use task-planning) — this skill is about understanding the code, not the ask.npx claudepluginhub unpaidattention/fable5-methodology --plugin fable5-methodologyOther plugins' skills for the same job