Create a new testimonial in the src/content/testimonials/ directory.
Steps
- Take the author name from the user's argument. If not provided, ask for one.
- Generate a kebab-case filename from the author name (e.g., "Jane Doe" →
jane-doe.md). - Ask the user for:
- Role (e.g., "Senior Developer", "CTO")
- Company (optional)
- Rating (optional, 1-5)
- Quote text — the actual testimonial
- Create
src/content/testimonials/<slug>.md:
---
author: "<author name>"
role: "<role>"
company: "<company>" # omit if not provided
rating: <rating> # omit if not provided
publishedAt: <today's date YYYY-MM-DD>
---
<quote text without quotation marks>
- Tell the user:
- The file was created at
src/content/testimonials/<slug>.md - The markdown body IS the quote — do not wrap in quotation marks
- Optional fields:
company,avatar(image URL),rating(1-5)
- The file was created at