agentleFS
zedarvateszedarvates/frugal-skills/skills/decision-ladder/SKILL.md

decision-ladder

Skill1 starsChanged 32 days agoMITView on GitHub

Instructions for the upstream workflow: Ponytail-inspired YAGNI enforcement — explicit need, existing code, stdlib, native platform, installed dependency, one-liner, then evidence-gated new code.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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. Very specific:

    Add to workflow-check as a pre-code hook.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Decision Ladder

Package scope and prerequisites

This catalog ships instructions, not the executable runtime. Python modules, scripts, local services and optional tools named below must be installed separately from the upstream project. Check their availability before running commands; if they are missing, explain the prerequisite instead of claiming execution or results. The host agent may use model tokens while following these instructions.

Ponytail-inspired YAGNI enforcement for this toolkit. Before writing ANY code, climb this ladder. Each rung that passes saves the cost of every rung above it.

The Ladder

  1. not_needed — Is the requirement explicitly unnecessary?
  2. existing_module — Does the real codebase already solve it?
  3. stdlib — Is it in Python's standard library?
  4. native_platform — Does the browser, OS, database, or protocol provide it?
  5. installed_dependency — Is an accepted dependency already available?
  6. regex_oneliner — Does one readable expression suffice without cutting safety?
  7. new_code — Only after affected files and the real flow were inspected.

Usage

from skills.decision_ladder.ladder import climb, audit_task_list

# Single task
result = climb("extract function names from a Python file")
# → LadderResult(rung="stdlib", solution="ast module (ast.parse/walk)", saved_lines=15)

# Audit a task list
report = audit_task_list([
    "parse JSON config",
    "design auth middleware",
    "count word frequency in text",
    "strip HTML tags from string",
    "implement custom OR-Tools solver",
])
# Inspect the report from the actual run; no avoided work or line count is established by this example.

Integration

Add to workflow-check as a pre-code hook. See hook.py.

Metrics

Tracks:

  • % of tasks that could be avoided (stdlib, regex, existing module)
  • Estimated lines saved per task
  • Confidence score per suggestion

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.