skills.by true||false
LibraryHow to run

A product of true||false

Every item lists its source, license and what we changed.

library
skillthinkingtrueorfalse

flowchart

Converts prose or code into a readable Mermaid diagram with the right diagram type and conventions.

looks for

  • draw / map / diagram this
  • a process with branches or loops
  • a request/response between several services
  • a lifecycle with states (draft → published)

outputs

  • → a .mmd file or a fenced mermaid block
  • → a one-line caption saying what the diagram shows
drawing flowchart…
flow.mmd

SKILL.md

Flowchart

1. Pick the diagram

You are showingUse
Steps and decisionsflowchart TD (or LR for wide, shallow flows)
Messages between actors over timesequenceDiagram
An object's lifecyclestateDiagram-v2
Data modelerDiagram
Timeline / plangantt or timeline

2. Gather the flow

List: start, end(s), each step (verb + object), each decision (a yes/no or short-answer question), loops and failure paths. Read the code if it is a code flow; don't diagram what you assume.

3. Conventions

  • Rounded (…) start/end, rectangles […] steps, diamonds {…} decisions.
  • Quote labels: A["Validate input"]. Avoid raw (), ;, # in labels.
  • Decisions are questions; edges are answers: -- "Yes" -->.
  • 5–15 nodes. More? Split into subgraphs or a second diagram.
  • One direction. Happy path straight down; errors branch to the side.
  • IDs are short (A, B, V1); text goes in labels.
  • Dotted -.-> for optional/async; thick ==> for the main path if needed.

4. Example

flowchart TD
  S(["Request"]) --> A["Validate input"]
  A --> B{"Valid?"}
  B -- "No" --> E["Return ERR_VALIDATION"]
  B -- "Yes" --> C["Save"]
  C --> D(["201 Created"])

5. Check

  • Every decision has all its exits labelled.
  • No dead ends except real end states.
  • It renders (paste into a Mermaid live editor or your docs preview).
  • Someone new can follow it without the prose.

Customize for your project

Where diagrams live ({{DOCS_DIR}}/diagrams) and your theme (%%{init: {...}}%%).

audit trail

source
original
author
trueorfalse.dev
license
MIT
imported
2026-11-13
verified
2026-11-13
changes
Written new for the catalog.
privacy scan
pass
scripts
none
in the zip
1 file

works with

Claude, Codex, ChatGPT

pairs with

  • skilltrueorfalse

    adr

    Captures one decision with its context, rejected options and consequences in a numbered, immutable record.

    • a technology or vendor choice
    • a change that is hard to reverse
    • a decision made in chat that nobody wrote down
    Claude · Codex · ChatGPT
  • skilltrueorfalse

    decision-council

    Runs five opposing advisor views and a cross-examination, then a chair commits to one call and writes it up.

    • an irreversible or costly choice (architecture, pricing, build vs. drop, rewrite)
    • "council this", "second opinion", "should we…?"
    • a plan everyone already agrees with
    Claude · Codex · ChatGPT
  • skilltrueorfalse

    debug

    Runs a reproduce → isolate → hypothesize → fix → prove loop so fixes address causes, not symptoms.

    • an error message or stack trace
    • a failing or flaky test
    • it worked yesterday
    Claude · Codex · ChatGPT
  • skilltrueorfalse

    api-contract

    Locks request/response shapes and change rules so clients and servers can ship independently without breaking.

    • a new or changed endpoint
    • a field rename, removal or type change
    • plain-text error responses
    Claude · Codex · ChatGPT