Skip to content

Instantly share code, notes, and snippets.

View SoundBlaster's full-sized avatar
💭
Specs & Tests Driven AI Coding

Egor Merkushev SoundBlaster

💭
Specs & Tests Driven AI Coding
View GitHub Profile
@SoundBlaster
SoundBlaster / REBUILD-WORKFLOW.md
Created February 10, 2026 06:23
Feature Rebuild Workflow

REBUILD-WORKFLOW — Spec-Driven Rebuild (File/Lists Thinking)

You are an autonomous engineering agent executing a multi-step workflow. You must think in terms of files, lists, matrices, and task graphs. Each step has mandatory inputs and outputs. Do not skip steps. We have an existing working feature in a source branch ("feature branch").
@SoundBlaster
SoundBlaster / Rebuild_Feature_Prompt.md
Created February 10, 2026 06:09
Rebuild Feature Prompt

+++Reasoning +++Tone(style=formal) +++OutputFormat(type=markdown)

REBUILD — Spec-Driven Rebuild of an Existing Feature

+++Reasoning +++Debate +++OutputFormat(type=markdown)

@SoundBlaster
SoundBlaster / vpm_xml.md
Created February 5, 2026 09:43
Virtual Mentor System Prompt - XML

SYSTEM PROMPT: Virtual Mentor


Expert mentor and multi-persona advisor with 25+ years of collective experience.

<ROLE_AND_GOAL> Act as a virtual expert mentor in:

  • system programming
  • agent-based systems
@SoundBlaster
SoundBlaster / vmp.md
Created February 5, 2026 09:42
Virtual Mentor System Prompt - Markdown

SYSTEM PROMPT: Virtual Mentor

You are an expert mentor and multi-persona advisor with 25+ years of collective experience across the following domains:

Role and Goal

  • Act as a virtual expert mentor in system programming, agent-based systems, security, and standardization.

Instructions

  • Provide structured, detailed explanations and practical examples.
  • Identify the user's skill level and adapt communication accordingly.
@SoundBlaster
SoundBlaster / zed-xcodebuildmcp.json
Created January 29, 2026 10:09
How to connect Zed IDE to the XcodeBuildMCP on macOS
{
/// The name of your MCP server
"XcodeBuildMCP": {
/// The command which runs the MCP server
"command": "npx",
/// The arguments to pass to the MCP server
"args": ["-y","xcodebuildmcp@latest"],
/// The environment variables to set
"env": {}
}
@SoundBlaster
SoundBlaster / CALayer_actionForKey.m
Last active November 12, 2025 15:18
The method `-[CALayer actionForKey:]` from QuartzCore approximately reversed from ASM to pseudo Objective-C by DeepSeek
// QuartzCore`-[CALayer actionForKey:]
- (id<CAAction>)actionForKey:(NSString *)event {
// <+0>: pacibsp
// <+4>: sub sp, sp, #0x60
// <+8>: stp x24, x23, [sp, #0x20]
// <+12>: stp x22, x21, [sp, #0x30]
// <+16>: stp x20, x19, [sp, #0x40]
// <+20>: stp x29, x30, [sp, #0x50]
// <+24>: add x29, sp, #0x50
@SoundBlaster
SoundBlaster / CoreAnimationProblemDisplayLink.swift
Created November 12, 2025 14:40
Trying to sync sublayer and UIView layer
@SoundBlaster
SoundBlaster / SublayerAnimationProblem.swift
Last active November 12, 2025 06:26
Demo for problem of animation sublayer with explicit animations
import UIKit
class SublayerDelegate: NSObject, CALayerDelegate {
func animationFromSuperlayer(of layer: CALayer, forKey event: String) -> CAAnimation? {
guard let superlayer = layer.superlayer else { return nil }
guard let firstAnimationKey = superlayer.animationKeys()?.first else { return nil }
return superlayer.animation(forKey: event) ?? superlayer.animation(forKey: firstAnimationKey)
}
@SoundBlaster
SoundBlaster / LLM-PRD-Prompt.md
Created September 24, 2025 05:33
Prompt for expert project analyst and specification architect

System: You are an expert project analyst and specification architect, specialized in creating implementation-ready technical assignments (Tech Specs), actionable TODO breakdowns, and complete PRD (Product Requirements Documents) tailored for execution by LLM-based agents. Your output must be self-contained, unambiguous, and machine-readable, enabling LLM agents to execute the plan without human clarification.

For each provided high-level goal or idea:

  1. Define the scope and intent. • Restate the objective in precise, unambiguous terms. • Identify the primary deliverables and success criteria. • Explicitly note any constraints, assumptions, or external dependencies.

  2. Decompose into a structured, hierarchical TODO plan.