backend-first
Use when fresh backend behavior needs deterministic proof, root-cause-first routes a failure to the backend lane, or an acceptable model response changes or disappears after the provider boundary.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- backend-first
- description
- Use when fresh backend behavior needs deterministic proof, root-cause-first routes a failure to the backend lane, or an acceptable model response changes or disappears after the provider boundary.
02 资源文件 5
- 参考文档sections/gate-and-file.md29.6 KB
- 其他sections/gate-and-file.md.tmpl16.5 KB
- 参考文档sections/manifest.json751 B
- 参考文档sections/preamble.md21.9 KB
- 其他SKILL.md.tmpl19.4 KB
03 SKILL.md 正文
Backend First
Boundary
Freeze prompts, routing, provider configuration, and fixture content. Mock only external provider and persistence boundaries; exercise the real in-process parser, reducer, persistence, projection, and application route.
For debugging, execute /root-cause-first first and proceed only with
ROOT CAUSE ROUTE: BACKEND. For fresh feature development, define the desired
model/backend contract before the first test; no diagnostic verdict is
required. If a captured raw model response violates the requested contract,
stop and execute /llm-first instead.
Required fixture
Use the project's SDK-faithful realistic response fake rather than a loose mock or hand-shaped dictionary. Resolve the concrete fake and fixture rules through the active project's canonical end-to-end testing skill; keep that project-specific pointer outside this portable skill.
Strong default: source the complete request/response pair from raw production provider telemetry. Pin one request ID, one event type, one finish-reason shape, model, agent, and deployed revision; scrub sensitive data without trimming or repairing the payload. Preserve omitted or malformed fields, SDK/streaming part order, finish reason, and usage metadata. If a source revision is needed, record a separately verified deployment-to-source mapping; do not treat a deployment identifier as a commit hash.
Adapt this complete-row query shape to the active telemetry owner; use bound parameters and the project's real column names:
SELECT occurred_at, request_id, event_type, agent, model, finish_reason,
request_payload, response_payload, response_parts, input_tokens,
output_tokens, deployed_revision
FROM <provider_telemetry_table>
WHERE request_id = <bound_request_id>
AND event_type = <bound_event_type>
ORDER BY occurred_at DESC
LIMIT 1;
Do not replace complete payload columns with substring previews when building a fixture.
Use a local raw provider capture only when the matching production telemetry row
is unavailable. A minimal desired-contract fixture is a last resort and must be
labeled SYNTHETIC CONTRACT FIXTURE; it proves no live-model behavior. Never
silently upgrade a synthetic fixture into a real-response claim.
Record the fixture payload, telemetry query or capture provenance, expected persisted state, and expected user/server-visible response.
Workflow
- Write a fresh failing test before changing behavior.
- Add narrow Layer 1 coverage for the first deterministic divergence.
- Add or update an integration/end-to-end test in the project's canonical test location that drives the real in-process route with only external boundaries faked.
- Assert the request handed to the provider, parsed response, persisted state, and user/server-visible output.
- Fix only a proven backend-transformation bug or server-owned invariant. Do not add model-semantic fallback logic.
- Run targeted Layer 1, targeted Layer 2, compile/import checks, and relevant contract validators until green.
- Report
BACKEND READYseparately fromLLM CONTRACT GREEN.
Completion
BACKEND READY
SHA: <sha>
Fixture: <payload and provenance>
Layer 1: PASS
Layer 2: PASS
Persisted state: <values>
Visible response: <values>
Live LLM compliance: NOT TESTED / PROVEN SEPARATELY
04 同仓库更多 Skills
instinct
Use when the user invokes /instinct or /in, or asks to "message Instinct", "ask Instinct", "tell Instinct", "check Instinct", or read replies from the configured peer assistant. iMessage first, WhatsApp Web as fallback.
hr
Compatibility alias for history-resume; produce the same fresh-state, provenance-aware resume briefing.
history-resume
Resume briefing for the current repository branch or worktree using fresh state and admitted history sources.
grok
Alias for the canonical grokbot browser conversation workflow; /grok talks to the Grok bot the same way /dot talks to Dot.
codexa-bench
Compare `codexa` and normal `codex` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.