Logo Timing Discipline

Timing Discipline

Tổ chức
BootLoops-ai
timing-discipline

Compute-planning rules. Use before launching any calculation whose runtime is not already measured — and whenever an agent proposes a long run, an overnight grind, or a bigger machine as the way forward.

Tổng quan

Nhà phát hànhBootLoops-ai
Kho mãskills
Tên kỹ năngtiming-discipline
Sao
28
Bản fork
10
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được BootLoops-ai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Timing Discipline trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/BootLoops-ai/skills/tree/main/plugins/bootloops-protocols/skills/timing-discipline
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/BootLoops-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/bootloops-protocols/skills/timing-discipline .claude/skills/timing-discipline
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Timing Discipline trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Timing Discipline ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Timing Discipline với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

timing-discipline — measure first, restructure early

The expensive mistake in computational work is rarely the wrong algorithm. It is the run that consumes a night, a weekend, or a machine-week and returns something a ten-minute pilot would have predicted. Runtime intuition is systematically optimistic — in people, and worse in language models, which produce fluent, confident durations for jobs they have never timed, because plausible-sounding ETAs are easy to generate and nothing in the generation process consults a clock. Hence the founding rule:

An estimate not derived from a measurement of this calculation, in this configuration, on this machine, is a guess. Every projection is either (a) fit from the job's own time-stamped log, (b) taken from a measured prior run of identical configuration on the same hardware, or (c) reported as "unknown — measuring now." There is no fourth category.

The second rule is what to do with the measurement. When a projection comes out long — past a couple of hours — the right response is almost never a bigger run, a bigger machine, or an overnight slot. It is restructuring the problem so the run shrinks. Measured honestly, most long projections are the computation telling you that you are solving it the wrong way.

Procedure

  1. Pilot before anything that might be long. Same code, same machine, same settings, same distribution of cases — scaled down in size only, with a time-stamped log. If the job cannot be scaled down, that is itself a design defect worth fixing before launch, because it also means the job cannot be checkpointed or partially salvaged.

  2. Fit the rate from the steady-state window. Discard the startup transient: the first items carry compilation, cache fill, and input loading, and a rate fit across them is wrong in whichever direction hurts more. Then check the per-item cost trend across the pilot. If cost grows with index — swelling expressions, accumulating state, rising memory — a linear extrapolation is a floor, not a forecast: run the pilot at two sizes and fit the growth exponent instead.

  3. Write the projection down with its provenance before launching: pilot size, window used, measured rate, scaling assumption. A projection whose provenance cannot be stated in one line is an estimate wearing a number.

  4. Apply the threshold. If the projection exceeds a couple of hours, stop. Do not launch, do not reach for more cores. Restructure instead, and actually enumerate the candidates: a better representation or basis; an exact reduction that shrinks the object before any numerics touch it; a symmetry that collapses the case count; a split into independent pieces; a cheap method for the bulk of the cases with the expensive one reserved for the residue; a limit or special case that answers the actual question without the general computation. The restructured route usually exists, and when it exists it beats hardware by more than hardware can give.

  5. Fresh eyes before any long run. Before committing to a projection near or over the threshold, have someone — or a separately prompted agent with no stake in the current plan — spend a short, bounded effort on one question: is there a structurally smarter route? Record the verdict either way. "Current route is right because X" is a valid outcome; silence is not, because the absence of a recorded verdict is indistinguishable from the question never having been asked.

  6. Define real progress before launch. Name the output unit the run exists to produce and the file or table where it accumulates. Monitoring watches that count. Log volume, CPU load, and process liveness are not progress; they are signs of activity, and activity is what a stuck job emits too.

  7. A rate collapse voids the projection. If the measured rate drops severalfold mid-run, stop quoting the old ETA that instant. Diagnose, re-measure, re-plan. A projection is conditional on the rate it was fit from; when the rate goes, the projection is gone with it.

  8. Re-measure on any change. New machine, new input regime, new working precision, new parameter range: the old rate does not transfer, however similar the job looks. Rates are properties of a configuration, not of an algorithm.

Failure modes

Each of these has burned real time. Each looks reasonable from the inside while it is happening.

The unmeasured overnight launch. A job goes up at the end of the day because the day is ending, on the theory that the night is free anyway. Morning finds it a small fraction done, dead, or wedged — and the night was not free: it cost the diagnosis time, the cleanup, and a day of schedule built on the assumption it would finish. The launch decision was made by the calendar, not by a measurement.

The intuition ETA. "About an hour, probably." From a person this is optimism; from a model it is fluent confabulation with the grammar of a measurement. The tell is that no log exists from which the number could have been derived. The question that kills it is three words: measured from what?

The startup-transient fit. A rate fit from the first items either includes one-time warm-up costs — projecting the run as far grimmer than it is, so a feasible job gets canceled — or is taken after caches are warm and omits a cost the full run pays over and over. Both are cured by fitting the steady-state window and saying which window was used.

Linear extrapolation of a superlinear cost. Every item slightly costlier than the last: growing intermediate expressions, an accumulating store, memory pressure building toward swap. The pilot's rate is the best rate the run will ever see, the projection is a lower bound presented as a forecast, and the wall arrives hours after the promised finish. The two-size pilot with a fitted exponent exists for exactly this.

Grinding past the rethink. The most expensive class in the catalog. A route measured to be long gets ground through anyway, because grinding feels like progress and rethinking feels like starting over. A day goes into babysitting the run — restarts, memory tweaks, partial salvage — while a reformulation that would remove most of the work sits unexamined. When the reformulation is finally tried, it finishes before the grind would have. The threshold rule exists to force this comparison while it is still cheap.

The bigger-machine reflex. The projection is bad, so the plan becomes more cores. Parallelism pays at most the width factor, and only when the problem splits cleanly; a restructure removes the work itself, which no amount of width can do. Hardware comes after the structure is right, not instead of it.

The rate collapse ignored. Mid-run the rate drops severalfold — the hard cases arrive, memory tightens, another job lands on the same machine — but the original ETA keeps being quoted because it is written down and quoting it is easier than re-measuring. Every "almost done" derived from the dead rate is fiction, and every plan built on it inherits the fiction.

Log lines mistaken for progress. The job prints steadily, therefore it is working — except the printing is a heartbeat, a retry loop, or a progress indicator over a phase that finished long ago, and the output file has not grown in hours. Liveness is measured on the output class the run exists to produce; everything else is the sound of a fan.

Sunk-cost continuation. "It has been running too long to kill now." The hours already spent are not an argument for spending the rest; they are spent either way. The only live comparison is the measured remaining time of this run against the total time of the restructured route — and the restructured route often wins even starting from zero.

The unfaithful pilot. The pilot ran with different flags, lower precision, warm caches, or the easy slice of the input, so the projection describes a different computation. The sharpest variant: case difficulty grows with index, and the pilot sampled the easy head of the list. The pilot is the run, scaled down, with nothing else changed — and drawn from the same distribution of cases as the real thing.

The worked shape

The whole discipline in symbols. The pilot's steady-state window yields n items in time t, so the rate is r = n/t. The full run has N items, so the projection is N/r — under an explicitly stated linearity assumption. If two pilot sizes disagree with that assumption, fit cost ∝ N^α and project with the fitted α, saying so. Then the branch: projection under the threshold — launch, with the progress unit defined and a standing rule that a rate collapse voids the ETA; projection over the threshold — restructure first, with the fresh-eyes verdict recorded before any long launch is even considered.

The same shape covers monitoring. Before launch, write down: progress is the row count of the results file, expected to grow at roughly r. During the run, the check is that count against that expectation — never "the log is still scrolling," and never "the process is still alive."

Checklist

Before launching anything that might be long:

  • Pilot run: same code, machine, settings, and case distribution; time-stamped log kept.
  • Rate fit from the steady-state window; per-item cost trend checked; scaling assumption stated.
  • Projection written down with one-line provenance before launch.
  • Projection over the threshold? Restructuring candidates enumerated and tried, and a fresh-eyes verdict recorded, before any long launch.
  • Real-progress unit defined, with where it accumulates and the expected rate; monitoring watches it, not the log.
  • Standing rule armed: a severalfold rate drop voids the ETA and triggers a re-plan, not a wait.
  • Any change of machine, input regime, or precision → re-measure before re-projecting.

Câu hỏi thường gặp

Kỹ năng AI Timing Discipline làm được gì?

Compute-planning rules. Use before launching any calculation whose runtime is not already measured — and whenever an agent proposes a long run, an overnight grind, or a bigger machine as the way forward.

Vì sao nên dùng Timing Discipline trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Timing Discipline là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Timing Discipline trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/BootLoops-ai/skills/tree/main/plugins/bootloops-protocols/skills/timing-discipline. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Timing Discipline?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Timing Discipline với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Timing Discipline với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Timing Discipline có miễn phí không?

Có. Kỹ năng này được BootLoops-ai phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇