scaffold-chapter

Generate YAML frontmatter and section templates for book chapters from file paths.

1|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/testaco/agentic-coding-book --skill scaffold-chapter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-chapter
Source: https://github.com/testaco/agentic-coding-book/tree/main/.claude/skills/scaffold-chapter
Command: npx skills add https://github.com/testaco/agentic-coding-book --skill scaffold-chapter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates scaffolding of chapters by generating frontmatter and section templates from file paths, inferring metadata, and enabling batch scaffolding for dozens of chapters.

Core Features & Use Cases

  • Auto-inference: Derives part and chapter numbers from path, and title from filename.
  • Smart suggestions: Tags, related chapters, and requirements are proposed automatically.
  • Batch scaffolding: Efficiently scaffold 50 chapters with consistent structure.
  • Validation Hook: Basic validation scaffolds ready for drafting.

Quick Start

Scaffold the chapter at book/part1-foundations/01-renaissance-developer.md and verify the generated frontmatter and section template.

Frequently Asked Questions about scaffold-chapter

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

FAQPage Schema
How do I batch scaffold chapters with consistent frontmatter and metadata?

Batch scaffolding generates frontmatter and section templates across multiple chapter files automatically. The Skill infers part and chapter numbers from file paths, creates complete YAML frontmatter, derives tags and related chapters from content, and produces placeholder guidance for consistent drafting across dozens of chapters at once.

Can I automatically generate chapter metadata from file paths and planning documents?

Yes. The Skill auto-infers part and chapter numbers from directory structure and filenames, then suggests tags, related chapters, and requirements based on content analysis. This eliminates manual metadata entry and ensures consistency across your book structure.

What's the best way to structure and template multiple chapters for a book project?

Batch scaffolding applies a consistent template structure across all chapters by generating part-aware frontmatter and section templates tailored to each chapter's position. This ensures uniform formatting and metadata fields, reducing setup time and maintaining coherent structure as your book grows.

Does this work for large-scale chapter projects with dozens of files?

Yes. The Skill efficiently scaffolds 50+ chapters in a single operation, applying consistent frontmatter, section structures, and metadata inference to all files simultaneously. Validation hooks ensure all scaffolds are ready for drafting without manual review of individual files.

How do I validate that scaffolded chapters are correctly formatted before drafting?

The Skill includes a validation hook that checks generated scaffolds for proper YAML frontmatter, inferred metadata accuracy, and section template completeness. This catches formatting issues before drafting begins, ensuring all chapters meet structural requirements.