Complete in One Session
Tutorial is 15 minutes. Don’t pause mid-way - complete it in one sitting for best learning.
The cortex-tms tutorial command provides an interactive onboarding experience. It teaches the “Cortex Way” through 5 progressive lessons covering the core workflows and tools.
cortex-tms tutorialLearn by Doing. The tutorial is a 10-15 minute interactive walkthrough that teaches Cortex TMS concepts through hands-on examples. Think of it as vimtutor for documentation architecture.
What you’ll learn:
Format:
Typical usage:
# First time with Cortex TMS?cortex-tms tutorial
# Interactive lessons appear# Navigate with arrow keys# Exit anytime (progress saved)None. The tutorial takes no flags or arguments. It’s always interactive.
Why no options?
If you need non-interactive docs: Read the concepts section of the documentation instead.
Topic: Using cortex-tms status for project orientation
Concepts taught:
Try-this-command:
cortex-tms statusPro tip:
Run this command whenever you return to a project to get oriented.
Content preview:
📊 Lesson 1: The Project Dashboard
Lesson 1 of 5
Every Cortex TMS project has a visual dashboard showing: • Current scope (Nano/Standard/Enterprise) • Active tasks from NEXT-TASKS.md • Validation health status • Quick statistics at a glance
Think of this as your "Project Cockpit" - everything youneed to know in one command.
💻 Try this command:
cortex-tms status
💡 Pro Tip: Run this command whenever you return to aproject to get oriented.
? What would you like to do?❯ → Next Lesson Exit TutorialTopic: Using cortex-tms prompt for AI workflows
Concepts taught:
PROMPTS.mdPrompts covered:
init-session - Start with contextfeature - Implement with architectural anchorsdebug - Troubleshoot systematicallyreview - Code review against patternsrefactor - Structural improvementsdecision - Architecture decision recordsfinish - Execute maintenance protocolTry-this-command:
cortex-tms prompt init-sessionPro tip:
Customize prompts by editing
PROMPTS.mdin your project root.
Topic: Version syncing and drift prevention
Concepts taught:
How it works:
package.json version (Single Source of Truth)pnpm run docs:sync)Try-this-command:
pnpm run docs:syncPro tip:
If CI blocks your PR, run
docs:synclocally and commit the changes.
Topic: Using cortex-tms validate for quality enforcement
Concepts taught:
NEXT-TASKS.md focused on current workValidation checks:
[YOUR_PROJECT]).cortexrc)Archive Protocol explained:
NEXT-TASKS.mddocs/archive/NEXT-TASKS.md focused on current work (1-2 weeks max)Try-this-command:
cortex-tms validate --strictPro tip:
Run validate before commits to catch issues early.
Topic: Using cortex-tms migrate for upgrades
Concepts taught:
Three components:
1. Backup Engine (automatic snapshots):
.cortex/backups/2. Apply Logic (smart upgrades):
--force)3. Rollback Command (one-click recovery):
Try-this-command:
cortex-tms migratePro tip:
Always run migrate (no flags) first to see what needs updating.
During lesson:
? What would you like to do?❯ → Next Lesson ← Previous Lesson Exit TutorialLast lesson:
? What would you like to do?❯ ✓ Finish Tutorial ← Previous Lesson Exit TutorialMovement:
Current implementation: No state saved between runs
Restart behavior: Always starts at Lesson 1
Future enhancement: Save progress in .cortex/tutorial-progress.json
Workaround: Tutorial is short (10-15 min), just complete in one session
| Code | Meaning | Scenario |
|---|---|---|
0 | Success | Tutorial completed or exited normally |
1 | Error | Terminal not interactive, display errors |
# Start tutorialcortex-tms tutorial
# Lesson 1 appears# Read content# Press Enter to continue# Lesson 2 appears# ...continue through all 5 lessons...
# Final screen:🎉 Tutorial Complete!
You now know the Cortex Way: • Dashboard: cortex-tms status • AI Activation: cortex-tms prompt • Version Sync: pnpm run docs:sync • Health Check: cortex-tms validate • Migration: cortex-tms migrate
💡 Next Steps: 1. Run "cortex-tms status" to see your project dashboard 2. Run "cortex-tms prompt init-session" to start coding 3. Read NEXT-TASKS.md to see what to work on next
📚 For more details, see: • CLAUDE.md (agent workflow) • docs/core/ARCHITECTURE.md (technical design) • docs/core/PATTERNS.md (coding standards)
Happy coding! 🚀cortex-tms tutorial
# Lesson 2 appears# Select "Exit Tutorial"
✓ Tutorial exited. Run "cortex-tms tutorial" anytime to continue.
# Can restart latercortex-tms tutorial# Starts at Lesson 1 againcortex-tms tutorial
# Lesson 3 appears# Select "← Previous Lesson"# Lesson 2 appears# Select "← Previous Lesson"# Lesson 1 appears# Select "→ Next Lesson"# Back to Lesson 2Install Cortex TMS
Initialize Project (Optional)
cortex-tms init --scope standardTutorial works without initialization, but examples are better with real project
Start Tutorial
cortex-tms tutorialComplete 5 Lessons
Total: ~15 minutes
Apply Learning
After tutorial:
# View dashboardcortex-tms status
# Initialize AI sessioncortex-tms prompt init-session
# Validate healthcortex-tms validateUse this checklist for new team members:
Day 1 Onboarding:
npm install -g cortex-tmscortex-tms tutorial (15 min)NEXT-TASKS.md to understand current sprintdocs/core/PATTERNS.md for coding standardscortex-tms statuscortex-tms prompt init-sessionDay 1 Assignment:
NEXT-TASKS.mdcortex-tms prompt feature to get starteddocs/core/PATTERNS.mdcortex-tms prompt finish when donecortex-tms validate --strictAfter First PR:
Context: Developer just joined team, knows Git but not Cortex TMS
Workflow:
# Step 1: Watch tutorialcortex-tms tutorial# 15 minutes, learn all core concepts
# Step 2: Explore projectcortex-tms status# See current sprint: "User Authentication"
# Step 3: Read documentationcat NEXT-TASKS.mdcat docs/core/PATTERNS.md
# Step 4: Pick first taskcortex-tms prompt feature# Paste into AI, ask: "Implement JWT token generation"
# Step 5: Validate before commitcortex-tms validate --strict
# Developer now productive on Day 1Context: Team upgrades Cortex TMS quarterly, needs migration training
Workflow:
# Step 1: Review migration lessoncortex-tms tutorial# Navigate to Lesson 5# Read about backup/apply/rollback
# Step 2: Check migration statuscortex-tms migrate# See OUTDATED files
# Step 3: Apply upgradecortex-tms migrate --apply# Backup created automatically
# Step 4: Review changesgit diff
# Step 5: If issues, rollbackcortex-tms migrate --rollback# Select backup to restore
# Team understands migration safetyContext: Manager wants to ensure team follows TMS practices
Workflow:
# Step 1: Review validation lessoncortex-tms tutorial# Navigate to Lesson 4# Learn Archive Protocol
# Step 2: Validate projectcortex-tms validate --strict
# Step 3: Check statuscortex-tms status# See health metrics
# Step 4: Enforce practices# Add to CI pipeline:# - cortex-tms validate --strict# - Block PRs if validation fails
# Team self-enforces qualityProblem: Running in CI/CD or non-TTY environment
Error:
Error: Tutorial requires interactive terminalUse --help for documentationSolution:
# Tutorial requires TTY# Run locally, not in CI
# For CI, use commands directly:cortex-tms statuscortex-tms validateProblem: Formatting looks wrong, emojis not rendering
Causes:
Solutions:
1. Use modern terminal:
2. Install emoji font:
# Ubuntusudo apt install fonts-noto-color-emoji
# macOS (built-in)3. Widen terminal:
# Ensure at least 80 columnsresize -s 24 80Problem: Closed terminal mid-tutorial
Current behavior: Progress lost, restart from Lesson 1
Workaround: Tutorial is short, just re-run
cortex-tms tutorial# Start over (15 min)Problem: ”← Previous Lesson” option not showing
Cause: On Lesson 1 (no previous lesson exists)
Solution: Use ”→ Next Lesson” to proceed forward
Complete in One Session
Tutorial is 15 minutes. Don’t pause mid-way - complete it in one sitting for best learning.
Try Commands Immediately
When tutorial says “Try this command”, actually run it. Learning by doing is more effective.
Take Notes
Keep notepad open. Jot down key commands as you progress through lessons.
Share with Team
Add “Run cortex-tms tutorial” to your onboarding checklist. New developers learn the system fast.
Key takeaways:
cortex-tms status shows project at a glanceCommand to remember:
cortex-tms statusKey takeaways:
init-sessionPROMPTS.mdCommands to remember:
cortex-tms prompt init-sessioncortex-tms prompt featurecortex-tms prompt finishKey takeaways:
package.json version is Single Source of TruthCommand to remember:
pnpm run docs:syncKey takeaways:
cortex-tms validate catches documentation driftCommand to remember:
cortex-tms validate --strictKey takeaways:
migrate (no flags) firstCommands to remember:
cortex-tms migrate # Previewcortex-tms migrate --apply # Upgradecortex-tms migrate --rollback # UndoAfter completing tutorial:
View Status
cortex-tms statusUnderstand current project state
Initialize AI Session
cortex-tms prompt init-sessionCopy and paste into Claude/ChatGPT
Read Active Sprint
cat NEXT-TASKS.mdSee what to work on next
Pick First Task
Choose small task from NEXT-TASKS.md
Use Feature Prompt
cortex-tms prompt featureGet implementation guidance
Validate Before Commit
cortex-tms validate --strictEnsure quality standards
After tutorial, read these docs for deeper understanding:
Concepts:
CLI Reference:
# Learn system before usingcortex-tms tutorial
# Then initializecortex-tms init --scope standard# Initialize projectcortex-tms init
# Run tutorial to learn workflowscortex-tms tutorial
# Apply immediatelycortex-tms statuscortex-tms prompt init-session# Add to onboarding scriptcat > onboard.sh << 'EOF'#!/bin/bash
echo "Welcome to the team!"echo ""
# Install Cortex TMSnpm install -g [email protected]
# Run tutorialecho "Step 1: Complete the Cortex TMS tutorial (15 min)"cortex-tms tutorial
# Project statusecho ""echo "Step 2: Check project status"cortex-tms status
# Read docsecho ""echo "Step 3: Read these files:"echo " - NEXT-TASKS.md (current sprint)"echo " - docs/core/PATTERNS.md (coding standards)"echo " - CLAUDE.md (AI workflow)"
echo ""echo "You're ready to contribute! 🚀"EOF
chmod +x onboard.sh./onboard.shcortex-tms init - Initialize TMS (creates files tutorial references)cortex-tms status - Dashboard (Lesson 1)cortex-tms prompt - Prompt library (Lesson 2)cortex-tms validate - Health checks (Lesson 4)cortex-tms migrate - Template upgrades (Lesson 5)