[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114611":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":14,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":34,"discoverSource":35},114611,"my-ai-coding-workflow","vaibhav-space\u002Fmy-ai-coding-workflow","vaibhav-space","Production-grade AI coding instructions, curated skills, and a 3-stage review pipeline (Planning → Critical Review → Diff Audit) built after 4,500+ hours with AI agents. Agent-agnostic.","",null,"HTML",343,48,2,1,0,131,154,36,76.07,false,"main",true,[25,26,27,28,29],"agentic-workflows","ai-agents","claude-code","code-review","developer-tools","2026-11-18 18:30:28","2026-11-23 19:55:47","# I Spent 4,500+ Hours Coding with AI. This Is the Claude Code Setup I Ended Up With.\n\n> *The engineering instructions, curated skills, and three-stage review workflow I use to keep AI-assisted development fast, controlled, and verifiable.*\n\n---\n\n## Table of Contents\n\n- [1. The Story Behind This Setup](#1-the-story-behind-this-setup)\n- [2. Core Engineering Philosophy](#2-core-engineering-philosophy)\n- [3. The Three-Prompt Review Workflow](#3-the-three-prompt-review-workflow)\n- [4. Curated Skills & Upstream Attribution](#4-curated-skills--upstream-attribution)\n  - [Superpowers (Jesse Vincent)](#superpowers)\n  - [Ponytail (Dietrich Gebert)](#ponytail)\n  - [I Have ADHD (ayghri)](#i-have-adhd)\n- [5. Repository Structure](#5-repository-structure)\n- [6. Adoption Guide](#6-adoption-guide)\n- [7. Credits](#7-credits)\n\n---\n\n## 1. The Story Behind This Setup\n\nThis repository is not a speculative prompt collection.\n\nIt is the setup I arrived at after spending an estimated **4,500+ hours** actively building, debugging, refactoring, and deploying software alongside AI coding agents.\n\n> [!NOTE]\n> *The 4,500+ hours figure is a personal working estimate based on roughly six productive hours per day over a little more than two years of daily engineering work. It is not tracked automated telemetry.*\n\n### The Tooling Journey\nMy day-to-day workflow evolved across multiple waves of AI developer tooling:\n- **Cursor** for inline completions and multi-file agent edits.\n- **Claude Code CLI** for autonomous terminal-driven task loops and micro-diff inspections.\n- **Antigravity IDE & Gemini CLI** for multi-agent workflows, skill architectures, and background automations.\n- **Codex, OpenCode, and Amazon Q**, exploring how different models reason about API contracts, context limits, and tool-calling.\n\nI do not claim equal usage across all these platforms. What became clear through thousands of hours across all of them was a universal pattern:\n\n> **Unconstrained AI coding agents fail predictably.**  \n> They suffer from confirmation bias, over-engineer simple utilities into speculative generic frameworks, write code against hallucinated APIs, quietly reformat adjacent files, and declare \"tests pass!\" without actually executing them.\n\nThis repository represents the guardrails, prompts, and behavioral directives I built to reduce those failure modes. It is a practical, personal setup designed for real production work.\n\n---\n\n## 2. Core Engineering Philosophy\n\n| Principle | Why It Matters in AI-Assisted Engineering |\n|---|---|\n| **1. Correctness Over Speed** | An agent that writes 500 lines in 10 seconds is a liability if 20 of those lines introduce silent race conditions or break API contracts. |\n| **2. Simplicity (Ponytail & YAGNI)** | Models reflexively invent factory patterns, wrappers, and speculative abstractions. We enforce the minimal surgical code that solves the problem. |\n| **3. Plan Before Implementation** | Forcing an agent to inspect the codebase and write an approved plan first prevents the classic \"edit 12 files blindly, break the build, and scramble\" loop. |\n| **4. Independent Plan Criticism** | An agent reviewing its own plan in the same turn suffers from self-confirmation bias. Plans must be challenged by an adversarial senior-engineering prompt in a fresh context. |\n| **5. Diff Inspection Over Summaries** | Never trust an agent's conversational summary of what it did. Audit `git status`, `git diff`, and `git diff --cached`. The diff is the only ground truth. |\n| **6. Executable Verification** | Assertions require evidence. An agent must run test suites, reproduction scripts, or dry-runs and output exit codes before claiming completion. |\n| **7. Safe Retries & Idempotency** | State-changing operations must have explicit retry semantics and deduplication. In distributed systems and agent loops, replay safety is mandatory. |\n| **8. Deterministic Arithmetic** | LLMs must never perform mental math on currency, tax, or markups in text. Mathematical operations are strictly delegated to deterministic code. |\n| **9. Scoped Tenant Authorization** | Tools must preserve caller identity and authorization context; agents never execute with ambient root or uncontained privilege. |\n| **10. Explicit Blast-Radius Gates** | Schema migrations, public API contract changes, new third-party dependencies, and destructive shell commands require explicit human sign-off. |\n\nNote that the approval gates in `CLAUDE.md` are behavioral instructions the agent follows, not mechanically enforced security boundaries; real enforcement comes from your coding tool's native permission settings.\n\n---\n\n## 3. The Three-Prompt Review Workflow\n\nRather than allowing an agent to jump straight from user prompt to code editing, non-trivial engineering tasks follow a structured progression:\n\n```mermaid\nflowchart TD\n    User([Task Request]) --> Classify{Task Lifecycle}\n    Classify -->|Spike \u002F Bounded| Quick[Direct TDD & Minimal Fix]\n    Classify -->|Architectural \u002F Breaking| Brainstorm[Brainstorm & Spec Approval]\n    Brainstorm --> P1[1. Planning Prompt]\n    P1 -->|Inspects repo & drafts plan| Plan[Implementation Plan]\n    Plan --> P2[2. Critical Plan Review]\n    P2 -->|Red-teams assumptions in fresh context| RevPlan[Approved Plan]\n    RevPlan --> Code[Implementation & TDD]\n    Code --> P3[3. Production Readiness Review]\n    P3 -->|Audits git diff, staged files & runs tests| Done([Reviewed & Ready to Merge])\n```\n\n### Lifecycle Routing\n- **`Spike`**: 1 cheap probe command -> 2-sentence finding.\n- **`Bounded`**: Covers isolated repairs and 1-3 file non-breaking enhancements. Propose in chat for approval first if altering public API contracts, database schemas, or financial logic; otherwise execute autonomously.\n- **`Architectural`**: Subsystems, multi-service features, or breaking contract changes -> Strictly executes the 3-stage review pipeline below.\n\n---\n\n### Stage 1: Planning (`prompts\u002Fplanning.md`)\n- **Job:** Inspect the repository, map requirements to acceptance criteria, and define how each criterion will be verified.\n- **Safety Boundary:** Hard instruction: *\"Stop once the plan is saved and wait for my approval. Do not touch implementation code.\"*\n- **What It Prevents:** Premature code generation against hallucinated file paths, wrong package versions, or incorrect architectural assumptions.\n- **Visual Architecture Modeling:** For smaller, direct flows, inline Mermaid diagrams work well. But once an architecture involves multiple services, cross-cutting class dependencies, or evolving business logic, text alone can obscure integration blind spots. In those scenarios, I generate a visual model before locking in an approach. For creating clean, editorial-grade architecture diagrams, I frequently reference Cathryn Lavery's [diagram-design](https:\u002F\u002Fgithub.com\u002Fcathrynlavery\u002Fdiagram-design).\n\n### Stage 2: Critical Plan Review (`prompts\u002Fcritical-plan-review.md`)\n- **Job:** Act as an independent senior principal engineer red-teaming the plan before a single line of code is written. Run in a **fresh context or subagent** to reduce confirmation bias.\n- **Focus:** Identifies race conditions, missing error boundaries, timeout policies, idempotency risks, and over-engineering.\n- **The YAGNI Brake:** Explicitly forces the model to distinguish genuine failure modes from low-probability hypothetical edge cases, stopping speculative complexity before it starts.\n- **What It Prevents:** The agent confidently executing an architectural flaw that would require a complete rewrite later.\n\n### Stage 3: Production Readiness Review (`prompts\u002Fproduction-readiness-review.md`)\n- **Job:** Audit the raw git state (`git status`, `git diff`, `git diff --cached`, and untracked files) against the approved plan. Run in a fresh context or subagent.\n- **Focus:** Hunts for logical bugs, null-pointer boundaries, integration breaks, secrets leakage, and uncommitted artifacts.\n- **Remediation Rule:** Fix confirmed issues with the smallest targeted edit. If a fix requires architectural changes or alters public contracts, it must pause and ask first.\n- **What It Prevents:** Merging orphaned untracked files, broken staged diffs, weakened test assertions, or cosmetic reformatting regressions.\n\n---\n\n## 4. Curated Skills & Upstream Attribution\n\nRather than accumulating dozens of overlapping, noisy plugins, this setup incorporates a lean, carefully selected collection of open-source skill packs.\n\n> [!TIP]\n> **Global by Design:** `CLAUDE.md` is designed as a global instruction set (used as your global `~\u002F.claude\u002FCLAUDE.md`, or adapted for `GEMINI.md` \u002F agent system prompt) to establish baseline engineering behavior across every project you touch. The three review prompts in `prompts\u002F` are your personal operational templates, used as prompt suffixes during non-trivial tasks rather than committed to client codebases.\n\n### Superpowers\n*Repository:* [obra\u002Fsuperpowers](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers) by **Jesse Vincent (Obra)**  \n*License:* MIT\n\nJesse Vincent's `superpowers` suite provides foundational process discipline for agentic development:\n\n| Skill | Upstream Runbook | Role in This Setup |\n|---|---|---|\n| `using-superpowers` | [skills\u002Fusing-superpowers](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers\u002Ftree\u002Fmain\u002Fskills\u002Fusing-superpowers) | Metacontroller establishing workflow discipline at session start. |\n| `brainstorming` | [skills\u002Fbrainstorming](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers\u002Ftree\u002Fmain\u002Fskills\u002Fbrainstorming) | Explores user intent, trade-offs, and design before plan authoring. |\n| `writing-plans` | [skills\u002Fwriting-plans](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers\u002Ftree\u002Fmain\u002Fskills\u002Fwriting-plans) | Formats structured, measurable implementation plans. |\n| `systematic-debugging` | [skills\u002Fsystematic-debugging](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers\u002Ftree\u002Fmain\u002Fskills\u002Fsystematic-debugging) | Enforces 4-step root cause tracing before proposing fixes to bugs. |\n| `test-driven-development` | [skills\u002Ftest-driven-development](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers\u002Ftree\u002Fmain\u002Fskills\u002Ftest-driven-development) | Enforces strict Red -> Green -> Refactor cycles for business logic. |\n| `verification-before-completion` | [skills\u002Fverification-before-completion](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers\u002Ftree\u002Fmain\u002Fskills\u002Fverification-before-completion) | Mandates running terminal verification commands before claiming success. |\n| `requesting-code-review` | [skills\u002Frequesting-code-review](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers\u002Ftree\u002Fmain\u002Fskills\u002Frequesting-code-review) | Performs automated diff reviews checking spec compliance and scope creep. |\n| `finishing-a-development-branch` | [skills\u002Ffinishing-a-development-branch](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers\u002Ftree\u002Fmain\u002Fskills\u002Ffinishing-a-development-branch) | Safely handles branch integration, PR creation, or cleanup without silent merges. |\n\n---\n\n### Ponytail\n*Repository:* [DietrichGebert\u002Fponytail](https:\u002F\u002Fgithub.com\u002FDietrichGebert\u002Fponytail) by **Dietrich Gebert**  \n*License:* MIT\n\nAI models inherently generate boilerplate. If you ask for a date utility, they may install `moment.js` or write a generic time-travel class. `ponytail` enforces the **\"Lazy Senior Developer\"** mindset:\n- **The Ponytail Ladder:** `YAGNI -> Existing codebase utilities -> Standard library -> Native platform APIs -> Installed dependencies -> Minimum working code.`\n- **Surgical Edits:** Modifies only the lines strictly required to satisfy the request. Unrelated formatting or adjacent refactoring is forbidden.\n- **Root-Cause Focus:** Solves problems where callers originate rather than wrapping symptoms downstream.\n\n---\n\n### I Have ADHD\n*Repository:* [ayghri\u002Fi-have-adhd](https:\u002F\u002Fgithub.com\u002Fayghri\u002Fi-have-adhd) by **ayghri**  \n*License:* MIT\n\nThis is an **interaction and communication preference**, not a testing or correctness framework:\n- **Lead with the Answer:** Direct command, file path, or finding in sentence one.\n- **Chunked Information:** Caps bullet lists at 5 items to avoid cognitive overload.\n- **Externalized Progress:** Shows `Step X of Y` on multi-step migrations.\n- **Zero Conversational Noise:** Eliminates pleasantries, fake time estimates, and motivational closers.\n\n---\n\n## 5. Repository Structure\n\n```text\nmy-ai-coding-workflow\u002F\n├── README.md                      # Architecture, philosophy & attribution\n├── CLAUDE.md                      # Master engineering directives (Claude Code & global rules)\n└── prompts\u002F\n    ├── planning.md                # Stage 1: Codebase inspection & plan draft template\n    ├── critical-plan-review.md    # Stage 2: Adversarial plan red-teaming template\n    └── production-readiness-review.md # Stage 3: Diff-grounded code & test audit template\n```\n\n- **`CLAUDE.md`** is the master reference template for your engineering directives and rules. In Claude Code, place it in your global `~\u002F.claude\u002FCLAUDE.md`. It applies across every project you touch (backend, frontend, microservices) without polluting individual repositories.\n- **`prompts\u002F`** contains the three sequential review prompts. Store them in your personal prompt manager, notes, or IDE snippets to append as prompt suffixes during architectural builds.\n\n---\n\n## 6. Adoption Guide\n\n### Step 1: Set Up Global Directives\nInstead of committing configuration files to every project repository, set up `CLAUDE.md` once in your global AI coding agent configuration:\n\n- **Claude Code CLI:** Copy `CLAUDE.md` to your global `~\u002F.claude\u002FCLAUDE.md`.\n- **Gemini CLI \u002F Antigravity:** Add these directives to your global `~\u002F.gemini\u002FGEMINI.md`.\n- **Cursor:** Paste the directives into Cursor Settings > Rules (User Rules).\n\nEvery repository you open will immediately inherit the lifecycle routing, risk approval gates, Ponytail ladder, idempotency, and verification rules.\n\n### Step 2: Use the Three Prompts as Suffixes\nKeep the files in `prompts\u002F` in your personal prompt toolkit or snippet manager. When working on non-trivial architectural changes, use them as prompt suffixes:\n\n1. **When planning a feature:** Append the contents of `prompts\u002Fplanning.md` to your prompt:\n   ```text\n   \u003CYour task description>\n   ---\n   \u003CAppend prompts\u002Fplanning.md>\n   ```\n2. **When red-teaming the plan:** Open a fresh context or subagent, paste the draft plan, and append `prompts\u002Fcritical-plan-review.md`.\n3. **Before merging or completing:** Run a final check by prompting the agent with `prompts\u002Fproduction-readiness-review.md` to audit the raw git diff and verify passing tests.\n\n---\n\n## 7. Credits\n\nAll upstream skills and referenced tooling belong to their respective creators and are used under their original open-source licenses:\n- `superpowers` © Jesse Vincent ([obra\u002Fsuperpowers](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers))\n- `ponytail` © Dietrich Gebert ([DietrichGebert\u002Fponytail](https:\u002F\u002Fgithub.com\u002FDietrichGebert\u002Fponytail))\n- `i-have-adhd` © ayghri ([ayghri\u002Fi-have-adhd](https:\u002F\u002Fgithub.com\u002Fayghri\u002Fi-have-adhd))\n- `diagram-design` © Cathryn Lavery ([cathrynlavery\u002Fdiagram-design](https:\u002F\u002Fgithub.com\u002Fcathrynlavery\u002Fdiagram-design))\n\n*Built by [Vaibhav](https:\u002F\u002Fgithub.com\u002Fvaibhav-space) through thousands of hours of building real systems with AI agents.*\n","这是一个面向生产环境的AI辅助编程工作流方案，提供经过4500+小时实战验证的工程化指令集、精选编码技能库及三阶段审查流程（规划→关键评审→差异审计）。其核心特点是代理无关（agent-agnostic）、强调正确性优先、强制计划先行与最小化实现，并通过结构化提示词和行为约束降低AI幻觉、API误用和静默格式化等风险。适用于中大型软件团队在真实项目中安全、可控地集成AI编码能力，尤其适合需兼顾开发效率与代码可审计性的工程场景。","2026-11-24 04:49:12","CREATED_QUERY"]