Agent skill
vertical-slice-contract-repair
How to rescue a cross-layer vertical slice when placeholders and contract drift have diverged
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/vertical-slice-contract-repair
SKILL.md
Context
Use this when a desktop host, service layer, and frontend were built in parallel, but the first integration review shows they are still speaking slightly different languages.
Pattern
- Name one canonical vocabulary for message types and failure codes before touching UI polish.
- Delete duplicate transport DTOs when the domain request/response shapes already match the bridge payloads.
- Turn placeholders live in dependency order: native host seam → service call → UI action → result rendering.
- Bound failure modes explicitly so reviewers can gate on stable codes instead of prose (
empty-run,invalid-input, etc.). - Promote skipped tests into real tests as soon as the seam exists; don’t leave “blocked” markers hanging after the code is live.
- Make the solution runnable for reviewers by ensuring the real projects and test projects are included in the solution entry point.
Good signs
- The same message names appear in host code, frontend code, and review notes.
- A single import → run → results path works without fake payloads.
- Reviewer-facing tests stop describing the future and start asserting the present.
Anti-patterns
- Keeping transport-only DTO copies “just in case” when they already mirror domain models
- Fixing UI text while the host still returns
not-ready - Adding new Phase 2+ scope before the first vertical slice is actually runnable
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?