draft-skill
Create a new agent skill from a plain idea, with no prompt list to work from. Confirms intent before writing anything, decides what belongs in scripts versus references versus assets, writes a description that actually triggers, validates with tune-skill's check_skill.py, then hands off for boundaries and packaging. Use whenever the user wants to build, scaffold, author, start or design a new skill, describes a capability they want an agent to have repeatedly, points at an empty skill folder, or says "make me a skill for X", even if they never mention frontmatter or file layout. Not for turning a batch of existing prompts into a skill (use prompts-to-skill), tightening a skill that already exists (use tune-skill), or releasing a finished one (use prompts-to-skill-release).
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- draft-skill
- version
- 1.0.0
- description
- Create a new agent skill from a plain idea, with no prompt list to work from. Confirms intent before writing anything, decides what belongs in scripts versus references versus assets, writes a description that actually triggers, validates with tune-skill's check_skill.py, then hands off for boundaries and packaging. Use whenever the user wants to build, scaffold, author, start or design a new skill, describes a capability they want an agent to have repeatedly, points at an empty skill folder, or says "make me a skill for X", even if they never mention frontmatter or file layout. Not for turning a batch of existing prompts into a skill (use prompts-to-skill), tightening a skill that already exists (use tune-skill), or releasing a finished one (use prompts-to-skill-release).
02 资源文件 2
- 参考文档references/structure.md3.6 KB
- 参考文档references/trigger-cases.md3.8 KB
03 SKILL.md 正文
Draft skill
Drafting is deciding what a skill is for, then writing only the files that carry that decision. It is not a template you fill in. Most of the work happens before SKILL.md exists, and the parts that fail in production are the parts nobody confirmed: the trigger, the boundary against its siblings, and the claim the body cannot actually keep.
Ground rules
- Confirm before writing. Restate the purpose, the expected output, and the phrases the user would really type. Wait for a yes. A skill drafted on a guessed purpose triggers on the wrong requests forever, and the fix costs a re-publish.
- Nothing exists unless it earns its tokens. The agent reading this already knows what Python is. Keep only what it would otherwise get wrong: your conventions, your file names, your order of operations, your gotchas. Detail the agent does not need goes in
references/, and a reference nobody is pointed at is dead weight. - Match the specificity to the fragility. A judgement call gets a heuristic. A sequence that breaks if reordered gets a script with fixed output. Writing prose for the second kind is how you get a skill that works when you watch it.
- Name the owner of every verb. Before you write, list what the installed siblings claim. If two skills promise the same artifact, one of them is about to stop triggering. Settle it and say which.
- Do not claim what you did not run. Report which checks ran, which test cases were only written, and which siblings you never opened.
Workflow
1. Get concrete examples
Ask for three or four requests the skill should catch, and one it should refuse. Ask what the output looks like — a report, an edited file, a command, a decision. Do not run an interview; propose a shape from what the user already said and ask them to correct it.
If the examples are all phrased the same way, ask for one in different words. Triggering fails on variety, not on the obvious case.
2. Check the installed set
Read the description of every sibling the examples touch — from the file, not from memory or a README. Write one line each: what it claims, what it produces, what it hands off. Compare against the requests from step 1 and record any overlap before designing anything. If the job is already claimed, stop and say whether tuning the existing skill is the cheaper move.
3. Decide the boundary, in both directions
A skill needs one line saying what it owns and one saying where it stops and who takes over. Write both down and show them. The "Not for" clause in the description is this boundary, not decoration.
4. Plan the resources
scripts/— code you would otherwise rewrite every run, or anything that must be deterministic. Must be tested by running it.references/— knowledge loaded while working: schemas, checklists, house conventions. Split when a section stops being necessary to every run.assets/— things that end up in the output, never read into context.
Create only the directories you fill. If all three are empty, the skill is prose and that is fine.
5. Choose the name
Lowercase words joined by hyphens, short, verb-led, and the folder named exactly after it. Before settling, search GitHub for the name and check whether something better-established already owns it — see references/structure.md for how to read a collision, because a name that ranks below an unrelated project is a tax you pay forever.
6. Write it
Frontmatter is name and description, nothing else unless the agent needs it. Write the description last: what it produces, then the contexts in the user's words, then the "Not for" clause. Body in imperative form, each rule carrying its reason. Point at every reference file with a line saying when to open it.
7. Validate
Run tune-skill's validator on the folder and fix every FAIL, judging each WARN:
python <path-to>/tune-skill/scripts/check_skill.py <path-to-skill-folder>
Work through references/structure.md for the checks the script cannot make, including the one that bites hardest: a description whose promise the body does not keep.
8. Write the test cases
Follow the case format in tune-skill (<path-to>/tune-skill/references/test-cases.md). The examples from step 1 become your clear triggers; add implicit triggers, near-misses, and one case on each side of every boundary from step 3. Mark a case written until it has been run.
Hand off
- Overlaps and wording pressure go to
tune-skill. - A batch of prompts instead of an idea goes to
prompts-to-skill. - Zip, version, README, install checklist go to
prompts-to-skill-release. - Repo name and listing go to
findable.
Say which handoff you are making and what the next skill receives.
Report
Short. Name and path. The boundary, in one line each direction. Files created and why each exists. Validator counts. Test cases written versus run. Siblings you did not get to read. One next step.
04 同仓库更多 Skills
tune-and-ship
Takes one published skill at a time from as-is to tuned, fact-checked, released and live, then moves to the next one in the catalog. Each run tunes the skill with tune-skill, checks every version number, flag, price and command it states against the primary source, re-reads its siblings' real SKILL.md files, polishes the listing with findable-polish, writes the version and release notes, opens one PR, and after the merge confirms the site page and marketplace copy are live. Use whenever the user wants to fine-tune their other skills, work through the catalog, give a published skill the full treatment, fact-check a skill's claims, or ship a tune instead of drafting it, even if they never say "ship". Not for a tune with no release (use tune-skill), drafts with nothing pushed (use tune-and-polish), a new skill (use skill-launch), regressions from the nightly health check (use caffeinity-routing's Descale brew), or a whole collection (use skill-estate).
skill-estate
Takes a whole collection of agent skill repos from scattered to published, consistent and self-maintaining, in gated phases: inventory every repo, reconcile site, marketplace and README listings, test and tune the family, close workflow gaps, wire publishing so new skill repos go live on their own, bundle a plugin with agents, add trigger tests and directory listings, and leave a maintenance loop and a map. Each phase hands off to the skill that owns it and ends in PRs. Use when someone's skills site and GitHub disagree, wants all their skill repos audited or cleaned up, wants new skills to publish themselves, or wants that cleanup repeated on another org, even if they never say estate. Not for one skill (use tune-skill), one listing (use findable), the site pipeline alone (use publish-pipeline), or weekly upkeep (use caffeinity-routing's Descale brew).
paper-trail
Drafts the policy pages a small product needs before it takes money or data (privacy policy, terms of service, refund policy, cookie notice) from a fact sheet about what the product actually collects, stores, shares and charges, then checks the drafts for placeholders, missing sections and facts nobody supplied. Use when someone needs a privacy policy, terms, refund or cookie page for a site, app, SaaS, newsletter or digital product, asks what legal pages they need before launch, or wants existing policy pages checked against what the product really does, even if they never say "legal". Not legal advice and not for contracts, NDAs or employment documents (use a lawyer), and not for the launch plan itself (use solo-income-blueprint) or the site build (use site-prompt).
course-builder
Designs a course for a group of learners (a class, cohort, workshop series, bootcamp or internal training): measurable outcomes, a module sequence with prerequisites, activities and assessments aligned to each outcome, a time budget that fits the hours available, and a rubric, then checks the plan with a script so no outcome goes untaught or unassessed. Use when someone is teaching others and asks for a curriculum, syllabus, course outline, module plan, cohort or workshop structure, or wants an existing course checked for gaps and overload, even if they never say "curriculum". Not for one person's own learning plan (use study-system), for being taught the topic (use topic-primer), or for marketing the course (use sales-copy).
wordsmith
Write, draft, rewrite, edit, proofread, polish and improve text while preserving the author's intended meaning, facts and voice. Use when the user wants clearer, shorter or better-toned writing; grammar, structure or flow fixes; emails, website or marketing copy, headlines, outlines or summaries; a different reading level; an accessibility, inclusivity or accuracy review; or content prepared for publication, even if they never say "edit". Also handles /wordsmith commands such as draft, critique, audit, tighten, tone and final. Not for resumes, CVs or LinkedIn profiles (use recruiter-lens if installed), not for code or code comments, and not for building .docx or .pdf files (write the text here, then use the file skill).
web-preflight
Use when shipping, deploying, publishing, launching, reviewing, or pre-flighting a website or API and you want a lightweight check for accidental exposure of secrets, source or configuration files, admin and debug surfaces, unsafe redirects, missing security controls, and misleading 200 responses. Trigger phrases include "before we ship", "security check", "preflight", "audit the site", "check the production URL", "is my .env exposed", and "why does /.env return 200", including when access-log or analytics evidence is supplied. Checks only sites the user owns or is authorized to assess, with bounded GET and HEAD requests and a fixed compact path set; distinguishes genuine resources from SPA catch-all and blanket WAF responses. Not for penetration testing, exploitation, credential testing, broad port scanning, or application-code review; use a dedicated authorized security-testing or code-review workflow instead.