Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Meta Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ku5ic-meta-skill)
---
name: meta-skill
description: Draft a pattern skill pack for a stack from current docs and this repo's precedent
argument-hint: "<stack name, e.g. graphql or opentofu>"
---
# /meta-skill
Draft a pattern skill pack for a stack from current docs and this repo's precedent, plus its `kit.d/skills.yml` wiring.
Loading this skill isn't enough. Before the step a row names, read its file.
| Before | Read |
| ---------------------------------------------------- | ------------------------------------------------------------------------ |
| Writing a skill's frontmatter or splitting its files | [reference/skill-authoring.md](reference/skill-authoring.md) |
| Writing or cutting a pattern skill's entries | [reference/pattern-skill-content.md](reference/pattern-skill-content.md) |
| Researching a stack for a pattern skill | [reference/pattern-research.md](reference/pattern-research.md) |
## Procedure
1. Scope. The stack is: $ARGUMENTS. Blank: ask via AskUserQuestion. The pack name is `<stack>-patterns`, lowercase and hyphenated. If `skills/<name>/` already exists in the kit, stop and point at `/meta-refresh <name>` instead.
2. Research with the three briefs in [reference/pattern-research.md](reference/pattern-research.md), one `kit:researcher` each, in one message. The raw folder is the path `kit scratch-dir skill <name>` prints, without `.md`. A folder an earlier run left there is deleted first, since the reports are appended to. Each report is saved there as `<name>-<brief>.md`. The Releases report also names the current stable version and the title of the stack's primary source for its releases.
3. Precedent. If `<repo-context>` or `kit detect-stack` shows the current repo uses the stack, load the `investigate` skill and answer "how does this repo use <stack>: file layout, conventions, config" with `file:line` citations. A pack rule that contradicts the repo's own consistent usage gets named in the draft, not silently dropped.
4. Draft. Work in the kit's source checkout: the current repo, when its `.claude-plugin/plugin.json` `name` is `kit` and it isn't under `plugins/` in the Claude config dir (`$CLAUDE_CONFIG_DIR`, else `~/.claude`), where installed copies and the marketplace clone live. Otherwise stop and ask where the checkout is. Copy `templates/pattern-skill/` to `skills/<name>/` and fill it:
- `description`: the concepts, then the file and dependency signals, in the template's shape. Trigger words only.
- The four standard files, and an area file only where [reference/pattern-skill-content.md](reference/pattern-skill-content.md) allows one, laid out as its Layouts say and filled from step 2. A stack with no releases in the window or no linter gets "None for this stack." in that file. Every entry's source URL goes in `sources.md`, under that file's Claims, never inline.
- The coverage report, `<name>-coverage.md` in the raw folder: every item the three briefs returned, covered by an entry or out with its reason from the standard's Out.
- `sources.md` Version notes: one entry for the current version, with today's date and the step 2 source, in the format `/meta-refresh` maintains.
- Leave no `<placeholder>` behind. `rg -n '<[A-Za-z]' skills/<name>/` prints nothing when done.
5. Wire it in `kit.d/skills.yml`, reading two existing entries of each key first and matching their shape:
- Detection: a `dependency_skills` entry whose `deps:` are the packages that signal the stack, as its manifests declare them, and whose `skills:` lists the pack.
- `skill_file_map`: the file globs that should trigger the pack, if the stack has its own file types.
- `skill_triggers`: one phrase naming a concrete action ("before writing ..."), like the existing ones.
- When the stack has its own task runner: a reader in `go/internal/sources` (`TaskProviders`). Its check commands and formatter come from each project's configs and gap-fill, never from `kit.yml`.
6. Verify. Run `go test ./...` in the checkout's `go/`; it checks the new skill against `kit.d/skills.yml`. Fix any failure.
7. Report the path of the new skill directory, the coverage report's path, and the `kit.d/skills.yml` keys touched.
## Rules
- Nothing from memory. A version, API shape, or deprecation not traced to step 2's sources stays out of the pack.
- What an entry holds, which file it goes in, and what stays out: [reference/pattern-skill-content.md](reference/pattern-skill-content.md).
- Don't edit `settings.json`; it's the user's config.
- A procedure skill (one `skills/kit-rules/reference/workflow.md` section 3 names) keeps the practice it runs in its own `reference/`, one file per area, behind a "Before | Read" table like a pack's: ADR and RFC practice, rollback, SLOs, semver, what a reviewer checks. Its primary sources go in its own `sources.md`, in a pack's format, so `/meta-refresh` keeps them current. SKILL.md keeps the procedure. A block only one step reads (a report or draft template, a style or color block, a field table, one phase's checklist) goes in `reference/<area>.md` too, behind a row for that step. Stack specifics stay in the pattern packs, which the skill loads.
- Pin `model:` or `effort:` only when it differs from the session default. Never both on one skill: Claude Code drops the model override when both are present. A skill forks (`context: fork`) only to carry a `model:` pin or to name an `agent:`.