# skill-creator

Adopt this skill: https://proskills.md/skills/other/marcotrinelli-my-style-gen-agents-skills-skill-creator

Page: https://proskills.md/skills/other/marcotrinelli-my-style-gen-agents-skills-skill-creator
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: .agents/skills/skill-creator/SKILL.md
size: 8078
upstream: https://github.com/marcotrinelli/my-style-gen/blob/main/.agents/skills/skill-creator/SKILL.md

````text
---
name: skill-creator
description: Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
---

# Skill Creator

A skill for creating new skills and iteratively improving them.

At a high level, the process of creating a skill goes like this:

- Decide what you want the skill to do and roughly how it should do it
- Write a draft of the skill
- Create a few test prompts and run claude-with-access-to-the-skill on them
- Help the user evaluate the results both qualitatively and quantitatively
  - While the runs happen in the background, draft some quantitative evals if there aren't any (if there are some, you can either use as is or modify if you feel something needs to change about them). Then explain them to the user (or if they already existed, explain the ones that already exist)
  - Use the `eval-viewer/generate_review.py` script to show the user the results for them to look at, and also let them look at the quantitative metrics
- Rewrite the skill based on feedback from the user's evaluation of the results (and also if there are any glaring flaws that become apparent from the quantitative benchmarks)
- Repeat until you're satisfied
- Expand the test set and try again at larger scale

Your job when using this skill is to figure out where the user is in this process and then jump in and help them progress through these stages. So for instance, maybe they're like "I want to make a skill for X". You can help narrow down what they mean, write a draft, write the test cases, figure out how they want to evaluate, run all the prompts, and repeat.

On the other hand, maybe they already have a draft of the skill. In this case you can go straight to the eval/iterate part of the loop.

Of course, you should always be flexible and if the user is like "I don't need to run a bunch of evaluations, just vibe with me", you can do that instead.

Then after the skill is done (but again, the order is flexible), you can also run the skill description improver, which we have a whole separate script for, to optimize the triggering of the skill.

Cool? Cool.

## Communicating with the user

The skill creator is liable to be used by people across a wide range of familiarity with coding jargon. If you haven't heard (and how could you, it's only very recently that it started), there's a trend now where the power of Claude is inspiring plumbers to open up their terminals, parents and grandparents to google "how to install npm". On the other hand, the bulk of users are probably fairly computer-literate.

So please pay attention to context cues to understand how to phrase your communication! In the default case, just to give you some idea:

- "evaluation" and "benchmark" are borderline, but OK
- for "JSON" and "assertion" you want to see serious cues from the user that they know what those things are before using them without explaining them

It's OK to briefly explain terms if you're in doubt, and feel free to clarify terms with a short definition if you're unsure if the user will get it.

---

## Creating a skill

### Capture Intent

Start by understanding the user's intent. The current conversation might already contain a workflow the user wants to capture (e.g., they say "turn this into a skill"). If so, extract answers from the conversation history first — the tools used, the sequence of steps, corrections the user made, input/output formats observed. The user may need to fill the gaps, and should confirm before proceeding to the next step.

1. What should this skill enable Claude to do?
2. When should this skill trigger? (what user phrases/contexts)
3. What's the expected output format?
4. Should we set up test cases to verify the skill works? Skills with objectively verifiable outputs (file transforms, data extraction, code generation, fixed workflow steps) benefit from test cases. Skills with subjective outputs (writing style, art) often don't need them. Suggest the appropriate default based on the skill type, but let the user decide.

### Interview and Research

Proactively ask questions about edge cases, input/output formats, example files, success criteria, and dependencies. Wait to write test prompts until you've got this part ironed out.

Check available MCPs - if useful for research (searching docs, finding similar skills, looking up best practices), research in parallel via subagents if available, otherwise inline. Come prepared with context to reduce burden on the user.

### Write the SKILL.md

Based on the user interview, fill in these components:

- **name**: Skill identifier
- **description**: When to trigger, what it does. This is the primary triggering mechanism - include both what the skill does AND specific contexts for when to use it. All "when to use" info goes here, not in the body. Note: currently Claude has a tendency to "undertrigger" skills -- to not use them when they'd be useful. To combat this, please make the skill descriptions a little bit "pushy". So for instance, instead of "How to build a simple fast dashboard to display internal Anthropic data.", you might write "How to build a simple fast dashboard to display internal Anthropic data. Make sure to use this skill whenever the user mentions dashboards, data visualization, internal metrics, or wants to display any kind of company data, even if they don't explicitly ask for a 'dashboard.'"
- **compatibility**: Required tools, dependencies (optional, rarely needed)
- **the rest of the skill :)**

### Skill Writing Guide

#### Anatomy of a Skill

```
skill-name/
├── SKILL.md (required)
│   ├── YAML frontmatter (name, description required)
│   └── Markdown instructions
└── Bundled Resources (optional)
    ├── scripts/    - Executable code for deterministic/repetitive tasks
    ├── references/ - Docs loaded into context as needed
    └── assets/     - Files used in output (templates, icons, fonts)
```

#### Progressive Disclosure

Skills use a three-level loading system:
1. **Metadata** (name + description) - Always in context (~100 words)
2. **SKILL.md body** - In context whenever skill triggers (<500 lines ideal)
3. **Bundled resources** - As needed (unlimited, scripts can execute without loading)

These word counts are approximate and you can feel free to go longer if needed.

**Key patterns:**
- Keep SKILL.md under 500 lines; if you're approaching this limit, add an additional layer of hierarchy along with clear pointers about where the model using the skill should go next to follow up.
- Reference files clearly from SKILL.md with guidance on when to read them
- For large reference files (>300 lines), include a table of contents

**Domain organization**: When a skill supports multiple domains/frameworks, organize by variant:
```
cloud-deploy/
├── SKILL.md (workflow + selection)
└── references/
    ├── aws.md
    ├── gcp.md
    └── azure.md
```
Claude reads only the relevant reference file.

#### Principle of Lack of Surprise

This goes without saying, but skills must not contain malware, exploit code, or any content that could compromise system security. A skill's contents should not surprise the user in their intent if described. Don't go along with requests to create misleading skills or skills designed to facilitate unauthorized access, data exfiltration, or other malicious activities. Things like a "roleplay as an XYZ" are OK though.

#### Writing Patterns

Prefer using the imperative form in instructions.

**Defining output formats** - You can do it like this:
```markdown
## Report structure
ALWAYS use this exact template:
# [Title]
## Executive summary
## Key findings
## Recommendations
```

**Examples pattern** - It's useful to include examples. You can format them like this (but if "Input" and "Output" are in the examples y
````

## File: README.md
upstream: https://github.com/marcotrinelli/my-style-gen/blob/main/README.md

````text
[![Version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fmarcotrinelli%2Fmy-style-gen%2Fmain%2F.claude-plugin%2Fplugin.json&query=%24.version&label=version&color=blue)](CHANGELOG.md)
[![License: MIT](https://img.shields.io/github/license/marcotrinelli/my-style-gen)](LICENSE)
[![Claude Code plugin](https://img.shields.io/badge/Claude_Code-plugin-D97757?logo=claude&logoColor=white)](#other-ways-to-install)
[![Skills](https://img.shields.io/badge/skills-1-blue)](skills/my-style-gen/SKILL.md)
[![skills.sh](https://skills.sh/b/marcotrinelli/my-style-gen)](https://skills.sh/marcotrinelli/my-style-gen)
[![Stars](https://img.shields.io/github/stars/marcotrinelli/my-style-gen?style=flat)](https://github.com/marcotrinelli/my-style-gen/stargazers)
[![Issues](https://img.shields.io/github/issues/marcotrinelli/my-style-gen)](https://github.com/marcotrinelli/my-style-gen/issues)
[![Last commit](https://img.shields.io/github/last-commit/marcotrinelli/my-style-gen)](https://github.com/marcotrinelli/my-style-gen/commits/main)

# my-style-gen

**Your agent writes well. It just doesn't write like you.**

So the code it writes, the deck it drafts, the spec it fills in... all in a stranger's idiom: slower to read, deaf to the shorthand you actually
use, and not quite yours by the time it ships. This fixes all three, once.

![my-style](my-style.png)

Point it at work you already produced: git repositories, specs, decks, spreadsheets,
contracts, notes. It reads each source, works out how you work and how you write, and
installs a skill called `my-style` that every future agent session follows.

- **Faster review** — the work and the prose explaining it read the way you write, and
  need fewer corrections
- **Shared language** — your vocabulary and shorthand travel with the skill, so a terse
  request is decoded the way a long-time colleague would decode it
- **Personal touch** — what you make with an agent still reads like your work

Works for any line of work, not just engineering (an engineer's sources are
repositories, a product manager's are specs and decks, a lawyer's are filings — same
method, same output). And it adopts the style, not the weakness: a modern model already
writes a cleaner first draft than most of us, so each analysis agent filters as it
reads. The goal is legibility, not forgery.

## What it looks like

![Same prompt, without and with my-style](what-it-looks-like.png)

**Prompt**

> Explain why this can charge a customer twice, and what we should change.
> *(followed by a ten-line Go retry loop)*

**Response**

| Without `my-style` | With `my-style` |
|---|---|
| **TL;DR:** make the charge idempotent by construction — pass an idempotency key so every retry is genuinely safe. **Why:** this isn't just a retry bug — it's a load-bearing assumption that an error from `s.gateway.Charge` means "not charged". A timeout can land *after* the gateway has already captured the funds, so the retry quietly charges again. | `s.gateway.Charge` gets called again on any error, including a timeout where the gateway processed the charge but the response never reached us. **What we'd change:** pass a stable idempotency key, generated once before the loop and reused across all three attempts (derived from `orderID` is enough here) |

**Generated `my-style` skill**

```markdown
<!-- SKILL.md -->
- **State the mechanism, not the impression.** Name the machinery that makes the claim
  checkable. "Bounded by the queue depth once the consumers saturate", not "it scales
  better".
- **Put the reason in a parenthetical, not in a sentence of its own.** He compresses
  justification rather than narrating it. "Moved the publisher outside the transaction
  (so a failed publish can't roll back a committed order)" - not a paragraph explaining
  transaction semantics.

<!-- references/voice.md -->
- Problem before solution, always. Open by stating what the alternatives fail at, then
  the goal - never with your own solution first.
```

## Install

One command, any agent — Claude Code, Copilot, Codex, Cursor, Windsurf and 75 others:

```bash
npx skills add marcotrinelli/my-style-gen -g -a claude-code
```

That installs it for every project. Drop `-g` to install into the current project only.

Then ask for it in plain words:

> build a style skill from my work

### Other ways to install

**Claude Code, as a plugin:**

```
/plugin marketplace add marcotrinelli/my-style-gen
/plugin install my-style-gen@marcotrinelli
```

**By hand:** clone and copy `skills/my-style-gen` into `~/.claude/skills/`,
`~/.agents/skills/`, or wherever your agent keeps its skills.

## Companion skills

`my-style-gen` works on its own, but hands off to and leans on a few skills that live
upstream in [`anthropics/skills`](https://github.com/anthropics/skills). Install the
ones that match your sources:

| Skill | When you need it | Why |
|---|---|---|
| `skill-creator` | Recommended | `my-style-gen` hands off to it for iterating on a skill's *description* and triggering rather than its content |
| `docx` | Sources are Word documents | Reads `.docx` properly, tracked changes and comments included |
| `pptx` | Sources are decks | Reads `.pptx` properly, speaker notes included |
| `pdf` | Sources are PDFs | Extracts text and tables rather than guessing at layout |
| `xlsx` | Sources are spreadsheets | Reads formulas and structure, not just rendered values |

All five in one go:

```bash
npx skills add anthropics/skills -g -a claude-code --skill skill-creator docx pptx pdf xlsx
```

In Claude Code `skill-creator` is also carried by the official marketplace, so
`/plugin install skill-creator@claude-plugins-official` works just as well.

Without the format skills the analysis still runs — it falls back to `unzip`,
`pdftotext`, `pandoc` or `markitdown` — but the read is lossier, and tracked changes and
comments are where the best anti-pattern evidence lives. Plain text and git repositories
need none of them.

## Use

Asking in plain words is enough. Or give it what it needs up front — what you do, and
where your material is:

```
/my-style-gen
/my-style-gen backend engineer ~/src/api ~/src/cli
/my-style-gen product manager ~/Documents/specs ~/Documents/decks
/my-style-gen patent attorney ~/matters/filings
/my-style-gen https://github.com/me/project
```

Whatever is missing, it asks for in one message — what you do, which sources to read,
how to tell your material from everyone else's, your name and pronouns — then goes.

> [!IMPORTANT]
> Point it at work you actually wrote. Material an agent produced end to end carries
> the model's idiom, not yours, so feeding it back gives you a skill describing the
> default you were trying to get away from.

Reading the sources is the expensive part (one agentic exploration per source), so
prefer two or three substantial sources over many thin ones. Sources from unrelated
contexts are worth more than two from the same team — agreement across them is what
separates your habits from the house style.

The result installs as `my-style`, under `~/.claude/skills/` by default. Ask for another
name where two people's skills have to sit side by side. If it lands inside a git
repository, its path is added to that repository's `.gitignore`, because it describes
you and not the project.

## How it works

Three steps, one agent run per source. No tool to install, no state kept between runs.

| Step | What happens |
|---|---|
| Settle the inputs | What kind of work you do, which sources to read, how your material is identified in each |
| Read the sources | One agent per source, launched in parallel, each returning evidenced findings on voice, vocabulary, standards, craft and workflow |
| Write the skill | Merge the findings, keep what two or more sources agree on as firm rules, hedge the rest, install `my-style` alongside three A/B tasks written from the same findings |

Voice, vocabulary and standards carry the most weight. The first two serve legibility
````
