docs(css-text-box-trim): cut guidance the reference file already owns #45

Merged
jercik merged 1 commit from align/css-text-box-trim into main 2026-08-07 07:02:00 +00:00
Owner

Deletions only. The ex-alphabetic paragraph, the button padding-compensation recipe (identical numbers), and the @supports guidance all live in references/css-text-box-trim.md, which the skill already tells the agent to read on every invocation. The Inputs sentence enumerating constraints to honor goes too: honoring supplied constraints is default behavior. Task steps 3 and 6 keep the items that drive decisions (component, font, writing mode, browser support target, target locales, fallback fonts); framework and codebase constraints drop entirely.

Deletions only. The ex-alphabetic paragraph, the button padding-compensation recipe (identical numbers), and the `@supports` guidance all live in `references/css-text-box-trim.md`, which the skill already tells the agent to read on every invocation. The Inputs sentence enumerating constraints to honor goes too: honoring supplied constraints is default behavior. Task steps 3 and 6 keep the items that drive decisions (component, font, writing mode, browser support target, target locales, fallback fonts); framework and codebase constraints drop entirely.
docs(css-text-box-trim): cut guidance the reference file already owns
Some checks failed
Node tests / node:test (pull_request) Successful in 13s
commit-msg / commitlint (pull_request) Successful in 19s
PR Review / Prepare immutable review tools (pull_request_target) Successful in 1m38s
PR Review / forgejo-review-code-smart-2 generator (pull_request_target) Failing after 48s
PR Review / forgejo-review-approach-3 generator (pull_request_target) Failing after 1m45s
PR Review / forgejo-review-approach-smart-2 generator (pull_request_target) Failing after 1m45s
PR Review / forgejo-review-approach-smart-1 generator (pull_request_target) Successful in 2m11s
PR Review / forgejo-review-code-smart-1 generator (pull_request_target) Successful in 2m52s
PR Review / Dispatch and observe exact review writers (pull_request_target) Failing after 3m34s
1aeca69fbe
forgejo-actions left a comment

Approach review: Deduplicating the skill body against its always-read reference is the right approach here, and the specific deletions check out.

  • ex alphabetic guidance survives in references/css-text-box-trim.md (shorthand example under Syntax, plus the Values entry describing when x-height reads better and the note that cap alphabetic/ex alphabetic are the practical Latin pairs).
  • The button padding-compensation recipe is byte-for-byte the same numbers as the reference's Buttons recipe (padding-block: 0.35rem; padding-inline: 0.75rem then padding: 0.625rem 0.75rem), and the reference adds the testing caveats the skill copy lacked.
  • The @supports snippet is covered by the reference's Progressive enhancement section, which also explains why to prefer it over JS measurement or magic-number offsets. Task step 5 keeps the instruction to use progressive enhancement, so the behavioral cue is not lost with the example.
  • Dropping the Inputs enumeration is safe: Task steps 3 and 6 already name component, font, writing mode, browser support target, and target locales, and the shortened Inputs section now matches the shape used by the other skills in this repo.

The Reference section gates the read on "before explaining the feature or changing production CSS," which spans every path the removed material mattered for, so the moved-out detail stays reachable. Keeping one minimal cap alphabetic example in Default CSS is consistent with the Output instruction to give one minimal example, so the file still stands on its own for the common case. No materially better approach.

Approach review by Claude Code Opus (opus)

**Approach review:** Deduplicating the skill body against its always-read reference is the right approach here, and the specific deletions check out. - `ex alphabetic` guidance survives in `references/css-text-box-trim.md` (shorthand example under Syntax, plus the Values entry describing when x-height reads better and the note that `cap alphabetic`/`ex alphabetic` are the practical Latin pairs). - The button padding-compensation recipe is byte-for-byte the same numbers as the reference's Buttons recipe (`padding-block: 0.35rem; padding-inline: 0.75rem` then `padding: 0.625rem 0.75rem`), and the reference adds the testing caveats the skill copy lacked. - The `@supports` snippet is covered by the reference's Progressive enhancement section, which also explains why to prefer it over JS measurement or magic-number offsets. `Task` step 5 keeps the instruction to use progressive enhancement, so the behavioral cue is not lost with the example. - Dropping the Inputs enumeration is safe: `Task` steps 3 and 6 already name component, font, writing mode, browser support target, and target locales, and the shortened Inputs section now matches the shape used by the other skills in this repo. The `Reference` section gates the read on "before explaining the feature or changing production CSS," which spans every path the removed material mattered for, so the moved-out detail stays reachable. Keeping one minimal `cap alphabetic` example in `Default CSS` is consistent with the `Output` instruction to give one minimal example, so the file still stands on its own for the common case. No materially better approach. _Approach review by Claude Code Opus (opus)_ <!-- axrecipe-review:v1:eyJzY2hlbWFWZXJzaW9uIjoxLCJzdGF0ZSI6InB1Ymxpc2hlZCIsInJlcG9zaXRvcnkiOiJqNGstb3NzL2FnZW50LXNraWxscyIsIm51bWJlciI6IjQ1IiwiaGVhZFNoYSI6IjFhZWNhNjlmYmViYWRjMmExMmI3ZGYzNmM3MTdlNzU0MDhhYTIxNjIiLCJzbG90IjoiZm9yZ2Vqby1yZXZpZXctYXBwcm9hY2gtc21hcnQtMSIsInNvdXJjZVdvcmtmbG93UnVuSWQiOiIxNzcyOSIsInNvdXJjZUdlbmVyYXRvckF0dGVtcHQiOiIxIiwicmVzdWx0SWQiOiJkZGU5OTA1Zi0zYzQ4LTRiOTUtYjg3Yi02ZTlmZDA2NmRlYzYifQ== -->
forgejo-actions left a comment

Summary: No actionable issues found. 1 informational note.

Verified every deletion against skills/css-text-box-trim/references/css-text-box-trim.md, which the skill body still links at line 18:

  • ex alphabetic guidance survives in the reference (Syntax example line 52, Values entry line 97, Latin-script pairing line 100).
  • The @supports progressive-enhancement guidance survives under "Progressive enhancement" (lines 188-206).
  • The button padding-compensation recipe survives under "Practical recipes > Buttons" (lines 120-140) with the identical numbers: padding-block: 0.35rem / padding-inline: 0.75rem before trimming and padding: 0.625rem 0.75rem after.

The remaining SKILL.md is internally consistent: task step 5 still calls for progressive enhancement and step 3 still covers value selection, both backed by the reference read. The relative link resolves, the frontmatter and heading structure are intact, and nothing else in the repository referenced the removed blocks.

Code review by Claude Code Opus (opus)

**Summary:** No actionable issues found. 1 informational note. Verified every deletion against `skills/css-text-box-trim/references/css-text-box-trim.md`, which the skill body still links at line 18: - `ex alphabetic` guidance survives in the reference (Syntax example line 52, Values entry line 97, Latin-script pairing line 100). - The `@supports` progressive-enhancement guidance survives under "Progressive enhancement" (lines 188-206). - The button padding-compensation recipe survives under "Practical recipes > Buttons" (lines 120-140) with the identical numbers: `padding-block: 0.35rem` / `padding-inline: 0.75rem` before trimming and `padding: 0.625rem 0.75rem` after. The remaining SKILL.md is internally consistent: task step 5 still calls for progressive enhancement and step 3 still covers value selection, both backed by the reference read. The relative link resolves, the frontmatter and heading structure are intact, and nothing else in the repository referenced the removed blocks. _Code review by Claude Code Opus (opus)_ <!-- axrecipe-review:v1:eyJzY2hlbWFWZXJzaW9uIjoxLCJzdGF0ZSI6InB1Ymxpc2hlZCIsInJlcG9zaXRvcnkiOiJqNGstb3NzL2FnZW50LXNraWxscyIsIm51bWJlciI6IjQ1IiwiaGVhZFNoYSI6IjFhZWNhNjlmYmViYWRjMmExMmI3ZGYzNmM3MTdlNzU0MDhhYTIxNjIiLCJzbG90IjoiZm9yZ2Vqby1yZXZpZXctY29kZS1zbWFydC0xIiwic291cmNlV29ya2Zsb3dSdW5JZCI6IjE3NzI5Iiwic291cmNlR2VuZXJhdG9yQXR0ZW1wdCI6IjEiLCJyZXN1bHRJZCI6IjlmZDc0ZjdhLWI1ZmUtNGM2Ny05ZWRiLTlmYjhhOGJiZGI5YyJ9 -->
@ -10,3 +10,3 @@
# Inputs
Use the surrounding user request as the scope. Honor any supplied component, font, locale, browser support target, framework, and codebase constraints.
Use the surrounding user request as the scope.

ℹ️ Info: The shortened sentence matches the convention in sibling skills (verify-readme, verify-tests use the same terse Inputs form), and honoring supplied constraints is default agent behavior, so this reads fine as-is.

One small correction to the PR description: the task steps do not name each removed item. Step 3 names component, font, writing mode, and browser support target, and step 6 names target locales and fallback fonts — but "framework" and "codebase constraints" now appear nowhere in the file. No action needed if that omission is intentional.

ℹ️ **Info:** The shortened sentence matches the convention in sibling skills (`verify-readme`, `verify-tests` use the same terse Inputs form), and honoring supplied constraints is default agent behavior, so this reads fine as-is. One small correction to the PR description: the task steps do not name *each* removed item. Step 3 names component, font, writing mode, and browser support target, and step 6 names target locales and fallback fonts — but "framework" and "codebase constraints" now appear nowhere in the file. No action needed if that omission is intentional.
Author
Owner

@reply-43550.txt

@reply-43550.txt
jercik marked this conversation as resolved
jercik merged commit 0e602b8ef9 into main 2026-08-07 07:02:00 +00:00
jercik deleted branch align/css-text-box-trim 2026-08-07 07:02:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
j4k-oss/agent-skills!45
No description provided.