Skip to main content

add-exercise

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.

소스 정보

저장소
nextflow-io/training
최근 소스 활동
2026년 2월 2일 23:30
감지된 SKILL.md 언어
영어
스타
276
포크
331

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
add-exercise
description
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.
Add an exercise with solution to an existing training lesson. See [../shared/repo-conventions.md](../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: ```markdown ??? 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`: ````markdown ??? 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
GitHub에서 보기