Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

add-exercise

FreeNo executable scriptsNot checked

Add an interactive exercise with solution to an existing lesson. Creates properly formatted exercise and solution admonition blocks. Use when a lesson needs…

nextflow-ioby nextflow-io★ 283 GitHub stars

About this skill

Add an exercise with solution to an existing training lesson.

See ../shared/repo-conventions.md for directory structure and file conventions.

Follow these steps:

  1. Ask the user:

    • Which lesson file to add the exercise to
    • What the exercise should teach/practice
    • Difficulty level (beginner, intermediate, advanced)
  2. Read the lesson file to understand context

  3. Create the exercise using the ??? exercise admonition:

    ??? exercise "Exercise: [Title]"
    
        Brief description of what to do.
    
        1. First step
        2. Second step
        3. Expected outcome
    
        !!! tip
    
            Helpful hint if needed
    
  4. Create the corresponding solution using ??? solution or ??? result:

    ??? solution "Solution"
    
        Explanation of the solution approach.
    
        ```groovy title="filename.nf" linenums="1"
        [solution code]
        ```
    
        Expected output:
    
        ```console title="Output"
        [expected output]
        ```
    
  5. If the exercise requires a solution file:

    • Create the solution script in [module]/solutions/
    • Follow naming convention matching the exercise
    • Ensure the solution script is complete and tested
    • Add comments explaining key parts
  6. Insert the exercise at an appropriate point in the lesson:

    • After explaining the relevant concept
    • Before the section's Takeaway
    • With clear connection to learning objectives
  7. Test the exercise:

    • Verify instructions are clear
    • Confirm solution code works
    • Check that exercise difficulty is appropriate
    • Ensure expected output is correct
  8. Remind the user to:

    • Test the solution code themselves
    • Consider if hints are needed
    • Preview how it renders in the docs
    • Check that file paths in exercise are correct

Install add-exercise in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the add-exercise skill do?

Add an interactive exercise with solution to an existing lesson. Creates properly formatted exercise and solution admonition blocks. Use when a lesson needs hands-on practice.

How do I install the add-exercise skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the add-exercise skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare add-exercise with