Communitygithub.com

Cucoreanu/个人技能

逐一决策地访谈用户,讨论如何将现有 iPhone 应用适配到 iPhone Duo,仅在用户确认达成共识后编写适配决策记录。适用于用户正在为 iPhone Duo(可折叠 iPhone、内外屏幕、侧边控件)设计或适配应用时。

个人技能 是什么?

该技能旨在指导开发者通过结构化对话将现有 iPhone 应用适配到 iPhone Duo(双屏可折叠设备)。它不会生成代码或设计稿,而是通过提问逐步引导用户完成决策树,涵盖界面映射、内容对齐、内部屏幕布局、桌面模式、表单处理及视频集成等关键方面。技能要求用户确认每项决策,并在达成共识后生成正式的决策记录(`iphone-duo.md`)。它特别强调按顺序提问,避免同时抛出多个问题,同时利用环境(如文件系统)获取事实而非依赖用户输入。支持使用原则文档(principles.md)和记录模板(record.md)来确保决策一致性与可追溯性。适用于任何基于文件的项目(如 Xcode、Cursor、Claude Code 等),但若用户尚未建立代码库,则从最基础的结构问题开始。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cucoreanu/personal-skills/tree/HEAD/skills/adapt-iphone-duo

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

iPhone Duo

将现有 iPhone 应用适配到 iPhone Duo。生成书面决策记录。禁止绘图、制作原型或编写代码。

会话规则:principles.md。在第一个问题之前阅读。每当规则适用时,按章节引用。记录格式:record.md。

流程

不懈地就每个方面对我进行访谈,直到我们达成共识。沿着决策树的每个分支向下推进,逐一解决决策之间的依赖关系。对于每个问题,提供你的推荐答案。

逐个提问,在继续之前等待每个问题的反馈。同时提出多个问题会令人困惑。

如果某个事实可以通过探索环境(文件系统、工具等)找到,请直接查找,而不是问我。但决策权在我——每个决策都要提给我,等待我的回答。

在我确认我们达成共识之前,不要采取行动。

“这”指代你面前的应用适配工作。用户接受的推荐即为他们的决策。“全部采纳推荐”会填充所有剩余的开放分支,然后重新读取记录并等待确认。

分支之前

确定当前的 iPhone 应用。读取工作区中的代码库或设计,并将你找到的内容视为事实。如果还没有应用,逐个问题建立界面框架、层级结构和内容风格。不要凭空编造信息架构。不要从空白的 Duo 布局开始。

每个应用一份记录。仅当界面框架、层级结构或内容风格不同时,才为每个表面添加一个章节。

决策树

按此顺序推进。如果一个分支被事实关闭,用一句话说明原因。如果某个选择违反了 principles.md 中的锁定规则,需重新陈述该规则并提供相同的推荐。

  1. 界面映射。 提出映射方案。顶部工具栏按钮移到侧列顶部,底部工具栏按钮移到底部,标签栏保持底部对齐。文本按钮和分段控件保留在导航栏中。用户确认。
  2. 内容对齐。 滚动内容内嵌到水平安全区域。全宽背景可以位于内嵌滚动前景之后,所有控件都在前景内。仅用于不滚动且控件远离侧列的沉浸式屏幕时,才采用全出血、非偏移布局。
  3. 内部屏幕。 单一结构,问题已预填答案。信息密集且包含标签栏 → 侧边栏。其他情况下有两个或更多层级 → 这些层级并排显示。其他情况下 → 垂直堆叠重排为两列。外部和内部屏幕上的功能保持一致。
  4. 桌面模式。 仅当应用具有免提或媒体定格使用场景时才提问。控件和层级与所有其他姿态相同。否则记录为无自定义桌面布局。
  5. 表单。 仅当应用包含表单时才提问。具有单个工具栏按钮的表单会关闭外部垂直栏。其他任何表单都将侧控件保留在外部屏幕上。
  6. 视频。 仅当应用播放视频且自定义界面会与系统画中画调整或折叠区域冲突时才提问。否则记录为系统画中画行为。

确认后

使用 record.md 在应用项目根目录编写 iphone-duo.md。如果没有打开任何应用项目,则将记录留在聊天中并询问存放位置。

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

cucoreanu/personal-skills

Monitor one GitHub PR for new review feedback, implement only meaningful fixes, and answer reviewers with evidence, friendly wit, and pushback on unrealistic or overly defensive comments. Use when the user asks to babysit, watch, or monitor Codex/reviewer comments on a PR.

cucoreanu/personal-skills

Agent-only. After the user asks to create a PR for a new or updated skill under skills/ (never this skill), check project install vs source with scripts/diff-install.mjs; if missing or stale, ask to install locally via relative symlinks. Use when authoring or changing skills in this repo, opening a skill PR, or finishing skill work.

cucoreanu/personal-skills

Designs UI in Penpot via MCP with component discipline, flex alignment, outside-in build order, mockup/design modes, and optional skill updates from user feedback. Use for Penpot mockups, high-fidelity designs, Penpot MCP work, or component/variant refactors in Penpot.

cucoreanu/personal-skills

Plans and builds UI mockups in Penpot with user-centered workflow, fidelity levels, a six-step process, and outside-in canvas assembly. Use when creating mockups, screen mockups, wireframe-to-mockup work, low/high-fidelity UI, platform-specific layouts, or mockup design best practices in Penpot.

cucoreanu/personal-skills

Creates and reschedules macOS Reminders (fast nudges) and private Calendar events (time blocks). Attaches user-provided files to Calendar events the same way Calendar.app does. Default schedule: next free day starting tomorrow unless the user names an exact time. Never shares calendars or invites to anyone. Use when the user says \"remind me\", \"add a reminder\", \"move reminder\", \"reschedule reminder\", \"push that reminder to\", \"put this on my calendar\", \"schedule this\", \"block time\", \"don't let me forget\", or asks to attach an image/file to a reminder event.

cucoreanu/personal-skills

Proofreads messages and teaches reusable writing patterns. Use when the user pastes a work message, Slack draft, status update, or asks for proofreading, tone, clarity, grammar, flow, or constructive feedback on writing they will send at work.

相关技能