Cron式ジェネレーター

毎時、毎日、毎週、毎月のcrontab式を簡単に作成します。

// about

ツールについて

Cronは5つのフィールドでLinuxコマンドの実行タイミングを表します。このジェネレーターは、おなじみの繰り返し設定を、そのまま使えるcron式に変換します。

使い方

  1. ジョブを繰り返す頻度を選択します。
  2. そのスケジュールに表示される時刻と日付の値を指定します。
  3. 生成された式をコピーして、シェルコマンドの前に置きます。

このツールが使われる理由

  • cronの書式を覚えていなくても使えます。
  • 標準的な5フィールドのLinux crontab式を作成します。
  • 結果をそのままcrontabファイルやデプロイスクリプトに貼り付けられます。
ガイド · 日付・時刻 · 4分で読めます

Unixタイムスタンプ徹底解説:秒とミリ秒、タイムゾーン、2038年問題

1700000000 はいつなのか。なぜ13桁の数字を使うシステムがあるのか。なぜ時刻がちょうど9時間ずれるのか。いくつかの概念を押さえれば、時刻にまつわるバグの多くは消えます。

Unixタイムスタンプ(Unix時間、エポック秒)は、1970年1月1日 00:00:00 UTC、つまりUnixエポックからの経過秒数を数えた1つの整数です。0 は 1970-01-01 00:00:00 UTC、1700000000 は 2023-11-14 22:13:20 UTC です。

0           → 1970-01-01 00:00:00 UTC
1700000000  → 2023-11-14 22:13:20 UTC
1735689600  → 2025-01-01 00:00:00 UTC
2147483647  → 2038-01-19 03:14:07 UTC
Unixタイムスタンプとは何か、10桁と13桁の見分け方、UTCと現地時刻の変換、夏時間の落とし穴、2038年問題までを解説します。
ガイドを読む →
AIで作る

このツールをAIで自作してみましょう

自分用のバージョンが必要なら、作業指示プロンプトをAIチャットに貼り付けるか、スキルファイルをAIコーディングエージェントに保存してください。私たちが開発時に整理した機能、例外、テストケースが含まれています。

プロンプトとスキルは英語で提供しています。AIツールはどの言語でもよく理解できます。

AI作業指示プロンプト

Claude、ChatGPT、GeminiなどのAIチャットにそのまま貼り付けてください。

You are an experienced full-stack web developer. Build a web tool called "Cron式ジェネレーター" that meets the requirements below.

## Goal

Build a tool that creates and explains standard five-field cron expressions from a chosen schedule.

## Core features

- Schedule picker (every N minutes, hourly, daily, weekly, monthly)
- Plain-language description of the expression
- Preview of the next five run times
- Time zone selection (UTC, Asia/Seoul, …)
- Parse an expression typed by the user

## Inputs

- Schedule type and minute/hour/weekday/day values
- Time zone

## Outputs

- Cron expression
- Description
- Next run times

## Edge cases and handling rules

- Warn that setting both day fields means OR
- Explain steps that do not divide evenly, such as */45
- Validate out-of-range values like minute 60
- Explain run-time differences on UTC servers

## Implementation requirements

- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.
- Make the UI responsive and easy to use on mobile; label every input and keep everything keyboard accessible.
- Add a Copy button for results and show clear, friendly error messages for invalid input.
- Keep the core logic in functions separate from the UI so it can be unit-tested.

## Definition of done (test cases)

- Daily at 02:00 gives '0 2 * * *'
- Weekdays at 09:30 give '30 9 * * 1-5'
- '*/15 * * * *' runs every 15 minutes

First outline your implementation plan in at most five lines, then write the complete code, and finally explain how to check the test cases above.

スキル (SKILL.md)

Claude CodeなどのAIコーディングエージェントで .claude/skills/build-cron-generator/SKILL.md に保存すると、このツールを作る・直すたびに再利用できます。

---
name: build-cron-generator
description: Use when building or changing a Cron式ジェネレーター tool. Build a tool that creates and explains standard five-field cron expressions from a chosen schedule.
---

# Build: Cron式ジェネレーター

## Goal

Build a tool that creates and explains standard five-field cron expressions from a chosen schedule.

## Workflow

1. Review the required features, inputs and outputs below and ask about anything missing first.
2. Implement the core logic as pure functions separate from the UI.
3. Check the logic against the test cases in the verification list.
4. Build a responsive UI with an input form, a result area and a Copy button.
5. Reproduce each edge case listed under Rules and refine the error messages.

## Core features

- Schedule picker (every N minutes, hourly, daily, weekly, monthly)
- Plain-language description of the expression
- Preview of the next five run times
- Time zone selection (UTC, Asia/Seoul, …)
- Parse an expression typed by the user

## Inputs

- Schedule type and minute/hour/weekday/day values
- Time zone

## Outputs

- Cron expression
- Description
- Next run times

## Rules

- Warn that setting both day fields means OR
- Explain steps that do not divide evenly, such as */45
- Validate out-of-range values like minute 60
- Explain run-time differences on UTC servers
- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.

## Verification

- [ ] Daily at 02:00 gives '0 2 * * *'
- [ ] Weekdays at 09:30 give '30 9 * * 1-5'
- [ ] '*/15 * * * *' runs every 15 minutes

AIに任せるときのコツ

  • 最初の行に使用技術(React、Vue、素のHTMLなど)を書くと、プロジェクトに合ったコードになります。
  • コードを受け取る前に、テストケースを実行して結果を見せるよう依頼しましょう。
  • 本物のパスワード、顧客データ、APIキーは入力せず、サンプル値を使ってください。