extract-and-run-samples

Community

Run Python snippets from教材 and update outputs

Authorduwenji
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill removes the manual effort of extracting Python code blocks from教材 Markdown, running them in a controlled Python 3.12 environment, and keeping the documented output synchronized.

Core Features & Use Cases

  • Extracts Python code blocks: Pulls only Markdown fenced blocks starting with ```python from the target教材Markdown.
  • Executes in an isolated sandbox: Runs sample code inside sandbox/{教材ファイル名(拡張子除く)} to prevent cross-教材 interference.
  • Auto-updates教材 content: Writes captured stdout/stderr back into the corresponding locations and appends a review checklist at the end.
  • Supports repeatable operations: Allows reuse across multiple教材 by parameterizing the target file and output destinations.

Quick Start

Provide the target教材Markdown path to extract-and-run-samples to generate and run the extracted Python snippets in Python 3.12, then update the教材 with the captured execution output.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: extract-and-run-samples
Download link: https://github.com/duwenji/generative-ai-oss-tutorials/archive/main.zip#extract-and-run-samples

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.