track-generator
Skill20 starsChanged 7 months agoMITView on GitHub
Generate new example tracks for the AI-Native tutorial. Use when creating new industry examples, adding a new track, building project templates, or expanding learning paths. Use for questions like "add a track for healthcare", "create new example", "new industry template". Produces consistent ExampleTrack data with all required fields including projectName, requirements, colorCoding, taskExamples, and verification examples matching the TypeScript interface in exampleTracks.ts.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- content-track-scaffolderSkill
- diagram-scaffolderSkill
- docs-syncSkill
- exercise-scaffolderSkill
- tutorial-content-qaSkill
- version-checkerSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 10 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
When adding a new industry example to the tutorial
- Distinctive: line 13
When creating project templates for specific domains
- Distinctive: line 14
When expanding the tutorial's track selection
- Distinctive: line 15
When customizing tracks for specific audiences
- Distinctive: line 26
Every track must implement this complete interface:
- Distinctive: line 97
Must explain what each status means in context:
- Very specific: line 309
Add new track object to the exampleTracks array
- Distinctive: line 310
Follow the complete template above
- Distinctive: line 311
Ensure all fields are populated
- Distinctive: line 312
Test by selecting the track in the UI
- Distinctive: line 313
Verify all prompts render correctly with the new track's data
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Track Generator
This skill generates new example tracks that follow the exact structure defined in the AI-Native Development Tutorial's ExampleTrack interface.
When to Use This Skill
- When adding a new industry example to the tutorial
- When creating project templates for specific domains
- When expanding the tutorial's track selection
- When customizing tracks for specific audiences
Track Location
Tracks are defined in:
src/data/exampleTracks.tsExampleTrack Interface
Every track must implement this complete interface:
export interface ExampleTrack {
id: string // Lowercase with hyphens: "deal-dashboard"
name: string // Display name: "Deal Health Dashboard"
icon: string // Single emoji: "💼"
industry: string // Category: "Sales & Business"
description: string // 1-2 sentences explaining the track
projectName: string // Full project name used in prompts
folderName: string // Folder name (matches id)
whatYouBuild: string // Brief description of the output
sampleDataDescription: string // What sample data is used
dataItems: string // Plural noun: "deals", "recipes", "plants"
colorCoding: {
green: string // What green means: "healthy — on track"
yellow: string // What yellow means: "at risk — needs attention"
red: string // What red means: "critical — action needed"
}
requirements: {
goal: string // 2-3 sentence goal description
users: string // Who uses this
whatItShows: string[] // Array of 3-4 things the dashboard shows
r1Through6: string // Requirements R1-R6 as formatted text
r7Through12: string // Requirements R7-R12 as formatted text
}
taskExamples: {
tooBig: string // Example of a task that's too big
rightSize: string[] // Array of properly-sized tasks
}
demoScriptContext: string // Context for demo walkthrough
verificationExamples: string[] // Example verification statements
}Template Variables in Tutorial
For the full mapping of template variables to ExampleTrack fields, see .github/reference/template-variables.md.
Field Guidelines
Identity Fields
| Field | Format | Example |
id | lowercase-hyphenated | "recipe-keeper" |
name | Title Case | "Recipe Keeper" |
icon | Single emoji | "🍳" |
industry | Category name | "Food & Cooking" |
folderName | Same as id | "recipe-keeper" |
projectName | Same as name | "Recipe Keeper" |
Description Fields
description — Explains what the track is and who it's for:
description: 'Track sales deals and spot which ones need attention. The classic business dashboard — if you\'ve used a CRM, this will feel familiar.'whatYouBuild — One sentence describing the output:
whatYouBuild: 'A dashboard showing sales deals with color-coded health status'sampleDataDescription — What fake data will be generated:
sampleDataDescription: 'sample deals with names, values, and health indicators'Color Coding
Must explain what each status means in context:
colorCoding: {
green: 'healthy — on track to close', // Positive state
yellow: 'at risk — needs attention soon', // Warning state
red: 'critical — likely to slip or lose' // Urgent state
}Pattern: [status word] — [what it means]
The first word before the dash becomes the capitalized label (e.g., "healthy" → "Healthy" for UI).
Requirements
goal — 2-3 sentences describing the project goal:
goal: 'A dashboard where a sales manager can see all their deals at a glance and quickly identify which ones need attention.'users — Who would use this:
users: 'Sales managers, account executives, and business leaders who track revenue'whatItShows — Array of 3-4 key features:
whatItShows: [
'A table of deals with key information',
'Each deal shows: company name, deal value, expected close date, sales stage, and health status',
'Health status is color-coded: Green (healthy), Yellow (at risk), Red (critical)'
]r1Through6 — First 6 requirements (static prototype):
r1Through6: `R1: Clear title and description explaining what the dashboard shows
R2: Table displaying at least 8 sample items with realistic data
R3: Status visually indicated with colored badges or backgrounds
R4: Values formatted appropriately (currency, dates, etc.)
R5: Works immediately when opened — no loading or setup required
R6: Professional appearance suitable for a team meeting`r7Through12 — Requirements 7-12 (interactive features):
r7Through12: `R7: Filter buttons
- Buttons to filter: All, [Green label], [Yellow label], [Red label]
- Active filter is visually highlighted
- How to verify: Click "[Red label]" — only red items appear
R8: Detail panel
- Clicking a row reveals additional details
- Shows: [relevant additional fields]
- How to verify: Click any item — see expanded information
R9: Edit functionality
- Can modify values and status
- Changes appear immediately
- How to verify: Change status — color updates
R10: Persistent storage
- Changes survive page refresh using browser storage
- How to verify: Edit, refresh — changes remain
R11: Reset to defaults
- Button to restore original sample data
- How to verify: Make changes, click Reset — original data returns
R12: Responsive layout
- Usable on tablet and phone screens
- How to verify: Narrow browser window — layout adapts`Task Examples
tooBig — Example of an overly broad task:
tooBig: 'Build the complete dashboard'rightSize — Array of properly-scoped tasks:
rightSize: [
'Create basic HTML structure with title',
'Add sample data as JavaScript array',
'Display data in a table format',
'Add color-coded status badges'
]Demo and Verification
demoScriptContext — Context for a walkthrough:
demoScriptContext: 'Walk through filtering deals by status, viewing deal details, and editing a deal value'verificationExamples — Example test statements:
verificationExamples: [
'Filter shows only critical deals when Red filter is clicked',
'Deal values display with currency formatting',
'Changes persist after page refresh'
]Complete Track Template
{
id: 'your-track-id',
name: 'Your Track Name',
icon: '🎯',
industry: 'Industry Category',
description: 'One or two sentences explaining what this track is about and who might find it interesting.',
projectName: 'Your Track Name',
folderName: 'your-track-id',
whatYouBuild: 'A brief description of what the final product looks like',
sampleDataDescription: 'sample items with relevant attributes',
dataItems: 'items',
colorCoding: {
green: 'positive — good state description',
yellow: 'warning — concerning state description',
red: 'critical — urgent state description'
},
requirements: {
goal: 'A [type of app] where [user type] can [primary action] and [secondary action].',
users: 'Description of who would use this',
whatItShows: [
'First main feature',
'Second main feature with details',
'Third feature with color coding explanation'
],
r1Through6: `R1: Clear title and description
R2: Table/list displaying at least 8 sample items
R3: Status visually indicated with colors
R4: Values formatted appropriately
R5: Works immediately when opened
R6: Professional appearance`,
r7Through12: `R7: Filter buttons
- Filter options for each status
- How to verify: Click filter — only matching items appear
R8: Detail panel
- Clicking shows more information
- How to verify: Click item — see details
R9: Edit functionality
- Can modify items
- How to verify: Edit something — it updates
R10: Persistent storage
- Changes survive refresh
- How to verify: Edit, refresh — changes remain
R11: Reset to defaults
- Restore original data
- How to verify: Reset — original data returns
R12: Responsive layout
- Works on mobile
- How to verify: Narrow window — layout adapts`
},
taskExamples: {
tooBig: 'Build the complete application',
rightSize: [
'Create basic HTML structure',
'Add sample data array',
'Display data in table format',
'Add status color coding'
]
},
demoScriptContext: 'a user might say when demonstrating the app',
verificationExamples: [
'First verification example',
'Second verification example',
'Third verification example'
]
}Validation Commands
Check Track Structure
# Verify all tracks have required fields
$content = Get-Content src/data/exampleTracks.ts -Raw
# Check for required fields
$requiredFields = @('id', 'name', 'icon', 'industry', 'description', 'projectName', 'folderName', 'whatYouBuild', 'sampleDataDescription', 'dataItems', 'colorCoding', 'requirements', 'taskExamples', 'demoScriptContext', 'verificationExamples')
$requiredFields | ForEach-Object {
if ($content -notmatch "$_:") {
Write-Host "Missing field: $_" -ForegroundColor Red
}
}Count Tracks
$content = Get-Content src/data/exampleTracks.ts -Raw
$trackCount = ([regex]::Matches($content, "id: '")).Count
Write-Host "Total tracks: $trackCount"Adding a New Track
- Open
src/data/exampleTracks.ts - Add new track object to the
exampleTracksarray - Follow the complete template above
- Ensure all fields are populated
- Test by selecting the track in the UI
- Verify all prompts render correctly with the new track's data
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.

