Add Template logo

Add Template

Community
jmagly
add-template

Scaffold a new document template inside an existing addon or framework

Overview

Publisherjmagly
Repositoryaiwg
Skill nameadd-template
Stars
225
Forks
34
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by jmagly on GitHub. Read the source before you install it.

Installation

Install the Add Template AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-utils/skills/add-template
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jmagly/aiwg.git /tmp/aiwg
mkdir -p .claude/skills
cp -r /tmp/aiwg/agentic/code/addons/aiwg-utils/skills/add-template .claude/skills/add-template
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Add Template in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Add Template on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Add Template is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Add Template

Scaffold a new document template inside an existing addon or framework.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

  • "I need a new template" → scaffold template in specified target
  • "add a document template" → prompt for name, category, and target
  • "create a template for X documents" → derive name from X, prompt for target
  • "template for use cases" → name=use-case, prompt for target and category

Trigger Patterns Reference

PatternExampleAction
Named add"add template adr --to sdlc-complete"Scaffold directly
Category specified"add template threat-model --to sdlc-complete --category security"Place in category subdir
Interactive"add template --interactive --to sdlc-complete"Guided design mode
Target omitted"add template risk-register"Ask which addon or framework

Process

1. Parse Arguments

Extract from $ARGUMENTS:

  • <name> — kebab-case template name (required)
  • --to <target> — addon or framework directory name (required)
  • --category <category> — subdirectory within templates/ (optional; e.g., requirements, architecture, security)
  • --interactive — enable guided design questions

If either <name> or --to is missing, ask before proceeding.

2. Validate Target

Confirm the target exists:

bash
# Check addons
ls agentic/code/addons/<target>/templates/

# Check frameworks
ls agentic/code/frameworks/<target>/templates/

3. Determine Category

If --category is not provided and the target has existing category subdirectories, list them and ask. Common categories in sdlc-complete:

CategoryContents
requirementsUse cases, user stories, NFRs
architectureSAD, ADRs, C4 diagrams
securityThreat models, security gates
testingTest plans, test cases, test reports
deploymentDeployment plans, runbooks
planningPhase plans, iteration plans, risk registers
analysis-designDomain models, sequence diagrams

If no category is appropriate, place directly in templates/.

4. Interactive Design (if --interactive)

Ask before generating:

  1. Purpose: What SDLC artifact does this template produce?
  2. Audience: Who fills in this template? (developer, architect, project manager)
  3. Required sections: What sections must every instance include?
  4. Optional sections: What sections depend on the specific project?
  5. Variables: What {{placeholder}} variables should be pre-populated by tooling?
  6. Examples: Should the template include inline examples?

5. Run Scaffolding

bash
aiwg add-template <name> --to <target> [--category <category>]

6. Customize the Generated Template

Templates use Markdown with YAML frontmatter and {{variable}} placeholders:

markdown
---
template: <name>
version: 1.0.0
category: <category>
description: <one-sentence purpose>
variables:
  - project_name
  - author
  - date
---

# <Template Title>

**Project**: {{project_name}}
**Author**: {{author}}
**Date**: {{date}}
**Version**: 1.0

---

## Purpose

[What this document is for and when to create it]

## Section 1: <Required Section>

[Instructions for completing this section]

> **Guidance**: [What a good answer looks like]

## Section 2: <Required Section>

[Instructions]

## Section 3: <Optional Section> *(if applicable)*

[Instructions]

---

## Review Checklist

Before finalizing this document:

- [ ] All required sections completed
- [ ] Variables replaced with actual values
- [ ] Reviewed by [role]
- [ ] Approved by [role]

7. Register in Templates Manifest

The CLI tool updates the templates manifest. Verify:

json
{
  "templates": {
    "<category>": ["existing-template", "<name>"]
  }
}

Generated Structure

<target>/templates/<category>/<name>-template.md

Or at root if no category:

<target>/templates/<name>-template.md

Manifest updated: <target>/manifest.json (or templates/manifest.json if present)

Output Format

Template Created: <name>
────────────────────────
Location: <target>/templates/<category>/<name>-template.md
Category:  <category>

Created:
  ✓ <name>-template.md

Manifest updated: <target>/manifest.json

Next Steps:
  1. Define required sections and guidance text
  2. Add {{variable}} placeholders for automation
  3. Include review checklist
  4. Test: aiwg template-engine apply <name> --to .aiwg/<category>/

Examples

Example 1: Architecture decision record

User: "add template adr --to sdlc-complete --category architecture"

Action:

bash
aiwg add-template adr --to sdlc-complete --category architecture

Result: agentic/code/frameworks/sdlc-complete/templates/architecture/adr-template.md scaffolded with standard ADR sections (Context, Decision, Consequences, Alternatives).

Example 2: Security threat model

User: "create a threat model template for sdlc-complete"

Extraction: name=threat-model, target=sdlc-complete, category=security

Action:

bash
aiwg add-template threat-model --to sdlc-complete --category security

Example 3: Interactive template design

User: "add template --interactive --to sdlc-complete"

Process: Guided questions establish the artifact type, required sections, variables, and whether examples should be embedded.

References

  • @$AIWG_ROOT/src/cli/handlers/scaffolding.ts — CLI handler implementation
  • @$AIWG_ROOT/docs/cli-reference.md — Full CLI reference
  • @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/templates/ — Example templates
  • @$AIWG_ROOT/agentic/code/addons/aiwg-utils/skills/devkit-create-skill/SKILL.md — Related scaffolding pattern

Frequently asked questions

What does the Add Template AI skill do?

Scaffold a new document template inside an existing addon or framework

Why use Add Template on TypingMind?

Because you install it once and use it with any model. Add Template is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Add Template in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-utils/skills/add-template. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Add Template?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Add Template?

As many as you like. As long as a model supports skills, you can use Add Template with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Add Template AI skill free?

Yes. It is published on GitHub by jmagly under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇