Implementation Standards logo

Implementation Standards

Community
UnpaidAttention
implementation-standards

Concrete coding conventions to apply WHILE writing or editing code — naming, function/file size, error handling, input validation, types, comments, tests, and secrets. Trigger this whenever you are about to write new code or modify existing code in any language, including tests and scripts. Do NOT trigger for choosing between designs (use architecture-decisions), for diagnosing failures (use debugging-methodology), or for the final pre-delivery check (use verification-and-review) — this skill governs the act of writing itself.

Overview

PublisherUnpaidAttention
Repositoryfable5-methodology
Skill nameimplementation-standards
Stars
94
Forks
21
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by UnpaidAttention on GitHub. Read the source before you install it.

Installation

Install the Implementation Standards AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/implementation-standards
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnpaidAttention/fable5-methodology.git /tmp/fable5-methodology
mkdir -p .claude/skills
cp -r /tmp/fable5-methodology/skills/implementation-standards .claude/skills/implementation-standards
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Implementation Standards in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Implementation Standards on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Implementation Standards is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Implementation Standards

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.

Naming

  1. Name for domain meaning, not type: overdueInvoices, not invoiceList2. No new abbreviations the codebase doesn't already use.
  2. Functions are verbs (fetchUser); booleans are predicates (is_expired, hasAccess); collections are plural.
  3. A name that needs a comment is the wrong name — rename instead of annotating.
  4. Match the file's existing casing exactly, even if the repo is inconsistent elsewhere.

Structure and size

  1. One function, one thing. Describing it needs "and" → split. Soft limit ~50 lines.
  2. Nesting > 3 levels → invert with early returns / guard clauses.
  3. Files: one concern; split around 400 lines, always by 800.
  4. Duplication rule of three: copy once freely; extract on the THIRD occurrence, not the second — two instances don't yet reveal the axis of variation.
  5. Dead code, commented-out code, unused imports: delete on sight in files you touch. Git is the archive.

Error handling

  1. Every fallible operation (I/O, network, parse, subprocess) has an explicit failure story: propagate with added context, recover, or convert to a user-facing message. except: pass and .catch(() => {}) are forbidden.
  2. Error messages carry: what was attempted, with what input, and what to do: "failed to load config {path}: {err} — run 'app init' to create one".
  3. Catch the narrowest type that covers the case; broad catches only at the process top level, where they log and exit non-zero.
  4. Cleanup via the language's scoped construct (context manager, defer, finally, RAII) — never duplicated manual cleanup on both branches.

Input validation

  1. Validate at every trust boundary — HTTP handler, CLI parse, file read, message consumer, env var read. Schema validation where the ecosystem provides it (zod, pydantic, serde).
  2. Fail fast, naming the field and the violated constraint.
  3. Interiors trust validated input — do not re-validate defensively at every layer; duplicated validation drifts inconsistent.

Types

  1. No escape hatches (any, as unknown as, bare interface{}, unsafe) without a comment naming the forcing constraint.
  2. Make illegal states unrepresentable when cheap (sum type over struct-of-nullables); don't build type-level puzzles where a runtime check plus a test suffices.
  3. Python/JS: annotate public function signatures at minimum.

Comments

  1. Comment the WHY code can't show — external constraints, protocol quirks, why the obvious approach fails. Never the WHAT (# increment counter).
  2. Never narrate your editing process ("added to fix bug", "changed from previous version") — noise the moment it merges.
  3. TODOs carry an owner or a condition: // TODO(shaun): remove after v2 migration.
  4. Deliberate shortcuts name their ceiling and upgrade path: # shortcut: global lock — per-account locks if throughput matters.

Tests

  1. Every behavior change ships ≥1 test that fails without the change. Exempt: trivial one-liners. Never exempt: branches, loops, parsers, money, security.
  2. Every test asserts a concrete value or state change. toBeDefined() / not.toThrow() as the only assertion is not a test.
  3. Names state scenario + expectation: test_expired_token_returns_401, not test_auth_2.
  4. Test through the public interface; reaching into internals is a design smell.
  5. No inter-test dependence: any order passes.

Secrets and configuration

  1. No secrets in source, ever. Env vars or a secret manager; assert presence at startup.
  2. Magic numbers become named constants when they carry meaning (MAX_RETRIES = 3); don't name obvious arithmetic.
  3. A value that never varies is a constant, not a config option.

Diff discipline

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.

Worked example — weak vs. standard

Task: read a JSON config and return the port.

Weak:

python
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:

python
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

Done when

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.

Frequently asked questions

What does the Implementation Standards AI skill do?

Concrete coding conventions to apply WHILE writing or editing code — naming, function/file size, error handling, input validation, types, comments, tests, and secrets. Trigger this whenever you are about to write new code or modify existing code in any language, including tests and scripts. Do NOT trigger for choosing between designs (use architecture-decisions), for diagnosing failures (use debugging-methodology), or for the final pre-delivery check (use verification-and-review) — this skill governs the act of writing itself.

Why use Implementation Standards on TypingMind?

Because you install it once and use it with any model. Implementation Standards is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Implementation Standards in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/implementation-standards. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Implementation Standards?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Implementation Standards?

As many as you like. As long as a model supports skills, you can use Implementation Standards with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Implementation Standards AI skill free?

It is published on GitHub by UnpaidAttention. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇