Sciagent skill creator
Skill jaechang-hits/SciAgent-Skills/.claude/skills/sciagent-skill-creator
Scaffold a new SciAgent-Skills entry. Picks pipeline/toolkit/database/guide template, creates skills/{category}/{name}/SKILL.md with valid frontmatter, appends the registry.yaml entry, runs validation. Enforces name uniqueness, kebab-case, description keyword rules, schema rules from AGENTS.md. TRIGGER when user says (any language): "add a SciAgent skill", "add a skill for <X>", "create new skill", "create a SKILL.md for <X>", "scaffold a skill", "new skill entry", "register a skill", "신규 skill 추가", "스킬 만들어줘", "스킬 생성", "skill 만들어", or any request to add a new SKILL.md to this repo. ALWAYS invoke this skill BEFORE writing to skills/ or registry.yaml. DO NOT TRIGGER when: editing existing entry's content (just edit the file directly); migrating an existing entry (read AGENTS.md "Migrating from Existing Entries" first); only updating registry.yaml without creating a new SKILL.md.From its SKILL.md
npx -y skills add jaechang-hits/SciAgent-Skills --skill sciagent-skill-creatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
9.0 KB, ~2.0k tokens by cl100k_base, as published. Nobody here has run it
SciAgent Skill Creator
Repo-local scaffolder for skills/ entries. Mechanizes the boilerplate from AGENTS.md Steps 1, 2, 4, 5, 6 so authoring effort stays on content (When to Use, Workflow, Recipes, References) and not on field plumbing.
When to invoke this skill
- User asks for a new SciAgent skill entry on a specific tool, library, database, or guide topic
- User invokes
/sciagent-skill-creatordirectly - The agent is about to hand-edit
registry.yamland create askills/<cat>/<name>/SKILL.mdfrom scratch — use this instead
Do not invoke for:
- Editing an existing entry's content (just edit the file)
- Migrating an existing entry (read
AGENTS.md"Migrating from Existing Entries" first — the scaffolder generates a skeleton, but migration requires content judgment) - Updating
registry.yamlonly (use a normal edit)
What you need to collect from the user
Before calling the scaffold script, gather these — in conversation, not via flags hidden from the user:
- Topic — concrete tool/library/concept name. Reject vague topics ("ML stuff") with a clarifying question.
- Sub-type —
pipeline|toolkit|database|guide. Use the decision rule from AGENTS.md Step 1b. If unsure, ask the user. - Category — primary category directory. List the table from
AGENTS.mdStep 2 if the user is unsure. - Entry name — kebab-case slug. Convention:
{tool-name}-{purpose}(e.g.,pydeseq2-differential-expression). Confirm with the user. - License — underlying tool's license. Default to
CC-BY-4.0for original prose-only content. - Description — 1-2 sentences, max 1024 chars. Lead with tool/domain keyword in the first 120 chars. Anti-patterns are in AGENTS.md Step 5 "Description writing rules".
- Tags (optional) — only if the entry meaningfully spans multiple categories (e.g., literature DB stored under
scientific-writing, tag with["databases", "literature"]).
Duplicate check before scaffolding
Before calling the scaffold script, search the registry and legacy/ for similar names:
grep -i "<topic-keyword>" registry.yaml
ls legacy/ | grep -i "<topic-keyword>"
If a near-duplicate exists, surface it to the user before continuing. Authoring a parallel entry usually means the existing one needs updating, not duplication.
How to run the scaffolder
Call scripts/scaffold.py with explicit arguments. The script is non-interactive — the agent provides all values:
python .claude/skills/sciagent-skill-creator/scripts/scaffold.py \
--sub-type pipeline \
--category genomics-bioinformatics \
--name my-tool-purpose \
--description "MyTool short-form description starting with the tool name. Brief on inputs, outputs, when to pick this over alternatives." \
--license MIT \
--tags databases,literature # optional, comma-separated
Behavior:
- Validates name (kebab-case, not already in
registry.yaml, not inlegacy/) - Validates category exists as a directory under
skills/ - Validates description with
validate_description.py(length + first-120-char keyword lead) - Validates tags (kebab-case if provided)
- Creates
skills/{category}/{name}/SKILL.mdfrom the matching template, substituting frontmatter fields - Appends a new entry to
registry.yamlwithdate_added= today (UTC) - Runs
pixi run validateto confirm the registry is still well-formed - Prints next steps (fill in Overview, Workflow, Recipes, References)
On any validation failure, the script aborts without writing anything. Fix the offending value and re-run.
After scaffolding
The generated SKILL.md is a skeleton with placeholders. The agent's remaining job:
- Fill
Overview,When to Use,Prerequisites,Workflow/Core API/Key Concepts,Common Recipes,Troubleshooting,References - Match the section structure required by the sub-type (see AGENTS.md Step 4 format rules)
- Run
pixi run test— full suite, not justvalidate— to catch sub-type-specific structural failures (code block counts, table row counts, section presence)
The scaffold script does not pretend to write content. Content stays with the agent and the source material.
Content authoring rules (what NOT to bake into a SKILL.md)
Skills document a tool's analysis surface, not the consumer's house style. A SKILL.md is read by many agents for many downstream tasks — visual choices that fit one analysis brief leak into every future invocation. Strip the following before committing:
- Color palettes, cmaps, themes — no hex codes (
#08306b), noLinearSegmentedColormap.from_list(...), noListedColormap([...]), no prescribedcmap=arguments unless the cmap is the tool's API (e.g., a tool that ships its own palette). Let matplotlib pick defaults; the consumer overrides downstream. - Per-replicate / per-condition color dicts — e.g.,
colors = {"rep1": "#1f77b4", ...}. Matplotlib auto-cycles colors. - Font choices, dpi presets, figure sizes tuned for one report —
figsize=(8, 4)for a routine line plot is fine;figsize=(12, 4)chosen to fit a slide deck is not. - One-shot user-brief specifics — if the user asked for "blue for low, red for high" in their analysis, that belongs in their code, not the skill. The skill teaches how to compute phi/psi density; how to color it is consumer choice.
- Hardcoded paths beyond the tool's defaults —
"figures/","results/",f"{pdb_id}_protein.pdb"are fine as illustrative outputs;"/Users/me/proj42/output"is not.
What to keep: the analysis logic, the data shape, the units, the parameter semantics, the expected output structure (columns, axes, units), and any visual choice the tool itself enforces.
Rule of thumb: if a downstream consumer would override the choice, don't ship the choice in the skill.
Writing style: be succinct
A SKILL.md is reference material for agents, not a tutorial. Token cost matters — every line is paid for on every retrieval. Write like documentation, not like a walkthrough:
- One sentence per section intro, not a paragraph. Drop hedging ("typically", "in general", "you may want to"), filler ("note that", "it's worth mentioning"), and softeners. State the rule.
- Comments inside code blocks earn their place. Only annotate non-obvious lines — units, gotchas, why this parameter. Don't restate what the code already says (
# load the trajectoryabovetraj = md.load(...)is noise). - Code over prose when possible. A four-line code block beats a paragraph describing the same call. The agent runs the code; the prose is for what the code can't show.
- No preamble before code. "The following snippet demonstrates how one might..." → delete. The header and code speak for themselves.
- No closing recap. Each section ends when the information ends. No "In summary..." or "As shown above...".
- Cut redundancy across sections. If Workflow Step 2 already shows the parameter, the Key Parameters table row doesn't need to re-explain it — just list it.
- Tables for enumerations, not bullets. Parameters, troubleshooting, codes → table. Prose lists waste vertical space.
Target density: a reader scanning the file should reach the next code block within ~5 lines of prose. If a section's prose is longer than its code, tighten the prose.
Files in this skill
SKILL.md— this file (when/how/what)scripts/scaffold.py— non-interactive scaffolder (create files, append registry, run validate)scripts/validate_description.py— description linter (length + first-120-char keyword rule). Reused byscaffold.pyand standalone.
Failure modes to surface to the user
- Name already exists → suggest a different suffix
- Category not in list → present the category table and ask
- Description starts with stop-verb (
Use,A,An,The,Query) → rewrite leading with the tool name - Description too long → trim disambiguation tail; keep keyword carrier
pixi run validatefails after scaffold → the registry is in an inconsistent state, abort and revert the partial write (the script does this automatically; report the validator output verbatim)
What ships with it: 2 files
12.0 KB alongside SKILL.md, 2 of them executable
scripts/
- scaffold.pyruns9.2 KB
- validate_description.pyruns2.8 KB
Gives 0 of the 12 instructions most skill authoring skills give in ~2.0k tokens
Counted across 408 of the 422 authors here whose files we hold, read 2026-09-06
- Keep SKILL.md under 500 linesin 118 of 408, across 104 files
- Write skill instructions in imperative formin 44 of 408, across 37 files
- Move detailed reference material into references filesin 41 of 408, across 34 files
- Run init_skill.py to initialize new skillsin 40 of 408, across 33 files
- Draft assertions while test runs are in progressin 32 of 408, across 25 files
- Keep description under 1024 charactersin 31 of 408, across 18 files
- Run package_skill.py once the skill is completein 29 of 408, across 23 files
- Spawn with-skill and baseline runs in the same turnin 28 of 408, across 21 files
- Test added scripts by actually running themin 27 of 408, across 21 files
- Follow the creation steps in orderin 24 of 408, across 17 files
- Generate the eval viewer before evaluating outputs yourselfin 24 of 408, across 17 files
- Write the description in third personin 24 of 408, across 18 files
Said here and by no other author read
- Collect topic, sub-type, category, name, license, description first
- Search the registry for duplicate names before scaffolding
- Surface near-duplicates to the user before continuing
- Run the scaffold script with explicit arguments
- Lead descriptions with the tool name within 120 chars
- Fill skeleton sections to match the sub-type format
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.