AgentSkillsCN

Workshop Export

将学习工作坊导出为独立项目,附带所有必要工件,最大化 AI 辅助学习效果

SKILL.md
--- frontmatter
description: Export learning workshops to standalone projects with all necessary artifacts for maximum AI-assisted learning

Workshop Export

Export learning workshops to standalone projects with all necessary artifacts for maximum AI-assisted learning

Workshop Export Skill

Workshop Export Skill

Purpose

Export any learning workshop to a standalone project with all necessary artifacts for maximum AI-assisted learning.

Artifacts Generated

ArtifactPurpose
.cursorrulesProject-level AI rules and context
.cursor/rules/<lang>.mdTechnology-specific coding rules
.cursor/knowledge/*.jsonRelevant knowledge files
.cursor/WORKSHOP_CONTEXT.mdAI assistant guidance for workshop phases
README.mdWorkshop overview, exercises, objectives
package.json / requirements.txtDependencies
src/exercises/Starter code for exercises
.solutions/Hidden solutions (gitignored)
.gitignoreClean repository patterns

Usage

Via Python Script

bash
# From factory root
python scripts/workshops/export_workshop.py <workshop_id> <target_directory>

# Examples
python scripts/workshops/export_workshop.py L1_ethereum_fundamentals {TARGET_DIR}
python scripts/workshops/export_workshop.py L7_langchain_fundamentals {TARGET_DIR}
python scripts/workshops/export_workshop.py L5_crewai_multiagent {TARGET_DIR}

Via Agent Request

When user asks to start a workshop:

  1. Identify the workshop from available options:

    • Blockchain: L1 (Ethereum), L2 (Bitcoin), L4 (Solana)
    • AI: L3 (LangGraph), L5 (CrewAI), L6 (HuggingFace), L7 (LangChain), L8 (RAG), L16-L18
    • Web: L9 (React), L10 (Next.js), L11 (FastAPI)
    • Cloud: L12 (Kubernetes), L13 (Docker)
    • ML: L14 (PyTorch), L15 (Fine-tuning)
  2. Ask for target directory if not specified

  3. Run the export script:

    bash
    python scripts/workshops/export_workshop.py {workshop_id} {target_dir}
    
  4. Guide user to open the new project in Cursor

bash
# From factory root
python scripts/workshops/export_workshop.py <workshop_id> <target_directory>

# Examples
python scripts/workshops/export_workshop.py L1_ethereum_fundamentals {TARGET_DIR}
python scripts/workshops/export_workshop.py L7_langchain_fundamentals {TARGET_DIR}
python scripts/workshops/export_workshop.py L5_crewai_multiagent {TARGET_DIR}
bash
python scripts/workshops/export_workshop.py {workshop_id} {target_dir}

Available Workshops

IDNameCategory
L1_ethereum_fundamentalsEthereum Smart ContractsBlockchain
L2_bitcoin_lightningBitcoin & LightningBlockchain
L3_langgraph_workflowsLangGraph WorkflowsAI
L4_solana_fundamentalsSolana DevelopmentBlockchain
L5_crewai_multiagentCrewAI Multi-AgentAI
L6_huggingface_transformersHuggingFace TransformersAI
L7_langchain_fundamentalsLangChain AgentsAI
L8_rag_systemsRAG SystemsAI
L9_react_modernModern ReactWeb
L10_nextjs_fullstackNext.js FullstackWeb
L11_fastapi_productionFastAPI ProductionWeb
L12_kubernetes_productionKubernetesCloud
L13_docker_containerizationDockerCloud
L14_pytorch_deeplearningPyTorch Deep LearningML
L15_llm_finetuningLLM Fine-TuningML
L16_langsmith_observabilityLangSmith ObservabilityAI
L17_anthropic_tool_agentsAnthropic Tool AgentsAI
L18_deep_research_agentsDeep Research AgentsAI

Post-Export Steps

After export, guide the user:

  1. Open the project in a new Cursor window
  2. Install dependencies:
    • npm: npm install
    • pip: pip install -r requirements.txt
  3. Read README.md for workshop overview
  4. Follow the phases: Concept → Demo → Exercise → Challenge → Reflection

Customization

The export script uses stack configurations to customize output:

  • Blockchain projects: Hardhat config, Solidity rules, contract templates
  • Python AI projects: pytest config, type hints, async patterns
  • Web projects: Framework-specific configs and patterns
  • Cloud projects: YAML configs, deployment templates

Integration with Workshop Facilitator

The exported project is designed to work with the @workshop-facilitator agent:

code
@workshop-facilitator Guide me through the L1 Ethereum workshop

The facilitator uses:

  • WORKSHOP_CONTEXT.md for phase-specific guidance
  • Knowledge files for accurate information
  • Exercise hints for progressive assistance
code
@workshop-facilitator Guide me through the L1 Ethereum workshop

Example Workflow

code
User: I want to learn LangChain

Agent: I'll set up the LangChain workshop for you.

1. Runs: python scripts/workshops/export_workshop.py L7_langchain_fundamentals {TARGET_DIR}
2. Project created with:
   - .cursorrules with LangChain context
   - .cursor/rules/python.md with Python best practices
   - Knowledge files for LangChain patterns
   - Exercise starter code
   - Comprehensive README

3. Guide user to open project and begin learning
code
User: I want to learn LangChain

Agent: I'll set up the LangChain workshop for you.

1. Runs: python scripts/workshops/export_workshop.py L7_langchain_fundamentals {TARGET_DIR}
2. Project created with:
   - .cursorrules with LangChain context
   - .cursor/rules/python.md with Python best practices
   - Knowledge files for LangChain patterns
   - Exercise starter code
   - Comprehensive README

3. Guide user to open project and begin learning

Troubleshooting

IssueSolution
Workshop not foundCheck workshop ID matches pattern in patterns/workshops/
Permission deniedRun with appropriate permissions or choose different target
Dependencies failUse --legacy-peer-deps for npm or update pip

Best Practices

  • Validate workshop ID before export - confirm the workshop exists and matches user's learning goals to avoid wasted time
  • Ensure target directory is clean or doesn't exist - prevent accidental overwrites by checking directory state first
  • Include comprehensive README.md in exports - learners need clear guidance on objectives, phases, and how to use the workshop
  • Structure exercises progressively - start with concepts, move to demos, then exercises, building complexity gradually
  • Keep solutions hidden but accessible - use .solutions/ directory with .gitignore so learners can check answers without temptation
  • Test exported projects before delivery - verify dependencies install correctly and starter code runs on clean environments

Part of the Cursor Agent Factory Learning System

Prerequisites

[!IMPORTANT] Requirements: