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-triz",
"problems": [
{
"id": "triz-1",
"prompt": "Our autocomplete endpoint is stuck. Product wants suggestions to feel instant (under 50ms), but they also want each suggestion ranked by a heavyweight relevance model that takes 200-400ms per query against our 8M-document index. Right now we're arguing about it: the backend team says we have to relax the latency target, the search team says we have to use a cheaper model and accept worse ranking. Every option on the table sacrifices one to get the other. We're on Postgres + a Go service, ~3k queries/sec at peak. How should we approach this so we don't have to pick between fast and well-ranked?",
"failure_mode": "Accepts the trade-off as fundamental and just helps pick a compromise (lower the latency bar OR downgrade the model), rather than separating the conflicting requirements in time/space (e.g. fast approximate prefix match served instantly, expensive ranking precomputed at write-time or applied async) so both goals are met."
},
{
"id": "triz-2",
"prompt": "Design question for our mobile sync layer. Users demand a tiny on-device cache so the app stays lightweight and installs fast on cheap Android phones, and they also complain constantly about cache misses when they go offline on the subway, which means they want a huge cache that holds everything. Same cache, opposite size requirements. Our PM keeps asking 'so how big should the cache be?' as if there's one right number. We sync ~2GB of records per active user. What's the right way to think about this instead of just picking a middle-of-the-road cache size that satisfies nobody?",
"failure_mode": "Tries to tune a single cache-size parameter to a compromise value, instead of recognizing the cache must be both small and large and resolving it by separation on condition (predictive prefetch of likely-needed records, tiered/eviction by access pattern) so the same element holds opposite properties for different contexts."
},
{
"id": "triz-3",
"prompt": "We need to ship a public webhook system for our API. Customers want delivery guarantees and ordering, which pushes us toward a stateful, heavy retry-and-sequencing service. But we also want zero new operational burden on our 3-person platform team, who are already drowning. The vendor quotes for a managed event bus are out of budget. Leadership keeps framing it as 'either we build a robust delivery service and eat the ops cost, or we ship best-effort and disappoint enterprise customers.' Before we resign ourselves to that, is there a way to get reliable ordered delivery without standing up a whole new system to babysit?",
"failure_mode": "Treats 'robust delivery vs. low ops burden' as an unavoidable choice and recommends one side, rather than doing a resource analysis of what already exists (the existing DB transaction log, an outbox table, the API gateway, customers' own retry behavior) to achieve reliability by reusing infrastructure already running instead of adding a new component."
},
{
"id": "triz-4",
"prompt": "We're building a real-time collaborative document editor. Users need to see each other's changes instantly (low-latency, optimistic updates), but they also need a consistent document state that resolves conflicts correctly (which requires coordination overhead). Our team is stuck: every design that achieves low perceived latency causes conflicts, and every design that's conflict-free feels slow. Both are non-negotiable requirements according to product. How do we think about this instead of just accepting a laggy or conflict-prone product?",
"failure_mode": "Accepts the latency-vs-consistency trade-off as fundamental and recommends picking a point on the curve, rather than separating the conflicting requirements in time (apply change locally immediately, reconcile with server state asynchronously using CRDTs or OT) so the user experiences immediate response while consistency is maintained without that latency being perceptible."
},
{
"id": "triz-5",
"prompt": "Our CI pipeline needs to be both fast (developers need < 5 minute feedback to stay in flow) and thorough (full regression suite is required for compliance and catches real bugs). Right now the full suite takes 40 minutes. Running a subset gives 5-minute feedback but misses 30% of historical bugs. We've been going back and forth for a month: either we slow down development, or we accept missed bugs. Is there a third path that doesn't require us to choose?",
"failure_mode": "Recommends either accepting slower CI or reducing coverage as the only available options, rather than separating the requirements in time (fast targeted test selection based on change impact runs immediately; full suite runs async and blocks merge only if it fails) or in condition (different pipeline tiers for different change types), so both the 5-minute flow and the full coverage are achieved without compromise."
},
{
"id": "triz-6",
"prompt": "We're designing an API rate limiter. The security team needs limits to be strict and consistent — the same client should get the same limit every time so we can reason about capacity. But the product team needs limits to be flexible — enterprise customers should get burst capacity during product launches without having to pre-negotiate every spike. The security and product requirements are diametrically opposed. How do we resolve this instead of negotiating a middle limit that's too tight for enterprise and too loose for abuse prevention?",
"failure_mode": "Tries to negotiate a middle rate limit value that compromises both requirements, rather than separating the conflicting states by condition (strict limits apply to unauthenticated and basic tiers, burst credits or dynamic limits apply to authenticated enterprise accounts based on their contract tier) — resolving the contradiction by applying different behaviors in different conditions rather than finding one setting."
},
{
"id": "triz-7",
"prompt": "We have a distributed tracing system. When tracing is on, we get full visibility into request paths and latency — invaluable for debugging. But it adds 8-12ms to every request and roughly 20% overhead on our data pipeline. When tracing is off, the system is fast but we're flying blind. Engineering wants full tracing always-on. Ops wants it off because of the overhead. We've been toggling it for a year depending on who's had a bad week. What would actually resolve this?",
"failure_mode": "Accepts 'tracing on vs. tracing off' as a binary toggle and recommends a policy for when to use each, rather than separating the conflicting requirements by condition (sample-rate tracing at 1-5% for baseline observability with zero overhead on the other 95%, full tracing activated on-demand or for specific request IDs, error conditions, or canary traffic) so both visibility and performance requirements are met simultaneously."
},
{
"id": "triz-8",
"prompt": "We're designing the authentication flow for a consumer app. The security team wants users to re-authenticate frequently (short session tokens) to reduce the window of stolen-credential exposure. The UX team says frequent re-auth kills retention — users abandon when hit with login prompts. Both requirements are backed by real data: our security audits and our churn data. Setting a session length feels like a lose-lose negotiation. How should we think about designing this?",
"failure_mode": "Tries to find an acceptable session timeout value that balances both teams' concerns, rather than separating the conflicting requirements by condition (trust signals: low-risk actions on a known device with no anomaly signals use long-lived tokens; high-risk actions like payment or account changes trigger step-up authentication regardless of session age) — resolving the contradiction through risk-based condition separation rather than a single fixed parameter."
},
{
"id": "triz-9",
"prompt": "We're building a code indexing service for a large monorepo with 2M files. The IDE plugin needs index results in under 100ms for real-time completions, but a complete index of 2M files takes 4-6 hours to build from scratch. Incremental updates are faster but drift from correctness over time. Our architect says 'pick: fast and stale, or slow and correct.' Product says both are required. How do we frame this to find a path out of the contradiction?",
"failure_mode": "Accepts 'fast and stale vs. slow and correct' as an unavoidable trade-off, rather than separating in time (serve completions from the incremental real-time index which is correct for recently-touched files, trigger background full-index rebuild periodically and apply as a silent swap, give the IDE a staleness-aware confidence signal) so both the 100ms response and eventual full correctness are achieved."
},
{
"id": "triz-10",
"prompt": "We're designing error handling for our public API. Developers want verbose, detailed error messages that explain exactly what went wrong, what parameter was invalid, and how to fix it — great for debugging. Security needs vague error messages that don't reveal schema details, valid user IDs, system paths, or state that could be used by attackers to enumerate resources. Our current API returns 'error: invalid request' for everything, which developers hate. We've been arguing about how much detail is the right amount. Is there a way out of this?",
"failure_mode": "Recommends finding a moderate level of detail that 'balances' developer experience and security, rather than separating by condition (authenticated developers in test/dev environments get full debug errors; unauthenticated and production requests get generic errors with a correlation ID they can use to retrieve detailed logs through a secure authenticated channel) — resolving the contradiction by applying different behaviors to different contexts."
},
{
"id": "triz-11",
"prompt": "Our recommendation engine's model needs to be stable and deterministic so that A/B tests can run for 2 weeks and produce reliable results without random variation from model updates. But the ML team wants to deploy model improvements continuously — sometimes daily — to improve user outcomes. A stable model means stale recommendations; a continuously updating model means noisy experiments. Product analytics and ML teams are in a standoff. How might this contradiction be resolved?",
"failure_mode": "Accepts that model stability and continuous deployment are mutually exclusive and recommends a deployment cadence compromise, rather than separating in space (experiment traffic assigned to 'locked' model snapshots while the live model updates continuously, with clear traffic partitioning that maintains experiment integrity while allowing production improvement) — resolving the contradiction by applying different model instances to different contexts."
},
{
"id": "triz-12",
"prompt": "We're building a search feature that should handle both exact-match lookups (user typing an account number or order ID — must be precise and fast) and fuzzy natural-language search (user describing a product or issue — must be recall-oriented and tolerant). Using a single search engine tuned for one mode degrades the other. Our team is debating whether to build two entirely separate search systems. Is that the right framing?",
"failure_mode": "Frames the choice as either one unified search (tuned as a compromise) or two fully separate systems (doubled infrastructure), rather than separating by condition: detect query intent at classification time (structured ID pattern vs. natural language) and route to the appropriate handler — achieving both precision and recall without building fully redundant infrastructure, and resolving the contradiction through separation on input condition."
},
{
"id": "triz-13",
"prompt": "We run a data pipeline that processes customer transaction records. Compliance requires data to be fully encrypted at rest and in transit. Our data science team needs raw plaintext access to build and train ML models. Encrypting everything means the data science team can't use the data; decrypting everything for analysis weakens our compliance posture. Every proposal on the table involves either security risk or friction for data scientists. What's the right way to think about this instead of negotiating a middle ground on data access?",
"failure_mode": "Recommends a policy compromise on who can access unencrypted data or how often, rather than separating the conflicting requirements structurally: the data can be encrypted in storage and transit (satisfying compliance) and made available through a controlled, audited compute environment where analysis happens on encrypted data or tokenized synthetic data — resolving the contradiction by separating storage/transit encryption from the processing context where access is controlled."
},
{
"id": "triz-14",
"prompt": "Our database schema needs to be flexible — we're early stage, requirements change weekly, and we can't afford to be constrained by a rigid schema. But we also need to be consistent — downstream analytics queries, API contracts, and third-party integrations all rely on field names and types being stable. We're using a schema-less document store and it's becoming chaos. Switching to a strict schema means painful migrations every time requirements change. How do you resolve the flexibility-vs-consistency tension without just accepting one?",
"failure_mode": "Recommends choosing between document store flexibility and relational schema consistency as alternative architectural decisions, rather than separating in space: use a typed contract layer at the API and integration boundaries (providing consistency to consumers) while keeping an internal representation that accommodates evolution — resolving the contradiction by applying different properties at different architectural layers."
},
{
"id": "triz-15",
"prompt": "We're designing an audit logging system. The compliance team needs audit logs to be immutable — no one should be able to delete or alter them. But our operations team needs to be able to purge old logs for data minimization compliance under GDPR, which sometimes requires deleting specific user records. Both are legal requirements from different regulations. Immutability and selective deletion are mutually exclusive in a traditional system. How do we design a system that satisfies both?",
"failure_mode": "Accepts that immutability and the ability to purge specific records are structurally incompatible and recommends picking the higher-priority compliance requirement, rather than separating the requirements architecturally: store audit records in a way where user-attributable fields are pseudonymized with an encrypted key that can be destroyed (cryptographic erasure), making the record unreconstructable to a person while the audit event remains immutable — resolving the contradiction by separating 'the record exists' from 'the record is personally identifiable.'"
},
{
"id": "triz-16",
"prompt": "We're building a code deployment system. Engineers want deployments to be fast — ideally under 2 minutes from merge to production so they can iterate quickly. Operations wants deployments to be safe — meaning canary analysis, automated smoke tests, and a 10-minute observation window before full traffic shift. The two requirements add up to 12+ minutes minimum. The teams are negotiating a timeline compromise. Is there a way to satisfy both requirements fully?",
"failure_mode": "Recommends a timeline compromise (e.g., 6 minutes with lighter canary) rather than separating in time: for stateless services with no schema migrations, fast-path deployment (2 minutes to full canary at 1% traffic) begins immediately, with async observation and automated rollback — engineers see their change 'in production' in 2 minutes while safety checks run in parallel rather than sequentially; the contradiction is resolved by making safety asynchronous rather than a prerequisite."
},
{
"id": "triz-17",
"prompt": "We need our API documentation to be versioned and stable — enterprise customers build integrations against documented behavior and need guarantees that don't change. But we also need documentation to always reflect the current state of the API — stale docs cause support tickets and implementation errors. The same docs page must be both 'stable and guaranteed' and 'always current.' Our docs team is spinning on how to maintain both properties without two complete documentation sites. How do you think about this?",
"failure_mode": "Recommends either a single docs site (accepting some staleness) or two parallel sites (accepting maintenance burden), rather than separating in scale/level: docs at the endpoint/schema level are generated directly from the code contract (always current), while behavioral guarantees and deprecation policies exist at a separate 'API contract' layer that changes on an explicit schedule with announcement — resolving the contradiction by placing different types of documentation at different stability layers."
},
{
"id": "triz-18",
"prompt": "Our job queue needs to process tasks with low latency for interactive user-facing requests (sub-second response expected) and also handle large batch jobs that take minutes to complete. If we allocate workers primarily to fast jobs, batch jobs never complete. If we allocate to batch jobs, interactive requests wait. Adding more workers is expensive and doesn't fully solve the problem because batch jobs tie up workers for long periods. The team is debating worker pool sizing ratios. Is that the right problem to solve?",
"failure_mode": "Evaluates worker pool ratios as the key design variable, accepting that fast and slow jobs compete on the same resource, rather than separating in space: dedicated worker pools for different job classes with their own resources and policies (interactive pool: many small workers, aggressive preemption; batch pool: fewer large workers with longer time limits) — the contradiction is resolved by making the jobs not compete for the same resource rather than tuning the competition."
},
{
"id": "triz-19",
"prompt": "We're building a feedback system in our B2B product. We want to ask users for feedback frequently enough to get actionable signal (ideally after every key workflow). But enterprise customers have told us explicitly that frequent in-app surveys are distracting and create the perception that we're not confident in our product — too many surveys and they'll ask us to turn them off entirely. High feedback frequency and low interruption are both required by different stakeholders. How do you design around this?",
"failure_mode": "Recommends finding a survey frequency that 'balances' the competing stakeholder concerns (e.g., once a week) rather than separating by condition: passive feedback mechanisms (implicit signals from workflow completion time, feature abandonment, error recovery patterns) gather frequent high-volume signal with zero interruption, while explicit survey prompts are reserved for moments of natural workflow completion or detected struggle — resolving the contradiction by separating the signal collection modality from the frequency constraint."
},
{
"id": "triz-20",
"prompt": "We maintain an internal Python library used by 40 teams across our company. We want the library to be easy to upgrade — single version, everyone on the latest, no ecosystem fragmentation. But individual teams need to stay on specific versions for stability — they can't afford breaking changes in the middle of a release cycle. We're currently at 7 different versions in production. The library team keeps asking teams to upgrade; teams keep resisting. How do you think about this contradiction structurally?",
"failure_mode": "Recommends either a strict single-version policy (forcing upgrade pain) or accepting version fragmentation as the status quo, rather than separating in time (library publishes strict semantic versioning with a defined 2-version support window; breaking changes are batched into major releases on a predictable schedule so teams can plan upgrades) and separating interface from implementation (deprecation warnings in code before removal, automated migration tooling) — resolving the contradiction by making 'being current' achievable within team constraints."
},
{
"id": "triz-21",
"prompt": "Our multi-tenant SaaS platform needs to provide performance isolation between tenants (a heavy tenant shouldn't slow down other tenants' experience) while also maximizing hardware utilization (idle capacity from quiet tenants should benefit busy ones). These two requirements are directly opposed: strict isolation wastes capacity; maximum sharing destroys isolation. We've been negotiating compute allocation percentages but every setting we try disappoints one side. How do we get both?",
"failure_mode": "Optimizes a fixed allocation percentage that balances the opposing requirements, accepting that isolation and utilization are traded against each other, rather than separating dynamically by condition: tenant traffic is isolated up to a guaranteed baseline (protecting against noisy neighbors) but excess capacity is offered as burst headroom when available (maximizing utilization) — the contradiction is resolved by separation in condition, where isolation applies as a floor and sharing applies to capacity above that floor."
},
{
"id": "triz-22",
"prompt": "We're debating how to handle database migrations in our continuous deployment pipeline. The deployment team wants migrations to run automatically at deploy time so schema and code are always in sync. The DBA team wants migrations to be human-reviewed and manually triggered because some migrations are dangerous (table locks, data transformations, large table DDL). Auto-migration is required for CD velocity; manual migration is required for safety. Our current policy — all migrations manual — means developers wait 2-3 days for DBA sign-off on even trivial nullable-column additions. How do you resolve this?",
"failure_mode": "Accepts that 'auto vs. manual migration' is a single policy choice and argues for one approach, rather than separating by condition: classify migrations by risk profile at commit time (additive/backward-compatible = auto; destructive/lock-generating = manual DBA review path), implement automated analysis that catches dangerous patterns and routes them to the manual flow — resolving the contradiction by applying different procedures to different migration types rather than a blanket policy."
},
{
"id": "triz-23",
"prompt": "We have an AI-powered content moderation system. It needs to be fast (decisions in under 100ms to avoid UX disruption) and accurate (false positives mean legitimate content is blocked, harming creators; false negatives mean harmful content reaches users). Our current model is fast but imprecise, and adding precision increases inference time to 800ms. The product team says 100ms is hard; the trust & safety team says accuracy is non-negotiable. How do we get out of this?",
"failure_mode": "Recommends tuning the model threshold to find an acceptable accuracy-latency balance point rather than separating the conflicting requirements in time: a fast lightweight model makes an immediate binary decision (clearly safe = show immediately, clearly harmful = block immediately) while borderline content is shown optimistically and queued for async high-accuracy review with retroactive action if needed — resolving the contradiction by separating the latency-sensitive decision from the accuracy-sensitive decision."
},
{
"id": "triz-24",
"prompt": "We're designing the storage architecture for a new analytics product. Our customers need to query recent data with sub-second latency (last 30 days of events, interactive dashboards). They also need to run historical analyses on years of data that can take minutes. Optimizing storage for sub-second queries on recent data (hot storage, expensive) makes historical queries prohibitively costly. Optimizing for historical queries (cold storage, cheap) makes recent queries slow. Every storage solution we've evaluated forces us to pick one. How do we design our way out of this?",
"failure_mode": "Recommends choosing a storage technology and accepting the corresponding trade-off for the other query type, rather than separating in space: tiered storage architecture where recent data lives in fast columnar storage and older data is automatically migrated to cheaper cold storage, with a query routing layer that federates queries across tiers transparently — resolving the contradiction by applying different storage properties at different positions in the data lifecycle."
},
{
"id": "triz-25",
"prompt": "We're building a developer CLI tool that needs to be both standalone (no installation dependencies, works offline, ships as a single binary) and extensible (third-party plugins can add new commands and behavior). A fully self-contained binary can't load external plugins at runtime. A plugin-capable architecture requires a runtime plugin loader and breaks the offline/single-binary requirement. The CLI team has been debating whether to just pick one architecture. Is there a way to get both properties?",
"failure_mode": "Recommends either a self-contained binary (sacrificing extensibility) or a plugin architecture (sacrificing the standalone property) as the fundamental architectural choice, rather than separating by condition: core functionality ships in a single binary with a stable plugin interface, and plugins are fetched and cached at first use from a registry (online mode) or bundled into a user-specific build (offline mode) — resolving the contradiction by separating the runtime model from the distribution model."
}
]
}