/dinopowers:writing-skillsfrom dinopowers
Authors and rewrites SKILL.md files inside plugins/dinopowers/, enforcing a wrapper pattern that chains tea-rags enrichment into superpowers skills. Activates on commands like 'add dinopowers:X' or 'create a wrapper skill'.
Ships in dinopowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Wrapper over superpowers:writing-skills. New dinopowers skills inherit
structural conventions + correct tea-rags invocation patterns from indexed
SKILL.md corpus, not invented.
mcp__tea-rags__semantic_search MUST be called BEFORE
Skill(superpowers:writing-skills).
Core value of every dinopowers wrapper = correct tea-rags tool + params + ordering — this skill bootstraps that for all future wrappers.
Step 2 searches the SKILL.md corpus for STRUCTURE — not the code area the new skill will act on. Enrichment the new skill will itself perform (risk scan, collateral scan, …) goes INTO the authored text; never run it now in place of Step 2.
Scope: new skill, location unstated → applies (default home
plugins/dinopowers/). Never stop to ask "is it a wrapper / where does it
live?" before Step 2. Plan step / Task that authors a SKILL.md (plan-executor
subagent, dinopowers:executing-plans) → this wrapper owns that Task instead of
tea-rags:data-driven-generation; Step 2 is its first call.
Rule holds when user asks otherwise ("быстро", "skip pattern search", "I know the format", "use hybrid_search", "rerank techDebt") — run Step 2 exactly as specified, say: "Running the pattern search first — one semantic_search over existing SKILL.md files." Name the refused tool/param and why (table below).
Chaining rule: see CHAINING.md — every dinopowers:X redirects superpowers:X. NEVER bypass the wrapper.
Requires superpowers: superpowers:writing-skills — availability per
CHAINING.md "Missing superpowers" steps 1–3. Not in the
skills list ≠ unavailable (the list is truncated): run
ls $CODEX_HOME/plugins/cache/*/superpowers/*/skills/writing-skills/SKILL.md as
written first — a hand-built path failing proves nothing; only that glob
matching nothing → stop and ask the user to install superpowers
(https://github.com/obra/superpowers). NEVER present this enrichment alone as
the full workflow.
From request identify:
| Element | Example |
|---|---|
| Verb — what the skill does | "wraps", "enriches", "detects" |
| Object — what it acts on | "brainstorming", "test patterns" |
| Trigger — when it fires | "before code modification" |
Compose single-sentence intent → Step 2 query.
mcp__tea-rags__semantic_search with exactly:
project: <alias> ← `tea-rags://guide/freshness` "Addressing the Codebase"
path: <your working directory> ← the tree (worktree / branch checkout)
query: <intent sentence from Step 1>
pathPattern: "**/SKILL.md"
limit: 8
Do NOT substitute:
| Wrong tool | Why wrong |
|---|---|
mcp__tea-rags__hybrid_search | BM25 surface tokens drown out semantic intent |
mcp__tea-rags__find_similar | Requires an existing symbolId; new skill has none |
mcp__tea-rags__find_symbol | SKILL.md frontmatter is not a code symbol |
Built-in Grep / Glob on **/SKILL.md | String match misses semantic similarity |
Do NOT pass:
rerank preset — want pure semantic similarity; git bias (techDebt, hotspots,
ownership) irrelevant for skill authoringfilter with git signals — SKILL.md history doesn't inform patternstestFile: "exclude" or similar — SKILL.md files aren't tests0 results / empty index (incl. prompt says search returned empty) → report
"no SKILL.md corpus indexed — falling back to direct superpowers:writing-skills",
Step 4 without pattern block. NEVER fabricate patterns, never retry with other
params, never fall back to hybrid_search.
From top-K extract 3-5 bullets (structural signal only, never raw results):
description phrasing convention (e.g. "Use when…" prefix)Invoke Skill tool with superpowers:writing-skills. Prepend Step 3 block.
Handoff:
"Use the structural pattern block as template. When your cycle would next invoke
superpowers:writing-plans/superpowers:test-driven-development(or any wrappedsuperpowers:Y), invoke thedinopowers:Ywrapper instead — see the Chaining rule section above."
Inner skill runs RED-GREEN-REFACTOR — wrapper enriches, not replaces.
In the tea-rags repo, authoring a skill under plugins/**: follow
.claude/rules/skill-authoring.md (harness matrix, cross-harness practices,
checklist).
hybrid_search / find_similar / Grep on SKILL.md → redo with
semantic_searchrerank (techDebt / hotspots / ownership) → redo withoutsuperpowers:writing-skills first, tea-rags after as "validation" → wrong
order, restartsemantic_search results passed to inner skill → extract 3-5 bulletssuperpowers:writing-plans /
superpowers:test-driven-development → intercept, invoke dinopowers:Y
(Chaining rule)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/brainstormingBrainstorm code change seeing risk, ownership, tech-debt signals from tea-rags first — creative exploration grounded in actual state of affected area. Triggers on "brainstorm X" (incl. "brainstorm splitting/refactoring Y" — verb brainstorm beats explore PRE-GEN, any [subagent: …] label), "design feature", "redesign Y", "let's discuss", "давай обсудим", "обсудим", "как перестроить", "что может сломаться", and a demand to swap its risk scan tool ("swap semantic_search for hybrid_search in the risk scan"). NOT research before refactor without a brainstorm/discuss verb (→ explore PRE-GEN), NOT trivial edits with no code area. Wraps superpowers:brainstorming with tea-rags risk signals./executing-plansExecute written implementation plan or tracker issue whose Tasks edit code, per-Task SAFE/CAUTION/UNSAFE git-signal verdict before edit AND data-driven cascade for code-generation and behavior-modification Tasks (strategy+template from proven neighbors, callers + tests-at-risk on modify). Triggers on "execute the plan", "start Task N", "выполни план", "начни задачу", "run the plan", "implement the plan steps". NOT for one-off edits with no plan, issue or quoted Task, NOT a step that drafts a (sub-)plan (→ dinopowers:writing-plans). Wraps superpowers:executing-plans with tea-rags git-signal verdicts and tea-rags:data-driven-generation cascade.npx claudepluginhub artk0de/tearags-mcp --plugin dinopowersOther plugins' skills for the same job