Skip to content

LESSONS — pre-skill test validates v0.3 + surfaces fluidity gap - #5

Merged
k-rutten merged 2 commits into
mainfrom
learn-from-pelle-pre-skill-test
May 11, 2026
Merged

LESSONS — pre-skill test validates v0.3 + surfaces fluidity gap#5
k-rutten merged 2 commits into
mainfrom
learn-from-pelle-pre-skill-test

Conversation

@k-rutten

@k-rutten k-rutten commented May 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

First two LESSONS.md entries based on pre-implement-skill internal testing (2026-05-08). The same 404 page was run through bare Figma MCP and mapping-skill-only — before implement existed — documenting seven specific failure modes plus three recommendations.

Six of seven failure modes are addressed by v0.3 rules. One gap (responsiveness / "design hoeft niet EXACT") needs mapping-side work — added as DEFERRED-FIXES suggestion #6.

Findings mapped against v0.3

Observation v0.3 fix Status
Bare MCP deleted existing 404 page → new one; mapping replaced code in place Rule #5 + B7 file-path
Both modes added raw CSS props without token consultation Rule #2 + #12
Mapping introduced className alongside Emotion Rule #3
Random colors instead of tokens Rule #2 hoist
Cache file leaked into git repo Mapping setup adds figma-context/ to .gitignore
Back button "probeer opnieuw" instead of "ga terug" B4.5 literal strings + rule #12
Output filled only ~40% of viewport instead of 100vw Rule #4 covers fill/hug, but page-level fluidity-intent not in mapping artifacts ⚠ Gap

What this PR contains

LESSONS.md — two entries (one confirmation, one correction):

  1. Confirmation that v0.3 rules cover six of seven failure modes
  2. Correction documenting the fluidity-intent gap

DEFERRED-FIXES.md — new suggestion #6 (🟢 nice-to-have, mapping repo):
"Mapping-side fluidity-intent for page-level frames" — proposes a field in tokens.md § Auto-layout conventions or per-component specs marking viewport-fill / max-width / fluid-grid intent.

Second commit anonymizes skill files — no individual contributor names. Findings stay, attribution shifts to "pre-implement-skill internal testing".

Why this matters

This is the strongest available evidence that v0.3 actually addresses real-world failure modes, because the test predates the skill. It is not a constructed example — it is what bare-MCP and mapping-only produced before implement skill existed.

Logical first dogfood target: re-run the same 404 page with v0.3 installed and verify the six fixes actually prevent the observed failure modes.

Out of scope

Test plan

Summary by CodeRabbit

  • Documentation
    • Added a deferred-fix entry proposing a mapping-side “fluidity intent” for page-level frames to enable viewport-relative sizing (e.g., 100vw/100vh) instead of fixed pixels.
    • Appended lessons confirming v0.3 ruleset resolved six 404-generation failure modes and noting the page-level “fill viewport” gap.
    • Updated plan wording to broaden the dogfood example target.

Review Change Stack

Two first LESSONS.md entries from Pelle's pre-implement-skill test
(2026-05-08) comparing bare Figma MCP vs mapping-skill-only on a 404
page in a third-party Figma kit.

Entry 1 [confirmation]: Six failure modes documented in his test
(deleted existing page, raw CSS props, parallel styling, random
colors, cache leak, generic literal strings) are all addressed by
v0.3 rules — rule #5/#2/#3/#12 + B4.5/B7 + mapping-side .gitignore.
First dogfood target should be the same 404 page to verify the
fixes actually prevent what he observed.

Entry 2 [correction]: One gap remains — both bare-MCP and mapping
output filled ~40% of viewport instead of 100vw, because the Figma
frame is designed at 1440×900 but should be viewport-fill in code.
Implement rule #4 translates Figma fill/hug correctly but page-level
"fill viewport" intent is not documented in mapping artifacts.
Cannot be solved in implement alone.

Added DEFERRED-FIXES suggestion #6 (🟢 nice-to-have, mapping repo):
"Mapping-side fluidity-intent for page-level frames" — proposes a
field in tokens.md or per-component specs marking viewport-fill /
max-width / fluid-grid intent so implement can emit the right fluid
expression instead of literal Figma dimensions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 11, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1beb946f-d75f-4d85-98cc-d2e66dbb5192

📥 Commits

Reviewing files that changed from the base of the PR and between 77e1671 and 6a612de.

📒 Files selected for processing (3)
  • DEFERRED-FIXES.md
  • LESSONS.md
  • PLAN.md
✅ Files skipped from review due to trivial changes (3)
  • PLAN.md
  • DEFERRED-FIXES.md
  • LESSONS.md

📝 Walkthrough

Walkthrough

Appends planning and lessons docs: records v0.3 validation results, notes mapping lacks page-level viewport-fill intent, and proposes a mapping-side fluidity intent field; also tweaks PLAN wording for Fase 5 target.

Changes

Planning & Lessons Documentation

Layer / File(s) Summary
LESSONS: validation & correction
LESSONS.md
Adds a 2026-05-08 confirmation that v0.3 resolves six prior 404-generation failure modes and a correction noting mapping does not capture page-level “fill viewport” intent.
Deferred suggestion: fluidity-intent
DEFERRED-FIXES.md
Adds “🟢 6” proposing a fluidity intent field (e.g., viewport-fill, max-width, fluid-grid) so implementations can emit responsive sizes (e.g., 100vw/100vh) instead of literal Figma pixels.
PLAN minor wording
PLAN.md
Changes Fase 5 dogfood example to reference “a different team project” rather than a specific individual’s project.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

A rabbit scribbles in the log, 🐇
Notes of viewports, wide and broad;
Intent to stretch from edge to edge,
No more pixels trapped in ledge—
We plant the field, the frame will nod.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly reflects the main content of the PR: adding LESSONS documentation entries that validate v0.3 rules and surface a fluidity intent gap for page-level frames.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch learn-from-pelle-pre-skill-test

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@LESSONS.md`:
- Around line 14-17: The lesson entry "[LESSON — 2026-05-08] [correction]" is
currently 4 lines and violates the file's "Strict 5-line format"; fix it by
adding a single blank separator line after the existing fourth line so the entry
becomes five lines total (matching the other entries), preserving the exact
wording and append-only policy in LESSONS.md.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 42a49b7a-3efd-4001-ae16-a35c9b5d6092

📥 Commits

Reviewing files that changed from the base of the PR and between 2cba546 and 77e1671.

📒 Files selected for processing (2)
  • DEFERRED-FIXES.md
  • LESSONS.md

Comment thread LESSONS.md
Comment on lines +14 to +17
[LESSON — 2026-05-08] [correction]
Situation: Pelle reported the bare-MCP and mapping-only output filled only ~40% of viewport instead of 100vw, despite the Figma frame being a full-page 1440×900 design. Implement rule #4 covers Figma `fill/hug/gap` translation, but page-level "fill viewport" intent is not explicitly captured in mapping artifacts.
What did not work: Mapping skill currently has no convention for marking "this page-level frame is a full-viewport intent, emit 100vw/100vh not 1440px". Implement consumes whatever mapping documents — without an intent marker, emit defaults to literal Figma pixels.
Proposal: Mapping-side enhancement (added as suggestion in DEFERRED-FIXES.md) — extend `tokens.md § Auto-layout conventions` or per-component spec with a "fluidity intent" field for page-level frames. Cannot be solved in implement alone.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add missing blank line to complete 5-line format.

The entry correctly documents the fluidity gap and aligns well with DEFERRED-FIXES.md, but it has only 4 lines. Per the file's own rule (line 5: "Strict 5-line format"), each lesson entry must have exactly 5 lines, including a blank separator. The first entry demonstrates this with a blank line 13.

📝 Proposed fix to add blank separator
 Situation: Pelle reported the bare-MCP and mapping-only output filled only ~40% of viewport instead of 100vw, despite the Figma frame being a full-page 1440×900 design. Implement rule `#4` covers Figma `fill/hug/gap` translation, but page-level "fill viewport" intent is not explicitly captured in mapping artifacts.
 What did not work: Mapping skill currently has no convention for marking "this page-level frame is a full-viewport intent, emit 100vw/100vh not 1440px". Implement consumes whatever mapping documents — without an intent marker, emit defaults to literal Figma pixels.
 Proposal: Mapping-side enhancement (added as suggestion in DEFERRED-FIXES.md) — extend `tokens.md § Auto-layout conventions` or per-component spec with a "fluidity intent" field for page-level frames. Cannot be solved in implement alone.
+

As per coding guidelines: "Strict 5-line format, append-only, one rule per entry" (LESSONS.md line 5).

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
[LESSON — 2026-05-08] [correction]
Situation: Pelle reported the bare-MCP and mapping-only output filled only ~40% of viewport instead of 100vw, despite the Figma frame being a full-page 1440×900 design. Implement rule #4 covers Figma `fill/hug/gap` translation, but page-level "fill viewport" intent is not explicitly captured in mapping artifacts.
What did not work: Mapping skill currently has no convention for marking "this page-level frame is a full-viewport intent, emit 100vw/100vh not 1440px". Implement consumes whatever mapping documents — without an intent marker, emit defaults to literal Figma pixels.
Proposal: Mapping-side enhancement (added as suggestion in DEFERRED-FIXES.md) — extend `tokens.md § Auto-layout conventions` or per-component spec with a "fluidity intent" field for page-level frames. Cannot be solved in implement alone.
[LESSON — 2026-05-08] [correction]
Situation: Pelle reported the bare-MCP and mapping-only output filled only ~40% of viewport instead of 100vw, despite the Figma frame being a full-page 1440×900 design. Implement rule `#4` covers Figma `fill/hug/gap` translation, but page-level "fill viewport" intent is not explicitly captured in mapping artifacts.
What did not work: Mapping skill currently has no convention for marking "this page-level frame is a full-viewport intent, emit 100vw/100vh not 1440px". Implement consumes whatever mapping documents — without an intent marker, emit defaults to literal Figma pixels.
Proposal: Mapping-side enhancement (added as suggestion in DEFERRED-FIXES.md) — extend `tokens.md § Auto-layout conventions` or per-component spec with a "fluidity intent" field for page-level frames. Cannot be solved in implement alone.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@LESSONS.md` around lines 14 - 17, The lesson entry "[LESSON — 2026-05-08]
[correction]" is currently 4 lines and violates the file's "Strict 5-line
format"; fix it by adding a single blank separator line after the existing
fourth line so the entry becomes five lines total (matching the other entries),
preserving the exact wording and append-only policy in LESSONS.md.

Per maintenance policy: skill files (LESSONS.md, DEFERRED-FIXES.md,
PLAN.md) should not name individual contributors. Findings stay,
attribution shifts to "pre-implement-skill internal testing".

Changes:
- LESSONS.md entries 1+2: "Pelle ran/reported" → "Pre-implement-skill
  internal testing ran/reported". Findings unchanged.
- DEFERRED-FIXES.md suggestion #6: "Surfaced by Pelle's pre-skill
  test" → "Surfaced by pre-implement-skill internal testing". Same
  for "responsiveness gap that Pelle reported" → "responsiveness gap
  reported in pre-skill testing".
- PLAN.md Fase 5: "dogfood op WorQX of Pelle's project" → "dogfood op
  een echt project met bestaande mapping (b.v. WorQX of een ander
  team-project)".

No skill repo file references individual contributors anymore.
Naming is not relevant to the skill itself; what matters is the
findings and how the skill addresses them.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@k-rutten k-rutten changed the title LESSONS — Pelle's pre-skill test validates v0.3 + surfaces fluidity gap LESSONS — pre-skill test validates v0.3 + surfaces fluidity gap May 11, 2026
@k-rutten
k-rutten merged commit db038ef into main May 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant