Skip to content

Instantly share code, notes, and snippets.

View cgcardona's full-sized avatar

Gabriel Cardona cgcardona

View GitHub Profile
@cgcardona
cgcardona / Agent_Failure_Taxonomy_v1.md
Last active February 22, 2026 15:23
A comprehensive rulebook for unattended autonomous engineering agents

🧭 Agent Failure Taxonomy & Solutions v1

A comprehensive rulebook for unattended autonomous engineering agents

This document captures real-world failure modes observed in long‑running AI agent workflows, especially multi‑agent, CLI‑driven, containerized environments like Stori/Maestro pipelines.

Each section includes: - ❌ Problem Pattern - 🔎 Signals - ✅ Recommended Solution Strategy

@cgcardona
cgcardona / heuristics_v2.json
Created February 22, 2026 13:19
Stori Maestro — MIDI expressiveness heuristics v2: 3,858 lines of velocity curves, timing humanization, CC envelopes, and articulation profiles extracted from real MIDI performances
{
"schema_version": 2,
"file_count": 222497,
"expressiveness": {
"density": {
"notes_per_bar": {
"mean": 43.735,
"median": 39.3,
"stdev": 32.381,
"p10": 13.8,

Xcode Diagnostics & Runtime Debugging Tools Guide

This document explains the debugging and runtime diagnostics tools available in Xcode's Diagnostics panel.
These tools are essential for catching memory issues, threading bugs, undefined behavior, and performance problems early in development.


🧪 Runtime Sanitization

@cgcardona
cgcardona / composer_oss_readiness.md
Created February 13, 2026 12:13
Pre-open-source audit prompt that forces an AI agent to review security, Docker, infra, MCP tooling, and repo professionalism like a senior engineer would.

Pre-Open-Source Security, Quality & Professionalism Audit — Stori Composer (Agent Prompt)

Role

You are a Senior Security Engineer + Staff Backend Architect + Open Source Maintainer performing a pre-public-release audit of a Dockerized FastAPI backend called Stori Composer.

Your job is to identify:

  • Security risks
  • Operational risks

Swift Basics Tutorial

A comprehensive guide to the fundamental concepts of Swift programming.


Table of Contents

  1. Variables
  2. Data Types
  3. Functions
@cgcardona
cgcardona / agent_pr_review_and_merge.md
Created February 5, 2026 16:38
A principal-engineer-level agent prompt for reviewing, grading, and safely merging pull requests in a professional DAW codebase. This prompt treats every PR as potentially audible and evaluates it with audiophile paranoia.

Agent Prompt: PR Review → Merge → Cleanup (Autonomous)

ROLE

You are a Principal DAW Engineer + Audiophile Code Reviewer.

Your responsibility is to decide whether this pull request meets the quality bar required to compete with Logic Pro and other professional DAWs.

You have full authority to:

  • Request changes
  • Add missing tests
@cgcardona
cgcardona / agent_issue_to_pr.md
Last active February 5, 2026 16:36
A production-grade agent prompt that takes a single GitHub issue and drives it end-to-end: analysis → fix → extensive tests → branch → pull request. Designed specifically for mission-critical audio software where real-time safety, determinism, and audiophile-grade correctness are non-negotiable.

Agent Prompt: Issue → Branch → Fix → Tests → PR (Autonomous)

ROLE

You are a Senior macOS DAW Engineer + Audiophile QA Specialist working on Stori, a mission-critical, professional, open-source Digital Audio Workstation for macOS.

Your job is to fully resolve the GitHub issue linked below with Logic-Pro-level rigor.

This is an autonomous, end-to-end workflow. Do not skip steps. Do not shortcut tests.

@cgcardona
cgcardona / example-stori-step-sequencer-pattern.json
Last active January 19, 2026 17:08
Example Step Sequencer pattern for importing into Stori. More info: https://tellurstori.com/
{
"id": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"name": "Basic House Beat",
"steps": 16,
"swing": 0.0,
"lanes": [
{
"id": "11111111-1111-1111-1111-111111111111",
"name": "Kick",
"soundType": "kick",
@cgcardona
cgcardona / tellurstori-audio-generation-prompt-examples.md
Last active December 5, 2025 18:19
Prompt template format: A [sound type] featuring [timbre/characteristics], with [motion/shape], perspective: [distance], duration: [time]

⭐ CATEGORY 1 — RISERS (upward motion)

Perfect for transitions into choruses, drops, or energy lifts.

  1. White Noise Riser

A rising white-noise riser featuring bright filtered high-end and smooth upward sweep, with continuous motion, perspective: stereo wide, duration: 2 seconds

  1. Synth Riser

🎛️ TellUrStori SFX Prompt Template

A [sound type] featuring [timbre/characteristics], with [motion/shape], perspective: [distance]

RISERS (Upward Motion)

1. White Noise Riser

A rising noise riser featuring bright filtered high-end and smooth upward sweep, perspective: wide stereo