AgentSkillsCN

day-dream

愿景与规划工作流——为 ADHD 框架打造蓝图计划、架构资产以及白日梦般的文档。涵盖层级选择(简单版 vs 蓝图版)、文档撰写规则、Story/Spec 模式、状态语法、功能模板、实施计划、资产创建,以及验证清单。在制定愿景、路线图、蓝图,或规划新功能时,可运用此技能。

SKILL.md
--- frontmatter
name: day-dream
description: "Vision and planning workflows — creating blueprint plans, architecture assets, and day-dream documents for the ADHD Framework. Covers tier selection (simple vs blueprint), document authoring rules, Story/Spec pattern, status syntax, feature templates, implementation plans, asset creation, and validation checklists. Use this skill when creating visions, roadmaps, blueprints, or planning new features."

Day Dream

Blueprint authoring and vision planning for the ADHD Framework.

When to Use

  • Creating a new blueprint (day-dream) plan
  • Authoring feature specs, architecture docs, or implementation plans
  • Building supporting assets (diagrams, data models, mockups)
  • Conceptualizing long-term vision or roadmaps

Tier Selection

Templates are tiered based on project complexity:

TierUse WhenTemplate
Simple≤2 features, single module, no external APIssimple.template.md
Blueprint≥3 features OR ≥2 cross-module deps OR external APIsblueprint/ folder

Auto-Detection Rules

yaml
use_blueprint_tier:
  - feature_count >= 3
  - cross_module_imports >= 2
  - has_external_api: true

Templates Location

All templates at: .agent_plan/day_dream/templates/

Simple Tier

TemplatePurposeLine Limit
simple.template.mdSingle-file vision + quick start≤200 lines

Blueprint Tier

TemplatePurposeLine Limit
blueprint/00_index.template.mdNavigation hub with flowchart≤150 lines
blueprint/01_executive_summary.template.mdVision, goals, non-goals≤150 lines
blueprint/02_architecture.template.mdSystem diagrams, logical components≤200 lines
blueprint/NN_feature.template.mdPer-feature details≤150 lines
blueprint/NN_feature_simple.template.mdLightweight feature (80% of cases)≤100 lines
blueprint/80_implementation.template.mdPhased roadmap≤200 lines per phase
blueprint/81_module_structure.template.mdReusable vs Project-Specific modules≤150 lines
blueprint/82_cli_commands.template.mdCLI interface and command reference≤150 lines
blueprint/modules/module_spec.template.mdDetailed module implementation spec≤200 lines
blueprint/99_references.template.mdExternal linksNo limit

Assets

TemplatePurposeLine Limit
assets/asset.template.mdNon-code artifacts≤100 lines (excluding diagrams)

Asset Types: mockup, diagram, storyboard, infrastructure, design, data-model, other Naming: {feature_id}_{description}.asset.md


Status Syntax

Use hybrid emoji + text markers:

EmojiTextMeaning
[TODO]Not started
🔄[WIP]In progress
[DONE]Complete
🚧[BLOCKED:reason]Stuck (kebab-case reason)
🚫[CUT]Removed from scope

Difficulty Labels

Every feature/task MUST have a difficulty label:

LabelMeaningP0 Allowed?
[KNOWN]Standard patterns, proven libraries✅ Yes
[EXPERIMENTAL]Needs validation in our context⚠️ Conditional
[RESEARCH]Active problem, no proven solution❌ NEVER in P0

The Story → Spec Pattern

Every blueprint document follows this structure:

markdown
## 📖 The Story
{Visual, scannable narrative — NOT a text wall}

---

## 🔧 The Spec
<!-- Technical specification begins here -->

Story Section Requirements (Visual-First for ADHD readers)

PrincipleDo ThisNot This
FormatASCII boxes, tables, emoji anchorsParagraphs of prose
Scannability10-second grasp of problem/solutionReading required
StructurePain → Vision → One-Liner → ImpactUnstructured narrative

Required Subsections:

SubsectionPurposeVisual Format
😤 The PainWhat's broken, who hurtsASCII box + pain table
The VisionWhat success looks likeASCII box showing flow
🎯 One-LinerElevator pitchSingle blockquote
📊 ImpactBefore/After metricsComparison table

Why Visual > Text Walls:

  • ADHD readers skip prose, scan visuals
  • ASCII boxes create spatial memory anchors
  • Tables enable instant comparison
  • Emoji provide visual hierarchy

If you can't draw the pain and vision, you don't understand the feature.


Blueprint Document Rules

Mandatory Skeleton Pattern

Old PatternNew Pattern
<!-- Optional: ... -->Section present; write "N/A — [reason]" if not applicable

Rationale: "Optional" is interpreted as "skip if uncertain." Mandatory skeleton forces documentation of decisions.

Template Selection

TemplateUse WhenLine Target
NN_feature_simple.template.md≤2 modules, no external APIs, not P080-100 lines
NN_feature.template.md≥3 modules, external APIs, P0 priority150-300 lines

Index (00_index.md)

  • Progress Overview with emoji status
  • Document navigation table
  • "Where to Start" Mermaid flowchart

Executive Summary (01_executive_summary.md)

  • TL;DR: Maximum 3 sentences
  • Prior Art & Existing Solutions: REQUIRED section
  • Non-Goals: Minimum 3 items
  • Features: Maximum 5 P0 features
  • Freeze after approval with 🔒 FROZEN

Architecture (02_architecture.md)

  • Required when: ≥3 modules OR cross-module deps OR external APIs
  • Key Design Principles table
  • Logical Components: Purpose, Boundary, Implemented By
  • System Diagram: Mermaid, must fit one screen

Implementation (80_implementation.md)

  • YAML frontmatter required
  • P0 Hard Limits: 3-5 days, max 5 tasks, no [RESEARCH]
  • Natural Verification: Every phase MUST have a "How to Verify (Manual)" section
    • Max 3 human-executable steps
    • Expected outcome for each step
    • Steps must complete in <30 seconds

Module Structure (81_module_structure.md)

  • REQUIRED for ADHD projects
  • Defines Reusable vs Project-Specific modules
  • Phase annotations (P0), (P1)

Module Specs (modules/{module_name}.md)

  • Required: ## Implements Features (bidirectional traceability)
  • Links to feature docs that this module serves

Custom Sections (FREE ZONE)

  • Prefix: ## [Custom] 🎨 Title
  • Maximum: 5 custom sections per document
  • Prohibited: P0 tasks, blocking dependencies, architecture changes

Deep Dive Section

Optional for implementation-heavy features:

  • Algorithm Choices, API Contract Draft, Error Handling Strategy
  • Delete if: Straightforward features, obvious implementation

Asset Authoring

Asset Types

TypeUse ForExample
mockupUI wireframes, screen layouts03_dashboard_mockup.asset.md
diagramArchitecture, flow, component diagrams02_auth_flow_diagram.asset.md
storyboardUser journey sequences04_onboarding_storyboard.asset.md
infrastructureDeployment, server topology01_infra_layout.asset.md
designVisual design specs, style guides05_theme_design.asset.md
data-modelEntity relationships, schemas03_user_data_model.asset.md

Naming Convention

code
{feature_id}_{description}.asset.md

Required Sections

markdown
# {Asset Title}

**Type:** {type}
**Related Feature:** [Feature Title](../blueprint/NN_feature.md)
**Status:** `⏳ [TODO]` | `🔄 [WIP]` | `✅ [DONE]`

## Context
Why this asset exists.

## The Artifact
The actual content: Mermaid diagram, ASCII mockup, etc.

## Constraints
Limitations and assumptions.

## Related Features
Links to dependent features/assets.

Content Guidelines

  • Use Mermaid for diagrams (max: fit one screen)
  • ASCII art for quick mockups
  • Store images in assets/images/ subfolder
  • Prefer SVG over PNG/JPG

Line Limits

SectionLimit
Context~20 lines
Constraints~10 lines
Total (excluding diagrams)≤100 lines

Validation Checklists

Feature Checklist

markdown
- [ ] The Story section clearly states user problem and value
- [ ] Intent is unambiguous to a non-technical reader
- [ ] Scope is explicitly bounded
- [ ] Integration Points table has all connections
- [ ] Edge Cases cover failure scenarios
- [ ] Acceptance Criteria are testable

Module Checklist

markdown
- [ ] Implements Features section links to ≥1 feature OR marked as utility
- [ ] All linked features have backlinks to this module spec
- [ ] Responsibilities clearly state DO and DON'T
- [ ] Public API section defines interface contract

Folder Structure

Simple Tier

code
.agent_plan/day_dream/
├── {project}_vision.md
└── templates/

Blueprint Tier

code
.agent_plan/day_dream/
├── blueprint/
│   ├── 00_index.md
│   ├── 01_executive_summary.md
│   ├── 02_architecture.md
│   ├── 03_feature_*.md
│   ├── 80_implementation.md
│   ├── 81_module_structure.md
│   └── modules/
├── assets/
├── exploration/
│   └── _archive/
└── templates/

Anti-Patterns

Don'tDo Instead
Put [RESEARCH] in P0Defer to P1+ or resolve in exploration
Exceed line limitsSplit into separate files
Edit frozen documentsCreate new version or update implementation
Have >3 active explorationsSynthesize or abandon oldest
Skip verification sectionsAlways include manual verification
Use Simple tier for complex projectsUpgrade to Blueprint when threshold met
Embed code in assetsAssets are for visuals/planning
Create orphan assetsAlways link to parent feature