Spec Template logo

Spec Template

Community
kevinslin
spec-template

Turn an existing concrete spec into a reusable generic spec template. Use when asked to create a generic spec, template spec, reusable implementation template, or generalized version of a spec from a specific implementation such as one plugin, channel, integration, feature, or PR.

Overview

Publisherkevinslin
Repositoryagstack
Skill namespec-template
Stars
26
Forks
1
Bundled files
Instructions only
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 kevinslin on GitHub. Read the source before you install it.

Installation

Install the Spec 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/kevinslin/agstack/tree/main/active/spec-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/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/spec-template .claude/skills/spec-template
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Spec 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 Spec 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 Spec 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.

spec-template

Use this skill to convert a specific implementation spec into a reusable template that can guide future implementations of the same pattern.

Good fits:

  • A concrete plugin spec should become a generic plugin implementation spec.
  • A channel-specific approval spec should become a generic channel approval template.
  • A PR or milestone spec should become a reusable recipe for similar future work.

Workflow

  1. Resolve the source and destination.

    • Identify the existing concrete spec, PR, report, or implementation notes to generalize.
    • If the destination is durable knowledge, invoke ../mem/SKILL.md before choosing the output path.
    • If the user names a concrete path, use it.
    • If no output path is clear, ask one concise question.
  2. Read the concrete source and its anchors.

    • Read the spec first.
    • Read only the source code, docs, tests, PR text, screenshots, or proof artifacts needed to understand which parts are invariant.
    • Capture the source spec path and example implementation name; the final template should point back to them as a worked example when appropriate.
  3. Separate invariant pattern from instance details.

    • Invariant: contracts, required integration points, state transitions, verification shape, rollout gates, safety checks, and failure modes.
    • Instance detail: product names, specific channel/plugin/provider names, IDs, file paths, config keys, phone numbers, screenshots, PR numbers, and one-off migration notes.
    • Keep concrete details only when they are useful as examples. Mark them explicitly as examples, not required template content.
  4. Draft the generic template.

    • Replace concrete nouns with clear slots such as <channel>, <plugin>, <capability>, <provider>, <config key>, <approval action>, or <proof artifact>.
    • Preserve implementation order where it matters.
    • Include a short "How to adapt this template" section when the source spec has many replaceable details.
    • Include verification requirements that prove the generic behavior, not just the original implementation.
  5. Add example linkage.

    • Include a "Worked Example" or "Reference Implementation" section if the user asks for the source spec/PR to be cited.
    • Link to the original spec, report, PR, or proof artifact with relative links when possible.
    • Make clear which example facts must not be copied blindly into new implementations.
  6. Review for template quality.

    • The template should be reusable without knowing the original conversation.
    • The template should still be concrete enough to implement from.
    • Remove stale source-specific TODOs, personal notes, secrets, phone numbers, and live credentials.
    • Preserve any ## Manual Notes section in an existing destination document exactly.

Output Shape

Prefer this structure unless the destination has an existing spec format:

markdown
# <Generic Capability> Spec Template

## Purpose
What this template helps implement.

## When To Use
Signals that this template applies.

## Inputs
- `<source spec>`:
- `<target implementation>`:
- `<owner surface>`:

## Required Contracts
The invariant API, config, runtime, state, and ownership contracts.

## Implementation Template
Step-by-step generic implementation plan with replaceable slots.

## Verification Template
Required automated, manual, integration, and proof checks.

## Rollout And Safety
Config gates, compatibility, privacy/security, failure modes, and rollback.

## Worked Example
Concrete source spec or PR used to derive this template.

## Manual Notes

[keep this for the user to add notes. do not change between edits]

## Changelog
- [YYYY-MM-DD HH:MM]: Created template from `<source>`. ([agent session id] - (current git sha))

Prompt Pattern

When asked to create a generic template from a specific spec, use this internal prompt shape:

markdown
Read the concrete spec and any minimal supporting source/proof needed. Create a
generic spec template for implementing the same kind of capability in another
surface. Extract invariant contracts and required verification from the source,
replace implementation-specific details with named slots, keep the original as a
worked example, and call out details that should not be copied blindly.

Quality Bar

  • Generic, but not vague: every required implementation decision should have a slot, rule, or checklist item.
  • Example-backed: readers can trace the template back to the concrete source when needed.
  • Safe to reuse: no credentials, live phone numbers, one-off IDs, or source-only config copied into the reusable template.
  • Implementation-ready: an engineer should be able to start from the template without rediscovering the original spec's main contracts.

Frequently asked questions

What does the Spec Template AI skill do?

Turn an existing concrete spec into a reusable generic spec template. Use when asked to create a generic spec, template spec, reusable implementation template, or generalized version of a spec from a specific implementation such as one plugin, channel, integration, feature, or PR.

Why use Spec Template on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kevinslin/agstack/tree/main/active/spec-template. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Spec 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 Spec Template?

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

Is the Spec Template AI skill free?

It is published on GitHub by kevinslin. Check the repository for licensing terms. 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 👇