new-article
БесплатноБез исполняемых скриптовНе проверенCreate a new MDX article with frontmatter, example embeds, and custom components. Use when writing in-depth UX guides or tutorials.
от clementbouly★ 38 звёзд на GitHubОб этом скилле
Create New Article
This skill helps you create in-depth UX guide articles using MDX.
Structure
Articles require 2 things:
- MDX file in
src/pages/article/{slug}.mdx - Registration in
src/articles.ts
Optionally, custom interactive components in src/components/articles/
Step-by-step process
1. Create the MDX file
Create src/pages/article/{slug}.mdx:
---
layout: "@/layouts/ArticleLayout.astro"
title: "Article Title"
description: "Brief description for SEO and article list"
---
import { ExampleEmbed } from "@/components/articles/ExampleEmbed";
# Article Title
Introduction paragraph explaining what this guide covers.
## Section 1
Content with **bold** and *italic* text.
<ExampleEmbed id="existing-example-id" client:load />
### Subsection
- Bullet points
- For key takeaways
## Section 2
More content...
2. Register in src/articles.ts
export const articles: Article[] = [
// ... existing articles
{
slug: "my-article-slug", // Must match filename without .mdx
title: "Article Title",
description: "Brief description",
tags: ["Tag1", "Tag2"],
createdAt: "YYYY-MM-DD", // Today's date in ISO format
},
];
Embedding examples
Use ExampleEmbed to include existing UX pattern examples:
import { ExampleEmbed } from "@/components/articles/ExampleEmbed";
<ExampleEmbed id="verification-code-input" client:load />
The id must match an existing example in src/examples/.
Important: Always add client:load for React components in MDX.
Custom article components
For complex interactive elements, create components in src/components/articles/:
src/components/articles/
├── ExampleEmbed.tsx # Embed existing examples
├── EmailComparison.tsx # Custom comparison component
├── UltimateOtpDemo.tsx # Custom demo component
└── ux-speed-game/ # Complex multi-file component
├── index.tsx
├── Game.tsx
└── ...
Then import in your MDX:
import { MyCustomComponent } from "@/components/articles/MyCustomComponent";
<MyCustomComponent client:load />
MDX features
Markdown syntax
#,##,###for headings**bold**,*italic*- itemfor bullet lists1. itemfor numbered lists`code`for inline code- Code blocks with triple backticks
React components
- Import at the top after frontmatter
- Use with
client:loadfor interactivity - Self-closing tags:
<Component />
Frontmatter (required)
---
layout: "@/layouts/ArticleLayout.astro"
title: "Page title (shown in browser tab)"
description: "SEO description"
---
Article structure best practices
- Introduction - What the reader will learn
- Sections - Each covering one aspect
- Use
<ExampleEmbed />to show patterns - Include "Why it matters" subsections
- Add "Best practices" lists
- Use
- Conclusion - Summary or call to action
Styling notes
- The article layout adds a white card background with padding
proseclasses handle typography automatically---(horizontal rules) are hidden by default- Headings get automatic spacing
Available example IDs
Check src/examples/index.ts for all available example IDs to embed.
Установить new-article в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл new-article?
Create a new MDX article with frontmatter, example embeds, and custom components. Use when writing in-depth UX guides or tutorials.
Как установить скилл new-article?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл new-article запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic