agentleFS
KalastajaMKalastajaM/Cluide/skills/template-exporter/SKILL.md

template-exporter

Skill2 starsChanged 4 months agoMITView on GitHub

Use this skill whenever the user wants to create a reusable template from an existing Claude artifact or setup — including chat system prompts, Assistant tasks, Assistant projects, or skills. Trigger when the user says things like "turn this into a template", "create a template I can share", "make this reusable", "export this as a template", "I want to share this setup with someone", or "create a template for [task/project/skill/chat]". Also trigger when a conversation contains a full Assistant task, project, or skill definition and the user seems to want to preserve or share it. Do NOT use it for the word "template" alone: a Word or PowerPoint template (.dotx, .potx) belongs to the docx/pptx skills, and a folder scaffold under Cluide's own templates/ is not an export. The object here is an existing Claude artifact being turned into something shareable.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If ambiguous, use the current surface’s question tool (or chat if unavailable):

    line 41
  2. Distinctive:

    If multiple types apply, ask the user to confirm or export one per type using the available question tool or chat.

    line 44
  3. Very specific:

    Locale-specific content: if tightly tied to a region/language, note it as [PLACEHOLDER: localize for your context]

    line 60
  4. Very specific:

    Read references/output-formats.md for detailed specs on each type before writing files.

    line 117
  5. Distinctive:

    Keep it plain Markdown. Write for a non-technical reader unless the source content signals otherwise.

    line 132
  6. Very specific:

    In Cowork: Create the ZIP and deliver it with SendUserFile.

    line 164
  7. Distinctive:

    In Claude Code: Write all files to disk under the current working directory, then report the full output path to the user.

    line 165
  8. Distinctive:

    Verify the archive is intact before delivering:

    line 172
  9. Distinctive:

    The source contains a secret, a token or a credential: Stop and say so by location, never by value.

    line 191

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Template Exporter

Turns an existing Claude setup (chat system prompt, Assistant task, Assistant project, or skill) into a clean, shareable template — stripped of personal/business/identifying content, with placeholder annotations and dual-audience instructions (human guide + Assistant setup prompt).


Platform preservation

Before export, identify the source and intended destination surfaces. Preserve one shared AGENTS.md and thin CLAUDE.md adapters, including nested scopes. Keep relative imports valid. Export per-surface setup and bootstrap drafts with capability gaps; never claim app fields were applied. For uploaded-source projects, include revision/refresh instructions. Exclude credentials, connector grants, native memory, session history, live registration IDs, and actual runtime logs. Clean empty state templates may be supplied as bootstrap definitions.

For recurring tasks, export the procedure and a blank scheduler-owner table, not active registrations. Installation must select one owner per job and verify permissions and duplicate-run protection. A Claude-only hook or subagent definition remains labelled Claude-only. Native skill installation follows the target surface's documented path; do not convert paths by analogy.

Step 1: Determine the Template Type

Clarifying questions: For any step with a fixed set of options, use the current surface’s question tool when available, otherwise ask a concise question in chat.

Identify which type to export. Use context first; ask only if ambiguous.

TypeSignals
Chat system promptUser shares a system prompt, persona, or instruction block for an assistant chat
Assistant taskUser shares a task definition, step list, or automation workflow from a supported surface
Assistant projectUser shares a project config, folder structure, or multi-task assistant setup
SkillUser shares a SKILL.md or skill folder

If ambiguous, use the current surface’s question tool (or chat if unavailable):

Buttons: Chat system prompt / Assistant task / Assistant project / Skill

If multiple types apply, ask the user to confirm or export one per type using the available question tool or chat.


Step 2: Extract and Sanitize

If the source material is already in the conversation, begin sanitizing immediately — do not ask the user to re-share it.

Apply these sanitization rules — all are mandatory:

  • Personal identifiers: names, usernames, email addresses, phone numbers → replace with [PLACEHOLDER: e.g. "Your Name"]
  • Business identifiers: company names, product names, internal system names, project codenames → replace with [PLACEHOLDER: e.g. "Company Name"]
  • Credentials and secrets: API keys, passwords, tokens, URLs with auth → replace with [PLACEHOLDER: API key / URL]
  • Specific dates and deadlines: replace with [PLACEHOLDER: e.g. "YYYY-MM-DD"]
  • Data and metrics: specific numbers, KPIs, budgets → replace with [PLACEHOLDER: e.g. "Target metric value"]
  • File paths: absolute paths referencing real directories → replace with [PLACEHOLDER: e.g. "/your/path/here"]
  • Locale-specific content: if tightly tied to a region/language, note it as [PLACEHOLDER: localize for your context]

Preserve the structure, logic, and intent of the original. Do not simplify or restructure unless something is non-portable by nature.

Edge cases:

SituationAction
Source already partially sanitizedNote which placeholders were pre-existing; preserve them as-is
Source is already a templateExport as-is; flag to user that sanitization may be minimal
Source is very large (>400 lines)Ask with the available question tool or chat: Split into multi-file template / Export as single file

Step 3: Add Sample Content

Where placeholders appear, add a brief inline annotation explaining what belongs there. Format:

[PLACEHOLDER: short description — EXAMPLE: "Acme Corp"]

Samples must be fictional and generic — do not derive them from the original content.

Good sample vocabulary to draw from:

  • Companies: Acme Corp, Northstar Inc, Riverstone Labs, Skyline Co
  • People: Alex, Jordan, Sam, Morgan
  • Projects: Project Phoenix, Initiative Delta, Campaign Aurora
  • Dates: 2025-Q3, 2026-01-15
  • Metrics: 85%, €50,000, 1,200 units

Placeholder format — when to use each:

  • [PLACEHOLDER: ...] — use in any file the human will read and edit: the exported template itself, README.md
  • <<<PLACEHOLDER: ... >>> — use only inside SETUP.md, where the assistant needs to collect values interactively

For templates larger than ~300 lines: break SETUP.md into two steps — collect all placeholder values first, then apply them to the template file passed as an attachment. Do not embed very large templates inline.


Step 4: Structure the Output

See references/output-formats.md for the exact file structure per template type. The general pattern is:

template-[name]/
├── README.md              ← Human guide
├── SETUP.md               ← Assistant setup prompt
└── [type-specific files]  ← The actual template content

Type-specific content files:

  • Chat system prompt → system-prompt.md
  • Assistant task → task.md
  • Assistant project → project.md + tasks/ subfolder with one file per task
  • Skill → SKILL.md + any reference files, preserving the original folder structure

Read references/output-formats.md for detailed specs on each type before writing files.


Step 5: Write the Human Guide (README.md)

The README is for a person who receives the template and wants to use it.

Structure:

  1. What this is — one sentence describing the template's purpose
  2. What you'll need — prerequisites for each supported surface and required tools
  3. How to customize — list every [PLACEHOLDER: ...] and what to fill in
  4. How to use it — step-by-step instructions to deploy on each supported surface, with a manual/source route where native installation is unavailable
  5. Notes — any caveats, optional elements, or versioning info

Keep it plain Markdown. Write for a non-technical reader unless the source content signals otherwise.


Step 6: Write the Claude Setup Prompt (SETUP.md)

The SETUP.md is a prompt that a user can give to Claude to have it automatically instantiate the template.

Structure:

# Setup Prompt

Paste this prompt into a Claude conversation to set up [template name] automatically.

---

You are being given a template to set up. Follow these steps:

1. Read the template files provided.
2. For each <<<PLACEHOLDER: ...>>> you encounter, ask the user for the value.
   Collect all values before proceeding.
3. Substitute all placeholders with the provided values.
4. Output the completed [type] ready to use.

[Include the template content inline below this prompt, with <<<PLACEHOLDER>>> markers.
For templates >300 lines, instruct the user to attach the template file instead.]

Step 7: Deliver the Output

In Cowork: Create the ZIP and deliver it with SendUserFile. In Claude Code: Write all files to disk under the current working directory, then report the full output path to the user.

ZIP command (adjust for your environment):

zip -r template-[name].zip template-[name]/

Verify the archive is intact before delivering:

unzip -l template-[name].zip

Quality Checklist

Before delivering, verify:

  • No real names, companies, or identifiers remain (scan for email patterns, @-mentions, company names identified in Step 2)
  • Every placeholder has a clear label and example value
  • README covers all placeholders in the "How to customize" section
  • SETUP.md uses <<<PLACEHOLDER>>> markers; exported template files use [PLACEHOLDER: ...]
  • unzip -l template-[name].zip shows all expected files
  • Structure and logic of original is fully preserved

Edge Cases

The source contains a secret, a token or a credential. Stop and say so by location, never by value. A template is made to be shared, so a credential that survives export is published, not merely copied. Replace it with a labelled placeholder and note in the README that the recipient supplies their own.

The source points at files or projects the recipient will not have. Absolute paths, sibling-project references and mounted-folder assumptions all break silently on the other machine. Convert each one to a placeholder with an example value, and list them in the README's customisation section. A pointer that resolves only for the author is worse than no pointer, because it reads as working.

The source depends on an MCP server, a connector or a browser extension. The structure exports cleanly and then does nothing. State the dependency in SETUP.md as a precondition, with what to install and how to tell it is connected, rather than leaving the recipient to discover it at the first failure.

There is no reusable structure to extract. Some things are one-offs: a single conversation, a one-time analysis, a document with no pattern behind it. Say so and stop, rather than producing a template whose only content is placeholders. Ask what the recipient is meant to do with it; if that has no answer, there is no template here.

The user wants to share something personal rather than something structural. A finished document, a filled-in tracker, a real dataset. That is a file to send, not a template to export. Offer the file and say why the template path adds nothing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.