Template Library logo

Template Library

Organization
aspenkit
template-library

Bundled agents, commands, hooks, and settings that users install via `aspens add`, `aspens doc init`, and `aspens save-tokens` into their .claude/ directories

Overview

Publisheraspenkit
Repositoryaspens
Skill nametemplate-library
Stars
102
Forks
7
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 aspenkit on GitHub. Read the source before you install it.

Installation

Install the Template Library 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/aspenkit/aspens/tree/main/.agents/skills/template-library
  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/aspenkit/aspens.git /tmp/aspens
mkdir -p .claude/skills
cp -r /tmp/aspens/.agents/skills/template-library .claude/skills/template-library
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Template Library 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 Template Library 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 Template Library 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.

You are working on the template library — bundled agents, slash commands, hooks, and settings that users browse and install into their repos.

Domain purpose

aspens add <type> [name] copies curated templates into a consumer repo's .claude/ directories so users get working agents, slash commands, hooks, and settings without authoring them. The same template tree is reused by aspens doc init (hook installation, recommended agents) and aspens save-tokens (handoff tooling). Custom skills can also be scaffolded blank or LLM-generated from a reference doc.

Key Concepts

  • Four resource types for add: agent → .claude/agents, command → .claude/commands, hook → .claude/hooks. A fourth type skill is handled separately (not template-based).
  • Save-tokens templates: save-tokens.mjs is the runtime entry point for all three hook entry points (statusline, prompt-guard, precompact). Shell wrappers (save-tokens-*.sh) resolve project dir and delegate to the .mjs file. Slash commands (save-handoff.md, resume-handoff.md, resume-handoff-latest.md) provide user-invokable handoff management. These are installed by aspens save-tokens or aspens doc init --recommended, not by aspens add.
  • Codex-only restriction: add agent, add command, and add hook throw CliError for Codex-only repos. Skills work with both targets.
  • Target-aware skill commands: addSkillCommand and generateSkillFromDoc resolve the active target via resolveSkillTarget(config). Skill paths use target.skillsDir and target.skillFilename.
  • Backend-aware generation: generateSkillFromDoc uses runLLM() to dispatch to Claude or Codex based on config.
  • Hook templates (monorepo-aware): Shell hooks compute PROJECT_DIR from the script's own location (cd "$SCRIPT_DIR/../.." && pwd) and pass it as ASPENS_PROJECT_DIR to .mjs counterparts. Save-tokens shell hooks follow the same pattern.
  • Settings template quoting: Hook commands in settings.json are wrapped in double quotes for shell safety.
  • doc init hook installation (step 13): Generates skill-rules.json, copies hook files, generates post-tool-use-tracker.sh with domain patterns, merges settings.json with backup.
  • doc init --recommended extras (step 15): Copies all bundled agent templates to .claude/agents/ (skips existing), adds dev/ to .gitignore.
  • Template discovery: listAvailable() reads template dir, filters .md/.sh files, regex-parses name: and description:.
  • No-overwrite policy: addResource() skips files that already exist. Same for addSkillCommand.
  • Plan/execute gitignore: Adding plan or execute agents auto-adds dev/ to .gitignore for plan storage. doc init --recommended also ensures dev/ in .gitignore.
  • Base-skill warning for agents: addResource() prints a non-fatal yellow warning when installing an agent if .agents/skills/base/SKILL.md is missing, prompting the user to run aspens doc init. The agent still installs.

Critical files (purpose, not inventory)

  • src/commands/add.js — Entry point for aspens add; dispatches to resource copy, blank skill scaffold, or LLM skill generation.
  • src/templates/agents/*.md — Agent persona templates copied as-is into .claude/agents/.
  • src/templates/commands/*.md — Slash command templates (includes handoff commands installed by save-tokens).
  • src/templates/hooks/ — Hook scripts (skill-activation-prompt.{sh,mjs}, graph-context-prompt.{sh,mjs}, post-tool-use-tracker.sh, save-tokens.mjs, save-tokens-{statusline,prompt-guard,precompact}.sh).
  • src/templates/settings/settings.json — Default Claude Code settings with hook wiring; merged into the consumer repo's settings.
  • src/prompts/add-skill.md — System prompt for add skill --from <doc> LLM generation.

Critical Rules

  • Template files must contain name: <value> and description: <value> lines parseable by regex.
  • Only .md and .sh extensions are discovered by listAvailable(). .mjs files are copied by doc init and save-tokens directly, not by add.
  • The templates dir resolves from src/commands/ via join(__dirname, '..', 'templates') — moving add.js breaks template resolution.
  • Skill names are sanitized to lowercase alphanumeric + hyphens. Invalid names throw CliError.
  • Commands throw CliError for expected failures instead of calling process.exit().
  • Reference docs passed to add skill --from are truncated to 50,000 chars before being handed to the LLM.

References

  • Customize flow: .agents/skills/agent-customization/SKILL.md
  • Save-tokens install: .agents/skills/save-tokens/SKILL.md

Last Updated: 2026-05-11

Frequently asked questions

What does the Template Library AI skill do?

Bundled agents, commands, hooks, and settings that users install via `aspens add`, `aspens doc init`, and `aspens save-tokens` into their .claude/ directories

Why use Template Library on TypingMind?

Because you install it once and use it with any model. Template Library 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 Template Library in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/aspenkit/aspens/tree/main/.agents/skills/template-library. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Template Library?

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 Template Library?

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

Is the Template Library AI skill free?

Yes. It is published on GitHub by aspenkit 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 👇