kn-template

Generate code from predefined templates with variable substitution.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ducanhnguyen223/birthday --skill kn-template-ducanhnguyen223
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kn-template
Source: https://github.com/ducanhnguyen223/birthday/tree/main/.claude/skills/kn-template
Command: npx skills add https://github.com/ducanhnguyen223/birthday --skill kn-template-ducanhnguyen223

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines code generation by providing a consistent and repeatable way to create files and components based on predefined templates.

Core Features & Use Cases

  • List Templates: View available code templates.
  • Get Template Details: Inspect the structure and variables of a specific template.
  • Run Template: Generate code by filling in template variables. Supports dry runs for preview.
  • Create New Template: Define and save new custom templates.
  • Use Case: Quickly scaffold new React components, API endpoints, or configuration files using established patterns.

Quick Start

Use kn-template to create a new React component named 'UserProfile'.

Frequently Asked Questions about kn-template

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

FAQPage Schema
How do I generate code from templates for React components?

To generate code from templates, you use a scaffolding tool to run predefined templates by providing a template name and variables. This enables consistent and repeatable code creation for React components.

What is code scaffolding and how does it work for development tasks?

Code scaffolding is the process of generating files and components from predefined templates. It works by taking template names and variables, then filling in the template structure to produce consistent, repeatable code for development tasks.

How do I create and save custom code templates?

You can create and save custom code templates by defining the template structure and its variables. Once saved, these custom templates can be listed, detailed, and run to generate code for various development tasks.

Can I preview generated code before applying a template?

Yes, you can preview generated code before applying a template by using a dry run. Running a template in dry run mode fills in the variables to show the output code without actually creating the files.

Does code generation work for scaffolding API endpoints and configuration files?

Yes, code generation works for scaffolding API endpoints and configuration files. By using established patterns in predefined templates, you can quickly generate consistent files for various development tasks beyond just React components.

What variables do I need to provide when running a code template?

When running a code template, you need to provide the template name and the specific variables required by that template. Optional documentation paths can also be provided for execution to generate the desired code.