agentleFS
suibianqugenichenghaolesuibianqugenichenghaole/pm-workflow-system/skills/public/pm-design-absorption/SKILL.md

pm-design-absorption

Skill1 starsChanged 4 months agoMITView on GitHub

Turn screenshots, design mockups, and prototype references into stable component, page-skeleton, and rule updates for the PM + React workflow instead of one-off imitation.

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. About 0 are common, 13 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user provides screenshots, mockups, prototype images, or says "照着这个继续做", do four things:

    line 12
  2. Distinctive:

    update formal assets so future rounds improve instead of repeating guesswork

    line 17
  3. Distinctive:

    Read only the minimum useful set:

    line 34
  4. Distinctive:

    Before changing anything, classify the reference:

    line 56
  5. Distinctive:

    Do not start from colors or decoration if the structural pattern is still unclear.

    line 79
  6. Distinctive:

    If you only edited one preview page, the absorption round is incomplete.

    line 90
  7. Distinctive:

    When a screenshot or prototype reference reveals a possible reusable component:

    line 101
  8. Very specific:

    Check whether an active component already covers it.

    line 103
  9. Very specific:

    If yes, mark or use mapped-active and name the existing component.

    line 104
  10. Very specific:

    If not covered but the pattern is stable, register it as candidate.

    line 105
  11. Very specific:

    If the pattern looks reusable but key boundaries are unclear, register it as needs-confirmation and list the missing confirmations.

    line 106
  12. Very specific:

    If it is only a single weak case, use deferred or wait_for_more_screens instead of pretending it is ready.

    line 107
  13. Very specific:

    If it should not be reused, mark drop or remove it from tracking.

    line 108
  14. Very specific:

    Only mark active after formal component source, README/docs, and a reusable reference exist.

    line 109
  15. Distinctive:

    Always keep a clear boundary between:

    line 132
  16. Distinctive:

    Do not silently convert design intention into shipped truth.

    line 137
  17. Distinctive:

    When the user says:

    line 141
  18. Distinctive:

    When the reference is a real Chinese B-end backend page:

    line 165
  19. Very specific:

    do not treat DESIGN.md as sufficient by itself

    line 166
  20. Distinctive:

    prefer updating reusable backend components before celebrating page-level polish

    line 172
  21. Distinctive:

    if the page only becomes "more polished" but still does not read like a backend workbench, the absorption round is not complete yet

    line 173

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

PM Design Absorption

Act as a design-absorption skill, not as a generic screenshot summarizer.

Core job

When the user provides screenshots, mockups, prototype images, or says "照着这个继续做", do four things:

  1. classify what kind of reference this is
  2. extract reusable structure instead of only visual imitation
  3. decide whether the change belongs to component, page skeleton, or rule layer
  4. update formal assets so future rounds improve instead of repeating guesswork

Use this skill when

  • the user sends real product screenshots
  • the user sends design-phase prototype images
  • the user says the current output still does not look like the real product
  • a page correction should change the component library, not only one page

Do not use this skill when

  • the task is only requirement clarification
  • there is no visual reference and no existing design baseline to compare
  • the user only wants a quick verbal explanation

Read order

Read only the minimum useful set:

  1. the new image references
  2. shared component registry when available:
    • <projectsRoot>\_component-library\docs\registry\component-registry.md
  3. current relevant component docs
  4. current representative preview pages
  5. component evolution log if there is a likely repeated mismatch

Recommended project files:

  • src/docs/design-absorption/design-absorption-workflow.md
  • src/docs/design-absorption/incoming-reference-template.md
  • src/docs/design-absorption/component-evolution-log.md
  • src/docs/components/component-baseline.md

Recommended shared component-library files:

  • <projectsRoot>\_component-library\README.md
  • <projectsRoot>\_component-library\docs\registry\component-registry.md
  • <projectsRoot>\_component-library\docs\absorption\

Classification step

Before changing anything, classify the reference:

Reference truth level

  • online reality
  • design-stage proposal
  • local partial reference

Change type

  • new component
  • known component new state
  • page skeleton change
  • only visual polish

Extraction rule

Extract in this order:

  1. page structure
  2. information hierarchy
  3. repeated interaction entry points
  4. state differences
  5. visual detail

Do not start from colors or decoration if the structural pattern is still unclear.

Update targets

A useful absorption round should update at least two of:

  • component code
  • component docs
  • preview html
  • page skeleton docs
  • evolution log

If you only edited one preview page, the absorption round is incomplete.

For PM workflow projects under <projectsRoot>, if the reference reveals a stable reusable control or shell, update the shared component library first or record why it should remain project-local:

  • component code under <projectsRoot>\_component-library\src\
  • registry under <projectsRoot>\_component-library\docs\registry\component-registry.md
  • absorption note under <projectsRoot>\_component-library\docs\absorption\

Registry state rule

The registry is a component maturity map, not a parking lot. planned may only be a temporary entry and must carry next_action.

When a screenshot or prototype reference reveals a possible reusable component:

  1. Check whether an active component already covers it.
  2. If yes, mark or use mapped-active and name the existing component.
  3. If not covered but the pattern is stable, register it as candidate.
  4. If the pattern looks reusable but key boundaries are unclear, register it as needs-confirmation and list the missing confirmations.
  5. If it is only a single weak case, use deferred or wait_for_more_screens instead of pretending it is ready.
  6. If it should not be reused, mark drop or remove it from tracking.
  7. Only mark active after formal component source, README/docs, and a reusable reference exist.

Allowed statuses:

  • planned: newly discovered possible reusable component; must include next_action.
  • candidate: stable reusable pattern confirmed, but no formal component source yet.
  • needs-confirmation: likely reusable, but missing interaction boundary, naming, or scope confirmation.
  • mapped-active: covered by an existing active component; do not create a duplicate.
  • active: formal component source and docs exist; can be directly reused.
  • external-template: capability lives in a workflow template or embedded shell, not component-library source.
  • deferred: intentionally postponed until more scenarios appear.
  • drop: not worth tracking as reusable.

Allowed next_action values:

  • extract_component: implement component source and README next.
  • wait_for_more_screens: wait for more references before extracting.
  • merge_with_existing: map to an existing component.
  • defer: postpone.
  • drop: stop tracking.

Absorption output must state which registry entries changed and why.

Trust labeling

Always keep a clear boundary between:

  • confirmed from online screenshot
  • inferred from design mockup
  • temporary assumption still needing confirmation

Do not silently convert design intention into shipped truth.

Iteration rule

When the user says:

  • "还是不像"
  • "这个细节不对"
  • "我们平常不是这个页面"

do not just patch the current page.

You must also ask:

  • which component definition was wrong
  • which page skeleton was wrong
  • whether a stable rule should be added

Current high-priority examples

For this user's current workflow, prioritize absorption for:

  • backend resource workspace
  • album detail page
  • landscape player
  • purchase bar continuity
  • exercise entry overlay
  • playback marker strip

Backend workspace reminder

When the reference is a real Chinese B-end backend page:

  • do not treat DESIGN.md as sufficient by itself
  • extract exact component grammar when visible, especially:
    • label-left filter rows
    • compact toolbar/button placement
    • tree/list/table density
    • row-level action wording and spacing
  • prefer updating reusable backend components before celebrating page-level polish
  • if the page only becomes "more polished" but still does not read like a backend workbench, the absorption round is not complete yet

For backend edit forms, check backend/edit in the shared component library before patching a page directly. Label-left rows, input counters, selects, radio groups, switches, number inputs, upload fields, hints, and error states should become or reuse shared edit components.

Change Log

  • 2026-04-27: Added shared component library read/write targets so screenshot absorption updates <projectsRoot>\_component-library instead of remaining chat-only or page-local.

Output expectation

Structure work around:

  1. what was learned
  2. what became a reusable asset
  3. what was updated
  4. what still needs confirmation

Practical reminder

The goal is not "copy this screenshot once".

The goal is:

  • next time the user sends another screenshot, the system starts from stronger assets
  • next time a similar page is built, it is closer by default

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.