graphyloop-waves
Skill3 starsChanged 10 days agoMITView on GitHub
Use this skill when a request spans more than one layer (database + backend + frontend, or a feature plus a data pipeline). Turns the request into contract-first parallel waves with enforced dependencies, exclusive file ownership and per-lane acceptance checks, using the graphyloop planner and swarm.
In this repository72 other files it gives its agents.
- workflow/AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- ai-video-prompt-engineerSkill
- api-contract-designSkill
- api-hardeningSkill
- brainstormingSkill
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-helpSkill
- caveman-reviewSkill
- cavemanSkill
- councilSkill
- database-migrationsSkill
- deep-researchSkill
- dependency-auditSkill
- deployment-patternsSkill
- e2e-testingSkill
- error-handlingSkill
- exa-searchSkill
- finishing-a-development-branchSkill
- frontend-securitySkill
- github-opsSkill
- graphifySkill
- graphyloop-workflowSkill
- gsap-coreSkill
- gsap-frameworksSkill
- gsap-performanceSkill
- gsap-pluginsSkill
- gsap-reactSkill
- gsap-scrolltriggerSkill
- gsap-timelineSkill
- gsap-utilsSkill
- high-end-visual-designSkill
- image-to-codeSkill
- last30daysSkill
- minimalist-uiSkill
- postgres-patternsSkill
- prisma-patternsSkill
- receiving-code-reviewSkill
- redesign-existing-projectsSkill
- remotion-video-creationSkill
- requesting-code-reviewSkill
- search-firstSkill
- secrets-hygieneSkill
- security-reviewSkill
- security-scanSkill
- short-video-productionSkill
- story-engineeringSkill
- supabase-setupSkill
- swarm-memorySkill
- systematic-debuggingSkill
- tdd-workflowSkill
- terminal-opsSkill
- threejs-animationSkill
- threejs-fundamentalsSkill
- threejs-geometrySkill
- threejs-interactionSkill
- threejs-lightingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
NOT for a one-file change, a rename, or a single endpoint — fan-out only adds integration cost there.
- Very specific: line 32
Plan, do not improvise: Call plan_feature / graphyloop_plan_feature with the user's request verbatim as goal.
- Distinctive: line 43
every route: method, path, request shape, response JSON, error codes
- Distinctive: line 45
test scenarios that define done (happy path + 2 edge cases per entity)
- Distinctive: line 47
No implementation code in this wave.
- Distinctive: line 52
Fan out a whole wave in ONE tool-call block: Every prompt carries: the contract and ctx pack paths, that lane's exclusive file list, its …
- Distinctive: line 60
Integration is one wave, not a habit: Only Wave 2 may touch two lanes at once.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Wave dispatch (contract-first fan-out)
Multi-layer work fails two ways: built serially it takes the sum of its lanes, and fanned out without a frozen contract it produces three incompatible versions of the same table. This skill is the third option.
When to activate
- The request names two or more of: schema/data, API/server, UI/pages, import/export pipeline.
- Words like "system", "app", "platform", "management", "dashboard + data".
- NOT for a one-file change, a rename, or a single endpoint — fan-out only adds integration cost there.
The pipeline
Wave 0 context pack + contract ONE agent, alone: ctx-<slug>.md, then contract-<slug>.md
Wave 1 builders data ∥ backend ∥ frontend ∥ tests (ONE tool-call block)
Wave 2 integration drop mocks, real calls, env wiring, boot the happy path
Wave 3 verify test ∥ typecheck/lint ∥ security ∥ performance ∥ review
Wave 4 deploy preflight → preview → GATED productionWall clock = Wave 0 + slowest builder + integration + slowest verifier. Never the sum.
Procedure
- Plan, do not improvise. Call
plan_feature/graphyloop_plan_featurewith the user's request verbatim asgoal. It returns waves, tasks, per-laneownsglobs,acceptancechecks anddependsOn.shape: no-fanout→ stop. This is inline or single-builder work.
- Context pack, then freeze the contract (Wave 0). One batched read pass
(parallel reads/greps) writes
.opencode/chadi/ctx-<slug>.mdnext to the contract: per lane,path:line, the current code excerpt, and the pattern file to copy. Lanes start editing from it instead of rediscovering. Then one agent writes.opencode/chadi/contract-<slug>.md:- entities: columns, types, nullability, foreign keys, indexes
- every route: method, path, request shape, response JSON, error codes
- components/pages: props and route paths
- test scenarios that define done (happy path + 2 edge cases per entity)
- the env keys the feature needs No implementation code in this wave. If the contract is wrong later, stop and fix the contract — never let a lane drift from it silently.
- Dispatch by dependency, not by optimism. Pass
plan.taskstotask_distribute. Dispatch ONLY the ids indispatchNow.blockedentries name what they are waiting on. - Fan out a whole wave in ONE tool-call block. Every prompt carries: the
contract and ctx pack paths, that lane's exclusive file list, its acceptance
check, and the turn-economy footer verbatim. Builder lanes (wave 1) get:
Read the ctx pack and contract first, in ONE turn. Batch 2+ reads/searches into one parallel call; read with line ranges; never re-read a file; first edit by turn 5; do not run project-wide lint/test/build — the driver does.The wave-0 lane that writes the ctx pack and contract gets:Batch 2+ reads/searches into one parallel call; read with line ranges; never re-read a file; write the ctx pack and contract before anything else.Integration, verify and deploy lanes (they run tests and builds) get:Read the ctx pack and contract first, in ONE turn. Batch 2+ reads/searches into one parallel call; read with line ranges; never re-read a file. - Record every result.
task_recordreturns what the result unblocked — that is the trigger for the next wave. After a restart or compaction,swarm_statereportsreadyTasks,blockedTasksand per-wave counts. - Integration is one wave, not a habit. Only Wave 2 may touch two lanes at once. Everywhere else, file ownership is exclusive.
Rules that keep it honest
- The database lane runs alongside backend and frontend, not before them — the schema was already decided in Wave 0. "DB first, then the rest" is the serial trap this skill exists to avoid.
- Tests are written in Wave 1 from the contract's scenarios. A test authored after the code asserts whatever the code happens to do.
- Frontend builds against mocks shaped like the contracted responses, with the fetch layer in ONE module so the integration swap is a single file.
- Two edit-capable agents never own the same file in the same wave. Assign the ownership table before dispatch.
- At most 4 concurrent build/test lanes by default; read-only verifiers may run wider; never poll a long-running job: background it.
- A wave is not done because its agents returned. It is done when its acceptance check has been run and its output quoted.
Reporting
Report the wave table, then per lane: files touched, acceptance check run, and
the decisive output line. Store one memory entry with the shape and wall time
(PLAN shape=... lanes=... wall=...) so the next same-shape request can be
compared instead of re-argued.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

