xiaohongshu
xiaohongshu
backend-mvp-guardrails
Use when designing or reviewing a backend MVP with tight budget, evolving schema, and reliance on third-party backends where idempotency, replay, and responsibility attribution are high-risk.
Full skill instructions
Minimize irreversible decisions. Every write must be idempotent, every aggregate must be replayable, and every incident must be attributable with minimal evidence.
When NOT to use: throwaway prototypes where data loss and misattribution are acceptable.
vibescore_tracker_hourly)user_id + device_id + source + model + hour_startRequired fields: request_id, function, stage, status, latency_ms, error_code, upstream_status, upstream_latency_ms
Attribution rules:
upstream_status => UNKNOWN (do not change data semantics)upstream_status is 5xx/timeout and function status is 5xx => likely vendor/backbone issueupstream_status is 2xx and function status is 4xx/5xx => likely application validation/logic issuelatency_ms high and upstream_latency_ms low => likely application-side bottleneckStop rule: no data rewrite, schema change, or semantic patch without a replay plan and rollback.
| Guardrail | Why | Minimum Implementation |
|---|---|---|
| Idempotent writes | Prevent double-counting | Unique key + upsert |
| Replayable aggregates | Safe fixes | Source-of-truth table + backfill job |
| Cost caps | Fit low budget | Range limits + pre-aggregates |
| Evidence-first | Avoid misfix | M1 structured logs |
| Schema allowlist | Avoid data bloat | Reject unknown fields |
const start = Date.now();
const requestId = crypto.randomUUID();
const log = (entry) =>
console.log(JSON.stringify({
request_id: requestId,
function: 'example-function',
...entry
}));
try {
const upstreamStart = Date.now();
const res = await fetch(upstreamUrl);
const upstreamLatency = Date.now() - upstreamStart;
log({
stage: 'upstream',
status: res.status,
upstream_status: res.status,
upstream_latency_ms: upstreamLatency,
latency_ms: Date.now() - start,
error_code: res.ok ? null : 'UPSTREAM_ERROR'
});
} catch (err) {
log({
stage: 'exception',
status: 500,
upstream_status: null,
upstream_latency_ms: null,
latency_ms: Date.now() - start,
error_code: 'UPSTREAM_TIMEOUT'
});
throw err;
}
upstream_status evidence| Excuse | Reality |
|---|---|
| "We are a tiny team, logs are overkill" | Small teams need stronger evidence, not weaker. |
| "Vendor is unstable, we cannot know" | You still need M1 logs to avoid misfixes. |
| "Budget is low so scans are fine" | Low budget means scans fail sooner. |
| "We can patch the numbers" | Patches without replay create permanent drift. |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience