flow
Skill864 starsChanged 8 days agoMITView on GitHub
End-to-end process for shipping a feature or bug fix in react-native-audio-api. Covers all required deliverables in order: Web Audio API spec review, TypeScript interface and types, C++ AudioNode implementation, HostObject wiring, TypeScript class, TurboModule spec (when needed), C++ tests (Google Test), JS tests (Jest), documentation (audiodocs MDX), and post-work checks. Also covers the bug-fix flow: MRE first, C++ test when applicable, root-cause analysis, post-mortem. Use this skill at the start of any feature implementation or bug fix. Trigger phrases: "implement a feature", "add a node", "fix a bug", "what steps", "where do I start", "PR checklist", "how to write tests".
37 other projects use a version of this.
Adopted by
Most recently taken up by
- weltonclima/claude-skillstheir own version, first seen Nov 29, 2026
- HighwayofLife/agent-kaizentheir own version, first seen Nov 29, 2026
- Panza-Labs/floorbosstheir own version, first seen Nov 29, 2026
- cofin/flowtheir own version, first seen Nov 28, 2026
- retospect/precis-mcptheir own version, first seen Nov 22, 2026
- manhquydev/flow-skilltheir own version, first seen Nov 15, 2026
Used with
Projects with it also use grill, implement and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
renatorozasSkillgrill
Adversarial code review. Don't let me ship until the changes pass your scrutiny.
Also in 3 projects that use this
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 5 projects that use this
SentrySkillspec
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 7 projects that use this
AnthropicSkillstatus
Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 3 projects that use this
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- react/react★ 253ksame name
- facebook/react★ 253ksame name
- simota/agent-skills★ 106same name
- matthewdonsemail-lab/log★ 103same name
- panayiotism/claude-harness★ 79same name
- rainday/smart-blog-skills★ 35same name
- cofin/flow★ 19same name
- basezh/agent-skills-on-base★ 15same name
- manhquydev/flow-skill★ 13same name
- retospect/precis-mcp★ 13same name
27 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- apps/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/expressive-code.mdcCursor rule
- audio-nodesSkill
- build-compilation-dependenciesSkill
- expressive-codeSkill
- host-objectsSkill
- post-work-checksSkill
- thread-safety-itcSkill
- turbo-modulesSkill
- utilitiesSkill
- web-audio-apiSkill
- writing-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. 0 are common, 12 are distinctive, and 14 are very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Read spec → define exactly what you're building
- Distinctive: line 37
Before touching any code. If spec behavior is unclear → fetch https://webaudio.github.io/web-audio-api/ before proceeding.
- Distinctive: line 39
Read the Web Audio API spec section for the node/feature.
- Distinctive: line 40
All properties and methods
- Very specific: line 52
Add the interface in src/interfaces/ — IMyNode.ts
- Very specific: line 61
Add the options type in src/types/ — NodeOptions.ts (or add to existing file)
- Very specific: line 79
Create core/<category>/MyNode.h and MyNode.cpp.
- Very specific: line 84
Add createMyNode(const MyNodeOptions &options) factory to BaseAudioContext.
- Very specific: line 85
Add the .cpp file to CMakeLists.txt (check existing entries for the pattern).
- Very specific: line 101
Use shadow state (JS-thread copy + scheduleAudioEvent) for any property that: is read back by JS, is written from JS, AND must be applied …
- Very specific: line 111
Create src/core/MyNode.ts — extends AudioNode, wraps the JSI HostObject.
- Very specific: line 132
Add a factory method createMyNode(options?) to src/core/BaseAudioContext.ts.
- Very specific: line 136
Add web passthrough in src/web-core/MyNode.ts if the node has a browser equivalent, or add a stub/throw if not supported on web.
- Distinctive: line 144
Only needed if the feature requires a _new_ RN native method (e.g.
- Very specific: line 146
If needed: add the method signature to the spec, then implement on iOS (AudioAPIModule.mm) and Android (AudioAPIModule.kt).
- Very specific: line 219
If the feature has a visible or audible component, add a demo in apps/fabric-example/App.tsx (or a sub-screen).
- Very specific: line 227
Every public API that ships must have a documentation page.
- Distinctive: line 233
All properties and their types/ranges
- Distinctive: line 234
All methods with parameter descriptions
- Distinctive: line 282
If a C++ test was written in step 1 → it must now pass.
- Very specific: line 283
If no C++ test was written but the fix touches processNode() or DSP code → add one now.
- Distinctive: line 284
Run post-work checks (see above).
- Distinctive: line 290
After the fix is working, spend 2 minutes asking:
- Very specific: line 293
Should a skill file be updated?: If the bug revealed a non-obvious invariant (e.g.
- Distinctive: line 294
Should a new test be added?: If no test existed that would have caught this, add one.
- Distinctive: line 295
Should docs be updated?: If the spec says X but the implementation did Y, and the fix brings it in line — update the docs page.
“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: Feature Implementation Flow
Quick Reference
Feature checklist (all 9 steps required for a PR):
- Read spec → define exactly what you're building
- TypeScript interface + option types (
src/interfaces/,src/types/) - C++ AudioNode (
core/<category>/MyNode.h/.cpp) — seeaudio-nodesskill - HostObject (
HostObjects/MyNodeHostObject.h/.cpp) — seehost-objectsskill - TypeScript class (
src/core/MyNode.ts) - TurboModule spec entry — only if a new RN native method is needed
- C++ tests (Google Test) — write tests first, confirm they fail, then implement
- JS/TS tests (Jest)
- Docs page (
packages/audiodocs/) Then:post-work-checksskill
Bug fix checklist:
- Reproduce (write failing test or MRE first)
- Identify the layer (use the table in §Bug Fix Flow)
- Fix + verify tests pass
- Post-mortem (update skill if a new pitfall discovered)
Feature Implementation Flow
1 — Define exactly what you are building
Before touching any code. If spec behavior is unclear → fetch https://webaudio.github.io/web-audio-api/ before proceeding.
- Read the Web Audio API spec section for the node/feature. Nail down:
- All properties and methods
- Parameter default values, min/max, and automation behaviour
- Edge cases (what happens when
start()is called twice? what if feedback[0] === 0?)
- Decide the TypeScript interface shape: what does the JS consumer see?
- Identify if native platform code is needed (e.g. new permission, device routing, new Oboe/CoreAudio API surface). If yes, plan iOS + Android separately.
2 — TypeScript interface and types
Files: packages/react-native-audio-api/src/
Add the interface in
src/interfaces/—IMyNode.tsexport interface IMyNode extends IAudioNode { readonly myParam: IAudioParam; someMethod(arg: number): void; }Add the options type in
src/types/—NodeOptions.ts(or add to existing file)export interface MyNodeOptions extends AudioNodeOptions { myParam?: number; // default: 1.0 }- Export both from
src/interfaces/index.tsandsrc/types/index.ts.
3 — C++ AudioNode
Files: packages/react-native-audio-api/common/cpp/audioapi/core/
See the audio-nodes skill for the full contract. If unsure which base class to use → check the class hierarchy in that skill. Summary:
- Create
core/<category>/MyNode.handMyNode.cpp. - Subclass the right base (
AudioNode,AudioScheduledSourceNode,AudioBufferBaseSourceNode). - Annotate every method with
/// @note JS Thread onlyor/// @note Audio Thread only. - Declare
processNode()inprotected:— audio thread. - Preallocate all
AudioParams and scratch buffers in the constructor (JS thread). - Add
createMyNode(const MyNodeOptions &options)factory toBaseAudioContext. - Add the
.cppfile toCMakeLists.txt(check existing entries for the pattern).
No allocations, no locks, no blocking I/O in processNode().
4 — HostObject
Files: packages/react-native-audio-api/common/cpp/audioapi/HostObjects/
See the host-objects skill for the full macro system and shadow state patterns. If unsure whether to use shadow state or atomics → check the decision table in that skill. Summary:
- Create
HostObjects/MyNodeHostObject.handMyNodeHostObject.cpp. - Extend
AudioNodeHostObject. - Expose properties with
JSI_PROPERTY_GETTER/SETTER_DECL/IMPL+JSI_EXPORT_PROPERTY_GETTER/SETTER. - Expose methods with
JSI_HOST_FUNCTION_DECL/IMPL+JSI_EXPORT_FUNCTION. - Use shadow state (JS-thread copy +
scheduleAudioEvent) for any property that: is read back by JS, is written from JS, AND must be applied on the audio thread. Seehost-objects.mdfor the decision table. - Wire factory in
BaseAudioContextHostObject: addcreateMyNodehost function that callscontext->createMyNode(options)and wraps inMyNodeHostObject. - Add to
CMakeLists.txt.
5 — TypeScript class
Files: packages/react-native-audio-api/src/core/
Create
src/core/MyNode.ts— extendsAudioNode, wraps the JSI HostObject.import { IMyNode } from '../interfaces'; import AudioNode from './AudioNode'; import BaseAudioContext from './BaseAudioContext'; import { MyNodeOptions } from '../types'; export default class MyNode extends AudioNode implements IMyNode { constructor(context: BaseAudioContext, options?: MyNodeOptions) { // Node-specific validation (if any) goes here, before create. const node = context.context.createMyNode(options || {}); // Pass options so AudioNode validates channelCount / mode / interpretation. super(context, node, options); } // getters/setters forwarded to (this.node as IMyNode) }MyNodeOptionsmust extendAudioNodeOptions. SharedAudioNodeOptionsvalidation lives inAudioNode's constructor (validateAudioNodeOptions) — do not re-validate those fields in per-node validators.- Add a factory method
createMyNode(options?)tosrc/core/BaseAudioContext.ts. - Export from
src/index.ts. - Add web passthrough in
src/web-core/MyNode.tsif the node has a browser equivalent, or add a stub/throw if not supported on web. The web system always delegates to the browser'sAudioContext.
6 — TurboModule spec (only if new native entry point needed)
File: src/specs/NativeAudioAPIModule.ts
Only needed if the feature requires a new RN native method (e.g. a permission check, a new audio session configuration). Most audio nodes do not need this — they are exposed entirely through JSI HostObjects.
If needed: add the method signature to the spec, then implement on iOS (AudioAPIModule.mm) and Android (AudioAPIModule.kt).
7 — Tests
C++ tests (Google Test)
Path: common/cpp/test/src/core/<category>/MyNodeTest.cpp
Pattern:
#include <audioapi/core/OfflineAudioContext.h>
#include <audioapi/core/effects/MyNode.h>
#include <gtest/gtest.h>
#include <test/src/MockAudioEventHandlerRegistry.h>
#include <memory>
using namespace audioapi;
class MyNodeTest : public ::testing::Test {
protected:
std::shared_ptr<MockAudioEventHandlerRegistry> eventRegistry;
std::shared_ptr<OfflineAudioContext> context;
static constexpr int sampleRate = 44100;
void SetUp() override {
eventRegistry = std::make_shared<MockAudioEventHandlerRegistry>();
context = std::make_shared<OfflineAudioContext>(
2, 5 * sampleRate, sampleRate, eventRegistry, RuntimeRegistry{});
context->initialize();
}
};
// Use TestableXxx subclass to expose processNode() and internal state for white-box tests
class TestableMyNode : public MyNode {
public:
explicit TestableMyNode(std::shared_ptr<BaseAudioContext> ctx)
: MyNode(ctx, MyNodeOptions()) {}
std::shared_ptr<AudioBuffer> processNode(
const std::shared_ptr<AudioBuffer> &buf, int frames) override {
return MyNode::processNode(buf, frames);
}
};
TEST_F(MyNodeTest, CanBeCreated) { ... }
TEST_F(MyNodeTest, ProcessesAudioCorrectly) { ... }
TEST_F(MyNodeTest, EdgeCase) { ... }New test files are picked up automatically by GLOB_RECURSE — no CMakeLists edit needed.
Run with:
pnpm test # from repo rootJS/TS tests (Jest)
Path: packages/react-native-audio-api/tests/
integration.test.ts— graph construction, node creation, property access through the mock APImock.test.ts— mock implementation correctness
Run with:
pnpm --filter react-native-audio-api testExample app (fabric-example)
If the feature has a visible or audible component, add a demo in apps/fabric-example/App.tsx (or a sub-screen). This acts as a manual smoke test and documents intended usage.
8 — Documentation
Path: packages/audiodocs/
Every public API that ships must have a documentation page. The docs package uses MDX. See packages/audiodocs/CLAUDE.md for the full page template.
Engine internals, research, and plans go in packages/internaldocs/ (local only). See packages/internaldocs/CLAUDE.md. Do not put those write-ups in audiodocs or in skills.
Cover:
- Constructor / factory call
- All properties and their types/ranges
- All methods with parameter descriptions
- A minimal usage example (TypeScript snippet)
- Any spec deviations or limitations (e.g. "offline rendering not supported")
9 — Post-work checks
See the post-work-checks skill. At minimum before any PR:
pnpm format # auto-fix formatting
pnpm lint # JS/TS/C++/Kotlin linting
pnpm typecheck # TypeScript
pnpm test # C++ Google Tests
pnpm --filter react-native-audio-api check:enums # if you touched a mirrored enumBug Fix Flow
1 — Reproduce (MRE first)
- If an MRE is provided → good, use it as your starting point.
- If no MRE → reproduce in
apps/fabric-example/App.tsx. Add the minimal code that triggers the bug. Keep it in the app until the fix is verified, then remove or clean it up. - If the bug is in C++ DSP/processing logic → write a failing C++ test first (
common/cpp/test/). This gives a fast edit-compile-run loop without needing a device, and the test stays as a permanent regression guard.
2 — Identify the layer
| Symptom | Likely layer | Where to look |
| Wrong default value / validation error | TypeScript | src/core/MyNode.ts, src/types/ |
| Property read-back returns wrong value | HostObject shadow state | HostObjects/MyNodeHostObject |
| Wrong argument parsed from JS | HostObject | argument parsing in get/call |
| Audio output sounds wrong | C++ processNode() | core/<category>/MyNode.cpp |
| DSP math wrong | DSP helpers | dsp/ utilities |
| Crash on audio thread | Thread safety violation | cross-thread patterns — audio-nodes.md |
| Platform-specific (only iOS or only Android) | Native layer | ios/ or android/ |
| Only in new RN architecture | TurboModule / JSI wiring | src/specs/, HostObject init |
3 — Fix and verify
- Make the fix.
- If a C++ test was written in step 1 → it must now pass.
- If no C++ test was written but the fix touches
processNode()or DSP code → add one now. It will stay as a regression test. - Run post-work checks (see above).
4 — Post-mortem (short, but do it)
After the fix is working, spend 2 minutes asking:
- Why did this bug exist? Was it a missing validation? A wrong default value? A thread-safety assumption that wasn't documented?
- Should a skill file be updated? If the bug revealed a non-obvious invariant (e.g. "feedback[0] must not be 0"), add it to the relevant skill (
audio-nodes.md,host-objects.md, etc.) under a pitfalls or constraints section. - Should a new test be added? If no test existed that would have caught this, add one.
- Should docs be updated? If the spec says X but the implementation did Y, and the fix brings it in line — update the docs page.
These small post-mortems compound over time and prevent the same class of bug from recurring.
Maintenance: see maintenance.md.
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.

