Code File Generation Skill
Overview
Creates code files in various programming languages with proper syntax and structure.
Capabilities
- •Python scripts (.py)
- •JavaScript/TypeScript files (.js, .ts)
- •HTML/CSS files
- •React components (.jsx, .tsx)
- •JSON configuration files
- •Shell scripts (.sh)
- •Any text-based code file
Supported Languages
- •Python
- •JavaScript/TypeScript
- •HTML/CSS
- •React/Vue/Angular
- •SQL
- •Shell/Bash
- •YAML/JSON
- •Markdown
Best Practices
- •Include appropriate file headers/comments
- •Follow language-specific conventions (PEP8 for Python, etc.)
- •Use meaningful variable/function names
- •Include error handling
- •Add documentation/docstrings
- •Structure code logically
- •Include any necessary imports
Template Structure (Python)
python
#!/usr/bin/env python3
"""
Module description here.
Generated by MimaarAI
"""
import sys
from typing import Optional
def main() -> None:
"""Main function."""
# Implementation here
pass
if __name__ == "__main__":
main()
Template Structure (JavaScript)
javascript
/**
* Module description here.
* Generated by MimaarAI
*/
'use strict';
const module = {
// Implementation here
};
module.exports = module;
Quality Checklist
- • Syntax is correct
- • Imports are present
- • Functions are documented
- • Error handling included
- • Code is properly indented
- • Follows language conventions