agentleFS
product-on-purposeproduct-on-purpose/thinking-framework-skills/skills/think-stocks-and-flows-reasoning/SKILL.md

think-stocks-and-flows-reasoning

Skill29 starsChanged 3 months agoApache-2.0View on GitHub

Produces a stock-flow map by separating a quantity that accumulates from the inflows and outflows that change it, then reasoning about the stock's trajectory from the net flow rather than the direction of any single flow. Use when a problem involves an accumulation (cash, debt, backlog, headcount, customer base, technical debt, emissions) and intuition about whether it is rising or falling may be wrong.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before acting on an "it's getting better/worse" intuition about an accumulation.

    line 21
  2. Distinctive:

    When asked to reason about an accumulating quantity, follow these steps:

    line 31
  3. Very specific:

    Use the template in references/TEMPLATE.md.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- thinking-framework-skills | https://github.com/product-on-purpose/thinking-framework-skills | Apache-2.0 -->

Stocks and Flows Reasoning

People systematically misjudge accumulations. They confuse a stock (a quantity that builds up: cash, debt, a customer base, a backlog, technical debt) with the flows that change it, and infer the stock's direction from a flow's direction. The classic error: "the inflow is falling, so the stock is falling." It is not - the stock keeps rising while inflow exceeds outflow. This skill makes the structure explicit: name the stock, name its inflows and outflows separately, and reason about its trajectory from the net flow. The output is a stock-flow map. It corrects a specific, well-evidenced accumulation error; it does not claim to teach systems thinking wholesale.

When to Use

  • A quantity accumulates over time (runway, debt, backlog, headcount, customer base, reserves, technical debt) and the question is whether it is rising or falling.
  • A trend in a flow is being used to infer the stock ("churn dropped, so the base is growing").
  • Before acting on an "it's getting better/worse" intuition about an accumulation.

When NOT to Use

  • The quantity does not accumulate (a one-off event, a ratio with no stock).
  • A simple direct relationship with no accumulation is all that is at play.
  • Mapping forward consequences (use futures-wheel) or systemic causes (use iceberg-model); this is specifically about accumulation dynamics.

Instructions

When asked to reason about an accumulating quantity, follow these steps:

  1. Name the stock. The quantity that accumulates, and its current level if known. Make sure it is a stock (a level), not a flow (a rate).
  2. List the inflows. What adds to the stock, and at what rate / trend.
  3. List the outflows. What drains the stock, and at what rate / trend. Do not skip the outflow - ignoring it is a common error.
  4. Compute the net flow. Inflow minus outflow: is the stock currently gaining or losing, and is the net flow itself trending up or down?
  5. State the corrected trajectory. What the stock actually does (rises / falls / plateaus and when), derived from the net flow, not from any single flow's direction.
  6. Name the naive intuition it corrects. What someone would wrongly conclude from the flow alone, and why it is wrong.
  7. Emit the stock-flow map per references/TEMPLATE.md.

Output Format

Use the template in references/TEMPLATE.md. The deliverable is the stock-flow map with the corrected trajectory, not prose.

Quality Checklist

Before finalizing, verify:

  • The stock is genuinely a level (accumulation), not a flow/rate.
  • Both inflows and outflows are listed; the outflow is not ignored.
  • The trajectory is derived from the net flow, not from one flow's direction.
  • The naive intuition being corrected is named.
  • No overclaim: it corrects an accumulation error, it does not teach systems thinking wholesale (see evidence/dossier.md).
  • The output is the stock-flow map artifact, not prose.

Evidence

Tier S. The underlying failure is robustly demonstrated: across repeated experiments, including with highly educated subjects, people misread stock/flow relationships and infer stock direction from flow direction (Sterman's accumulation experiments; Cronin, Gonzalez & Sterman 2009; Meadows, Thinking in Systems). The strong evidence is that the error is real and that making the structure explicit removes it on a given problem; it is not a claim of broad systems-thinking transfer. Evidence is from human reasoners, transferred to AI use, not AI-validated. Full grading: evidence/dossier.md.

Examples

See references/EXAMPLE.md for a completed stock-flow map.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.