CREATING-SKILL-TEMPLATE
Skill4 starsChanged 3 months agoMITView on GitHub
WHEN/WHERE/WHO: AI Agents or users generating a new skill for the repository. HOW: Use this SKILL to automatically scaffold a new skill directory, format the `SKILL.md` with the correct tier template (SIMPLE/COMPLICATED/COMPLEX), apply the standardized YAML frontmatter, and auto-generate bilingual READMEs. WHY: Creating skills manually from scratch leads to inconsistent folder structures, broken frontmatter, and missing READMEs. Automating this ensures every new skill strictly adheres to the repository's high-quality standards.
In this repository61 other files it gives its agents.
- activate-personalSkill
- analyze-with-tactics-questionnairesSkill
- apply-agile-testing-quadrantsSkill
- apply-architectural-tacticsSkill
- apply-attribute-driven-designSkill
- apply-fundamentals-of-data-visualizationSkill
- apply-oopsi-modelSkill
- apply-screenplay-patternSkill
- apply-specification-by-exampleSkill
- blog-topic-discoverSkill
- build-agent-memory-systemsSkill
- build-business-objectives-modelSkill
- build-data-dictionarySkill
- build-feature-treeSkill
- comment-alive-test-driven-developmentSkill
- conduct-event-stormingSkill
- create-ecosystem-mapSkill
- create-living-documentationSkill
- create-skill-from-bookSkill
- define-architectural-driversSkill
- define-bounded-contextsSkill
- define-ubiquitous-languageSkill
- design-agentic-screenplay-modelSkill
- design-agent-perception-layersSkill
- design-agent-planningSkill
- design-agent-reward-functionsSkill
- design-agents-using-patternsSkill
- design-architecture-viewpointsSkill
- design-autonomous-ai-interfacesSkill
- design-ddd-aggregatesSkill
- design-tool-use-sandboxingSkill
- document-architectural-decisionsSkill
- document-legacy-codebaseSkill
- doc-with-usage-exampleSkill
- draft-srs-documentSkill
- elicit-requirements-modelsSkill
- evolve-skill-with-wikiSkill
- extract-business-rulesSkill
- facilitate-example-mappingSkill
- facilitate-user-story-mappingSkill
- implement-agent-observabilitySkill
- implement-agent-reflectionSkill
- improve-existing-skillSkill
- improve-user-storySkill
- managing-ai-projectsSkill
- orchestrate-multi-agent-collaborationSkill
- prioritize-requirementsSkill
- review-c4-modelSkill
- review-data-engineeringSkill
- save-as-skillSkill
- scaffold-cmake-cxx-sanitize-gtest-envSkill
- skill-commonSkill
- task-commit-triggerSkill
- test-case-with-demoSkill
- test-case-with-readmeSkill
- test-driven-developmentSkill
- UnitTesting-convert2CaTDDSkill
- update-my-resumeSkill
- update-spec-contextSkill
- validate-requirements-criteriaSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 6 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
When this skill is activated, first load skill-common and apply the shared conventions it defines: canonical section order, frontmatter …
- Distinctive: line 52
Transfer Check: Verify the workflow still works for SIMPLE, COMPLICATED, and COMPLEX skill generations.
- Distinctive: line 53
Stop Rule: If the requested skill name, complexity, or purpose is missing or unclear, stop and ask before generating the template.
- Very specific: line 58
RULE 3: Bilingual Support: Every skill MUST have a README.md and a README_ZH.md.
- Distinctive: line 61
RULE 6: Optimization Readiness: Every generated skill MUST state how it will detect failure, what evidence can justify revision, what parts …
- Distinctive: line 69
Context Gathering: Ask the user for the Skill Name, Complexity, and Purpose if not provided.
- Very specific: line 70
Frontmatter Hardening: Ensure the description block acts as a clean routing trigger.
- Very specific: line 80
Information Decoupling: If the skill contains heavy static reference data or massive code blocks, do not bloat the SKILL.md.
- Very specific: line 86
Common Contract Injection: Add the ## Common Contract (Load First) section immediately after the title, referencing …
- Very specific: line 89
Failure Signal Design: Add an ## Optimization Readiness section using the template tier in details/SKILL-TEMPLATE.md.
- Very specific: line 98
Create [skill-name]/README.md (English) and [skill-name]/README_ZH.md (Chinese) containing localized usage instructions based on the …
- Distinctive: line 100
If the user asked for version control actions, stage the new directory and prepare a commit.
- Very specific: line 109
Do both READMEs exist, and is the generated SKILL.md within the line budget?
- Very specific: line 112
Verify the frontmatter uses the > multi-line format and does not have surrounding quotes.
- Very specific: line 113
Verify both README.md and README_ZH.md exist and contain the description text.
- Very specific: line 114
Verify the directory name exactly matches the name: field in the frontmatter.
- Very specific: line 115
Verify the generated SKILL.md contains an ## Optimization Readiness section with failure signals, evidence, mutation boundaries, acceptance …
- Very specific: line 116
Verify the ## Validation section checks execution quality or routing quality, not only file presence.
- Very specific: line 117
Verify the generated SKILL.md contains a ## Review In Mind (ReviewInMindGenie) section with the deterministic-first four-step review loop …
- Very specific: line 118
Verify the generated SKILL.md contains a ## Common Contract (Load First) section immediately after the title with a correct relative link …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Creating Skill Template
Common Contract (Load First)
When this skill is activated, first load skill-common and apply the shared conventions it defines: canonical section order, frontmatter rules, anti-pattern guidance, and the Review In Mind loop in review-in-mind. This skill adds only domain-specific rules below.
Who
AI Agents acting as meta-engineers to expand the repository's capabilities, or users who want to quickly scaffold a new skill structure.
What
Scaffolds a perfectly formatted, standard-compliant skill directory. This includes the SKILL.md based on the Hybrid 5W1H + SSL (Scheduling-Structural-Logical) details/SKILL-TEMPLATE.md, the automated generation of both English and Chinese README.md files, and an optimization-ready quality spine so the new skill can be revised safely over time.
Every generated skill also receives a mandatory ## Review In Mind (ReviewInMindGenie) section: a built-in review gene that forces the agent to switch from author to skeptical reviewer, critique its own output against the skill's rules, fix or escalate findings, and deliver a short review note instead of an unreviewed artifact.
When
Invoke this skill when the user asks to "create a skill template", "scaffold a new skill", "generate the boilerplate for skill X", or similar phrases.
Where
Applies to the root directory of the MyCodeAgentSkills repository. The output will be a new directory named exactly after the requested skill.
Why
Consistency is critical for agents. If frontmatter is missing or structured differently, the agent indexer might fail to find the skill. This meta-skill guarantees that every new capability injected into the system uses the exact same description: > format, proper Markdown sections, bilingual support, and a lightweight optimization contract inspired by controllable skill-evolution workflows such as SkillOpt and SkillOpt-Lite.
Inputs
- Skill Name (required): The name of the new skill (kebab-case preferred unless explicitly stated otherwise).
- Skill Complexity (required): SIMPLE, COMPLICATED, or COMPLEX.
- Skill Purpose (required): The 5W1H details (Who, What, When, Where, Why, How).
Output
- A new directory:
[skill-name]/ [skill-name]/SKILL.mdformatted fromdetails/SKILL-TEMPLATE.md.[skill-name]/README.md(English).[skill-name]/README_ZH.md(Chinese).- An optimization-ready section in the generated skill that defines failure signals, evidence sources, mutation boundaries, acceptance criteria, rejection handling, and stop rules.
- A mandatory
## Review In Mind (ReviewInMindGenie)section with a skill-specific review lens. - A mandatory
## Common Contract (Load First)section that references../skill-common/SKILL.md(or../../../skill-common/SKILL.mdfor nested subskills) so the generated skill loads the shared contract at activation.
Optimization Readiness
- Failure Signals: Generated skills miss trigger accuracy, omit bilingual docs, exceed the token budget, fail to include the optimization contract and validation block, or omit the Review In Mind gene.
- Evidence To Collect: Generated skill packages, validation results, trigger examples, and cases where the template had to be hardened after ambiguous routing.
- Safe Mutation Boundaries: Refine template wording, tier-selection guidance, trigger hardening, and validation prompts without changing the core template-construction workflow.
- Acceptance Criteria: Accept revisions only if the generated skill stays under the line budget, includes the required sections, and carries explicit routing and validation rules.
- Rejected Revision Handling: Record weak trigger phrases, missing bilingual files, and invalid tier selections so they are not reused.
- Transfer Check: Verify the workflow still works for SIMPLE, COMPLICATED, and COMPLEX skill generations.
- Stop Rule: If the requested skill name, complexity, or purpose is missing or unclear, stop and ask before generating the template.
Constraints
- RULE 1: Directory Naming. The directory name MUST exactly match the
name:value in theSKILL.mdYAML frontmatter. - RULE 2: Multi-line Frontmatter. The YAML
descriptionmust use the multi-line block scalar format (>) and explicitly include theWHEN/WHERE/WHO,HOW, andWHYprefixes. - RULE 3: Bilingual Support. Every skill MUST have a
README.mdand aREADME_ZH.md. - RULE 4: Token Efficiency (Max 500 Lines). The
SKILL.mdfile MUST be concise (ideally under 500 lines). If the skill contains highly verbose checklists, code examples, or design rules, you MUST place them in adetails/directory and link to them relatively fromSKILL.md. - RULE 5: Trigger Accuracy. The
descriptionblock MUST explicitly define both exact trigger phrases AND "near-misses" (when NOT to use the skill) to prevent accidental executions by the agent. - RULE 6: Optimization Readiness. Every generated skill MUST state how it will detect failure, what evidence can justify revision, what parts are safe to mutate, how acceptance is validated independently, how rejected revisions are recorded, and when iteration must stop.
- RULE 7: Natural-Language Execution. Paper-inspired optimization logic may shape the workflow, but the generated skill MUST remain fully executable from text alone. Diagrams and figures are optional references only.
- RULE 8: Review In Mind (ReviewInMindGenie). Every generated skill MUST include a
## Review In Mind (ReviewInMindGenie)section before its## Validationblock (or at the end of the file if the skill has no Validation section). The section MUST contain a deterministic-first review loop (run every automatable check — required fields, schema, syntax, links, build/test/lint commands — before using the reviewer persona; classify findings; fix or escalate; deliver with a review note) and at least two skill-specific review lens questions derived from the skill'sWhat,Constraints (Logical Boundaries), andValidationcriteria. - RULE 9: Common Contract (Load First). Every generated skill MUST include a
## Common Contract (Load First)section immediately after the title. It MUST reference../skill-common/SKILL.md(or../../../skill-common/SKILL.mdfor nested subskills) and instruct the agent to load the shared contract on activation. The generated skill's## Review In Mind (ReviewInMindGenie)section MUST referenceskill-common/details/review-in-mind.mdand keep only the skill-specific review lens.
How (The 5-Phase Refinement Protocol)
Phase 1: Structural Alignment & Routing Optimization
- Context Gathering: Ask the user for the Skill Name, Complexity, and Purpose if not provided.
- Frontmatter Hardening: Ensure the
descriptionblock acts as a clean routing trigger. Explicitly state when an agent should load the skill (trigger phrases) and when it shouldn't (near-misses). Apply the standard Hybrid SSL YAML frontmatter:--- name: [skill-name] description: > WHEN/WHERE/WHO: [Scheduling: Who should use this, and explicit trigger/boundary contexts] HOW: [Structural: Use this SKILL to explicitly execute phases and workflows] WHY: [Scheduling: Why this skill matters or the problem it prevents] --- - Information Decoupling: If the skill contains heavy static reference data or massive code blocks, do not bloat the
SKILL.md. Strip them out and place them in adetails/directory, using dynamic file-retrieval hooks (relative links) in the core file.
Phase 2: Execution Logic & State Machine Conversion
- Determinism Linting: Scaffold the core sections (Who, What, When, Where, Why) using
details/SKILL-TEMPLATE.md. Eliminate all ambiguous prose (e.g., "try to", "use judgment", "if possible") from the instructions. - Branching Control: Rewrite the
## Howexecution steps into an imperative state machine using strict If-Then-Else conditional branching logic. Every phase must have an explicit input expectation and an expected state output. - Review Gene Injection: Add the
## Review In Mind (ReviewInMindGenie)section using the tier shape indetails/SKILL-TEMPLATE.md. Make the loop deterministic-first: automatable checks run before the skeptical-reviewer persona. Derive the review lens from the skill's ownWhat,Constraints (Logical Boundaries), andValidationcriteria so the review is domain-specific rather than generic boilerplate. - Common Contract Injection: Add the
## Common Contract (Load First)section immediately after the title, referencing../skill-common/SKILL.md(or../../../skill-common/SKILL.mdfor nested subskills). Replace any duplicated common block in the generated skill with a reference to the correspondingskill-common/details/file.
Phase 3: Optimization-Ready Contract Injection
- Failure Signal Design: Add an
## Optimization Readinesssection using the template tier indetails/SKILL-TEMPLATE.md. It MUST declare concrete failure signals, the evidence to collect from repeated usage, and the safe mutation boundaries for future revisions. - Independent Acceptance Gate: Require the generated skill to define acceptance criteria that are checked independently from the drafting step. A rewrite cannot be accepted only because it reads better; it must state what evidence proves improvement.
- Rejected Revision Memory: Require a simple rule for recording rejected edits or anti-patterns so future improvements do not repeat the same failed mutations.
Phase 4: Negative Constraint Boundary Injection
- Anti-Pattern Mapping: Explicitly define the negative space under
## Constraints (Logical Boundaries). State exactly what the agent must not do under any circumstances to prevent common reasoning drift or loop regressions during autonomous execution.
Phase 5: Verification & Packaging
- Verifiable Rewards Design: Build a dedicated, non-negotiable validation block (
## Validation) at the end of the skill. This must force the agent to execute a strict checklist (such as validating output against a schema, running a specific harness command, or comparing candidate outputs) to confirm execution success before closing the task loop. - Create
[skill-name]/README.md(English) and[skill-name]/README_ZH.md(Chinese) containing localized usage instructions based on the description block. - Test-Driven Evaluation: Simulate the skill's routing accuracy against mock prompts. If trigger accuracy is ambiguous, harden the frontmatter again.
- If the user asked for version control actions, stage the new directory and prepare a commit. Otherwise stop after validation and report the generated artifacts.
Review In Mind (ReviewInMindGenie)
Execute the common review loop in review-in-mind before delivering.
Review lens for this skill:
- Does the generated skill include every required section (frontmatter, 5W1H, Optimization Readiness, Constraints, How, Validation, Review In Mind)?
- Is the frontmatter
descriptiona precise trigger with near-misses, and does the directory name match thename:field? - Do both READMEs exist, and is the generated SKILL.md within the line budget?
Validation
- Verify the frontmatter uses the
>multi-line format and does not have surrounding quotes. - Verify both
README.mdandREADME_ZH.mdexist and contain the description text. - Verify the directory name exactly matches the
name:field in the frontmatter. - Verify the generated
SKILL.mdcontains an## Optimization Readinesssection with failure signals, evidence, mutation boundaries, acceptance criteria, rejection handling, and a stop rule. - Verify the
## Validationsection checks execution quality or routing quality, not only file presence. - Verify the generated
SKILL.mdcontains a## Review In Mind (ReviewInMindGenie)section with the deterministic-first four-step review loop and at least two skill-specific review lens questions. - Verify the generated
SKILL.mdcontains a## Common Contract (Load First)section immediately after the title with a correct relative link toskill-common/SKILL.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

