> Start a safe, governed autonomous loop from a plain-language goal. Use when the user says /coco-loop, "run an autonomous loop", "keep my build green for N hours", "work on X autonomously for a while", or wants a bounded self-improving loop that proposes fixes and never commits on its own. Turns a vague goal into a readable charter the user confirms, then arms and runs the loop propose-only under the coco-loops governance framework.
npx skills add https://github.com/coco-research/coco --skill coco-loop
Turn a plain-language goal into a governed, propose-only loop. You compile the goal
into a charter, the person confirms it, and the loop runs under the coco-loops
framework: it proposes changes, a separate verifier judges them, and nothing is
committed. The loop stops itself when its lifetime cap of active work is spent.
The framework enforces an immutable constitution underneath every charter. You cannot
write a charter that disables the verifier, commits without approval, edits the
constitution, sends content to raw public-cloud endpoints, or runs unattended
destructive operations. The coco-loops charter command rejects any charter that
tries. Do not attempt to work around it. Present the floor to the person as a feature.
coco-loops must be on the PATH. Install it from
git clone https://github.com/coco-research/coco-loops
pip install -e coco-loops
Check with coco-loops --help. If it is missing, tell the person how to install it and stop.
Read the person's goal. Ask at most one or two clarifying questions, and only when the
answer genuinely changes the charter:
so a dedicated worktree is strongly recommended (the loop reverts its own changes
each cycle and refuses to run on a dirty tree, to avoid clobbering uncommitted work).
4h. The clock only advances while the loop is actually working, so a closed laptop
or an idle wait does not burn it.
Do not over-question. If the goal is clear, proceed.
Get the exact field list with coco-loops charter --schema, then produce a charter as
JSON. Derive the principles from the goal, and add sensible safe defaults. Keep
principles readable: they are what the person confirms and what we audit the loop
against.
Example, for "keep my frontend build green for the next 4 hours":
{
"loop_id": "keep-build-green",
"objective": "Make failing frontend tests pass and keep the build green.",
"principles": [
"Only touch code covered by a failing test; keep the diff as small as possible.",
"If a test is genuinely stale, propose updating it rather than weakening it silently.",
"Prefer fixing the code over changing the test when a real regression is likely."
],
"guardrails": [
"No dependency or lockfile changes.",
"No CI or build-config edits."
],
"context": ["the frontend test suite"],
"inputs": ["failing tests detected each cycle"],
"lifetime": "4h",
"level": "L1"
}
Rules for the charter you produce:
level is always L1. New loops are propose-only. Higher maturity is earned throughthe promotion gate, never declared here.
loop_id is a slug: lowercase letters, digits, and hyphens.lifetime from what the person asked, defaulting to 4h.Write the charter JSON to a temporary file, then run:
coco-loops charter --from-json <file>
This validates the charter against the constitution floor and prints a readable
version. If validation fails, it prints why (with the invariant it violated); fix the
charter and try again. Show the rendered charter to the person and ask them to confirm
before anything is armed.
On confirmation:
coco-loops charter --from-json <file> --install
This writes <loop_id>.contract.md into the loops directory, arms the lifetime cap,
and clears the kill-switch. The loop is now defined and armed, propose-only.
The loop reads tasks from a JSON queue (a list of {"id", "name", "instruction"}
objects). Seed the queue with concrete, grounded tasks, for example one task per
failing test with the file and the assertion. A loop is only as good as its task list;
vague tasks produce no-ops.
Run it in the chosen worktree:
coco-loops run <loop_id> --repo <worktree> --tasks <queue.json>
Each cycle it pops a task, asks the maker (cursor-agent by default) to propose a change,
has the verifier judge it, logs the proposal, and reverts the tree. Use --once to run
a single cycle first and watch what it does. Recommend a dedicated worktree so the
loop's revert can never touch the person's uncommitted work.
coco-loops status <loop_id>
shows the recent proposals, the verifier verdicts, and how much of the lifetime is
spent. Everything is propose-only: the person reviews the batch of proposals and
applies what they want. When the lifetime is spent the loop stops itself. To run
another session, re-arm with coco-loops start <loop_id> --for <duration> (or run
charter --install again).
Creating interactive data visualisations using d3.js. This skill should be used when creating custom charts, graphs, network diagrams, geographic visualisations, or any complex SVG-based data visualisation that requires fine-grained control over visual elements, transitions, or interactions. Use this for bespoke visualisations beyond standard charting libraries, whether in React, Vue, Svelte, vanilla JavaScript, or any other environment.
Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full ASM JSON, flattened CSV for easy import, and exportable Python code for data engineers. Common triggers include converting instrument files, standardizing lab data, preparing data for upload to LIMS/ELN systems, or generating parser code for production pipelines.
Quantum mechanics simulations and analysis using QuTiP (Quantum Toolbox in Python). Use when working with quantum systems including: (1) quantum states (kets, bras, density matrices), (2) quantum operators and gates, (3) time evolution and dynamics (Schrödinger, master equations, Monte Carlo), (4) open quantum systems with dissipation, (5) quantum measurements and entanglement, (6) visualization (Bloch sphere, Wigner functions), (7) steady states and correlation functions, or (8) advanced methods (Floquet theory, HEOM, stochastic solvers). Handles both closed and open quantum systems across various domains including quantum optics, quantum computing, and condensed matter physics.
Retrieve and display GitHub Copilot usage metrics for organizations and enterprises using the GitHub CLI and REST API.
Socratic mentoring for junior developers and AI newcomers. Guides through questions, never answers. Triggers: "help me understand", "explain this code", "I''m stuck", "Im stuck", "I''m confused", "Im confused", "I don''t understand", "I dont understand", "can you teach me", "teach me", "mentor me", "guide me", "what does this error mean", "why doesn''t this work", "why does not this work", "I''m a beginner", "Im a beginner", "I''m learning", "Im learning", "I''m new to this", "Im new to this", "walk me through", "how does this work", "what''s wrong with my code", "what''s wrong", "can you break this down", "ELI5", "step by step", "where do I start", "what am I missing", "newbie here", "junior dev", "first time using", "how do I", "what is", "is this right", "not sure", "need help", "struggling", "show me", "help me debug", "best practice", "too complex", "overwhelmed", "lost", "debug this", "/socratic", "/hint", "/concept", "/pseudocode". Progressive clue systems, teaching techniques, and success metrics.
Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.
High-performance DataFrame library for Python ETL, analytics, and pandas migration. Use for expression-based data manipulation with lazy query optimization, parallel execution, streaming out-of-core processing, Arrow interoperability, and optional GPU execution.
Take coco-research/coco-loop from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.