AGENT SKILL

extract-data-models-from-flutter

暂无简介

License 许可
MIT
最近更新
2026-06-13
Stars
★ 3
Forks
1

03 SKILL.md 正文

Extract Data Models from Flutter Skill

Analyze Flutter widget files to extract all data entities, fields, and relationships.

Purpose

Screen widgets contain hardcoded data, inline type definitions, and implicit data structures. This skill extracts them into a formal data model specification.

Procedure

  1. Scan all screen files — Read every .dart file in lib/screens/ and lib/widgets/
  2. Identify data entities — Look for:
    • Hardcoded List or Map constants
    • Inline class/typedef definitions
    • Widget props that represent domain data
    • Text content that represents entity fields
  3. Cross-reference with UX.md — Check .stitch/UX.md for additional entities mentioned in data context
  4. Cross-reference with HTML designs — Check .stitch/system/*.html for data patterns
  5. Generate specification — Write data-models.md

data-models.md Format

# Data Models

## Entity: Novel
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| id | String | yes | Unique identifier |
| title | String | yes | Novel title |
| author | String | yes | Author name |
| coverUrl | String? | no | Cover image URL |
| synopsis | String | yes | Book description |
| genres | List<String> | yes | Genre tags |
| rating | double | yes | Average rating (0-5) |
| chapterCount | int | yes | Total chapters |
| status | NovelStatus | yes | ongoing / completed / hiatus |

## Entity: Chapter
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| id | String | yes | Unique identifier |
| novelId | String | yes | Parent novel ID |
| title | String | yes | Chapter title |
| number | int | yes | Chapter number |
| content | String | yes | Chapter text content |
| wordCount | int | yes | Word count |
| publishedAt | DateTime | yes | Publication date |

## Enums

### NovelStatus
- ongoing
- completed
- hiatus

## Relationships
- Novel has many Chapters (1:N via novelId)
- User has many LibraryEntries (1:N via userId)
- LibraryEntry references one Novel (N:1 via novelId)

## Mock Data Requirements
- 8-12 novels with varied genres and statuses
- 5-15 chapters per novel
- 3-5 genres
- Realistic titles and author names

Rules

  • Every field must have a Dart type
  • Use ? suffix for optional fields
  • Use enums for constrained string values
  • Document all entity relationships
  • Specify mock data quantity per entity

04 同仓库更多 Skills

openplaybooks-dev
openplaybooks-dev/converge

hello-checker

Use this skill when asked to "verify", "check", or "validate" a file's existence and content. It provides a reliable workflow for confirming files meet their spec.

★ 3
openplaybooks-dev
openplaybooks-dev/converge

ask-skill

暂无简介

★ 3
openplaybooks-dev
openplaybooks-dev/converge

html-review-artifact

Framework-wide guidance for crafting polished human-review artifacts as markdown or HTML

★ 3
openplaybooks-dev
openplaybooks-dev/converge

converge-planning

Design a Converge playbook end-to-end. Use when the user says "plan a project", "design a playbook", "decompose into tasks", "scaffold a Converge workflow", "onboard to Converge", or asks how to write TASK.md / playbook.yml. Two entry points: plan a new playbook or update an existing one. Hand off to `/converge-control` after producing the playbook structure.

★ 3
openplaybooks-dev
openplaybooks-dev/converge

converge-control

Operate a Converge playbook end-to-end — start runs, monitor progress, narrow failures with `--select`, inspect runtime state, validate definitions, surgically reset subtrees, and stop stuck or orphaned runs. Use this skill whenever the user says "run my playbook", "execute this", "monitor the run", "converge failed", "the run is stuck", "retry failures", "babysit this playbook", "what's the status?", "show me the gantt", or asks how to use `converge run` / `--select` / `inspect` / `doctor` / `clean` / `stop`. Also use it for `HTTP 401` / `Invalid API key` failures on the first task — those are environment-not-playbook problems — and for any post-run cleanup work. Hand off to `converge-planning` if the user wants to design or restructure the playbook itself.

★ 3
openplaybooks-dev
openplaybooks-dev/converge

repair-taskts

Fix task.ts definition issues — Seed syntax, missing .build(), empty checks, import errors, TypeScript errors

★ 3