lenbok/qrspi

qrspi-structure

QRSPI phase 4 — Structure outline — vertical slices with test checkpoints

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/lenbok/qrspi --skill qrspi-structure

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Invoke with: thoughts/qrspi/<id>/

Structure — How Do We Get There?

Create a ~2-page structure outline that breaks the design into vertical slices — each independently testable. Show the signatures, types, and phase boundaries — not the full implementation.

Input

Read <path>/design.md and <path>/research.md.

Process

  1. Read both artifacts fully.
  1. Break the work into vertical slices. Each slice delivers end-to-end functionality:
  • Crosses all necessary layers (database, service, API, UI) for that slice
  • Can be tested independently after implementation
  • Has a clear verification checkpoint

Vertical (correct):

Phase 1: Add the "reticulate" endpoint — migration, store method, API handler, basic UI button. Test: endpoint returns 200, button triggers call.

Horizontal (wrong):

Phase 1: All database migrations. Phase 2: All service methods. Phase 3: All API endpoints. Phase 4: All UI changes.
  1. Define the phase order. Earlier phases should establish foundations that later phases build on. If Phase 3 fails, Phases 1-2 should still be independently valuable.
  1. For each phase, list:
  • What it accomplishes (1-2 sentences)
  • Files affected
  • Key type signatures or interface changes
  • How to verify it works (automated command + what to check manually)
  1. Write `structure.md` to the artifact directory:
markdown
   # Structure Outline

   ## Approach
   [1-2 sentences: the implementation strategy from design.md, condensed]

   ## Phase 1: [Name]
   [What this phase delivers end-to-end]

   **Files**: `path/to/file.ext`, `path/to/other.ext`
   **Key changes**:
   - `functionName(param: Type): ReturnType` — new/modified
   - `NewType { field: Type }` — new type

   **Verify**: [project test command] passes; [manual check description]

   ---

   ## Phase 2: [Name]
   ...

   ## Testing Checkpoints
   [Summary of what should be true after each phase, useful for resuming if context resets]
  1. Present the outline to the user and wait for feedback. Common adjustments:
  • Reordering phases
  • Splitting a phase that's too large
  • Adding a testing phase between sensitive phases
  • Requesting more detail on a specific phase

Output

  • File written: <path>/structure.md
  • Tell the user: "Next: invoke the qrspi-plan skill with <path>"

Rules

  • ~2 pages max. If it's longer, you're writing the plan, not the outline.
  • Vertical slices, not horizontal layers. Every phase must cross all relevant layers.
  • Signatures and types, not full implementation. Show WHAT changes, not HOW.
  • Each phase must have a verification checkpoint.
  • If the design calls for something that can't be sliced vertically, note it explicitly.

When to Go Back

If you discover the design missed a critical constraint or made a decision based on incorrect assumptions about the codebase, tell the user and suggest re-running the qrspi-design skill rather than working around a flawed design.

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills