Architects, generates, and validates Agent Skills. Enforces specification and best practices. Used any time an agent skill must be created or updated.
52
57%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Advisory
Suggest reviewing before use
Optimize this skill with Tessl
npx tessl skill review --optimize ./.github/skills/generate-agent-skills/SKILL.mdThis skill guides you through creating high-quality Agent Skills following a proven 6-step process.
Before you begin, understand these NON-NEGOTIABLE rules:
You MUST run scripts/scaffold_skill.py in Step 3.
Manual file creation is PROHIBITED. The scaffolding script ensures consistency.
You MUST use the generated templates.
After scaffolding, templates exist in references/. Use them as your foundation.
You MUST run scripts/validate_skill.py in Step 5.
Validation catches errors before they propagate.
You MUST follow all 6 steps in order.
Skipping steps leads to non-compliant or broken skills.
If you bypass scaffolding scripts, you have FAILED this workflow.
Before scaffolding, clearly understand how the skill will be used through concrete examples.
Ask the user clarifying questions to understand:
Example questions:
If working with an existing skill, analyze:
Conclude this step when: You have a clear sense of the skill's functionality and triggering scenarios.
Analyze the concrete examples from Step 1 to identify what reusable resources would help.
Before planning scripts, ask: "Is this task primarily analysis or computation?"
Analysis tasks (reading, synthesizing, pattern recognition): → Use checklists or reference docs for LLM to follow → Examples: Repository analysis, code review, documentation synthesis
Computation tasks (math, APIs, precise transformations): → Use scripts for deterministic execution → Examples: Schema validation, API calls, file format conversion
Real example from this session:
analyze_repo.py scriptanalysis_checklist.md referenceSee references/BEST_PRACTICES.md §6 for detailed decision flowchart.
scripts/ - For deterministic operations only:
references/ - For LLM-driven analysis and knowledge:
assets/ - For files used in output:
Output: A list of specific files to create with correct categorization (script vs reference)
⚠️ MANDATORY STEP - DO NOT SKIP ⚠️
You MUST execute the scaffolding script. Manual file creation is PROHIBITED.
python3 scripts/scaffold_skill.py --name <skill-name>--simple flag for minimal structure (SKILL.md only)The script will:
Note: The script auto-detects .github/skills from git root. Naming must match regex: ^[a-z0-9][a-z0-9-]*[a-z0-9]$
After running the scaffolding script, confirm these files exist:
ls -la .github/skills/<skill-name>/Expected output:
SKILL.md (with "Structuring This Skill" guidance section)scripts/example.py (placeholder script)references/example_reference.md (placeholder reference)assets/README.md (if using default mode)🛑 STOP CONDITIONS:
SKILL.md does NOT exist → Scaffolding failed, do NOT proceedPopulate the skill with actual content.
Start with scripts/, references/, and assets/ identified in Step 2.
For scripts:
scripts/example.py with actual implementationpython3 scripts/<script_name>.pyFor references:
references/example_reference.md with actual docsFor assets:
assets/README.mdImportant: Delete any example files you don't need!
Follow the structuring guidance embedded in the generated SKILL.md template.
Choose your structure pattern:
references/workflows.md)Key elements:
Frontmatter (YAML):
name: Must match directory name exactlydescription: High-entropy, keyword-rich, 3rd person
Body (Markdown):
references/BEST_PRACTICES.md for the "Freedom Scale"references/output-patterns.md for output formattingDelete the "Structuring This Skill" section when done - it's guidance only!
For multi-step processes: See references/workflows.md
For consistent outputs: See references/output-patterns.md
⚠️ MANDATORY STEP - DO NOT SKIP ⚠️
Run the validation script to ensure specification compliance.
python3 scripts/validate_skill.py --path <path-to-skill-root>Example:
python3 scripts/validate_skill.py --path .github/skills/diagnose-ci-failure^[a-z0-9][a-z0-9-]*[a-z0-9]$)If validation fails:
When valid: Proceed to testing!
Before proceeding to Step 6, confirm:
Workflow Compliance:
scripts/scaffold_skill.py (Step 3)references/TEMPLATES.md and references/BEST_PRACTICES.md (Step 4)scripts/validate_skill.py (Step 5)Content Quality:
name and descriptionexample.py, example_reference.md) are deleted or replacedscripts/, references in references/, templates in assets/🛑 STOP CONDITION: If you did NOT run the scaffolding script or manually created files, STOP and re-do from Step 3.
After creating the skill, test and refine based on real usage.
Test with real examples from Step 1
Identify friction points:
Iterate on improvements:
Re-validate after changes
Problem: Skill isn't triggering when expected Solution: Enhance description with more keywords and trigger scenarios
Problem: Agent struggles with workflow steps
Solution: Add decision tree or flowchart; consult references/workflows.md
Problem: Context feels bloated Solution: Move content from SKILL.md to references/; add grep hints
Problem: Scripts fail in edge cases Solution: Add error handling; print descriptive messages to stderr
Problem: Output quality inconsistent
Solution: Add templates or validation checklist; see references/output-patterns.md
✅ Skill triggers reliably on target queries
✅ Workflows execute without confusion
✅ Output quality meets requirements
✅ No critical errors in testing
If questions arise during skill creation:
Specification questions (naming, structure, required files):
→ Read references/SPECIFICATION.md
Best practices (context economy, freedom scale, anti-patterns):
→ Read references/BEST_PRACTICES.md
Templates and examples (frontmatter, structure patterns):
→ Read references/TEMPLATES.md
Workflow design (sequential, conditional, iterative):
→ Read references/workflows.md
Output formatting (templates, examples, validation):
→ Read references/output-patterns.md
Do not hallucinate answers. Always consult the authoritative sources.
c5644f6
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.