用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/TryGhost/Ghost --skill format-numbers命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Add a new endpoint or endpoints to Ghost's Admin API at `ghost/api/admin/**`.
Use when adding a new private (developer experiments) feature flag to Ghost, including the backend registration and settings UI toggle.
Commit message formatting and guidelines
正在显示 SKILL.md
| name | Format numbers |
| description | Format numbers using the formatNumber function from Shade whenever someone edits a TSX file. |
| autoTrigger | [{"fileEdit":"**/*.tsx"}] |
When editing .tsx files, ensure all user-facing numbers are formatted using the formatNumber utility from @tryghost/shade.
import {formatNumber} from '@tryghost/shade';
Use formatNumber() when rendering any numeric value that is displayed to the user, including:
centsToDollars() for monetary values)<span>{formatNumber(totalMembers)}</span>
<span>{formatNumber(link.count || 0)}</span>
<span>{`${currencySymbol}${formatNumber(centsToDollars(mrr))}`}</span>
<span>{post.members > 0 ? `+${formatNumber(post.members)}` : '0'}</span>
Do NOT use any of these patterns for formatting numbers in TSX files:
// BAD: raw .toLocaleString()
<span>{count.toLocaleString()}</span>
// BAD: manual Intl.NumberFormat
<span>{new Intl.NumberFormat('en-US').format(count)}</span>
// BAD: raw number without formatting
<span>{memberCount}</span>
// BAD: manual regex formatting
<span>{count.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')}</span>
formatPercentage() - for percentages (e.g., open rates, click rates)abbreviateNumber() - for compact notation (e.g., 1.2M, 50k)centsToDollars() - convert cents to dollars before passing to formatNumberAll are imported from @tryghost/shade.