content-templates
Use this skill when creating structured educational content. Provides templates for chapters, exercises, projects, labs, slides, and assessments. Trigger phrases include "content template", "chapter structure", "exercise format", "lab template", "slide template", "quiz format".
What this skill does
# Content Templates
Structural templates for different types of programming educational content.
## Chapter Template
```markdown
# Chapter [X]: [Topic Name]
## Learning Objectives
By the end of this chapter, you will be able to:
- [Objective 1 - action verb + specific skill]
- [Objective 2]
- [Objective 3]
## Prerequisites
Before starting this chapter, you should understand:
- [Prerequisite 1]
- [Prerequisite 2]
## Introduction
[1-2 paragraphs motivating the topic]
- Why does a developer need to know this?
- What problems does it solve?
- How does it connect to previous chapters?
## [Section 1: Core Concept]
### The Problem
[What situation or challenge leads us to need this concept?]
### A First Look
```[language]
// Working code example showing the concept in action
```
**Output:**
```
[Actual output from running the code]
```
### How It Works
[Break down the code piece by piece]
### Key Points
- [Important point 1]
- [Important point 2]
### Common Mistakes
```[language]
// Code that demonstrates a common error
```
**Error:**
```
[Compiler or runtime error message]
```
**Why this happens:** [Explanation]
**The fix:**
```[language]
// Corrected code
```
## [Section 2: Deeper Understanding]
[Build on the basics with more detail]
## [Section 3: Practical Application]
[Real-world use case with full implementation]
## Exercises
### Exercise 1: [Name] (Beginner)
[Clear problem statement]
**Starter code:**
```[language]
// Scaffolded code for student to complete
```
**Expected behavior:**
```
[Sample input/output or test cases]
```
### Exercise 2: [Name] (Intermediate)
[Problem requiring synthesis of concepts]
### Exercise 3: [Name] (Challenge)
[Open-ended problem for advanced students]
## Summary
- Key takeaway 1
- Key takeaway 2
- Key takeaway 3
## What's Next
[Preview of next chapter and how it builds on this]
## Further Reading
- [Resource 1 - official documentation]
- [Resource 2 - deeper dive]
```
## Coding Exercise Template
```markdown
# Exercise: [Name]
**Difficulty:** [Beginner/Intermediate/Advanced]
**Estimated Time:** [X minutes]
**Concepts Practiced:** [Concept 1, Concept 2]
## Problem Statement
[Clear, unambiguous description of what to build]
## Requirements
1. [Specific requirement 1]
2. [Specific requirement 2]
3. [Specific requirement 3]
## Starter Code
```[language]
// Provided structure for student to complete
// TODO comments indicate where students should write code
```
## Test Cases
```[language]
// Tests to verify the solution
// Students can run these to check their work
```
**Expected Output:**
```
Test 1: PASS
Test 2: PASS
...
```
## Hints (Use sparingly!)
<details>
<summary>Hint 1</summary>
[First gentle nudge]
</details>
<details>
<summary>Hint 2</summary>
[More specific guidance]
</details>
## Solution
<details>
<summary>Click to reveal solution</summary>
```[language]
// Complete working solution
```
**Explanation:**
[Why this approach works]
</details>
## Extension Challenges
For students who finish early:
1. [Additional challenge 1]
2. [Additional challenge 2]
```
## Project Template
```markdown
# Project: [Name]
**Duration:** [X hours/days]
**Difficulty:** [Intermediate/Advanced]
**Technologies:** [Language, libraries, tools]
## Overview
[1-2 paragraphs describing what students will build]
## Learning Goals
By completing this project, you will:
- [Goal 1]
- [Goal 2]
- [Goal 3]
## Project Specification
### Requirements
**Core Features (Required):**
1. [Feature 1]
2. [Feature 2]
3. [Feature 3]
**Stretch Goals (Optional):**
1. [Enhancement 1]
2. [Enhancement 2]
### Technical Constraints
- [Constraint 1 - e.g., must use standard library only]
- [Constraint 2 - e.g., no external dependencies]
## Getting Started
### Step 1: Project Setup
[Instructions for creating the project structure]
```bash
# Commands to set up the project
```
### Step 2: [First Milestone]
[Guidance for first working piece]
### Step 3: [Second Milestone]
[Building on the first piece]
### Step 4: [Integration]
[Bringing pieces together]
## Testing Your Project
```[language]
// Test cases or testing instructions
```
## Submission Requirements
1. [What to submit]
2. [Format requirements]
3. [Documentation requirements]
## Evaluation Criteria
| Criterion | Weight | Description |
|-----------|--------|-------------|
| Correctness | X% | Code works as specified |
| Code Quality | X% | Readable, well-organized |
| Testing | X% | Adequate test coverage |
| Documentation | X% | Clear comments and README |
```
## Lab/Workshop Template
```markdown
# Lab [X]: [Topic Name]
**Duration:** [X minutes/hours]
**Format:** [Individual/Pair/Group]
**Environment:** [IDE, online compiler, etc.]
## Learning Objectives
- [Objective 1]
- [Objective 2]
---
## Part A: Guided Practice ([X minutes])
### Setup
```[language]
// Initial code to start with
```
### Step 1: [First Concept]
[Explanation of what to do]
```[language]
// Code to write or modify
```
**Try it:** Run the code and observe [specific output]
### Step 2: [Building On]
[Next step in the progression]
### Checkpoint
At this point, your code should:
- [ ] [Criterion 1]
- [ ] [Criterion 2]
---
## Part B: Independent Challenges ([X minutes])
Work on these challenges independently or with a partner.
### Challenge 1: [Name] (5-10 min)
[Problem statement]
### Challenge 2: [Name] (10-15 min)
[Problem statement building on Challenge 1]
### Challenge 3: [Name] (15-20 min)
[More complex integration challenge]
### Challenge 4: [Name] (Extension)
[For students who finish early]
---
## Wrap-up
### Reflection Questions
1. What was the most challenging part?
2. What would you do differently next time?
3. How could you extend what you built?
### Key Takeaways
- [Takeaway 1]
- [Takeaway 2]
```
## Slides Template (Quarto RevealJS)
```markdown
---
title: "[Topic Name]"
author: "[Instructor Name]"
format:
revealjs:
theme: default
code-line-numbers: true
highlight-style: github
---
## Learning Objectives
- Objective 1
- Objective 2
- Objective 3
::: notes
Set expectations for what students will learn
:::
---
## Why This Matters
[Real-world motivation]
**In practice:** [Concrete example from industry]
::: notes
Hook students with relevant context
:::
---
## [Concept]: First Look
```{.[language]}
// Simple example code
```
::: {.fragment}
**Output:**
```
[What this produces]
```
:::
::: notes
Walk through each line
:::
---
## Let's Build It Up
:::: {.columns}
::: {.column width="50%"}
**Step 1:**
```{.[language]}
// First piece
```
:::
::: {.column width="50%"}
**Step 2:**
```{.[language]}
// Adding to it
```
:::
::::
::: notes
Incremental code building
:::
---
## Common Mistake
```{.[language]}
// Code with a bug
```
::: {.fragment}
**Error:**
```
[Error message]
```
:::
::: {.fragment}
**How to fix it:** [Explanation]
:::
---
## Your Turn
Given this code:
```{.[language]}
// Code to analyze
```
**Question:** What will this output?
::: {.fragment}
**Answer:** [Revealed answer]
:::
::: notes
Give students 1-2 minutes to think
:::
---
## Live Coding: [Task]
Let's build [feature] together.
[Space for live demonstration]
::: notes
Key points to hit during live coding:
- Point 1
- Point 2
:::
---
## Key Takeaways
1. [Main point 1]
2. [Main point 2]
3. [Main point 3]
**Next time:** [Preview]
---
## Questions?
[Contact info or office hours]
```
## Quiz/Assessment Template
```markdown
# Assessment: [Topic Name]
**Time Limit:** [X minutes]
**Open/Closed:** [Book, notes, IDE?]
**Total Points:** [XX]
---
## Part 1: Code Reading ([X points])
### Question 1 ([X points])
What does the following code output?
```[language]
// Code to trace
```
**Answer:** ____________
### Question 2 ([X points])
This code has a bug. Identify it and explain how to fix it.
```[language]
// Buggy code
```
**Bug:** ____________
**Fix:** ____________
---
## Part 2: Code Writing ([X points])
### Question 3 ([X pointsRelated in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.