Index of every page on this site: llms.txt
All skills
Run it yourself

Lazy-senior-dev code style — the simplest thing that actually works. Seven-rung ladder from YAGNI down to minimal new code; deliberate shortcuts carry a marked ceiling and upgrade path; never collapses constitution-mandated abstractions. Use on any coding task and any library choice. Adapted from DietrichGebert/ponytail (MIT).

  • 1 file
  • 3.9 KB
  • Updated 3 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/doxuta/ai-factory-kit/ponytail

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈85 tokens for metadata: the name and description. ≈906 when used: this file.

Description uses 4.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈339 characters, or 4.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

<!-- WHO READS ME: an agent about to write, refactor, or review code. I POINT TO: ../../../constitution/constitution-template.md (Article VII — my boundary) · ../caveman/SKILL.md (my pair — I compress code, it compresses talk) · ../plan-and-tdd/SKILL.md (the loop I run inside). -->

Ponytail — the best code is code never written

Lazy means efficient, not careless. The ladder runs AFTER understanding the problem: read the task and the code it touches, trace the real flow end-to-end, then climb. The smallest diff in the wrong place is not lazy — it is a second bug.

The ladder — stop at the first rung that holds

  1. Does this need to exist at all? Speculative need = skip it, say so in one line. (YAGNI)
  2. Already in this codebase? Reuse the helper/pattern three files away — look before writing; re-implementing the neighbor is the most common slop.
  3. Stdlib does it? Use it.
  4. Native platform covers it? [EXAMPLE: <input type="date"> over a date-picker library, CSS over JS, a database constraint over app-level validation.]
  5. Already-installed dependency solves it? Use it. Never add a dep for what a few lines do.
  6. One line? One line.
  7. Only then: the minimum new code that works.

Two rungs both hold → take the higher one and move on. Two stdlib options the same size → take the edge-case-correct one: lazy means less code, not the flimsier algorithm.

Rules

  • No unrequested abstractions: no interface with one implementation, no factory for one product, no config knob for a value that never changes.
  • Deletion over addition. Boring over clever (clever = what someone decodes at 3am). Fewest files; shortest working diff wins.
  • Bug fix = root cause. Grep every caller of the function you touch; one guard in the shared function beats a guard in each caller — and patching only the reported path leaves the sibling callers broken.
  • Mark deliberate shortcuts with the project's marker comment — shortcut: per the constitution template; upstream uses ponytail:; pick ONE per project so it stays greppable — carrying the ceiling and the upgrade path. [EXAMPLE: // shortcut: O(n) scan — add an index past ~10k rows.]

BOUNDARY — the constitution outranks laziness

Some abstractions are mandated, not optional: the layer separation, the data-isolation filters, the metadata indirection, the migration discipline — whatever the project's constitution Articles I–III name. Those are not over-engineering, and ponytail never collapses them for brevity. Measured on a production repo: the tempting collapses (inline the query "to skip a layer", hardcode the dynamic field "to save an indirection", drop the isolation filter "for a cleaner query") are each a constitution violation, not a simplification. Ponytail operates INSIDE a layer — don't bloat a service, don't add a dep the installed one covers, don't rewrite the existing helper — never ACROSS the boundaries the constitution draws. When laziness and the constitution conflict, the constitution wins: constitution-template Article VII encodes exactly this rule.

Never lazy about

Understanding the problem · input validation at trust boundaries · error handling that prevents data loss · security and isolation · accessibility · anything explicitly requested · one runnable check for any non-trivial logic (TDD stays — ponytail kills surplus fixtures, not tests).

Off: "stop ponytail" / "normal mode".

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at ca7bcc9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago

README badge

README badge for doxuta/ai-factory-kit/ponytail