.cortex/skills/skill-optimiser/SKILL.md
Optimize, audit, create, and improve Cortex Code skills following official best practices from the Anthropic skill-building guide. Use when: creating a new skill, reviewing an existing skill, optimizing skill description or triggers, improving SKILL.md structure, auditing skill quality, fixing undertriggering or overtriggering, restructuring skill for progressive disclosure. Do NOT use for: general code review, non-skill markdown editing, MCP server development. Triggers: optimize skill, audit skill, review skill, create skill, improve skill, fix skill triggers, skill best practices, skill quality check.
npx skillsauth add snowflake-labs/sfguide-create-a-route-optimisation-and-vehicle-route-plan-simulator skill-optimiserInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comprehensive guide for creating, auditing, and optimizing skills following official Anthropic best practices. This skill encodes all rules, patterns, and checklists from "The Complete Guide to Building Skills for Claude" (33-page PDF, January 2026).
Before making any changes to a skill, READ the existing SKILL.md fully. Understand its current structure before applying optimizations.
Identify which operation the user needs:
references/patterns.md > Skill Categories)Consult the reference files for detailed guidance:
references/structure-rules.md for file structure, naming, and YAML frontmatter rulesreferences/description-guide.md for writing effective descriptions and trigger phrasesreferences/instructions-guide.md for writing effective SKILL.md body contentreferences/patterns.md for skill categories and implementation patternsreferences/testing-checklist.md for the complete validation checklistreferences/troubleshooting.md for diagnosing and fixing common issuesAfter making changes, run through the quick checklist in references/testing-checklist.md to ensure compliance.
When auditing an existing skill, check these in order:
SKILL.md (case-sensitive)--- delimiters, name matches folder, description includes WHAT + WHEN + triggersreferences/)references/, not inline[What it does] + [When to use it] + [Key capabilities/triggers] + [Negative triggers]
Good example:
description: "Deploy the Route Deviation Analysis demo: create projection views
from SYNTHETIC_DATASETS.UNIFIED, run 3-step ETL pipeline, and register React
dashboard pages. Use when: setting up route deviation demo, detour analytics,
fleet deviation analysis. Do NOT use for: general fleet tracking, real-time GPS
monitoring, or non-deviation routing tasks. Triggers: deploy route deviation,
deploy detour analytics, setup deviation analysis, route deviation demo."
Bad examples:
# Skill Title
Brief 1-2 sentence summary of what this skill does end-to-end.
## Prerequisites / Important
CRITICAL items that must be verified before starting.
## Configuration
| Parameter | Default | Description |
|-----------|---------|-------------|
## Execution Rules
Numbered list of non-negotiable rules.
## Workflow
### Step 1: ...
### Step 2: ...
## Troubleshooting
### Error: [Common error]
Cause: ...
Solution: ...
testing
Discover and remove all Snowflake objects created by skills in this repo. Uses the COMMENT tracking tag (sf_sit-is-fleet) to find objects, generates DROP statements, and optionally executes them. Use when: cleaning up after a demo, removing all skill-created objects, tearing down an environment, uninstalling a specific skill's objects. Do NOT use for: dropping objects not created by these skills, production environment cleanup without review. Triggers: routing-solution-cleanup, cleanup, teardown, remove, uninstall, drop all, clean up demo, remove skill objects, reset environment.
tools
Check and install build prerequisites for the Routing Solution project. Use when: verifying environment setup before building, checking if Docker/Podman/snow CLI are installed, confirming readiness to build. Do NOT use for: building the routing solution itself (use build-routing-solution), deploying demos, or changing ORS configuration. Triggers: check prerequisites, check build prerequisites, am I ready to build, what do I need installed, verify environment setup, Docker installed, Podman installed, snow CLI installed.
tools
Enable or disable ORS routing profiles (driving-car, driving-hgv, cycling, walking, wheelchair). Subskill of routing-customization — must be invoked from the router, not independently. Use when: changing vehicle types as part of customization workflow. Do NOT use for: standalone execution, changing map region, or deploying demo apps. Triggers: change routing profile, change vehicle type, enable profile, disable profile.
development
Subskill of routing-customization. Read current OpenRouteService configuration (region and routing profiles) and display to the user. Use when: checking current ORS settings, verifying map region, listing enabled vehicle profiles. Do NOT use for: changing configuration (use routing-customization), deploying demos, or building ORS from scratch. Triggers: ors configuration, openrouteservice config, routing simulator configuration, current map, current location, current vehicle types, current routing profiles.