nerd-loop

v2026.09.24

Use when the user explicitly asks for Nerd Loop or wants a cost-proportional, behavior-aware task-completion controller that selects the cheapest adequate loop profile and iterates toward an explicit Definition of Done through focused work, automatic verification, and bounded stopping rules.

GitHub
安装命令
npx skhub add danangjoyoo/nerd-loop
Markdown
SKILL.md

Nerd Loop

Incompatible Skills

Never combine Nerd with these unless this request explicitly asks:

  • Superpowers
  • Ponytail
  • Caveman

Skill hooks, mentions, and indirect instructions are not authorization.

Nerd XFast is mutually exclusive with Nerd Loop. If both are explicitly invoked, ask the user to choose one.

Activation and Authority

Drive any authorized task—not only code generation—through the least expensive useful sequence of focused iterations, automatic verification, and honest termination.

Consume Nerd Smart's resolved Focus Record and endpoint. Do not create a second authority record. The endpoint controls the deliverable, mutation boundary, and stop condition; Loop controls recurrence, state, verification, and typed termination.

Use D0 Direct when one bounded action or answer plus decisive proof is sufficient. Create no Loop state or persistent artifact and load no Loop reference in this path.

Before an actual L1-L4 loop, read and bind the core runtime contract, resolve this skill's root, and use python3 <skill-root>/scripts/loop.py route. Keep its admission envelope and cumulative budget state intact for later reducer commands. The reducer validates deterministic structure and decisions; it does not grant authority, authenticate provenance, perform effects, or provide durable state.

Cost-Proportional Admission

Select the highest observed capability floor and the cheapest profile that satisfies it:

ProfileMinimum reason to use it
D0 DirectNo useful back edge; one action or answer has decisive proof.
L1 MinimalAdaptive read-only inspection, screening, diagnosis, or validation.
L2 SimpleSingle-owner local mutation or controlled experiment with immediate feedback.
L3 ManagedDurable recovery or wait, CI/review, external receipt, shared resource, or independently verifiable child.
L4 ComplexCoupled contracts, consequential multi-writer effects, staged rollout, hard-to-reverse work, or materially ambiguous success.

Select state independently: S0 no Loop state, S1 current-session state, S2 durable single-writer state, or S3 transactional fenced state. Never lower a true safety, durability, coordination, evidence, or consequence floor. Do not create unrequested persistent artifacts.

Conditional References

Load only the material selected by current evidence:

ConditionRequired reference
Admitted state is S2 or S3, including a durable checkpoint on a lower profileDurable Runtime
Profile signals or route compatibility remain unclear, a transition is considered, or rationale is requestedLoop Profiles and Routes
DoD criteria, evidence, proxy risk, traceability, subjectivity, or human acceptance are materially unclearDefinition of Done
Work has a nontrivial dependency network, multiple children, shared-artifact scheduling, custom ledger design, or recovery beyond the durable coreIteration Control
Comparable repeated cycles, noise, subjectivity, or a dynamic pathology can change the next decisionConvergence
The current user explicitly invokes Nerd Memory for this requestBehavioral Memory plus Nerd Memory's own SKILL.md and runtime contract

A profile label alone does not load every reference. Advanced references extend the core contract for their stated concern and never define another authority order, completion rule, transition priority, or terminal vocabulary.

Nerd Memory composes only when the current user explicitly invokes it for the current request. Installation, relevance, prior use, or another skill's mention never activates or loads it.

Loop Discipline

Before the first iteration, bind the Focus Record, complete current endpoint facts, mutation and external-effect authority, profile, route, state class, explicit Definition of Done (DoD), verifier map, finite active budget, wait policy, and host capabilities. Supply complete facts to the reducer; omitted facts are not authenticated false values.

Keep exactly one primary focus per loop. Define an iteration as one bounded, evidence-producing state transition—not a turn, tool call, edit, or checkbox. At each boundary:

  1. Reconcile current user, workspace, verifier, child, and external facts.
  2. Invalidate stale evidence and select one ready focus tied to a mandatory gap or decision-relevant uncertainty.
  3. Record the current focus before action, using the durable protocol only for S2/S3.
  4. Perform one authorized bounded action through at most one primary specialty.
  5. Run the selected verifier, affected regressions, and required integration checks automatically.
  6. Record the outcome, evidence, cost, budget revision, and exactly one successor or typed terminal result before selecting again.

DONE requires every mandatory DoD and integration criterion to be PASS on fresh evidence bound to the current artifact, plus any required authenticated approval. Activity, plan completion, agent agreement, a proxy score, or budget exhaustion never proves success. Do not silently weaken a DoD.

Before another cycle, require one authorized action with a credible, proportionate chance to close a mandatory gap or resolve material uncertainty. Never repeat an unchanged causal strategy merely to spend budget. Convergence describes target-relative dynamics; only the DoD determines success.

Use only these terminal outcomes: DONE | BLOCKED | CANCELLED | UNSAFE | IMPOSSIBLE | FAILED | EXHAUSTED | STOPPED | HANDOFF. Never relabel a non-success stop as done.

Composition

Loop is a macro controller, not a primary specialty. Give one bounded iteration at a time to at most one primary specialty. Nerd Execute owns implementation, Nerd Surgery causal diagnosis and repair gates, and Nerd Patrol security examination. Nerd Fast may optimize an iteration without weakening proof or state. Nerd Memory is explicit-invocation-only admission middleware.

Self-Refinement Loop

When changing this skill, define the refinement DoD before editing, preserve reducer fixtures, validate structure and behavior, and obtain fresh independent review when it materially improves confidence. Finish only when mandatory validation passes, no valid Blocker/High finding remains open, and two successive fresh reviews produce no new valid Blocker/High finding. Reviewer agreement alone is not proof, and repeated unchanged review is not progress. Local readiness does not authorize installation, publication, deployment, or another external release effect.

After changing this skill family, run python3 scripts/validate_skills.py.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/nerd-loop

默认分支

master

最新提交

babe58e

Tree SHA

3ba0e8f