Skip to content
Agentmart
Submit a tool

pencil-sync-after-prototype-workflow

在本项目新建或重构 `src/prototypes/*`、`src/components/*` 时,执行“先按既有流程完成原型,再 1:1 创建 Pencil 文件,并强制后续同步”的编排约束;当需要为已完成原型补齐 Pencil 设计稿或维护代码与设计双向同步时使用。

Skill by liuqiao666

IndexedApache-2.0★ 1
Write a review

Chalk Labs

Need help deploying pencil-sync-after-prototype-workflow?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/liuqiao666-pencil-sync-after-prototype-workflow

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

在本项目新建或重构 `src/prototypes/*`、`src/components/*` 时,执行“先按既有流程完成原型,再 1:1 创建 Pencil 文件,并强制后续同步”的编排约束;当需要为已完成原型补齐 Pencil 设计稿或维护代码与设计双向同步时使用。

Use cases: productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pencil-sync-after-prototype-workflow

What's inside

Skill name
pencil-sync-after-prototype-workflow
Description
在本项目新建或重构 `src/prototypes/*`、`src/components/*` 时,执行“先按既有流程完成原型,再 1:1 创建 Pencil 文件,并强制后续同步”的编排约束;当需要为已完成原型补齐 Pencil 设计稿或维护代码与设计双向同步时使用。
License
Apache-2.0
Instructions
61 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 原型后置 Pencil 同步

本技能只补充顺序约束,不重复已有细节规范。

## MCP 前置检查(必须)

在执行任何生成 `.pen` / 截图验收相关工作前:

1. 先尝试调用任意 Pencil MCP 工具(例如 `get_editor_state` / `open_document` / `get_screenshot`)。
2. 若 MCP 工具不可用或调用失败:立刻停止后续步骤,并告知用户需要先开启/安装本项目 MCP 环境(至少要能调用 Pencil MCP),否则无法继续生成设计稿。

## 触发条件

- 新建 `prototype/component`
- 原型已按既有流程完成,需要补齐对应 Pencil 设计稿
- 既有页面结构重做,必须同步更新代码与 Pencil

## 流程 + 检查(合并)

1. 准备目标路径
- 目标目录:`src/prototypes/<name>/` 或 `src/components/<name>/`
- `<name>` 使用小写字母、数字、连字符

2. 先按既有流程完成原型
- 先按现有规则完成 `spec.md`
- 再完成 `index.tsx`
- 运行验收命令,确保当前原型已可交付

3. 再完成 `.pen`(阻塞步骤)
- 在目标目录生成 `<name>.pen`
- 以当前已完成的 `spec.md` + `index.tsx` 为唯一基线,1:1 回建 Pencil 文件
- 结构、尺寸、区块层级、文案、主要交互命名必须与现有原型一致
- 若 `.pen` 与 `spec.md` / `index.tsx` 不一致,先修正差异再继续

4. 回写 `spec.md`
- 补充 Pencil 信息:`.pen` 路径、主画板、模块映射
- 明确记录该目录进入“代码/Pencil 双向同步”维护状态

5. 在 `index.tsx` 顶部补充同步注释
- 文件顶部必须增加注释,明确说明:更新当前原型时,必须同步更新同目录的 `.pen` 与 `spec.md`
- 注释需包含具体文件名 `<name>.pen`,避免后续维护遗漏

6. 后续更新约束
- 以后任何对 `spec.md`、`.pen`、`index.tsx` 的修改,都必须三者同步
- 若只改了代码未改 Pencil,不视为完成交付

## 验收命令

```bash
node scripts/check-app-ready.mjs /prototypes/<name>
node scripts/check-app-ready.mjs /components/<name>
```

## 交付定义

- 必须同时存在并同步:`spec.md`、`.pen`、`index.tsx`
- `index.tsx` 顶部必须存在 Pencil 同步注释
- `check-app-ready.mjs` 结果为 `READY`
- 交付时返回三个文件路径

From liuqiao666/ProtoFlow, Apache-2.0.

More from liuqiao666/ProtoFlow

Signals

Stars
1
Forks
1
Open issues
0
Last commit (this folder)
Apr 9, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from liuqiao666

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get pencil-sync-after-prototype-workflow running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying pencil-sync-after-prototype-workflow?

CallGet help
Cite this page

pencil-sync-after-prototype-workflow skill. Agent Mart. https://agentmart.dev/skills/liuqiao666-pencil-sync-after-prototype-workflow (last updated 2026-10-24)