28 eval-informed mental models and critical-thinking skills for Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools
JavaScript agent-skillsai-toolsanthropicclaudeclaude-codecritical-thinkingdecision-makingfirst-principlesmental-modelsproblem-solvingsystems-thinking
{
"skill": "thinking-theory-of-constraints",
"problems": [
{
"id": "theory-of-constraints-1",
"prompt": "Our team ships way too slowly and I want to fix throughput. Here's our flow per two-week sprint: the backlog is always full; developers can complete about 9 stories' worth of work; code review clears about 4 stories (two senior reviewers, always backed up, PRs wait 4-5 days); QA can verify 11; deploy is fully automated and handles 20+. Management's plan is to hire two more developers next quarter and buy the team faster laptops. Before we spend that money, tell me where to focus to actually increase how much we ship, and what each part of the team should do.",
"failure_mode": "Spreads effort across non-constraints — endorses hiring more developers and faster hardware (which only inflates work-in-progress in front of review), instead of identifying review as the single binding constraint, exploiting it cheaply (smaller PRs, clear criteria, reviewers prioritize reviewing), and subordinating the rest (pace dev to review capacity) before any spend, since gains anywhere but review don't raise system throughput."
},
{
"id": "theory-of-constraints-2",
"prompt": "Checkout API P95 latency is 600ms and we want it under 250ms. A trace of a typical request breaks down as: TLS/gateway 12ms, auth check 18ms, application/serialization logic 45ms, a single product-catalog DB query 470ms (it's doing a sequential scan on a 20M-row table), Redis cache lookups 8ms, response encode 7ms. The backend team is excited to refactor the serialization layer and adopt a faster JSON library, and someone wants to rewrite the auth middleware in a lower-level language. How should we prioritize the optimization work?",
"failure_mode": "Optimizes visible/easy non-constraints (the 45ms serialization, 18ms auth) that together can't even reach the target, rather than concentrating effort on the one component dominating latency — the 470ms DB query — since shaving milliseconds off anything else is, in Goldratt's terms, a mirage while the real bottleneck is untouched."
},
{
"id": "theory-of-constraints-3",
"prompt": "We're planning a 10-week feature launch with these workstreams and rough estimates against time available: design needs 3 weeks (4 available), the core backend API needs 6 weeks (6 available — no slack), the data-migration script needs 2 weeks (5 available), frontend needs 5 weeks (7 available), and marketing assets need 2 weeks (8 available). Leadership wants to add scope to the frontend and run an extra QA hardening pass, and is also pushing the backend team to 'pick up the pace.' Help me plan this so we actually hit the date, and tell me what to protect.",
"failure_mode": "Treats all workstreams as equally important and piles scope/QA onto streams with slack while telling the bottleneck team to 'go faster,' instead of recognizing the backend API as the zero-slack critical resource, protecting its timeline, subordinating the other streams to feed and unblock it, and refusing extra scope that doesn't serve the constraint — keeping people busy elsewhere doesn't move the date."
},
{
"id": "theory-of-constraints-4",
"prompt": "Our data ingestion pipeline processes customer event streams. Here are the measured throughputs per stage at peak load: event collection (100K events/sec), schema validation (90K/sec), enrichment via internal service (8K/sec, hitting CPU limits), deduplication (75K/sec), and write to the data warehouse (50K/sec). The platform team wants to scale up the deduplication service and upgrade the warehouse write capacity. Where should they focus?",
"failure_mode": "Approves scaling deduplication and warehouse writes because they're also below collection throughput; misses that the enrichment stage at 8K/sec is the single bottleneck setting the entire pipeline's throughput ceiling—scaling anything else just grows the queue before enrichment without improving end-to-end throughput, and the correct focus is exploiting and then elevating the enrichment constraint exclusively."
},
{
"id": "theory-of-constraints-5",
"prompt": "Our mobile app release cycle averages 6 weeks end-to-end. Here's what happens at each stage: feature development (2 weeks), internal QA (1 week), beta testing with external users (2 weeks), and Apple/Google review (1 week, but can't control). The team is asking whether investing in automated testing to reduce QA time from 1 week to 2 days would meaningfully speed up releases. What's your analysis?",
"failure_mode": "Recommends investing in automated testing to cut QA time because any time reduction is improvement; doesn't identify that the 2-week beta testing stage is the actual throughput constraint (and Apple/Google review is fixed), so reducing QA from 7 days to 2 days saves 5 days while beta still takes 14—the cycle time remains dominated by beta, and the investment is in a non-constraint that leaves total cycle time nearly unchanged."
},
{
"id": "theory-of-constraints-6",
"prompt": "We run a marketplace platform and our customer onboarding funnel has the following completion rates at each step: account creation (85%), identity verification (92%), payment method setup (45%), first listing posted (78%), first transaction completed (61%). The growth team is planning campaigns to improve account creation and identity verification rates because they have the most top-of-funnel volume. What should they actually be focused on?",
"failure_mode": "Endorses improving account creation and identity verification because top-of-funnel volume is where most users are; misses that payment method setup at 45% is the funnel constraint—more than half of users who pass identity verification don't add payment—and improving it has the highest leverage on overall onboarding completions; optimizing account creation or identity verification when payment setup is the bottleneck accumulates users in front of the stage that's blocking them."
},
{
"id": "theory-of-constraints-7",
"prompt": "Our ML model training pipeline takes 18 hours end-to-end and we need to get it to 6 hours to run daily retraining. The stages are: data preprocessing (2 hours), feature engineering (3 hours), model training (11 hours, using a single GPU), hyperparameter search (1 hour), and validation/evaluation (1 hour). The ML team wants to parallelize preprocessing and optimize the feature engineering code. Will this get us to 6 hours?",
"failure_mode": "Endorses parallelizing preprocessing and optimizing feature engineering because they contribute meaningfully to total time; misses that even eliminating preprocessing and feature engineering entirely would only get to 13 hours—still more than double the 6-hour target—because model training at 11 hours is the constraint, and no work on the other stages can achieve the goal until training time is reduced (via multi-GPU, distributed training, or model architecture changes)."
},
{
"id": "theory-of-constraints-8",
"prompt": "Our B2B sales process closes deals in an average of 90 days. The stages and their average durations are: lead qualification (5 days), discovery call (10 days to schedule and conduct), proposal preparation (15 days), legal and procurement review (45 days), and contract execution (15 days). The VP of Sales wants to invest in SDR training to speed up qualification and hire more sales engineers to accelerate proposal prep. How should we think about where to invest?",
"failure_mode": "Approves investing in SDR training and sales engineers because both stages have real time and the team is motivated; misses that legal and procurement review at 45 days—half the total cycle—is the binding constraint on deal close time, and no investment in the other stages shortens deals by more than 30 days even under optimistic assumptions; the constraint is customer-side procurement, which requires different interventions (champion coaching, legal redlines library, procurement relationship) than the sales-side stages."
},
{
"id": "theory-of-constraints-9",
"prompt": "We run a SaaS product where new enterprise customer onboarding takes about 10 weeks on average, which is causing sales objections. The process involves: contract and billing setup (1 week), technical discovery (2 weeks), environment provisioning (3 weeks — our ops team manually configures dedicated infrastructure), SSO/integration setup (2 weeks), and end-user training (2 weeks). The customer success team is asking for more headcount to reduce training time. Should we hire?",
"failure_mode": "Recommends hiring for customer success to cut training time; misses that environment provisioning at 3 weeks is the constraint in the onboarding flow, and reducing training from 2 weeks to 1 week saves a single week while the total onboarding time still exceeds 9 weeks due to the manual provisioning step—which warrants automation or a self-serve provisioning path, not training headcount."
},
{
"id": "theory-of-constraints-10",
"prompt": "A data science team produces analytical reports for business stakeholders. The workflow is: data extraction from warehouse (2 hours average), analysis and modeling (12 hours), visualization and writing (6 hours), stakeholder review (48 hours — reports sit in someone's inbox waiting for feedback), and final revision (4 hours). Total cycle time: ~3.5 days. The team wants to automate the data extraction and buy better BI tooling to speed up visualization. Will this help?",
"failure_mode": "Endorses extraction automation and better BI tooling because technical stages are within the team's control and both have real durations; misses that the 48-hour stakeholder review is consuming more time than all other stages combined, and it's the binding constraint on cycle time—automating extraction and faster visualization saves at most 4-5 hours, while the report still sits unreviewed for 2 days; the constraint is stakeholder responsiveness, not team tooling."
},
{
"id": "theory-of-constraints-11",
"prompt": "We're running a production system where job processing throughput is plateauing at 1,200 jobs/hour despite having increased worker count from 10 to 20 workers over the last month with no throughput gain. Here's what we observe: workers are at 40% CPU, database CPU is at 90%, database connection pool is at 95% saturation, Redis is at 25% CPU, message queue backlog is growing. What's causing the plateau and what should we fix?",
"failure_mode": "Recommends adding more workers because 'more capacity should help throughput' or investigates CPU and Redis, which are under load; misses that the database connection pool at 95% saturation combined with high DB CPU is the system constraint—adding workers just adds more clients contending for the saturated pool, which is why doubling workers produced zero throughput gain; the fix is exploit (tune pool size, query efficiency) and elevate (read replicas, connection pooling proxy) the database constraint."
},
{
"id": "theory-of-constraints-12",
"prompt": "Our bug triage process is taking too long. From bug reported to bug fixed, here's the flow: triage by product (average 5 days in the queue), root cause analysis by engineering (1 day), fix development (2 days), code review (4 days), QA verification (1 day). Leadership wants to invest in better automated testing to speed up QA and wants to cross-train more engineers to speed up root cause analysis. What will actually shorten time-to-fix?",
"failure_mode": "Endorses automated testing and cross-training because both stages have real time and the rationale sounds sound; misses that product triage at 5 days and code review at 4 days are the two dominant constraints (together 9 of 13 days), and improving QA (1 day) and root cause analysis (1 day) saves at most 1-2 days at perfect efficiency; the leverage is in accelerating triage (severity SLAs, daily triage sessions) and code review (dedicated review slots, smaller fixes)."
},
{
"id": "theory-of-constraints-13",
"prompt": "Our infrastructure runs on bare-metal servers that we manage ourselves. Server provisioning takes about 3 weeks end-to-end: hardware procurement (1 week), physical racking and OS install (3 days), network configuration (2 days), security hardening (3 days), application deployment (1 day). This delay is blocking new customer environments. The ops team wants to streamline OS installation and application deployment with better automation. How much will that help?",
"failure_mode": "Endorses OS and deployment automation because those are engineering-solvable problems; misses that hardware procurement at 1 week is the dominant constraint, and automating OS install (3 days) and deployment (1 day) at best saves 4 days from a 21-day process still gated by a 7-day procurement lead time—the automation won't change the customer-facing delay without addressing procurement (pre-bought inventory, shorter vendor lead times, or migration to cloud)."
},
{
"id": "theory-of-constraints-14",
"prompt": "Our content moderation system reviews user-generated posts before they go live. The pipeline stages and their processing rates per hour are: automated classifier (50,000 posts/hour), keyword filter (40,000/hour), image scan (5,000/hour — GPU-limited), human review queue for flagged content (800/hour — team capacity), and publish (100,000/hour). We're building up a growing backlog that's causing post delays. The trust and safety team wants to hire more content classifiers and improve the keyword filter. What do you recommend?",
"failure_mode": "Recommends improving classifiers and keyword filters because they handle large volumes; misses that human review at 800/hour is the binding constraint—everything upstream of the human review queue processes orders of magnitude faster, so improving classifiers just fills the queue faster without increasing the rate at which posts clear review; the constraint is human review capacity, which requires either more reviewers, better tools to speed reviewers, or ML models that reduce the flagging rate to the human capacity ceiling."
},
{
"id": "theory-of-constraints-15",
"prompt": "We're building an AI agent pipeline that handles complex user requests end-to-end. Profiling a representative batch of 1,000 requests shows: intent classification (0.2 seconds), tool selection (0.1 seconds), external API calls (avg 4.8 seconds, ranging from 0.5 to 22 seconds), result synthesis by LLM (1.1 seconds), and response formatting (0.1 seconds). Average total latency is 6.3 seconds, and we want to get to 3 seconds. The team wants to optimize the LLM synthesis step with a smaller/faster model and tune the tool selection logic. Will this get us to the target?",
"failure_mode": "Recommends optimizing LLM synthesis and tool selection because they're within the team's control and 'every millisecond counts'; misses that external API calls at 4.8 seconds average (and up to 22 seconds) are the binding constraint—they consume 76% of average latency and no improvement to the other stages can reach the 3-second target while API calls average 4.8 seconds; the path to 3 seconds requires constraining or parallelizing the external API calls, not tuning the sub-second stages."
},
{
"id": "theory-of-constraints-16",
"prompt": "Our customer support team resolves tickets in an average of 4.2 days. The workflow is: initial triage and categorization (4 hours), first response to customer (8 hours), engineering escalation if needed (48 hours — these account for 35% of tickets), resolution and testing (12 hours for non-escalated, 6 hours for escalated after the 48-hour wait), and customer confirmation (24 hours). We want to get average resolution under 2 days. The support lead wants to hire Tier-1 agents to speed up triage and first response. Will this work?",
"failure_mode": "Endorses hiring Tier-1 agents because first response at 8 hours seems slow and is addressable; misses that the 48-hour engineering escalation wait (affecting 35% of tickets, the highest-impact segment) is the binding constraint on average resolution time—it alone exceeds the 2-day target for a third of tickets, and no Tier-1 investment changes that; the constraint is engineering escalation queue capacity and triage accuracy that reduces unnecessary escalations."
},
{
"id": "theory-of-constraints-17",
"prompt": "We run a multi-tenant SaaS platform and every new enterprise customer requires a full security review before we can onboard them. Here's the security review process stages and durations: self-assessment questionnaire completion by customer (avg 5 business days), internal security team review (3 days), pen test if required (10 days, required for 40% of customers), legal review of DPA (3 days), and final sign-off (1 day). Average total is 15-22 days depending on pen test. The sales team says this is causing deal slippage. Where should we focus to reduce this time?",
"failure_mode": "Recommends improving the questionnaire process or streamlining internal security review because they affect all customers; misses that pen testing at 10 days affects 40% of customers and is likely the dominant driver of the 22-day tail—and for those customers the process doubles in length due to that single stage; exploiting the pen test constraint (pre-scheduled slots, pre-certified infrastructure modules, continuous pen test programs) would compress the high-impact path without ignoring the universal stages."
},
{
"id": "theory-of-constraints-18",
"prompt": "Our infrastructure team is trying to improve how quickly they respond to and resolve cloud cost anomalies. The workflow from anomaly to resolution takes about 9 days on average: cost anomaly detected (automated, <1 hour), anomaly assigned to team member (2 days — notification goes to a shared inbox), root cause analysis (1 day), remediation plan prepared (1 day), approval from engineering director (3 days — director is frequently in meetings), and implementation (1 day). The team lead wants to invest in better cost detection tooling. Will this help?",
"failure_mode": "Endorses better detection tooling because faster detection seems obviously valuable; misses that automated detection is already near-instantaneous (<1 hour) and is not the constraint—the 2-day assignment delay and the 3-day director approval are the dominant constraints totaling 5 of the 9 days; improving detection that already works in under an hour saves near-zero time, while fixing the shared inbox routing and the approval bottleneck (delegation, async approval, threshold-based auto-approval) are the actual leverage points."
},
{
"id": "theory-of-constraints-19",
"prompt": "A software consultancy delivers client projects in an average of 14 weeks. The delivery process goes through: scoping and proposal (3 weeks), contract and legal (2 weeks), team assembly and onboarding (3 weeks — finding available consultants with right skills), active development (4 weeks), and client review and acceptance (2 weeks). The firm wants to improve utilization and is investing in a better CRM to accelerate scoping and proposal. How should they think about throughput improvement?",
"failure_mode": "Endorses CRM investment for scoping and proposals because sales process improvement is a natural consulting firm lever; misses that team assembly at 3 weeks—finding available consultants with the right skills—is likely the throughput constraint that determines when projects can start at all, and no improvement to scoping reduces the queue if the rate-limiting step is bench availability; the constraint is talent supply and skills coverage, not proposal speed."
},
{
"id": "theory-of-constraints-20",
"prompt": "Our event-driven architecture processes user actions through an event bus. We're seeing increasing end-to-end latency from user action to database persistence. Here are the stage latencies: event publish to Kafka (3ms), event consumption by consumer service (5ms), consumer business logic processing (8ms), downstream service call for enrichment (180ms), and database write (12ms). Total average: ~210ms, and we want to get under 50ms. The team wants to optimize the database write layer and tune the Kafka configuration. What should they do?",
"failure_mode": "Endorses optimizing database writes and Kafka tuning because they're infrastructure layers the team owns; misses that the downstream service enrichment call at 180ms is the single constraint responsible for 86% of total latency—no optimization to Kafka (5ms) or database writes (12ms) can reach the 50ms target while the enrichment call takes 180ms; the constraint requires either eliminating the synchronous enrichment call, making it asynchronous, or caching enrichment results."
},
{
"id": "theory-of-constraints-21",
"prompt": "We run a grocery delivery service. Our fulfillment pipeline has the following capacities per hour: order intake (200 orders/hr), order picking in warehouse (150 orders/hr), packing and quality check (180 orders/hr), dispatch and routing (300 orders/hr), and delivery (120 orders/hr — limited by driver count). We're planning to invest in warehouse automation to improve picking speed and routing software to improve dispatch efficiency. Will this improve our delivery throughput?",
"failure_mode": "Endorses warehouse automation and routing software because both are under-capacity compared to order intake and have clear improvement paths; misses that delivery at 120 orders/hour is the binding system constraint—even perfect picking and routing still exit through the 120-order delivery bottleneck, and investing in stages above that capacity does nothing to increase delivered orders per hour until driver capacity is elevated."
},
{
"id": "theory-of-constraints-22",
"prompt": "Our company runs background credit checks for our lending product. The credit decisioning pipeline stages and their per-day throughput capacities are: application intake (5,000/day), identity verification via third-party API (4,800/day), credit bureau pull (4,500/day), internal risk scoring model (3,200/day), underwriting review (500/day — manual review by 5 underwriters), and loan offer generation (10,000/day). We want to approve more loans per day. The data team wants to improve the risk scoring model accuracy. Will that help?",
"failure_mode": "Endorses improving the risk model because better accuracy reduces risk and is a natural ML team initiative; misses that manual underwriting review at 500/day is the binding constraint setting the system ceiling—at less than a sixth of the risk model's capacity, no improvement to scoring model throughput or any other stage will increase daily approvals past 500 until underwriter capacity or automation is addressed."
},
{
"id": "theory-of-constraints-23",
"prompt": "We're a publisher running an editorial workflow for long-form articles. From pitch to published, the stages and their processing rates per week are: pitch submission (40 pitches/week), editorial pitch review (30 pitches/week approved), writer assignment (28/week matched to writers), draft submission (25/week), copy editing (12/week — only 2 editors), legal/fact-check review (20/week), and publication (50/week capacity). We're falling behind our publishing goals. The editorial director wants to invest in better pitch management software and recruit more writers. What would actually improve throughput?",
"failure_mode": "Endorses pitch management software and more writers because pitches and writer assignment are early-stage levers the director controls; misses that copy editing at 12/week is the binding constraint capping the entire pipeline—regardless of how many pitches are approved or how many writers submit drafts, only 12 articles per week can clear copy editing, and adding writers increases the queue ahead of the bottleneck rather than the publication rate."
},
{
"id": "theory-of-constraints-24",
"prompt": "A fintech company is trying to reduce the time for a new user to become fully activated (able to send and receive money). The activation steps and their average durations are: account creation (2 minutes), email verification (3 hours — waiting for user), KYC document submission (10 minutes), KYC review and approval (72 hours — compliance team), bank account linking (5 minutes), and test transaction (1 minute). Total time: ~76 hours. They want to get this to 24 hours. The product team wants to redesign the KYC document upload flow to make it faster to submit. What's the path to 24 hours?",
"failure_mode": "Endorses KYC upload redesign because document submission friction is addressable by product and UX improvement; misses that document submission takes 10 minutes and is not the constraint—KYC review at 72 hours is the single stage consuming 95% of activation time, and no upload UX improvement gets near the 24-hour target while review takes 3 days; the constraint requires automated KYC decisioning, risk-tiered review, or provisional activation before review completes."
},
{
"id": "theory-of-constraints-25",
"prompt": "Our platform engineering team deploys infrastructure changes using a change management process. From change request to deployed: change request submitted (1 day), technical review by senior engineer (5 days — 2 senior engineers review all changes, always backed up), security review (1 day), change board approval (3 days — meets weekly), implementation window (0.5 days), and post-deployment verification (0.5 days). Total: ~11 days. Leadership wants to hire more junior engineers to help with implementation and improve the automated security scanning to reduce security review time. What will actually reduce change cycle time?",
"failure_mode": "Endorses junior engineer hiring and better security scanning because both are concrete, actionable improvements; misses that technical review at 5 days and change board meeting cadence (causing ~3 days average wait) are the dominant constraints totaling 8 of 11 days, while implementation (0.5 days) and security review (1 day) together account for only 1.5 days—hiring implementation help saves near-zero time, and the leverage is in the technical review queue (more reviewers with this skill, tiered review by risk) and change board frequency."
}
]
}