jiayaoqijia
- 3.9k skills
- 0 followers
- 81 repo stars
- 3 days ago last updated
- ▌ Pin Metric Definitions In One Place · jiayaoqijia bundleUse when a number means different things to different people or two dashboards disagree. Canonicalises each metric as one versioned definition with an owner and SQL.
- ▌ Price A Discount By Its Margin Cost · jiayaoqijia bundleUse when sales proposes a discount and finance needs to know what volume it must buy back. Converts a discount into the extra units required to hold gross profit before it is approved.
- ▌ Price Dependency Risk And Lead Time · jiayaoqijia bundleUse when a plan waits on something you do not control — another team, a vendor, an approval. Makes the wait an explicit dated task with a lead time and a fallback, instead of a blank in the schedule.
- ▌ Forecast Completion From Throughput · jiayaoqijia bundleUse when you need a completion date for a fixed backlog and can count how fast work actually finishes. Samples historical throughput and reports the date at a chosen percentile instead of one linear projection.
- ▌ Freeze Requirements Before Building · jiayaoqijia bundleUse when starting a build whose scope could drift mid-task. Snapshot the accepted requirements to a hash-stamped file and make every later change a visible, numbered delta.
- ▌ Freeze Writes To Contain Corruption · jiayaoqijia bundleUse when bad data or a bad deploy is actively writing to a store you cannot roll back instantly — puts the system into a global write-freeze so corruption stops spreading while you assess and repair.
- ▌ Handle Block Gaps And Skipped Slots · jiayaoqijia bundleUse when a chain skips block numbers through empty slots or missed proposers. Advances the cursor over absent heights by confirming parent linkage, instead of treating an absent block as a fetch failure.
- ▌ Handle Digital Sales Tax Thresholds · jiayaoqijia bundleUse when selling digital goods across jurisdictions. Tracks economic-nexus thresholds, computes tax on the taxable base, and keeps collected tax out of revenue.
- ▌ Implement Travel Rule Data Transfer · jiayaoqijia bundleUse when a transfer between two virtual-asset service providers must carry originator and beneficiary data, and you are wiring the IVMS 101 payload, the counterparty handshake, or the fallback when the peer has no endpoint.
- ▌ Isolate Tenants In One Vector Store · jiayaoqijia bundleUse when one vector database serves multiple tenants and a query could cross the boundary. Uses namespaces or mandatory tenant filters with a boot-time assertion that isolation is active.
- ▌ Keep Container Filesystem Ephemeral · jiayaoqijia bundleUse when an app silently stores state on the container's writable layer and loses it on restart. Moves any data that must survive to a volume or external service and treats the container layer as disposable.
- ▌ Keep Secrets Out Of Terraform State · jiayaoqijia bundleUse when IaC variables or resources may hold credentials. Keeps plaintext secrets out of state and plan files, which sit in a bucket and a CI artefact by default.
- ▌ Log Prompts Without Leaking Secrets · jiayaoqijia bundleUse when capturing prompts and responses for debugging. Redact secrets and personal data before they hit logs or a tracing backend, and keep the redaction working on joined log lines.
- ▌ Debug A Heisenbug Under Observation · jiayaoqijia bundleUse when a bug disappears when you add logging, a debugger, or a delay. Changes the observation method so the timing-sensitive race is captured instead of hidden.
- ▌ Decide Plan Ahead Vs React Per Step · jiayaoqijia bundleUse when an agent must choose between committing to a written plan and reacting step by step. Pick per task by how much of the path is knowable up front.
- ▌ Decline Work With A Costed Tradeoff · jiayaoqijia bundleUse when a request does not fit the time available and a flat "no" would read as obstruction. Declines by showing the cost and what it would displace, so the tradeoff is the requester's to make.
- ▌ Deduplicate Records Before Analysis · jiayaoqijia bundleUse when combining rows from multiple sources or a crawl. Removes exact and near-duplicate records before counting so totals are not inflated.
- ▌ Design A First Week Onboarding Plan · jiayaoqijia bundleUse when a new engineer or agent starts on a team. Maps day-by-day outcomes with a first merged change by day two, a named buddy, and an environment that runs on day one, so the week ends with a contribution not just orientation.
- ▌ Detect Simpsons Paradox In A Metric · jiayaoqijia bundleUse when an aggregate moves one way while its parts move the other. Checks for Simpson's paradox before trusting a pooled rate.
- ▌ Detect Spec Drift Against The Build · jiayaoqijia bundleUse when code and spec may have diverged mid-build, or before a release review. Diffs implemented behaviour against the frozen spec and logs each divergence with its owner.
- ▌ Detect Vote Buying In Bribe Markets · jiayaoqijia bundleUse when assessing whether DAO votes are being bought, or before relying on a delegation as independent. Correlates bribe-market deposits with delegate voting and flags concentrated paid influence.
- ▌ Drain In Flight Requests On Prestop · jiayaoqijia bundleUse when rolling restarts drop requests because the pod leaves endpoints and dies too fast. Adds a preStop drain hook that waits for load-balancer propagation before the process exits.
- ▌ Drill The Governance Emergency Path · jiayaoqijia bundleUse when rehearsing a DAO's emergency response before it is needed. Runs a malicious proposal through a fork, exercises the cancel and guardian path, and times the response.
- ▌ Break Down Request Timing With Curl · jiayaoqijia bundleUse when a request is slow and you cannot tell whether DNS, TCP connect, TLS, or the server's first byte is the culprit. Split the total with curl's -w timing variables and read where the milliseconds actually go.
- ▌ Build A Resettable Practice Sandbox · jiayaoqijia bundleUse when learners need to practice against a realistic system without risking real data. Provides a containerised, seeded environment with a one-command reset, so mistakes are free and every session starts identical.
- ▌ Cap Agent Tool Call Recursion Depth · jiayaoqijia bundleUse when an agent can call a tool that may invoke the agent again, or spawn subagents. Bound the depth and total descendants so delegation cannot run away.
- ▌ Capture A Lesson As A Minimal Repro · jiayaoqijia bundleUse when a surprising bug or outage should be remembered. Reduces the incident to a committed 5-line reproducer plus the one-line rule, so the lesson is teachable and replayable instead of a story in chat.
- ▌ Choose A Stablecoin Settlement Rail · jiayaoqijia bundleUse when picking which stablecoin and chain to settle payments on. Compares reserve quality, redemption, finality, freeze risk, and fees for a concrete payment volume.
- ▌ Classify A Stablecoin Peg Mechanism · jiayaoqijia bundleUse when you must decide how a stablecoin holds its peg before relying on it. Separates fiat-backed, crypto-backed, and algorithmic designs and names the exact failure mode of each.
- ▌ Close An Incident And Resume Normal · jiayaoqijia bundleUse when impact has stopped and the response must stand down without loose ends. Runs a close-out checklist of residue, monitoring, comms, and followups before declaring all-clear.
- ▌ Confirm Verbal Agreement In Writing · jiayaoqijia bundleUse when scope, price, or a deadline was agreed verbally or on a call. Send a short written recap with a deadline for objection, so the shared understanding is checkable.
- ▌ Constrain Decoding To A JSON Schema · jiayaoqijia bundleUse when you need reliably-typed output from a model. Prefer the provider's structured-output or grammar-constrained decoding over prompt-and-hope, and know which constraints the engine actually enforces.
- ▌ Cut Over With Blue Green Deployment · jiayaoqijia bundleUse when a deploy must not cause partial-version downtime — runs two full environments, verifies green in isolation, flips one selector, and keeps blue warm for instant rollback.
- ▌ Doomsday Openai Agents · jiayaoqijia bundleVerify on-chain Doomsday Proof-of-Escrow collateral (DOOM L1 UTXOs & Base Mainnet wDOOM) before executing GitHub bounty tasks using the OpenAI Agents SDK, Smolagents, or MCP.
- ▌ Nirium Agentic Payments · jiayaoqijia bundleScaffold and run an x402 paid API server on Stellar with open-source client libraries: charge AI agents per API call with x402Serve(), a function from the nirium SDK that runs entirely on your own server, scaffold that server with nirium-cli in one command, and separately read live protocol data through the nirium-mcp server. Use when the user wants to charge AI agents for API access on Stellar, needs a working x402 seller in minutes without hand-rolling the facilitator client, or wants an MCP-connected agent to read market state / control an autonomous loop on a running Stellar agent.
- ▌ Align Business Hours Across Regions · jiayaoqijia bundleUse when scheduling a call, SLA or support rota across regions — compute the local working-hours overlap in UTC and size staffing to the real intersection, not each region's 09:00.
- ▌ Allowlist Egress For A Coding Agent · jiayaoqijia bundleUse when a coding agent runs unattended with shell and network access. Put a default-deny egress allowlist in front of it, so only the package registries and APIs the task needs are reachable.
- ▌ Attribute L2 Fee Spikes To L1 Costs · jiayaoqijia bundleUse when an L2's transaction fees spike and you must attribute the increase to L1 data costs, L2 congestion, or the gas-token price, rather than guessing a cause.
- ▌ Audit Delegatee Power Concentration · jiayaoqijia bundleUse when checking whether a DAO's voting power is centralised, or before trusting a single delegate. Measures top-delegate share and Gini against quorum, using snapshot weights.
- ▌ Backfill Logs With Adaptive Windows · jiayaoqijia bundleUse when backfilling historical logs across millions of blocks. Splits the range into windows sized to the provider result cap, checkpoints each window, and resumes without refetching completed work.
- ▌ Bisect A Regression With Git Bisect · jiayaoqijia bundleUse when something worked at an earlier commit or release and is broken now. Uses git bisect to name the exact commit that introduced the regression.
- ▌ Bound Pipeline Retries With Backoff · jiayaoqijia bundleUse when a pipeline retries failed calls and risks amplifying load or hammering a recovering service. Applies bounded exponential backoff with jitter and a circuit breaker, and fails loudly past the budget.
- ▌ Set A Ship Threshold With A Margin · jiayaoqijia bundleUse when deciding whether a model or prompt change ships. Gates on the lower confidence bound of the metric against a pre-set threshold, not the point estimate.
- ▌ Size The Context Window To The Job · jiayaoqijia bundleUse when a prompt is near the context limit, costs too much, or drops instructions under truncation. Count input tokens, decide what stays in context versus what is fetched on demand, and measure before sending.
- ▌ Store Money As Integer Minor Units · jiayaoqijia bundleUse when storing or computing currency amounts in code (prices, balances, invoice totals). Represents money as an integer count of the smallest unit and bans binary floating point for it.
- ▌ Submit An Atomic Bundle To A Relay · jiayaoqijia bundleUse when dispatching a signed bundle to a builder relay via eth_sendBundle, replacing a stale bundle, or cancelling one. Covers the signature header, replacementUuid, target block selection, and reading relay responses.
- ▌ Tear Down A Competitor Price Sheet · jiayaoqijia bundleUse when comparing your price to a competitor's. Normalises both sheets to a common unit and term, pulls add-ons out of the headline, and computes a like-for-like total cost under a named profile.
- ▌ Tokenise Card Data To Shrink Scope · jiayaoqijia bundleUse when a system touches card numbers, CVV, or cardholder data and the compliance scope is too wide. Replace the PAN with a token at the boundary and prove no PAN is stored.
- ▌ Trim Context With A Sliding Window · jiayaoqijia bundleUse when a multi-turn conversation or long session exceeds the context window. Drop or summarise old turns deliberately, keep the system block and pinned facts, and re-state what must survive.
- ▌ Write A One Page Problem Statement · jiayaoqijia bundleUse when starting a project or initiative that needs a shared understanding of why it exists. Compresses it to one page a newcomer can read and challenge.
- ▌ Write A Runbook For A 3am Incident · jiayaoqijia bundleUse when writing a runbook or operational procedure someone executes under pressure. Orders steps as check, act, verify, with exact commands and the rollback written next to each step.
- ▌ Recipe Plan And Dispatch · jiayaoqijia bundlePlan a ticket with the engineer before a recipe fix-bug or dev run. Agree the acceptance criteria and an implementation plan, write it as an approved plan file, and print the prompt that starts the run with any agent and model. Never edits product code or starts the run.
- ▌ Re Screen Customers On List Update · jiayaoqijia bundleUse when a sanctions or PEP list changes and the existing customer base must be re-screened against the delta, either on a schedule or immediately after a designation.
- ▌ Reap Zombie Processes With An Init · jiayaoqijia bundleUse when a container running a supervisor or forking app accumulates defunct processes. Adds a real init (tini, dumb-init or --init) so PID 1 reaps orphans instead of leaking zombie PIDs.
- ▌ Reconcile Gateway Payout To Orders · jiayaoqijia bundleUse when a payment processor's settlement or payout must be proven against your orders. Matches gross charges minus fees, refunds and chargebacks to the bank deposit, penny for penny.
- ▌ Refuse Unsafe Or Out Of Scope Work · jiayaoqijia bundleUse when a request is unsafe, unethical, illegal, or outside what you are authorised to do. Decline clearly, name the boundary, and offer a safe alternative.
- ▌ Renegotiate When Assumptions Break · jiayaoqijia bundleUse when a premise the plan rested on turns out false, such as data being larger or an API being gone. Re-open the agreement explicitly instead of quietly absorbing the delta.
- ▌ 0xklen Report Impermanent Loss Vs Holding · jiayaoqijia bundleImpermanent loss is the value gap between providing liquidity and holding the same tokens; it is a function only of the price ratio, not of fees, so it must be shown separately from fee income.
- ▌ Review Path Traversal In File Apis · jiayaoqijia bundleUse when a handler turns user input into a filesystem path, including archive extraction. Traces the path from request to open, tests ../ and encoded traversal, and confines reads to a base directory.
- ▌ Rewrite Jargon Into Plain Language · jiayaoqijia bundleUse when a doc, email, or error text must be understood by a non-expert reader. Swaps insider terms for concrete words and defines the few terms that must stay.
- ▌ Route Alerts By Severity And Owner · jiayaoqijia bundleUse when alerts pile into one channel and nobody knows who should pick them up. Assigns a severity and a responsible owner so each alert routes to the right queue.
- ▌ Score Retrieval By Ranking Metrics · jiayaoqijia bundleUse when a single recall number hides whether the good chunk ranks first or tenth. Computes recall@k, MRR and nDCG against labelled queries so ranking quality, not just presence, is measured.
- ▌ Model Ad And Sponsorship Economics · jiayaoqijia bundleUse when ad or sponsorship revenue must be valued. Computes CPM and CPC yields and a sponsorship's effective rate, then compares against the opportunity cost of the inventory.
- ▌ Model Many To Many Token Transfers · jiayaoqijia bundleUse when indexing token flows where one transaction moves many assets between many holders. Normalises transfers into rows of sender, receiver, token and amount instead of one fat row per transaction.
- ▌ Multiply Then Divide With Widening · jiayaoqijia bundleUse when money maths multiplies by a rate then divides (or the reverse). Orders multiply-before-divide and widens the intermediate so no precision or overflow is lost.
- ▌ Pin Nft Assets With Content Hashes · jiayaoqijia bundleUse when an NFT points at off-chain images or JSON on IPFS/Arweave and the collection claims permanence. Verifies the CID resolves, is pinned, and matches the on-chain metadata hash.
- ▌ Place Buffer On The Critical Chain · jiayaoqijia bundleUse when padding every task has bloated a schedule without making it safer. Moves slack out of the individual tasks and into one visible reserve at the end that protects the delivery date.
- ▌ Prevent Theme Flash On First Paint · jiayaoqijia bundleUse when a saved light/dark preference flashes the wrong theme on load. Resolves the theme in a blocking inline script before first paint and avoids hydration mismatches.
- ▌ 0xklen Price A Priority Tip For Inclusion · jiayaoqijia bundleThe tip is what actually buys inclusion — base fee is burned and only proves you are solvent — so the correct tip is the smallest value above the block's observed clearing tip for the share of gas you are willing to occupy.
- ▌ Prorate A Subscription Plan Change · jiayaoqijia bundleUse when a subscriber upgrades, downgrades or changes billing period mid-cycle. Computes the proration credit and charge in exact minor units and names which of the two common conventions applies.
- ▌ Quarantine Poison Pipeline Records · jiayaoqijia bundleUse when one malformed record repeatedly crashes a batch and blocks the rest. Isolates the poison record, lets the batch proceed, and fixes the parse rather than retrying forever.
- ▌ Raise Prices On Existing Customers · jiayaoqijia bundleUse when a book of existing accounts must move to higher renewal pricing. Models the churn break-even, sets notice and grandfathering, and keeps old and new prices in exact minor units.
- ▌ Handle Erc20 Transfer Event Quirks · jiayaoqijia bundleUse when indexing ERC-20 Transfer and Approval events. Handles tokens that return no value, move funds without a compliant event, or use non-standard decimals so balances stay correct.
- ▌ Hunt A Memory Leak With Heap Dumps · jiayaoqijia bundleUse when resident memory climbs steadily and never falls — diffs two heap profiles to find the growing retainer instead of guessing at caches, and proves the plateau after the fix.
- ▌ Import Legacy Resources Into State · jiayaoqijia bundleUse when resources exist in the cloud but not in Terraform. Imports them one at a time with a no-op plan as the success criterion, adopting infrastructure without recreating it.
- ▌ Initiate A Canonical L2 Withdrawal · jiayaoqijia bundleUse when moving assets from an L2 back to L1 through the canonical bridge, following the initiate-prove-wait-finalise sequence rather than a third-party bridge.
- ▌ Instrument Before Reading The Code · jiayaoqijia bundleUse when you are tempted to infer behaviour from source alone. Adds a probe that prints the actual runtime values, then reads code knowing which path really ran.
- ▌ Maintain A Signed Address Registry · jiayaoqijia bundleUse when teammates must know which address is legitimately yours. Publishes a signed, versioned address registry so nobody trusts an address from a chat message, email, or a hasty paste.
- ▌ Make A Schema Migration Reversible · jiayaoqijia bundleUse when shipping a database migration — write and actually run the down path so a bad release can roll back without restoring a backup.
- ▌ Match Logs To Transactions By Hash · jiayaoqijia bundleUse when joining decoded events to their parent transaction. Groups logs by block_hash and tx_hash, never by block position, so a reorg that re-mines the same transaction keeps the join correct.
- ▌ Measure The Value Of An Automation · jiayaoqijia bundleUse when you need to justify keeping, fixing, or cutting an automation. Tracks hours saved against build, run, and maintenance cost in a running ledger.
- ▌ Measure Time To First Contribution · jiayaoqijia bundleUse when you need to know whether onboarding actually works. Tracks time-to-first-merged-contribution from a start timestamp to a merge, with a target and a per-blocker log, instead of asking how it went.
- ▌ Convert A Vague Brief Into A Scope · jiayaoqijia bundleUse when handed a prose brief like "make it faster" or "clean up auth" with no deliverables. Turn it into numbered, testable items plus an explicit out-of-scope list.
- ▌ Crawl With Rate Limits And Backoff · jiayaoqijia bundleUse when running a crawler or hitting an API in bulk. Applies polite pacing, bounded concurrency, and exponential backoff so the source stays healthy.
- ▌ Defend The Index Against Poisoning · jiayaoqijia bundleUse when a knowledge base ingests any external or user-writable content. Treats indexed text as untrusted input, restricts the write path, and audits chunks that read as instructions.
- ▌ Define Feature Flag Rollout Stages · jiayaoqijia bundleUse when a feature needs to reach users gradually. Defines the flag, the staged percentages, the gate metrics, and the rollback trigger before the first cohort is enabled.
- ▌ Design Health And Readiness Probes · jiayaoqijia bundleUse when a load balancer or orchestrator needs liveness and readiness signals — splits the two endpoints, keeps liveness dependency-free, and makes readiness reflect actual ability to serve.
- ▌ Detect A Job That Silently Stopped · jiayaoqijia bundleUse when a scheduled or background job could stop running without erroring, long before anyone notices its output is missing. Adds a heartbeat and a freshness alarm.
- ▌ Detect And Quarantine Schema Drift · jiayaoqijia bundleUse when an upstream producer changes a schema without notice. Compares observed fields against the contract, quarantines mismatched records, and alerts instead of silently loading nulls.
- ▌ Distinguish Duration From Deadline · jiayaoqijia bundleUse when a spec says "within 30 minutes" or "by end of day" — separate a measured elapsed duration from a fixed wall-clock deadline so the two are never conflated.
- ▌ Enforce A Tool Call Budget Ceiling · jiayaoqijia bundleUse when an agent run has a cost, token, or call-count limit. Track spend against the ceiling per step and stop before the limit is crossed, not after.
- ▌ Escalate An Incident To A New Team · jiayaoqijia bundleUse when an incident outgrows the current responders and must be handed to another team. Packages a self-contained brief so the new team starts working in the first minute instead of re-asking.
- ▌ Add A Kill Switch To A Runaway Job · jiayaoqijia bundleUse when a long-running job, migration or agent loop can run away and needs a stop an operator can pull in seconds — checked cooperatively at safe points, not via a hard SIGKILL.
- ▌ Add Backpressure To A Queue Worker · jiayaoqijia bundleUse when a consumer falls behind and the queue grows without bound — bounds in-flight work, handles visibility timeouts and dead-letters poison messages instead of losing them.
- ▌ Add Jitter And Deadline To Retries · jiayaoqijia bundleUse when a retry loop can outlive its budget or fire in lockstep — bound the timing with exponential backoff plus full jitter and a wall-clock deadline.
- ▌ Assess Chain Analytics Risk Scores · jiayaoqijia bundleUse when a blockchain analytics vendor returns a risk score or exposure figure for an address, and you must decide what the number actually supports before acting on it.
- ▌ 0xklen Audit A Block For Sandwich Attacks · jiayaoqijia bundleA block-level sandwich audit reconstructs every swap in a pool, groups them into buy-victim-buy triples, and attributes the profit, so a claim about MEV extraction is backed by a block and a list of transactions rather than an anecdote.
- ▌ Bisect A Config Or Data Difference · jiayaoqijia bundleUse when two runs of the same code disagree and the difference is in configuration, feature flags, or input rows. Binary-searches the config keys or data records to the one that flips the outcome.
- ▌ Calibrate A Retrieval Score Cutoff · jiayaoqijia bundleUse when a fixed similarity threshold lets nonsense queries return confident chunks. Chooses the cutoff from labelled score distributions instead of a guessed constant.
- ▌ Compute Cac By Acquisition Channel · jiayaoqijia bundleUse when evaluating what a customer costs to acquire. Computes fully-loaded CAC per channel including salaries and tools, and keeps blended and paid CAC apart so neither flatters the other.