Install
$ agentstack add skill-pariyar07-kybernetes-kybernetes-loop-governor ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Kybernetes Loop Governor
Use this skill as the lead-agent control loop for work that may need planning, adaptive questions, durable state, verification, parallel workers, or careful handoff across turns. The goal is not "more process" or "more agents"; the goal is a cybernetic loop: sense the task, compare reality to the desired setpoint, choose the right loop altitude, act, measure, correct, and learn.
Parallel coordination is one possible actuation mode. It is not the identity of Kybernetes.
Read these before a coordinated run:
references/operating-model.mdfor the control principles and named
cybernetic lenses.
references/goal-checklist.mdfor the control record shape.references/failure-to-constraint.mdwhen verification repeats, the same
mistake recurs, or a lesson may need a durable constraint.
references/adaptive-elicitation.mdfor question sizing.- One runtime binding:
references/codex.md,references/claude-code.md, or
references/portable-core.md.
Loop Readiness Gate
Before creating machinery, decide whether the loop is ready and what altitude it needs. A loop is ready when the loop governor can name:
- Setpoint: objective and measurable done condition.
- Sensor: the verification or evidence that can reject bad output.
- Actuators: main-thread work, checklist, durable objective, workers,
isolation, tools, research, tests, or HITL.
- State: whether durable run memory is needed.
- Stop condition: success, blocked, re-frame, or human decision.
- Boundary: permissions, external effects, secrets, budget, and human review.
If the setpoint or sensor is vague, go down: ask the smallest useful question, find evidence, define a verifier, or reduce the problem before acting. Do not create a large loop around an unmeasurable task.
Urgency, source-thread lineage, and user autonomy grants are useful signals, but they are not a complete control surface. They do not replace objective, done condition, verifier, target surface, risk boundary, execution mode, or stop condition.
When a high-variety prompt is ambiguous and pushes for speed, such as "move fast", "start implementing", or "use agents", do not treat urgency as a complete control surface. Before significant file edits or worker handoffs, establish the missing objective, done condition, verifier, target surface, risk boundary, and execution mode. If those are missing, choose up or stop and offer a compact decision surface with a recommended safe default.
Detached, scheduled, recurring, or background work requires a stronger readiness gate than one-shot work. Do not create, activate, schedule, or register recurring work from a vague request such as "check this every day" or "improve whatever looks bad." First establish the objective, cadence, input source, state surface, admissible verifier, safety/HITL boundary, budget or attempt cap, stop/escalation condition, and either an outbound notification path or an explicitly accepted manual checkpoint cadence. If any of those are missing, return a decision surface or propose a one-shot dry run instead of creating the recurring work.
For ambiguous workflow-redesign prompts with no named repo, file, product, workflow, or workstream, the first action is the decision surface, not vault exploration, repo search, scenario-file inspection, durable-state creation, goal creation, or implementation. Do not infer the target from the current working directory, repository shape, pressure-test filename, source-thread lineage, or local skill package path. Ask at most three outcome-changing questions or offer a safe default such as "I can first map the current workflow and produce a redesign plan before edits." Only enter external knowledge bases or create .kybernetes// after the target surface and verifier are known, unless the user explicitly named that scope in the current prompt.
In delegated runs, treat source-thread metadata as lineage and recovery context, not as proof that the target surface or verifier is known. If the delegated payload itself says only to redesign a workflow, use agents, move fast, or start implementing, the loop is still not ready for edits or worker handoffs until the objective, DONE, verifier, target, risk boundary, and execution substrate are explicit or safely defaulted by the user accepting the decision surface. A local SKILL.md path identifies the method package, not the workflow to redesign.
First Decision
After the readiness gate, choose the smallest useful loop altitude:
stay: remain in the current loop when the gap to DONE is shrinking.down: descend into evidence, reproduction, tests, artifacts, narrower scope,
or a concrete verifier when reliability is weak.
up: ascend into planning, architecture, decomposition, scope, product
judgment, or human decision when the current loop is too local.
stack: create bounded child loops only when each has a setpoint, sensor,
owner, boundary, isolation or peer-workstream choice, and return path.
stop: finish, block, ask HITL, or halt at an authorization or judgment
boundary.
Then decide how much machinery the task actually needs.
- Low variety: small, clear, low-risk, no real fan-out. Say in one line why the
loop is staying lightweight, then do the work. Do not create a goal or control record by default.
- Medium variety: ask only the one or two decisions that change the outcome,
then create a short checklist. Use a goal or control record when the work has multiple files, meaningful verification, or may cross a turn.
- High variety: create or locate a durable control record, ask adaptive
pre-flight questions, bind to the runtime, then execute in checkpoints.
- Extreme variety: create durable state and a runtime goal when available,
produce a short architecture/decomposition pass before implementation, choose an execution substrate, then execute through checkpoints. Do not jump straight from prompt to full implementation.
Never run a fixed questionnaire. Ask the missing dimensions that matter for this task and present choices with a recommended default.
If the user grants autonomy, such as "you decide" or "make a first version", treat that as permission to choose safe defaults, not as permission to skip the control decision. State the defaults you are choosing. For high and extreme variety, present a compact plan that the user can accept with go or override unless the prompt already provides all outcome-changing choices.
If you choose not to ask questions, spawn workers, browse, or use parallel chats for a high-variety task, record why that lighter path is still sufficient. The absence of fan-out should be an explicit control decision, not an accident.
Build The Execution Profile
For any non-trivial run, define the operating stance before significant work:
- Task type: product, engineering, research, writing, operations, review, or a
custom mix.
- Role stance: the temporary expert posture the agent should take for this work.
Generate it from the task and user answers; do not hardcode personas.
- Risk posture: reversible, review-required, irreversible, or external-impact.
- Expected artifacts: checklist, plan, ADR, HLD, LLD, code, docs, issue, PR,
knowledge-base note, report, or other.
- Verification style: tests, diff review, citations, screenshots, human review,
validator output, acceptance criteria, or another measurable check.
- Communication cadence: brief updates, checkpoint summaries, or quiet until
blocked.
- Escalation triggers: which conditions require human-in-the-loop.
Store this profile in the control record when one exists. If no file can be written, keep it in the lead response and make it easy to copy.
Durable Run Artifacts
Create Kybernetes run artifacts under one project-local run root. If the project has no convention, use:
.kybernetes//
This applies to every file the Kybernetes skill creates for the run: control records, checklists, plans, worker registries, worker summaries, evidence, decision notes, and verification reports. Do not create run artifacts under legacy run roots from early drafts.
Create or reuse a control record when work is long-running, cross-turn, parallel, high-risk, goal-driven, or needs auditability. The default control record path is:
.kybernetes//control.md
If the user explicitly targets an external knowledge base or workstream system, use that system's path convention instead of inventing a Kybernetes path:
For Kybernetes-created local run artifacts, the run root remains .kybernetes//; the control record remains .kybernetes//control.md.
When resuming or setting up a goal for existing durable work, locate the active control record before acting when possible. Prefer, in order:
- An explicit path from the user or current prompt.
- A runtime goal, checklist, or handoff pointer that names a control record.
- A project-local Kybernetes index or manifest, if present.
- Recent
.kybernetes/*/control.mdcandidates that match the named task.
If more than one plausible active record remains, ask the user to choose before significant edits, worker handoffs, or external actions.
The control record should include:
- Objective
- Done condition
- Verification
- Constraints and out of scope
- Loop semantics: altitude, setpoint, sensor/evidence, actuators, stop
condition, boundary, and next activation
- Variety assessment
- Execution profile
- Important files and references
- Current checklist
- Worker registry
- Impediments
- Escalations
- Intervention requests
- Decisions
- Learnings
- Next checkpoint
- Next activation
For durable runs, pair control.md with verification.md: control.md is the current truth, and verification.md is the evidence truth.
Update the record after each meaningful result, blocker, routing decision, or scope change. Keep it concise. Move detailed logs into separate files when they start to drown the current checklist.
Runtime Binding
Bind the loop to the current environment instead of assuming one tool.
Use exactly one runtime binding reference for the active environment: references/codex.md, references/claude-code.md, or references/portable-core.md. If a durable-objective surface is available and the target, objective, done condition, verifier, constraints, and control record are known enough to make a meaningful objective, create it with that binding's minimal prompt shape. If those fields are missing, repair readiness before setting or returning a durable-objective prompt. If the active runtime cannot create the objective after readiness is repaired, return the binding's portable copy-paste prompt to the user.
The durable objective belongs to the lead loop-governor thread only. Do not put a goal command inside worker prompts.
Worker Rules
Spawn workers only when the split creates real leverage. This is the stack altitude, and it must be bounded. Each worker gets a task contract, not the whole run.
For high and extreme variety, actively evaluate whether workers, peer-workstreams, or isolated workspaces would reduce risk or improve coverage. Consider fan-out when the task has separable surfaces such as product/UX, architecture, data model, implementation, tests, security, docs, or runtime verification. Do not spawn workers merely because the task is large; use them when the slices are cleanly owned and the integration cost is lower than the coverage gained.
Worker contracts must include:
- Role and bounded objective.
- Owned files, paths, scope, or sources.
- Permission level: read-only, scoped write, isolated write, or external action
prohibited.
- What the worker must not touch.
- Done condition and verification for that slice.
- Expected return format: findings, changes, risks, questions, and verification.
- How to report impediments or findings that affect other slices.
The lead integrates. Workers do not merge the full system by themselves. Never let concurrent writers share one workspace unless the files are explicitly partitioned and collision risk is negligible.
Agent sprawl is a failure mode. If fan-out increases review burden, hides state, duplicates work, or lacks an admissible verifier, go down or stop instead of adding workers.
Flat delegation is the default. Do not create recursive worker trees unless the worker contract explicitly grants bounded child loops and each child is separately scoped, measurable, and resumable.
Skill Interop
When another skill is invoked while Kybernetes is active in the same context, Kybernetes keeps the control plane and yields method to the specialist skill. Keep objective, DONE, risk boundary, integration, and parent-owned verification visible. Do not double-govern with a second checklist over a skill that already owns the method.
When Kybernetes delegates to a worker and wants that worker to use another skill, put the method instruction in the worker brief. The worker's "done" is evidence, not verified truth; the lead re-runs or adjudicates the parent-owned verifier after integration.
Human-In-The-Loop
Ask for human input when the loop needs a higher-order controller:
- The setpoint, scope, or success criteria are unclear.
- An action is irreversible or externally visible.
- Secrets, private data, production data, customer data, publishing, deployment,
deletion, billing, or external communication are involved.
- Worker outputs conflict or multiple plans are defensible.
- The same verification failure repeats.
- New evidence invalidates the plan.
- Budget, permissions, or time limits block progress.
When escalating, do not write an essay. Give the user the smallest useful decision surface: 2-4 options, one recommended default, and the consequence of choosing it.
Treat new approval after a block or HITL pause as runtime evidence, not as a command to continue the old plan unchanged. Re-sense the active control record, current checklist, exact approved action, verifier, and risk boundary before acting. If the approval is broad or the state has changed, return a small decision surface instead of proceeding silently.
Checkpoint Loop
At each checkpoint:
- Sense: what changed?
- Compare: is the gap to DONE smaller?
- Choose altitude:
stay,down,up,stack, orstop. - Act: continue, gather evidence, re-route, spawn, integrate, verify, or
escalate.
- Record: update checklist, loop semantics, impediments, decisions, and
learnings.
- Explain: give the user 1-2 lines for meaningful routing decisions.
If the gap is not shrinking, climb the escalation ladder in references/operating-model.md: regulate, re-frame, then learn. When learning from repeated failure, run failure-to-constraint before adding prose guidance. Do not retry the same failing move indefinitely.
Failure-To-Constraint
When the same failure repeats, or evidence shows a reminder would be easy to forget, prefer a durable constraint over another instruction. Use references/failure-to-constraint.md to choose the first proportionate enforceable constraint that would make the repeated failure harder or impossible next time.
Escalate to HITL before adding constraints that change public APIs, production behavior, permissions, data retention, billing, customer-visible workflows, privacy/security posture, or team policy. If no enforceable constraint is proportionate, record the reason and keep the lesson local.
Learning Policy
Write run-specific observations to the control record. Promote reusable lessons into project memory, repo instructions, or a public skill only after a learning capture gate:
- The lesson came from evidence, repeated pattern, or verified failure.
- The lesson is general enough to help future runs.
- The audience is correct: run-local, project-local, private memory, or public
skill behavior.
- The lesson does not leak private workflow facts into open-source defaults.
Do not save a plaus
…
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: pariyar07
- Source: pariyar07/kybernetes
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.