本文へ移動
cccskills
無料GitHub で公開

techspec

Technical Specification Command. Translates a PRD into an implementation-ready technical spec through deep project analysis and clarification. Use when the user says "create a tech spec", "write the technical design", "spec this out", or after a PRD is complete and the user wants to move to technical planning.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md6.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Technical Specification

You are a technical specification expert translating PRDs into implementation-ready specs for this Flutter app. The stack is flutter_riverpod + riverpod_annotation for state, freezed

  • json_serializable for data classes, auto_route for navigation, dio for HTTP, Firebase services for backend, and FVM-pinned Flutter SDK.

Objectives

  1. Translate the PRD into concrete technical guidance grounded in this codebase
  2. Reuse existing patterns from lib/features/<feature>/ and primitives from lib/common/ before proposing new ones
  3. Specify the data → state → UI → integration build order so the tasks skill can break it into ordered work units

Prerequisites

  • Required: .claude/tasks/[feature-name]/prd.md
  • Output: .claude/tasks/[feature-name]/techspec.md

Workflow

Step 0: Load Shared Context

Before reading the PRD, check whether .claude/tasks/[feature-name]/context.md exists. If it does, read it. Use its contents to skip re-deriving already-captured decisions (problem statement, target platforms, key product decisions, out-of-scope items) — do not ask the user about things already settled there.

Step 1: Analyze PRD

Read the PRD at .claude/tasks/[feature-name]/prd.md and extract:

  • Core requirements and constraints
  • Domain entities involved (data shapes, sources, lifetimes)
  • Platform scope — which of Android / iOS / web / desktop are in scope, and whether any platform-specific behaviors apply
  • Whether the feature touches Firebase services, native channels, or other integrations

Step 2: Deep Project Analysis

Explore the codebase to ground the spec in reality:

  • Look for existing features under lib/features/ that follow a similar shape and should be mirrored (the canonical pattern is *_page.dart + *_page_content.dart + *_state.dart + *_event.dart).
  • Check lib/common/ for reusable widgets, extensions, theming, formatters before introducing new primitives.
  • Inspect existing DTOs (lib/common/data/dto/), entities (lib/common/data/entity/), use cases, and providers for naming / mapping conventions. Add a repository layer only if the project already has one for this area or the spec explicitly justifies it.
  • Check lib/app/setup/setup_app.dart to see which services / integrations are actually active versus scaffolded.
  • Read AGENTS.md, docs/PROJECT_OVERVIEW.md, and docs/PROJECT_GUIDELINES.md for the canonical conventions.

Step 3: Technical Clarifications

Ask the user about any ambiguities:

  • Data flow: where does data originate (API via dio, Firebase service, local cache, platform channel) and where is it persisted (in-memory only, shared_preferences, secure storage)?
  • State boundary: a single @riverpod notifier or multiple cooperating providers? Sync Notifier or AsyncNotifier?
  • Navigation: new @RoutePage route(s), modal vs. full-screen, deep-link entry?
  • Layout: mobile-only or responsive across tablet/desktop/web? Any scroll, grid, or text-wrapping constraints that should be specified before implementation?
  • Codegen scope: which generated inputs are involved (@freezed models with fromJson, @riverpod, @RoutePage, localization, assets) — this drives when make gen needs to run.
  • Testing strategy: which providers / use cases warrant unit tests; any widget tests required?
  • Any domain-specific logic that needs clarification.

Do not proceed until clarifications are resolved.

Step 4: Generate Tech Spec

Read the template at .agents/templates/techspec.md (also reachable at .claude/templates/techspec.md via symlink) and draft the spec.

  • Reference concrete files and modules from the codebase
  • Follow the project's architecture rules from AGENTS.md, docs/PROJECT_OVERVIEW.md, and docs/PROJECT_GUIDELINES.md
  • Include a clear build order in Development Sequencing — typically:
    1. Data layer (DTOs, entities, use cases/providers) — make gen after annotations
    2. State layer (@riverpod notifier, *_state.dart, *_event.dart)
    3. UI layer (*_page.dart + *_page_content.dart)
    4. Integration / navigation (@RoutePage wiring, Firebase services, analytics, permissions)
    5. Localization strings (assets/localization/*.arb) and final QA
  • Call out files to not hand-edit: *.g.dart, *.freezed.dart, *.gr.dart, *.gen.dart, lib/assets/

Step 5: Save Tech Spec

Save to .claude/tasks/[feature-name]/techspec.md.

  • Confirm the file path
  • Summarize key architectural decisions (state model, data sources, navigation shape, any new packages needed in pubspec.yaml)

Step 5b: Append to context.md

Append the following section to .claude/tasks/[feature-name]/context.md (create the file if it does not exist). Use actual values from the tech spec — do not leave placeholder text:


## Technical Decisions (from techspec)

### Key Architectural Decisions
- State model: [e.g., AsyncNotifier with UserProfileState freezed union]
- Data sources: [e.g., dio HTTP via UserProfileUseCase, no local cache]
- Navigation: [e.g., new @RoutePage full-screen route, no deep-link]

### Files to Create
- [brief list of new files, one per line, relative to lib/]

### New Packages Needed
- [package name and reason, or "none"]

Step 6: Final next-step prompt

After saving the techspec, end with this guidance:

What to do next

Run /start-job [feature-name] to run the full implementation pipeline (tasks → implement-tasks-sequence → build-verify → pr-review), or step through manually with /tasks first.

Wait for the user to act. Do NOT auto-run /start-job or /tasks.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Build/test/lint verification pass for this Flutter app — runs codegen, analyze, test, then iOS + Android native builds in parallel, then `dart format`. Does NOT commit anything; leaves the working tree dirty so the user can review and commit on demand. Used at the end of the prd → techspec → tasks → implement-tasks-sequence flow before `pr-review`, and can also be invoked manually when the user says "verify build", "run full verification", or "check everything".

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

create-pr

無料

Create or update a GitHub PR for this Flutter repository using gh CLI. Verifies the work with build-verify and pr-review, generates an inline PR description, commits pending changes when approved, pushes, and opens or updates the PR. Supports stacked PRs by asking for the base branch when detection is ambiguous. Use when the user says "create PR", "open PR", "push PR", or wants to submit their work for review.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

Build a full feature in this Flutter repository that includes backend or storage data flow: read API schema, create DTOs, map DTOs to entities, add Riverpod use cases, connect feature state, and render UI data. Use when a task goes beyond a screen and needs real data integration.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

Create a new Flutter screen in this repository using the existing feature structure, AutoRoute setup, Riverpod state pattern, and code generation workflow. Use when adding a new page, route, stateful screen, or feature folder in this template.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

implement

無料

Implement a single Flutter task following this repository's Riverpod, Freezed, AutoRoute, DTO/entity, codegen, and verification conventions. Reads the task definition, PRD, and tech spec, then executes the implementation. When invoked standalone, verifies the change; when invoked by implement-tasks-sequence, writes code only and leaves verification to start-job/build-verify. Use when the user says "implement task X", "work on task X", or wants to execute a specific task from the task list.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

Orchestrates implementation of all tasks for a feature using an agent team. Respects task dependencies, runs tasks in correct order, parallelizes independent tasks. Does NOT build, run tests, or commit at any point — verification is delegated to the caller (typically `/start-job`, which runs `build-verify` and `pr-review uncommitted` afterwards). Use when the user says "implement all tasks", "run the task sequence", "implement the feature", or wants to execute multiple tasks from a task list end-to-end.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

strvcom のスキルをすべて見る

このスキルの問題を報告する