Skip to content
Back to skills

Creating Marp Slides

ASecurity

このプロジェクトでの Marp スライド作成ルール。スライド作成、画像配置、ビルド、プレビュー時に使用。画像は slides/images/ に配置、bun run preview/build を使用。

  • 666 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added February 8, 2026
documentationbashgit

Works with

  • cli

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill creating-marp-slides --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Creating Marp Slides?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Creating Marp Slides
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-creating-marp-slides/badge)](https://www.skillsdirectory.com/skills/majiayu000-creating-marp-slides)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: creating-marp-slides
description: このプロジェクトでの Marp スライド作成ルール。スライド作成、画像配置、ビルド、プレビュー時に使用。画像は slides/images/ に配置、bun run preview/build を使用。
---

# Marp スライド作成スキル

本プロジェクトにおける Marp スライド作成の固有ルールと設定。

## 画像配置(重要)

スライドで使用する画像は **必ず `slides/images/` に配置**。

```markdown
![](./images/diagram.png)
![bg right:40%](./images/photo.jpg)
```

**理由**: Marp CLI サーバーモードはルート以下のみ配信。他の場所では CLI プレビューで表示されない。
参考: [GitHub Issue #163](https://github.com/marp-team/marp-cli/issues/163)

## ファイル配置

| 種類 | パス |
|------|------|
| スライド | `slides/*.md` |
| 画像 | `slides/images/` |
| カスタムテーマ | `themes/*.css` |
| 出力 | `dist/` |

## 開発コマンド

```bash
# プレビュー(ルートから実行)
bun run preview
# → http://localhost:8080/slides/[ファイル名].md

# ビルド
bun run build        # HTML + PDF
bun run build:html   # HTML のみ
bun run build:pdf    # PDF のみ
bun run build:pptx   # PPTX のみ
```

## 設定(.marprc.yml)

```yaml
allowLocalFiles: true  # ローカル画像読み込み許可
themeSet: ./themes     # カスタムテーマディレクトリ
html: true             # HTML タグ許可
```

その他のオプション(`inputDir`, `output` 等)については [Marp CLI 公式ドキュメント](https://github.com/marp-team/marp-cli#configuration-file) を参照。

## Front Matter 必須設定

```yaml
---
marp: true
theme: default  # または gaia, uncover
paginate: true  # 推奨
---
```

## テーマ選択

- `default`: ビジネス向け、シンプル
- `gaia`: カラフル、視覚的
- `uncover`: ミニマル、テキスト中心

**注意**: `invert` クラスは `default` テーマで最も安定。`gaia` では期待通りに動作しない場合あり。

## 詳細リファレンス

- [トラブルシューティング](./references/troubleshooting.md)
- [コンテンツ最適化](./references/content-optimization.md)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.