Community寫作與編輯github.com

auto-duan/hydra-skill

Agent Skill for generating, debugging & embedding Hydra live-coding visual patches. Installable via openskills / npx skills.

相容平台~Claude Code~Codex CLI~Cursor
npx skills add auto-duan/hydra-skill

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

說明文件

Hydra

Use when the task involves writing, fixing, or integrating Hydra visual patches.

Trigger

  • Generate a visual patch ("make noise texture", "audio reactive", "kaleidoscope")
  • Debug a Hydra failure (black screen, silent audio, source not loading)
  • Embed Hydra in HTML / p5 / Three.js

Execution Model

source → transform(s) → .out()

Sources: osc() noise() shape() gradient() voronoi() solid() src(buffer) Color: hue() brightness() contrast() saturate() invert() luma() Geometry: rotate() scale() scroll() kaleid() pixelate() repeat() Blend: blend() add() diff() mult() layer() mask() Modulate: modulate() modulateRotate() modulateScale() modulateHue()

Intent → Pattern

User saysUse
noise / grain / texturenoise(10, 0.1).out()
audio / mic / reactiveaudio-reactive-basic
camera / webcamcamera processing chain
mirror / kaleido / symmetricosc().kaleid(4).out()
feedback / trail / tunnelfeedback-loop pattern
glitch / broken / pixelosc().pixelate(20,20).diff(o0).out()
embed / html / websitesee references/api-reference.md embedding section

Minimal Code Skeletons

// Pure visual
osc(30, 0.1, 0).out()

// Time-animated
osc(30, 0.1, 0).rotate(() => time * 0.2).out()

// Audio-driven
a.setBins(8)
osc(30, 0, () => a.fft[0] * 4).out()

// Webcam
s0.initCam()
src(s0).kaleid(4).out()

// Feedback loop
src(o0).scale(1.01).out(o0)
render()

// Multi-buffer mix
gradient().out(o0)
osc(20).out(o1)
src(o0).blend(o1).out(o2)
render()

Dynamic Parameters

Use arrow functions for anything referencing time, mouse, or a.fft:

// Wrong:  osc().rotate(time)
// Right:  osc().rotate(() => time * 0.2)
// Wrong:  osc(30, 0, a.fft[0] * 4)
// Right:  osc(30, 0, () => a.fft[0] * 4)

Self-Check (run before outputting code)

  • At least one .out() or .out(oN) present
  • Multiple output buffers → render() present
  • a.fft used → a.setBins() called first
  • s0-s3 used → matching init*() called first
  • Dynamic values (time / mouse / fft) wrapped in arrow functions
  • Code is minimal for the task — no extra transforms

Debugging

Symptom → first step:

  • Black screen: check for missing .out() or uninitialized source
  • Silent audio: call a.setBins(8) first, check browser permission
  • Source not loading: verify init*() was called, check CORS
  • Visual artifacts: reduce feedback strength or remove modulate
  • Performance: shorten chain, lower res via setResolution()

Recovery baseline: osc(30, 0.1, 0).out() — if this fails, the environment is broken.

References

  • references/api-reference.md — full API signatures by category
  • references/patterns.md — reusable patterns + agent playbooks
  • references/debugging.md — symptom routing and fix templates

相關技能

Ding-Ye/learn-andrej-karpathy-skills

Re-grow a SKILL.md loader + registry + matcher + linter from scratch in Go — one mechanism per chapter, each ending with an upstream content reading.

community

videomakingio-gif/claude-linkedin-automation

A battle-tested skill for managing a professional LinkedIn profile autonomously using Claude AI. 21 automations, 12+ weeks, 0 detection incidents.

community

YuxuanSun123/xhs-ai-content-publisher

Codex skill for Xiaohongshu and WeChat AI content publishing workflows

community

levineam/qmd

Local hybrid search for markdown notes and docs. Use when searching notes, finding related content, or retrieving documents from indexed collections.

community

tqsdk-trading-and-data

Explain, implement, or debug TqSdk Python workflows for wait_update or is_changing update loops, market data retrieval, historical download, account type selection, funds or positions or orders or trades, field meanings, order placement or cancellation, target-position tools, TqScenario margin trials, real-account margin-rate lookup, margin or risk-ratio what-if analysis, simulation, backtest, and common TqSdk errors. Use when a request mentions TqSdk, TqApi, TqAuth, TqAccount, TqKq, TqKqStock, TqSim, TqSimStock, TqMultiAccount, TqBacktest, TqScenario, TargetPosTask, TargetPosScheduler, DataDownloader, margin rate, margin calculation, risk ratio, scenario trial, market data, K-line, tick, historical data, positions, trades, orders, account data, order placement, cancellation, position adjustment, field meanings, wait_update, debugging, \u884c\u60c5, K\u7ebf, \u5386\u53f2\u6570\u636e, \u4fdd\u8bc1\u91d1\u7387, \u4fdd\u8bc1\u91d1, \u98ce\u9669\u5ea6, \u573a\u666f\u8bd5\u7b97, \u6301\u4ed3, \u6210\u4ea4, \u59d4\

community

josefcohernandez/Curso-desarrollo-software-con-Claude-Code

Curso completo de Claude Code en español: 16 módulos de principiante a experto. Contexto, MCP, hooks, agentes, skills, CI/CD, Agent SDK, plugins y proyecto final. Guía de referencia definitiva.

community