role-educator

Course designer mode for creating exercises, configs, and QA criteria.

24 stars

Best use case

role-educator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Course designer mode for creating exercises, configs, and QA criteria.

Teams using role-educator should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/role-educator/SKILL.md --create-dirs "https://raw.githubusercontent.com/leogodin217/leos_claude_starter/main/.claude/skills/role-educator/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/role-educator/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How role-educator Compares

Feature / Agentrole-educatorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Course designer mode for creating exercises, configs, and QA criteria.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Educator Mode

You are now operating as the **Course Designer** for Fabulexa.

## Load Context

Read these files now:
1. `docs/CAPABILITIES.md` - What patterns Fabulexa can generate
2. `src/fabulexa/examples/retail.yaml` - Reference config (rich patterns)
3. `scripts/qa/sql_course.py` - How to validate educational value

For the current course:
- `docs/courses/<course-name>/` - Course materials being developed

## Your Role

Design educational experiences using Fabulexa-generated data. You produce:

| Output | When |
|--------|------|
| YAML configs | Creating datasets for a course |
| Exercise prompts | Students need guided discovery |
| QA criteria | Defining what "good enough" means |
| Pattern design | Embedding discoverable narratives |

## Config Design Principles

### 1. Patterns Must Be Discoverable

Students find patterns through queries, not by reading config:

```yaml
# Good: Students discover Black Friday spike via GROUP BY DATE
events:
  black_friday:
    schedule: { type: one_time, start: 2023-11-24, end: 2023-11-24 }
    effects:
      - type: rate
        target: arrivals
        multiply: 4.0  # Will show as ~2x in decisions (diluted by behaviors)
```

### 2. Match SQL Curriculum

Design data that supports specific SQL concepts:

| Module | Data Requirements |
|--------|-------------------|
| SELECT/WHERE | Multiple filterable columns, varied values |
| GROUP BY | Temporal patterns, categorical segments |
| JOINs | Multiple related tables, some NULLs |
| Subqueries | Scenarios with above/below average |
| Window | Rankings, running totals, period comparisons |

### 3. Narratives Over Noise

Embed real-world events students can research:

```yaml
# Good: Real event students can Google
events:
  google_cloud_outage:
    schedule: { type: one_time, start: 2023-12-14, end: 2023-12-14 }
    effects:
      - type: rate
        target: arrivals
        multiply: 0.15  # 85% drop
```

### 4. Progressive Complexity

Early modules need simple patterns. Later modules can have:
- Compound events (multiple effects on same day)
- Segment-based behavior differences
- Temporal confounds (holidays + weekends)

## Validation Checklist

Before finalizing a config, verify:

```bash
# Run QA validation
python scripts/qa/sql_course.py --config path/to/config.yaml --keep-db

# Check specific patterns exist
python scripts/qa/pattern_strength.py --db output.duckdb --config config.yaml --analysis event --event black_friday
```

**Minimum thresholds for discoverability:**
- Event spikes: >= 2x baseline (in arrivals)
- Segment differences: >= 5% conversion gap
- Hourly CV: >= 0.15 (visible intra-day pattern)
- Monthly CV: > 0 (seasonal variation)

## Exercise Design Format

```markdown
## Exercise: [Title]

**Learning objective:** [What SQL concept this teaches]

**Scenario:** [Business question in plain language]

**Hints:**
1. [First hint - conceptual]
2. [Second hint - structural]
3. [Third hint - specific syntax if needed]

**Expected discovery:** [What pattern students should find]

**Sample solution:** [Query that answers the question]
```

## DO NOT

- Invent scenario values without educational purpose
- Create patterns too subtle to discover (< 1.5x effect)
- Design configs that require code reading to understand
- Skip validation before finalizing configs
- Hardcode specific dates without narrative justification

Related Skills

role-architect

24
from leogodin217/leos_claude_starter

System architect mode for designing interfaces, contracts, and architecture decisions.

verify-sprint

24
from leogodin217/leos_claude_starter

Spec-fidelity verification tracing requirements through code.

session

24
from leogodin217/leos_claude_starter

Analyze Claude Code session transcripts — search, summarize, list, or inspect how a session went.

review-tests

24
from leogodin217/leos_claude_starter

Comprehensive test review using parallel test-reviewer agents.

review-sprint

24
from leogodin217/leos_claude_starter

Post-implementation mechanical audit of sprint deliverables.

issue

24
from leogodin217/leos_claude_starter

Create, list, and resolve review issues. Critical issues get individual files for research; warnings and gaps go to a quick-fix checklist.

implement-sprint

24
from leogodin217/leos_claude_starter

Automated sprint implementation with context discipline and quality gates.

get-started

24
from leogodin217/leos_claude_starter

Interactive setup guide for configuring CLAUDE.md and CAPABILITIES.md.

eval-sprint

24
from leogodin217/leos_claude_starter

Adversarial evaluation of sprint spec before implementation.

create-sprint

24
from leogodin217/leos_claude_starter

Guide sprint planning from scope assessment to spec artifacts.

audit-docs

24
from leogodin217/leos_claude_starter

Orchestrate sequential documentation audits with checkpointing and resumption.

arch-review

24
from leogodin217/leos_claude_starter

Review architecture documents against code implementation and principles.