archetype-creator

Designs and validates Dev CLI archetypes with Scriban templates and archetype.json definitions.

1|Updated May 19, 2026
One-click install
npx skills add https://github.com/thomasmartinsen/talks --skill archetype-creator-thomasmartinsen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: archetype-creator
Source: https://github.com/thomasmartinsen/talks/tree/main/20260519%20-%20Agentic%20engineering/primitives/skills/creator/skills/archetype-creator
Command: npx skills add https://github.com/thomasmartinsen/talks --skill archetype-creator-thomasmartinsen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating new code scaffolding archetypes for the Dev CLI requires knowing the archetype.json schema, Scriban templating syntax, and validation rules. This Skill guides the full design-and-build process so archetypes are consistent, valid, and production-ready. ## Core Features & Use Cases - Guided Archetype Design: Clarifies the archetype's purpose, derives a kebab-case name, and reviews existing archetypes in .dev/archetypes/ for conventions before writing files. - Schema-Compliant Generation: Produces archetype.json with PascalCase parameters, parameterized output paths, and .scriban templates that emit clean, working code. - Built-in Validation: Runs dev-cli archetype validate <name> and iterates on failures until the archetype passes. - Use Case: Ask for a "service bus consumer" archetype and receive a validated servicebus-consumer archetype with parameters, templates, and post-action messages ready for dev-cli archetype new. ## Quick Start Create a new Dev CLI archetype that scaffolds an Azure Service Bus consumer with parameters for namespace and queue name.

Frequently Asked Questions about archetype-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new archetype for the Dev CLI?

Define the archetype's purpose, then write an archetype.json with PascalCase parameters and .scriban templates under .dev/archetypes/<name>/. Finish by running dev-cli archetype validate <name> to confirm the archetype passes schema validation.

What is the archetype.json schema for Dev CLI archetypes?

The archetype.json defines parameters, file mappings from template to output path, and post-actions, with a $schema reference to archetype.schema.json. Output paths can interpolate parameters using {{ ParameterName }} syntax.

How do I write Scriban templates for code generation?

Scriban templates use the .scriban extension and transform parameters with functions like {{ string.downcase ParameterName }} or {{ string.pascalcase ParameterName }}. Templates should emit complete, idiomatic code rather than placeholder stubs.

Why does dev-cli archetype validate fail on my archetype?

Validation typically fails due to schema violations in archetype.json, missing $schema references, incorrect parameter casing, or template mapping errors. Read the reported issues, fix them, and re-run validation until it passes.

Can I modify an existing archetype instead of creating a new one?

Yes, but read the current archetype files first to understand its structure and intent before making changes. Preserve the existing conventions and re-validate with dev-cli archetype validate after your modifications.