@mohammadhprp/system-prompt 0.12.2 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/commands/README.md +1 -1
- package/framework/commands/review.md +1 -1
- package/framework/mcps/README.md +0 -1
- package/framework/plugins/ponytail/README.md +0 -1
- package/framework/plugins/ponytail/capabilities.md +1 -1
- package/framework/references/standards/api.md +0 -1
- package/framework/references/standards/architecture.md +0 -1
- package/framework/references/standards/database.md +0 -1
- package/framework/references/standards/debugging.md +0 -1
- package/framework/references/standards/documentation.md +0 -1
- package/framework/references/standards/logging.md +0 -1
- package/framework/references/standards/naming.md +0 -1
- package/framework/references/standards/observability.md +0 -1
- package/framework/references/standards/performance.md +0 -1
- package/framework/references/standards/pull-requests.md +0 -1
- package/framework/references/standards/security.md +0 -1
- package/framework/references/standards/testing.md +0 -1
- package/framework/skills/README.md +16 -12
- package/framework/skills/architect/SKILL.md +83 -0
- package/framework/skills/architect/examples.md +5 -0
- package/framework/skills/architect/references/design-red-flags.md +33 -0
- package/framework/skills/architect/references/rationale-template.md +35 -0
- package/framework/skills/architect/references/runner-prompt.md +20 -0
- package/framework/skills/arena/SKILL.md +71 -0
- package/framework/skills/arena/examples.md +5 -0
- package/framework/skills/bro/SKILL.md +7 -0
- package/framework/skills/bro/examples.md +5 -0
- package/framework/skills/changelog/SKILL.md +41 -0
- package/framework/skills/changelog/examples.md +5 -0
- package/framework/skills/commit/SKILL.md +28 -0
- package/framework/skills/commit/examples.md +5 -0
- package/framework/skills/how/SKILL.md +135 -0
- package/framework/skills/how/examples.md +5 -0
- package/framework/skills/how/references/critic-prompt.md +59 -0
- package/framework/skills/how/references/critique-rubric.md +58 -0
- package/framework/skills/how/references/explainer-prompt.md +55 -0
- package/framework/skills/how/references/explorer-prompt.md +52 -0
- package/framework/skills/improve/SKILL.md +1 -3
- package/framework/skills/improve/examples.md +1 -1
- package/framework/skills/laravel-best-practices/SKILL.md +56 -216
- package/framework/skills/laravel-best-practices/references/architecture.md +1 -1
- package/framework/skills/laravel-best-practices/references/checklist.md +139 -0
- package/framework/skills/laravel-best-practices/references/eloquent.md +4 -2
- package/framework/skills/laravel-best-practices/references/infer-conventions.md +97 -0
- package/framework/skills/laravel-best-practices/references/pest-testing.md +47 -18
- package/framework/skills/laravel-best-practices/references/security.md +1 -1
- package/framework/skills/laravel-best-practices/references/style.md +1 -1
- package/framework/skills/laravel-best-practices/references/tailwindcss.md +0 -1
- package/framework/skills/merge-request/SKILL.md +40 -0
- package/framework/skills/merge-request/examples.md +5 -0
- package/framework/skills/pull-request/SKILL.md +31 -0
- package/framework/skills/pull-request/examples.md +5 -0
- package/framework/skills/release/SKILL.md +30 -0
- package/framework/skills/release/examples.md +5 -0
- package/framework/skills/review/SKILL.md +18 -0
- package/framework/skills/review/examples.md +5 -0
- package/framework/skills/tdd/SKILL.md +44 -0
- package/framework/skills/tdd/examples.md +5 -0
- package/framework/skills/unslop/SKILL.md +81 -0
- package/framework/skills/unslop/examples.md +5 -0
- package/framework/skills/why/SKILL.md +230 -0
- package/framework/skills/why/examples.md +5 -0
- package/framework/skills/why/references/epistemics.md +144 -0
- package/framework/skills/why/references/investigator-prompt.md +103 -0
- package/framework/skills/why/references/source-playbook.md +17 -0
- package/framework/skills/why/references/sources/code-archaeology.md +88 -0
- package/framework/skills/why/references/sources/databricks.md +70 -0
- package/framework/skills/why/references/sources/datadog.md +99 -0
- package/framework/skills/why/references/sources/incident-postmortem.md +15 -0
- package/framework/skills/why/references/sources/linear.md +48 -0
- package/framework/skills/why/references/sources/notion.md +55 -0
- package/framework/skills/why/references/sources/sentry.md +100 -0
- package/framework/skills/why/references/sources/slack.md +54 -0
- package/framework/skills/why/references/synthesizer-prompt.md +135 -0
- package/package.json +1 -1
- package/src/catalog.js +13 -12
- package/framework/mcps/notion-mcp/README.md +0 -57
- package/framework/mcps/notion-mcp/capabilities.md +0 -118
- package/framework/mcps/notion-mcp/configs/opencode.json +0 -9
- package/framework/mcps/notion-mcp/install.md +0 -70
- package/framework/mcps/notion-mcp/troubleshooting.md +0 -95
- package/framework/skills/brainstorming/SKILL.md +0 -159
- package/framework/skills/brainstorming/examples.md +0 -49
- package/framework/skills/brainstorming/scripts/frame-template.html +0 -213
- package/framework/skills/brainstorming/scripts/helper.js +0 -167
- package/framework/skills/brainstorming/scripts/server.cjs +0 -723
- package/framework/skills/brainstorming/scripts/start-server.sh +0 -209
- package/framework/skills/brainstorming/scripts/stop-server.sh +0 -120
- package/framework/skills/brainstorming/visual-companion.md +0 -291
- package/framework/skills/code-review/SKILL.md +0 -72
- package/framework/skills/code-review/examples.md +0 -31
- package/framework/skills/codenavi/SKILL.md +0 -306
- package/framework/skills/codenavi/examples.md +0 -33
- package/framework/skills/codenavi/references/coding-principles.md +0 -143
- package/framework/skills/codenavi/references/notebook-spec.md +0 -171
- package/framework/skills/create-adr/SKILL.md +0 -429
- package/framework/skills/create-adr/examples.md +0 -35
- package/framework/skills/design/SKILL.md +0 -399
- package/framework/skills/design/examples.md +0 -34
- package/framework/skills/great-interface/SKILL.md +0 -43
- package/framework/skills/great-interface/references/animations.md +0 -205
- package/framework/skills/great-interface/references/better-accessibility.md +0 -106
- package/framework/skills/great-interface/references/better-colors.md +0 -100
- package/framework/skills/great-interface/references/better-interface.md +0 -132
- package/framework/skills/great-interface/references/better-layout.md +0 -76
- package/framework/skills/great-interface/references/better-typography.md +0 -157
- package/framework/skills/great-interface/references/better-ui.md +0 -107
- package/framework/skills/great-interface/references/better-writing.md +0 -109
- package/framework/skills/great-interface/references/choosing-fonts.md +0 -64
- package/framework/skills/great-interface/references/color-formats.md +0 -90
- package/framework/skills/great-interface/references/color-usage.md +0 -118
- package/framework/skills/great-interface/references/contrast.md +0 -79
- package/framework/skills/great-interface/references/css-cheat-sheet.md +0 -65
- package/framework/skills/great-interface/references/details-and-accessibility.md +0 -119
- package/framework/skills/great-interface/references/enter-exit.md +0 -147
- package/framework/skills/great-interface/references/explain-interface.md +0 -126
- package/framework/skills/great-interface/references/find-the-effect.md +0 -94
- package/framework/skills/great-interface/references/focus-and-keyboard.md +0 -131
- package/framework/skills/great-interface/references/forms.md +0 -84
- package/framework/skills/great-interface/references/from-an-image.md +0 -55
- package/framework/skills/great-interface/references/grouping-and-alignment.md +0 -123
- package/framework/skills/great-interface/references/hit-areas.md +0 -94
- package/framework/skills/great-interface/references/icon-transitions.md +0 -102
- package/framework/skills/great-interface/references/icons.md +0 -110
- package/framework/skills/great-interface/references/interface-review.md +0 -148
- package/framework/skills/great-interface/references/motion-and-zoom.md +0 -79
- package/framework/skills/great-interface/references/no-browser.md +0 -73
- package/framework/skills/great-interface/references/palette-generation.md +0 -104
- package/framework/skills/great-interface/references/palette-structure.md +0 -76
- package/framework/skills/great-interface/references/performance.md +0 -88
- package/framework/skills/great-interface/references/picker.md +0 -76
- package/framework/skills/great-interface/references/read-the-system.md +0 -178
- package/framework/skills/great-interface/references/removed-signals.md +0 -38
- package/framework/skills/great-interface/references/review-format.md +0 -46
- package/framework/skills/great-interface/references/scope-resolution.md +0 -88
- package/framework/skills/great-interface/references/screen-readers.md +0 -101
- package/framework/skills/great-interface/references/semantics-and-aria.md +0 -84
- package/framework/skills/great-interface/references/spacing-and-adaptivity.md +0 -159
- package/framework/skills/great-interface/references/spacing-and-sizing.md +0 -121
- package/framework/skills/great-interface/references/surfaces.md +0 -219
- package/framework/skills/great-interface/references/token-naming.md +0 -97
- package/framework/skills/great-interface/references/variable-fonts-and-opentype.md +0 -105
- package/framework/skills/great-interface/references/variant.md +0 -104
- package/framework/skills/great-interface/references/wrapping-and-punctuation.md +0 -55
- package/framework/skills/learning-opportunities/SKILL.md +0 -140
- package/framework/skills/learning-opportunities/examples.md +0 -34
- package/framework/skills/learning-opportunities/references/PRINCIPLES.md +0 -42
- package/framework/skills/notion-mcp/SKILL.md +0 -57
- package/framework/skills/notion-mcp/examples.md +0 -31
- package/framework/skills/notion-mcp/references/comments.md +0 -112
- package/framework/skills/notion-mcp/references/databases.md +0 -193
- package/framework/skills/notion-mcp/references/pages.md +0 -235
- package/framework/skills/spec-driven-eval/SKILL.md +0 -341
- package/framework/skills/spec-driven-eval/examples.md +0 -35
- package/framework/skills/spec-driven-eval/references/quickstart.md +0 -118
- package/framework/skills/spec-driven-eval/references/reference.md +0 -295
- package/framework/skills/technical-design-doc-creator/README.md +0 -411
- package/framework/skills/technical-design-doc-creator/SKILL.md +0 -1484
- package/framework/skills/technical-design-doc-creator/examples.md +0 -35
- package/framework/skills/web-design-guidelines/SKILL.md +0 -65
- package/framework/skills/web-design-guidelines/examples.md +0 -32
- package/framework/skills/web-design-guidelines/references/guideline.md +0 -174
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
# Variable fonts and OpenType
|
|
2
|
-
|
|
3
|
-
What a font file can do beyond drawing letters and how to reach those abilities from CSS.
|
|
4
|
-
|
|
5
|
-
## Static vs variable
|
|
6
|
-
|
|
7
|
-
- **Static font:** one weight and one style per file. Regular, medium and bold is three files.
|
|
8
|
-
- **Variable font:** a whole range in one file. Any value in it works, such as `font-weight: 589`.
|
|
9
|
-
|
|
10
|
-
A variable font is not automatically better. At one or two weights, static files can be smaller. At several weights, optical sizes, or custom axes, a variable font usually wins.
|
|
11
|
-
|
|
12
|
-
## Load intended weights and styles
|
|
13
|
-
|
|
14
|
-
Use a weight or style the active family does not provide and the browser may synthesize it, so load the faces the design uses. `none` disables weight, style, small-cap, superscript and subscript synthesis together and can erase distinctions when the real face is unavailable. Verify the whole fallback stack and every emphasis state before setting it.
|
|
15
|
-
|
|
16
|
-
```css
|
|
17
|
-
.brand-wordmark {
|
|
18
|
-
/* Safe only after this isolated treatment is verified */
|
|
19
|
-
font-synthesis: none;
|
|
20
|
-
}
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
For body and interface text, keep synthesis enabled unless a verified font setup supplies every requested form. If only one mode is unwanted, use the specific longhand (`font-synthesis-weight`, `font-synthesis-style` and related properties) instead of the blanket shorthand.
|
|
24
|
-
|
|
25
|
-
## Axes
|
|
26
|
-
|
|
27
|
-
Variable-font controls, each with a four-letter tag. A font supports only the axes its designer included.
|
|
28
|
-
|
|
29
|
-
| Axis | Tag | Controls |
|
|
30
|
-
| --- | --- | --- |
|
|
31
|
-
| Weight | `wght` | Stroke thickness (like `font-weight`) |
|
|
32
|
-
| Optical size | `opsz` | Details and spacing tuned for the display size |
|
|
33
|
-
| Width | `wdth` | Glyph width |
|
|
34
|
-
| Slant | `slnt` | Slant angle |
|
|
35
|
-
| Custom | e.g. `GRAD` (Roboto Flex) | Whatever the designer built |
|
|
36
|
-
|
|
37
|
-
Inter's variable file exposes only `wght` and `opsz`.
|
|
38
|
-
|
|
39
|
-
Optical sizes predate variable fonts, and many families still ship them as separate files. Heldane Text is sturdier and more spaced for reading sizes, Heldane Display finer for large ones.
|
|
40
|
-
|
|
41
|
-
## Properties over axis tags
|
|
42
|
-
|
|
43
|
-
When a property exists, use it. `font-weight` keeps working when a non-variable fallback renders, where `font-variation-settings` silently does nothing. Save raw tags for custom axes with no property of their own:
|
|
44
|
-
|
|
45
|
-
```css
|
|
46
|
-
/* Good: common axes use the properties */
|
|
47
|
-
.heading {
|
|
48
|
-
font-weight: 650;
|
|
49
|
-
font-optical-sizing: auto;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Good: custom axis with no property of its own */
|
|
53
|
-
.heading-grade {
|
|
54
|
-
font-variation-settings: "GRAD" 80;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Bad: weight via raw tag breaks on fallback fonts */
|
|
58
|
-
.heading {
|
|
59
|
-
font-variation-settings: "wght" 650;
|
|
60
|
-
}
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## OpenType features
|
|
64
|
-
|
|
65
|
-
OpenType is the standard behind almost every modern font. Features are extra built-in options and, unlike axes, work the same on static and variable fonts. A font ships only the features its designer included.
|
|
66
|
-
|
|
67
|
-
| Tag | Feature |
|
|
68
|
-
| --- | --- |
|
|
69
|
-
| `tnum` | Tabular numbers: every digit the same width |
|
|
70
|
-
| `zero` | Slashed zero: `0` distinct from `O` |
|
|
71
|
-
| `liga` | Ligatures: joins pairs like "fi" into one shape |
|
|
72
|
-
| `ss01`–`ss20` | Stylistic sets (numbered slots) |
|
|
73
|
-
| `cv01`–`cv99` | Character variants (numbered slots) |
|
|
74
|
-
|
|
75
|
-
Same rule as axes. Prefer the `font-variant-*` properties and reserve `font-feature-settings` for tags with no property:
|
|
76
|
-
|
|
77
|
-
```css
|
|
78
|
-
/* Good: common features use the properties */
|
|
79
|
-
.price {
|
|
80
|
-
font-variant-numeric: tabular-nums;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/* Good: slashed zero via the property too */
|
|
84
|
-
.id {
|
|
85
|
-
font-variant-numeric: slashed-zero;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* Good: niche feature with no property of its own */
|
|
89
|
-
.logo {
|
|
90
|
-
font-feature-settings: "ss01" 1;
|
|
91
|
-
}
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
Tabular numbers matter for changing values. Without them each digit has a different width and the layout shifts as values update.
|
|
95
|
-
|
|
96
|
-
## Small caps, superscripts, subscripts
|
|
97
|
-
|
|
98
|
-
- **Small capitals:** uppercase letters drawn at a smaller size. Enable real ones with `font-variant-caps`.
|
|
99
|
-
- **Superscripts** sit above the normal line, the 2 in x², and **subscripts** below it, as in H₂O. Enable proper glyphs with `font-variant-position`.
|
|
100
|
-
|
|
101
|
-
Both require the font to include the glyphs.
|
|
102
|
-
|
|
103
|
-
## Stylistic sets and character variants
|
|
104
|
-
|
|
105
|
-
`ss01` = stylistic set, slot 01. `cv11` = character variant, slot 11. What each slot does differs font to font, which is why they are numbered, not named. Check the font's docs. In Inter, `ss01` switches to open digits and `cv11` swaps in a single-story `a`.
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# Variants
|
|
2
|
-
|
|
3
|
-
This skill takes one described piece of UI and builds three versions that differ on purpose. They go behind a picker in the real page, so you can flip between them and choose.
|
|
4
|
-
|
|
5
|
-
Every other skill here judges. This one produces candidates and hands the decision back. Reviewing existing UI is `interface-review` and `better-interface`, and it does not pick the winner.
|
|
6
|
-
|
|
7
|
-
## Different answers, not different tints
|
|
8
|
-
|
|
9
|
-
Three variants that differ in accent color teach nothing. You flip between them, see no real choice and the run is wasted.
|
|
10
|
-
|
|
11
|
-
So each variant is a different answer to the same brief, on an axis this collection owns:
|
|
12
|
-
|
|
13
|
-
| Axis | Owner | What varies |
|
|
14
|
-
| --- | --- | --- |
|
|
15
|
-
| Structure | `better-layout` | Grouping, order, column count, what collapses |
|
|
16
|
-
| Density | `better-layout` | Spacing scale, hit areas, how much fits |
|
|
17
|
-
| Emphasis | `better-colors` | Where filled color goes, what recedes |
|
|
18
|
-
| Type | `better-typography` | Scale steps, weight contrast, measure |
|
|
19
|
-
| Voice | `better-writing` | Labels, tone, how much copy |
|
|
20
|
-
|
|
21
|
-
Pick **one primary axis** and give each variant a different position on it. Secondary choices follow from it rather than varying on their own. A dense variant may need a smaller type step, and that is coherence, not a second axis.
|
|
22
|
-
|
|
23
|
-
Varying every axis at once produces three unattributable results. You learn which you liked, not what made it work, so the next piece starts from nothing.
|
|
24
|
-
|
|
25
|
-
## The floor every variant clears
|
|
26
|
-
|
|
27
|
-
A variant that wins on looks and fails an escalation trigger is not a candidate. It is a bug with a nice surface.
|
|
28
|
-
|
|
29
|
-
Before a variant enters the picker it clears `better-interface`'s escalation triggers. Every control has an accessible name, keyboard reaches everything a pointer does, focus is visible, nothing clips at 320px and no meaning rides on color alone.
|
|
30
|
-
|
|
31
|
-
That floor is identical across variants. It is not an axis and never trades against one. Where a direction can only work by breaking it, say so and drop the direction.
|
|
32
|
-
|
|
33
|
-
## 1. Scope one piece
|
|
34
|
-
|
|
35
|
-
One piece of UI per run. "The dashboard" is not a piece; the metric card is. Where the brief spans several, name the one the others hang off, say why and offer the rest as later runs.
|
|
36
|
-
|
|
37
|
-
Restate the brief in one sentence: what the thing is, where it renders, what it has to do.
|
|
38
|
-
|
|
39
|
-
## 2. Learn the ground
|
|
40
|
-
|
|
41
|
-
Variants have to look like they could ship tomorrow, so read what they stand on:
|
|
42
|
-
|
|
43
|
-
- The styling system, the component library and any motion library.
|
|
44
|
-
- The tokens: color, spacing, radius, type scale, easing.
|
|
45
|
-
- The product's density and voice. A dense professional tool bounds how far the boldest variant may go.
|
|
46
|
-
- Where the piece renders: against what background, beside which neighbours, at which widths.
|
|
47
|
-
|
|
48
|
-
With no project to read, use neutral grays, one accent and the system font stack, and say that is what you did.
|
|
49
|
-
|
|
50
|
-
## 3. Name the axis before writing code
|
|
51
|
-
|
|
52
|
-
Default to three variants. Go to five only when asked, or when the space is genuinely wide. Past five nobody compares, they scroll.
|
|
53
|
-
|
|
54
|
-
Write the set down first, a name and an axis position each. Names say what the direction is, so `Quiet`, `Editorial`, `Dense`, never `Option A`.
|
|
55
|
-
|
|
56
|
-
This step is done when no two variants share a position and you can state each one's axis in a phrase.
|
|
57
|
-
|
|
58
|
-
## 4. Build it into the real page
|
|
59
|
-
|
|
60
|
-
A variant looks fine in isolation, which is why isolation is the wrong place to judge it. Host the variants on the page that will actually contain the piece, with the real chrome, the real neighbours and realistic data.
|
|
61
|
-
|
|
62
|
-
Select with a URL search param (`?variant=quiet`), so every variant is a link you can send someone. A floating control sets it; [picker.md]() holds the spec.
|
|
63
|
-
|
|
64
|
-
Render one variant at a time, full size. Thumbnails distort spacing and scale, and spacing is usually the thing you are choosing between.
|
|
65
|
-
|
|
66
|
-
Where no page can host it, build one self-contained HTML file and keep the same picker.
|
|
67
|
-
|
|
68
|
-
Give every variant real content: product-shaped copy, plausible names and the number of items the page will really carry. Lorem ipsum and three rows make every structure look good.
|
|
69
|
-
|
|
70
|
-
## 5. Present the tradeoffs and stop
|
|
71
|
-
|
|
72
|
-
Flip through every variant yourself first. Each one renders, each interaction responds, the console is clean.
|
|
73
|
-
|
|
74
|
-
Then hand the decision over:
|
|
75
|
-
|
|
76
|
-
| Variant | Axis position | Right when | Costs |
|
|
77
|
-
| --- | --- | --- | --- |
|
|
78
|
-
| Quiet | Lowest visual weight | The page is used daily | Least memorable |
|
|
79
|
-
| Editorial | Largest type, most space | The moment deserves weight | Eats vertical space |
|
|
80
|
-
|
|
81
|
-
Say where the picker is running, which key flips it and which width you judged at. The answer can change between 375px and 1440px.
|
|
82
|
-
|
|
83
|
-
Never mark a favourite in the table. Asked directly, answer from how often the piece is seen and from the product's personality, not from which one you enjoyed building.
|
|
84
|
-
|
|
85
|
-
## 6. Promote one, delete the rest
|
|
86
|
-
|
|
87
|
-
On a choice: build that variant properly where it belongs, following the project's own conventions, then delete the others and the harness.
|
|
88
|
-
|
|
89
|
-
Asked for another round instead, keep the harness and run step 3 again, taking new positions around the direction you leaned toward.
|
|
90
|
-
|
|
91
|
-
Until promotion, the harness never imports from production and production never imports from the harness.
|
|
92
|
-
|
|
93
|
-
## Before you finish
|
|
94
|
-
|
|
95
|
-
| Mistake | Fix |
|
|
96
|
-
| --- | --- |
|
|
97
|
-
| Variants differ only in accent color or copy | Move one to a different position on the primary axis, or cut it |
|
|
98
|
-
| Every axis varies at once | Vary one; let the rest follow from it |
|
|
99
|
-
| Judged on a blank route | Host them on the page that will contain the piece |
|
|
100
|
-
| Lorem ipsum, three rows, "Jane Doe" | Real copy and the item count the page will really carry |
|
|
101
|
-
| The boldest variant skips keyboard or focus | Clear the floor or drop the direction |
|
|
102
|
-
| A favourite marked in the table | State each variant's cost and let the user choose |
|
|
103
|
-
| Picker restyled with the project's tokens | Keep it visibly outside the design system |
|
|
104
|
-
| Harness left behind after promotion | Delete it unless asked to keep it |
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# Wrapping and punctuation
|
|
2
|
-
|
|
3
|
-
Where lines start, where they end, where they break and which characters they use.
|
|
4
|
-
|
|
5
|
-
## Measure (line length)
|
|
6
|
-
|
|
7
|
-
Long lines make it harder for the eye to find the start of the next. For long-form text, aim for 60–75 characters per line.
|
|
8
|
-
|
|
9
|
-
Any unit works. `65ch` measures characters directly, one `ch` being the width of the `0` in the current font, and a pixel or rem cap is just as good. At a `16px` body size the 60–75 character range lands roughly between `560px` and `680px` depending on the font, so Tailwind's `max-w-xl` (`576px`) and `max-w-2xl` (`672px`) both fit. What matters is that a cap exists and the line length sits in range. Recheck it if the body font size changes.
|
|
10
|
-
|
|
11
|
-
## Alignment
|
|
12
|
-
|
|
13
|
-
`text-align` controls where each line starts and ends. `justify` stretches spaces until both edges line up, which works in specific editorial layouts and nowhere else in an interface.
|
|
14
|
-
|
|
15
|
-
## Wrapping
|
|
16
|
-
|
|
17
|
-
| Property | Use |
|
|
18
|
-
| --- | --- |
|
|
19
|
-
| `text-wrap: balance` | Distributes text evenly across multiple lines |
|
|
20
|
-
| `text-wrap: pretty` | Avoids leaving a single short word on the final line |
|
|
21
|
-
| `overflow-wrap: break-word` | Lets long words, links and IDs break before escaping the container |
|
|
22
|
-
| `white-space: nowrap` | Keeps labels and badges on one line where a break looks broken |
|
|
23
|
-
|
|
24
|
-
Use `balance` on headings and `pretty` on descriptions. Skip both in long-form text, because browsers ignore `balance` past a few lines anyway, and evening out a whole paragraph wastes space and makes it harder to read.
|
|
25
|
-
|
|
26
|
-
## Truncation
|
|
27
|
-
|
|
28
|
-
- Single line: `text-overflow: ellipsis`, which needs `overflow: hidden` and `white-space: nowrap`.
|
|
29
|
-
- Multiple lines: `line-clamp` allows any number of lines before the ellipsis.
|
|
30
|
-
|
|
31
|
-
Truncation hides content. Where the missing text matters, make the full value available in a tooltip or an expanded view.
|
|
32
|
-
|
|
33
|
-
## Case
|
|
34
|
-
|
|
35
|
-
`text-transform` changes how case appears without changing the underlying text. Write copy naturally and control presentation with CSS, so a redesign never means rewriting copy.
|
|
36
|
-
|
|
37
|
-
## Smart punctuation
|
|
38
|
-
|
|
39
|
-
Keyboard characters are not always the best characters:
|
|
40
|
-
|
|
41
|
-
| Instead of | Use |
|
|
42
|
-
| --- | --- |
|
|
43
|
-
| Straight quotes `"..."` | Curly quotes that curve around the text (keep straight quotes in code) |
|
|
44
|
-
| Hyphen in ranges | En dash: `2010–2020` |
|
|
45
|
-
| Two hyphens for an aside | Em dash character |
|
|
46
|
-
| Three periods `...` | The single ellipsis character `…` |
|
|
47
|
-
| Regular space in `16 px` | ` ` so the value never breaks apart |
|
|
48
|
-
| Uncontrolled word breaks | `­` to mark where a word may break |
|
|
49
|
-
|
|
50
|
-
## Internationalization
|
|
51
|
-
|
|
52
|
-
Two refinements for mixed-direction text:
|
|
53
|
-
|
|
54
|
-
- **Long paragraphs align by their own language.** A one- or two-line snippet follows the surrounding UI's direction. A paragraph of three or more lines aligns to its own script instead, so an English paragraph stays start-aligned LTR even inside an RTL interface. `text-align: start` with the correct `lang`/`dir` on the paragraph element handles this.
|
|
55
|
-
- **Never reverse digits.** Numbers keep their order in every direction, so a phone number or "541" reads identically in RTL. Browsers handle this through the Unicode bidi algorithm. Never fight it with manual reordering, and wrap mixed number and text values in `<bdi>` where adjacent RTL text disturbs them.
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: learning-opportunities
|
|
3
|
-
description: Facilitates deliberate skill development during AI-assisted coding. Offers interactive learning exercises after architectural work (new files, schema changes, refactors). Use when completing features, making design decisions, or when user asks to understand code better. Triggers on "learning exercise", "help me understand", "teach me", "why does this work", or after creating new files/modules. Do NOT use for urgent debugging, quick fixes, or when user says "just ship it".
|
|
4
|
-
license: CC-BY-4.0
|
|
5
|
-
metadata:
|
|
6
|
-
original_author: Chris Hicks
|
|
7
|
-
modified_by: Felipe Rodrigues - github.com/felipfr
|
|
8
|
-
source: https://www.fightforthehuman.com
|
|
9
|
-
version: 1.1.0
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# Learning Opportunities
|
|
13
|
-
|
|
14
|
-
Facilitate deliberate skill development during AI-assisted coding sessions. Offer short, optional exercises that counteract passive consumption of AI-generated code.
|
|
15
|
-
|
|
16
|
-
When adapting techniques or making judgment calls about learning approaches, consult `references/PRINCIPLES.md` for the underlying learning science.
|
|
17
|
-
|
|
18
|
-
## When to offer exercises
|
|
19
|
-
|
|
20
|
-
Offer an optional 10-15 minute exercise after:
|
|
21
|
-
|
|
22
|
-
- Creating new files or modules
|
|
23
|
-
- Database schema changes
|
|
24
|
-
- Architectural decisions or refactors
|
|
25
|
-
- Implementing unfamiliar patterns
|
|
26
|
-
- Any work where the user asked "why" questions during development
|
|
27
|
-
|
|
28
|
-
Always ask before starting: "Would you like to do a quick learning exercise on [topic]? About 10-15 minutes."
|
|
29
|
-
|
|
30
|
-
## When NOT to offer
|
|
31
|
-
|
|
32
|
-
- User declined an exercise this session
|
|
33
|
-
- User already completed 2 exercises this session
|
|
34
|
-
- User signals urgency ("fix this quick", "just ship it", "deploy now")
|
|
35
|
-
- Pure debugging/hotfix context
|
|
36
|
-
|
|
37
|
-
Keep offers to one short sentence. Do not repeat or insist.
|
|
38
|
-
|
|
39
|
-
## Core principle: Pause for input
|
|
40
|
-
|
|
41
|
-
This is the most important rule. After posing a question:
|
|
42
|
-
|
|
43
|
-
1. **Stop generating immediately.** Do not continue after the question mark.
|
|
44
|
-
2. Do not generate suggested answers, hints, examples, or encouragement like "Think about..." or "Consider..."
|
|
45
|
-
3. Wait for the user's actual response before continuing.
|
|
46
|
-
|
|
47
|
-
Allowed after the question:
|
|
48
|
-
|
|
49
|
-
- "(Take your best guess — wrong predictions are useful data.)"
|
|
50
|
-
- "(Or we can skip this one.)"
|
|
51
|
-
|
|
52
|
-
After their response:
|
|
53
|
-
|
|
54
|
-
- If correct: confirm and deepen ("Exactly. And what would change if [variation]?")
|
|
55
|
-
- If wrong: **be direct** about what's incorrect, then explore the gap — this is high-value learning
|
|
56
|
-
|
|
57
|
-
## Exercise types
|
|
58
|
-
|
|
59
|
-
### 1. Predict then observe
|
|
60
|
-
|
|
61
|
-
Ask what they predict will happen in a specific scenario before revealing the answer.
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
Example:
|
|
65
|
-
User just created auth middleware.
|
|
66
|
-
|
|
67
|
-
Agent: "Would you like a quick learning exercise on middleware patterns?"
|
|
68
|
-
User: "sure"
|
|
69
|
-
Agent: "What do you think happens when a request hits your middleware with an expired token?
|
|
70
|
-
|
|
71
|
-
(Take your best guess — wrong predictions are useful data.)"
|
|
72
|
-
|
|
73
|
-
[STOP — wait for response]
|
|
74
|
-
|
|
75
|
-
After response:
|
|
76
|
-
Agent: "Actually [correct behavior]. The key difference is [explanation].
|
|
77
|
-
What surprised you about that?"
|
|
78
|
-
|
|
79
|
-
[STOP — wait for response]
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### 2. Generate then compare
|
|
83
|
-
|
|
84
|
-
Ask them to sketch an approach before showing the actual implementation.
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
Example:
|
|
88
|
-
Agent: "Before I show you — how would you structure the error handling for this API endpoint?"
|
|
89
|
-
|
|
90
|
-
[STOP — wait for response]
|
|
91
|
-
|
|
92
|
-
After response:
|
|
93
|
-
Agent: "Here's what we went with: [implementation].
|
|
94
|
-
What's similar to your approach? What's different, and why do you think we chose this direction?"
|
|
95
|
-
|
|
96
|
-
[STOP — wait for response]
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### 3. Teach it back
|
|
100
|
-
|
|
101
|
-
Ask them to explain a component as if to a new team member.
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
Example:
|
|
105
|
-
Agent: "Explain how the caching layer we just built works, as if I'm a new developer joining the project."
|
|
106
|
-
|
|
107
|
-
[STOP — wait for response]
|
|
108
|
-
|
|
109
|
-
After response:
|
|
110
|
-
Agent: "You nailed [specific part]. One thing to refine: [specific gap]."
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
## Hands-on code exploration
|
|
114
|
-
|
|
115
|
-
Prefer directing users to files over showing code snippets. Having learners locate code themselves builds codebase familiarity.
|
|
116
|
-
|
|
117
|
-
**Adjust guidance based on demonstrated familiarity:**
|
|
118
|
-
|
|
119
|
-
- Early: "Open `src/middleware/auth.ts`, around line 45. What does `validateToken` return?"
|
|
120
|
-
- Later: "Find where we handle token refresh."
|
|
121
|
-
- Eventually: "Where would you look to change how session expiry works?"
|
|
122
|
-
|
|
123
|
-
After they locate code, prompt self-explanation:
|
|
124
|
-
|
|
125
|
-
"You found it. Before I say anything — what do you think this line does?"
|
|
126
|
-
|
|
127
|
-
## Techniques to weave in naturally
|
|
128
|
-
|
|
129
|
-
- **"Why" questions:** "Why did we use a Map here instead of an object?"
|
|
130
|
-
- **Transfer prompts:** "This is the strategy pattern. Where else in this codebase might it apply?"
|
|
131
|
-
- **Varied context:** "We used this for auth — how would you apply it to API rate limiting?"
|
|
132
|
-
- **Error analysis:** "Here's a bug someone might introduce — what would go wrong and why?"
|
|
133
|
-
|
|
134
|
-
## Anti-patterns to avoid
|
|
135
|
-
|
|
136
|
-
- Dumping multiple questions at once
|
|
137
|
-
- Softening wrong answers into ambiguity ("well, that's partially right...")
|
|
138
|
-
- Offering exercises more than twice per session
|
|
139
|
-
- Making exercises feel like tests rather than exploration
|
|
140
|
-
- Continuing to generate after posing a question
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Learning Opportunities Examples
|
|
2
|
-
|
|
3
|
-
## Offer an exercise after creating a module
|
|
4
|
-
|
|
5
|
-
User just created auth middleware: "Done, that's the middleware working."
|
|
6
|
-
|
|
7
|
-
Good agent behavior:
|
|
8
|
-
|
|
9
|
-
- Offer one short, optional exercise: "Would you like a quick learning exercise on middleware patterns? About 10-15 minutes."
|
|
10
|
-
- If the user agrees, use a predict-then-observe exercise: ask what happens when a request hits the middleware with an expired token.
|
|
11
|
-
- Stop generating immediately after the question and wait for the user's answer.
|
|
12
|
-
- If the prediction is wrong, be direct about what's incorrect, then explore the gap.
|
|
13
|
-
|
|
14
|
-
## Teach it back after a refactor
|
|
15
|
-
|
|
16
|
-
User: "We just replaced the cache layer. I want to make sure I actually understand it."
|
|
17
|
-
|
|
18
|
-
Good agent behavior:
|
|
19
|
-
|
|
20
|
-
- Ask the user to explain the caching layer as if to a new developer joining the project.
|
|
21
|
-
- Stop after posing the question and wait for the response.
|
|
22
|
-
- Confirm the specific parts they nailed, then name one concrete gap to refine.
|
|
23
|
-
- Keep the exercise exploratory rather than test-like.
|
|
24
|
-
|
|
25
|
-
## Decline when the user is in a hurry
|
|
26
|
-
|
|
27
|
-
User: "Just ship it, this needs to go out now."
|
|
28
|
-
|
|
29
|
-
Good agent behavior:
|
|
30
|
-
|
|
31
|
-
- Recognize urgency and skip the exercise offer entirely.
|
|
32
|
-
- Avoid repeating the offer when the user has already declined once this session.
|
|
33
|
-
- Cap the session at two completed exercises and stop offering.
|
|
34
|
-
- Keep any offer to a single sentence without insisting.
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Learning Principles
|
|
2
|
-
|
|
3
|
-
Consult this file when adapting techniques or making judgment calls about learning approaches. These principles explain WHY the techniques in the main skill work.
|
|
4
|
-
|
|
5
|
-
## Generation Effect
|
|
6
|
-
|
|
7
|
-
Users encode information better when they produce it rather than passively consume it. Active retrieval strengthens memory traces in ways that passive review does not. This is why we ask for predictions and explanations before revealing answers.
|
|
8
|
-
|
|
9
|
-
## Pre-testing
|
|
10
|
-
|
|
11
|
-
Attempting to answer before learning new information produces stronger memory — even when the attempt is wrong. A failed attempt makes the correct answer more memorable by contrast. Wrong predictions are valuable data, not failures.
|
|
12
|
-
|
|
13
|
-
## Spacing Effect
|
|
14
|
-
|
|
15
|
-
Distributing learning over time beats cramming. This is why we use retrieval check-ins at session starts and limit exercises to 2 per session rather than drilling continuously.
|
|
16
|
-
|
|
17
|
-
## Desirable Difficulties
|
|
18
|
-
|
|
19
|
-
Conditions that make learning harder in the short term often produce better long-term retention. Exercises should require effort without being frustrating. Struggle during learning is a sign it's working, not failing.
|
|
20
|
-
|
|
21
|
-
## Fluency Illusion
|
|
22
|
-
|
|
23
|
-
When AI-generated code is clean and readable, users overestimate how well they understand it. The fluency of the output masks gaps in mental models. This is the primary risk this skill counteracts.
|
|
24
|
-
|
|
25
|
-
## Dynamic Testing
|
|
26
|
-
|
|
27
|
-
Errors during learning, when followed by clear corrective feedback, enhance retention compared to error-free learning. This is why we are direct about wrong answers rather than softening them.
|
|
28
|
-
|
|
29
|
-
## Transfer and Interleaving
|
|
30
|
-
|
|
31
|
-
Knowledge transfers better when connected to underlying principles and varied contexts. Asking "where else would this apply?" builds flexible knowledge rather than context-bound recall.
|
|
32
|
-
|
|
33
|
-
## Sources
|
|
34
|
-
|
|
35
|
-
- Bjork, R. A., Dunlosky, J., & Kornell, N. (2013). Self-regulated learning: Beliefs, techniques, and illusions.
|
|
36
|
-
- Dunlosky, J., et al. (2013). Improving students' learning with effective learning techniques.
|
|
37
|
-
- Giebl, S., et al. (2021). Answer first or Google first?
|
|
38
|
-
- Hicks, C. M., Lee, C. S., & Foster-Marks, K. (2025). The New Developer: AI Skill Threat, Identity Change & Developer Thriving.
|
|
39
|
-
- Roediger III, H. L., & Karpicke, J. D. (2006). The power of testing memory.
|
|
40
|
-
- Soderstrom, N. C., & Bjork, R. A. (2015). Learning versus performance: An integrative review.
|
|
41
|
-
- Tankelevitch, L., et al. (2024). The metacognitive demands and opportunities of generative AI.
|
|
42
|
-
- Hicks, C. (2025). Cognitive helmets for the AI bicycle. Fight for the Human.
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: notion-mcp
|
|
3
|
-
description: Use this skill when working with the Notion MCP server tools for pages, databases, comments, search, users, and related Notion workflows.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# notion-mcp
|
|
7
|
-
|
|
8
|
-
Notion MCP server providing 14 tools for interacting with your Notion workspace via the Notion API.
|
|
9
|
-
|
|
10
|
-
## Tools
|
|
11
|
-
|
|
12
|
-
| Category | Tools | Default |
|
|
13
|
-
|------------------|--------------------------------------------------------------------------------------------------------------------------------------------|---------|
|
|
14
|
-
| Pages (6 tools) | `fetch`, `create-pages`, `update-page`, `duplicate-page`, `move-pages`, `search` | yes |
|
|
15
|
-
| Databases (4) | `create-database`, `update-data-source`, `create-view`, `update-view` | yes |
|
|
16
|
-
| Comments (2) | `create-comment`, `get-comments` | yes |
|
|
17
|
-
| Users & Teams (2)| `get-users`, `get-teams` | yes |
|
|
18
|
-
|
|
19
|
-
All tools are available by default — there are no opt-in toolsets for this server.
|
|
20
|
-
|
|
21
|
-
## Key Workflows
|
|
22
|
-
|
|
23
|
-
### Page Lifecycle (see references/pages.md)
|
|
24
|
-
|
|
25
|
-
`fetch` → `create-pages` → `update-page` / `duplicate-page` / `move-pages` → `search`
|
|
26
|
-
|
|
27
|
-
### Database Schema (see references/databases.md)
|
|
28
|
-
|
|
29
|
-
`fetch` → `create-database` → `update-data-source` → `create-view` → `update-view`
|
|
30
|
-
|
|
31
|
-
### Comment Threads (see references/comments.md)
|
|
32
|
-
|
|
33
|
-
`fetch` (with `include_discussions`) → `create-comment` → `get-comments`
|
|
34
|
-
|
|
35
|
-
### Search & Discovery
|
|
36
|
-
|
|
37
|
-
`search` → `fetch` → `get-users` / `get-teams`
|
|
38
|
-
|
|
39
|
-
## Parameter Hints
|
|
40
|
-
|
|
41
|
-
- **page_id / database_id**: UUID (with or without dashes) or full Notion URL. Extract from Notion page URLs or from `<page>` / `<database>` tags in fetch output.
|
|
42
|
-
- **data_source_id**: Found in `<data-source url="collection://...">` tags in fetch output. Used for `create-pages`, `update-data-source`, `create-view`.
|
|
43
|
-
- **Markdown content**: Notion-flavored Markdown. Supports inline formatting (bold, italic, code, links), inline math (`$Equation$`), and mention tags (`<mention-date>`, `<mention-user>`, `<mention-page>`, `<mention-database>`). Do not use `@today`, `@name`, `[[page]]` UI shortcuts.
|
|
44
|
-
- **Properties**: JSON map of property names to SQLite values. Date/place properties use expanded key format (e.g., `date:Due:start`, `place:Office:latitude`).
|
|
45
|
-
- **SQL DDL**: Used for `create-database` and `update-data-source` statements. Column names double-quoted, options single-quoted.
|
|
46
|
-
|
|
47
|
-
## Irreversible Tools
|
|
48
|
-
|
|
49
|
-
`move-pages` — permanently relocates pages. Cannot be undone programmatically. Use with caution.
|
|
50
|
-
|
|
51
|
-
## Advanced
|
|
52
|
-
|
|
53
|
-
- **Enhanced Markdown spec**: Read `notion://docs/enhanced-markdown-spec` through your MCP client's resource reader before writing page content.
|
|
54
|
-
- **View DSL spec**: Read `notion://docs/view-dsl-spec` through your MCP client's resource reader before configuring views.
|
|
55
|
-
- **Templates**: `create-pages` and `update-page` support applying page templates (template IDs shown in `<templates>` section of fetch output).
|
|
56
|
-
- **Multi-source databases**: Some databases have multiple data sources. Use `fetch` to identify the correct `data_source_id`.
|
|
57
|
-
- **Verification**: `update-page` with `update_verification` command supports verifying pages as reviewed (Business/Enterprise plan required).
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Notion MCP Examples
|
|
2
|
-
|
|
3
|
-
## Example 1: Create Project Documentation
|
|
4
|
-
|
|
5
|
-
A new feature needs documentation in the team's Notion workspace. Good agent behavior:
|
|
6
|
-
|
|
7
|
-
- Use `notion-get-teams` to verify which team space the project docs live in.
|
|
8
|
-
- Use `notion-search` to find the existing project folder page.
|
|
9
|
-
- Use `notion-fetch` on the folder page to understand its structure and available templates.
|
|
10
|
-
- Use `notion-create-pages` with the parent, title, properties, and content matching the folder's page template.
|
|
11
|
-
- Use `notion-create-comment` to notify the team about the new documentation.
|
|
12
|
-
|
|
13
|
-
## Example 2: Track Bug Reports
|
|
14
|
-
|
|
15
|
-
A production bug needs to be filed in the team's bug tracking database. Good agent behavior:
|
|
16
|
-
|
|
17
|
-
- Use `notion-search` to find the bug tracking database.
|
|
18
|
-
- Use `notion-fetch` on the database to see its schema, properties, and available templates.
|
|
19
|
-
- Use `notion-create-pages` with the database parent, filling in title, severity, status, assignee, and reproduction steps.
|
|
20
|
-
- Use `notion-get-users` to look up the correct assignee's user ID.
|
|
21
|
-
- Use `notion-create-comment` on the new bug page to add environment details.
|
|
22
|
-
|
|
23
|
-
## Example 3: Query Tasks and Update Status
|
|
24
|
-
|
|
25
|
-
Review all in-progress tasks and update their status. Good agent behavior:
|
|
26
|
-
|
|
27
|
-
- Use `notion-fetch` on the tasks database to see its views and schema.
|
|
28
|
-
- Use `notion-query-database-view` on the "In Progress" view to filter active tasks.
|
|
29
|
-
- Use `notion-fetch` on each task page URL to review full details.
|
|
30
|
-
- Use `notion-update-page` to transition completed tasks to "Done" with a summary of what was completed.
|
|
31
|
-
- Use `notion-create-comment` on blocked tasks to document the blocker.
|