Generated Task Content Generation Script
CODITECT Framework - Automated content generation for curriculum tasks Generates multi-level educational content from task specifications with AI-powered content expansion and quality validation.
Author: CODITECT Framework Version: 1.0.0 Last Updated: 2025-12-10
Features:
- Multi-level content generation (beginner through expert)
- Template-based content expansion
- AI-powered content enrichment
- Quality validation and scoring
- Batch processing support
- Output format flexibility (Markdown, JSON, YAML)
Usage: python generated_task_content_generation.py --task "task_spec.json" --output "content/" python generated_task_content_generation.py --batch "tasks/" --level all python generated_task_content_generation.py --template "custom_template.md" --task "spec.json"
Dependencies: - Python 3.10+ - pyyaml - jinja2 - anthropic (optional, for AI enrichment) - openai (optional, for AI enrichment)
File: generated_task_content_generation.py
Classes
SkillLevel
Skill levels for generated content.
ContentType
Types of content that can be generated.
OutputFormat
Output format options.
TaskSpecification
Specification for a content generation task.
GeneratedContent
Container for generated content.
ContentTemplate
Template for generating content.
ContentGenerator
Main content generation engine.
BatchProcessor
Process multiple task specifications in batch.
Functions
main()
Main entry point.
all_levels(cls)
Return all skill levels in order.
from_dict(cls, data)
Create TaskSpecification from dictionary.
from_file(cls, filepath)
Load TaskSpecification from JSON or YAML file.
to_dict()
Convert to dictionary.
to_markdown()
Export as Markdown.
get_template(content_type, skill_level)
Get template for content type and skill level.
render(content_type, skill_level, variables)
Render template with variables.
generate(spec, skill_level)
Generate content from task specification.
process_directory(input_dir, output_format)
Process all task specs in a directory.
Usage
python generated_task_content_generation.py