implement
Generate clean C# code, Markdown files, agents, prompts, skills in MacroFlow.
When & Why to Use This Skill
The Implement Skill is a high-performance development tool designed to automate the creation of production-ready C# code, Markdown documentation, and AI agent components within the MacroFlow ecosystem. It bridges the gap between technical planning and deployment by enforcing coding standards, generating structured artifacts, and providing automated synchronization scripts for seamless GitHub integration.
Use Cases
- Automated C# Development: Rapidly generating clean, standardized C# source code and logic based on predefined technical specifications and task breakdowns.
- Agent & Prompt Engineering: Creating and packaging specialized AI agents, prompts, and skill definitions tailored for the MacroFlow framework.
- DevOps Synchronization: Using integrated PowerShell scripts to automatically sync local development artifacts from hidden directories to the repository root for deployment.
- Documentation & Compliance: Generating comprehensive Markdown files and ensuring all code artifacts adhere to organizational standards, including copyright and license headers.
| name | implement |
|---|---|
| description | Generate clean C# code, Markdown files, agents, prompts, skills in MacroFlow. |
Implement Skill
Overview
The Implement phase generates clean, production-ready code based on the plan and tasks.
Purpose
- Generate code
- Follow coding standards
- Ensure quality and testing
- Deploy solutions
Inputs
- Task breakdown
- Technical specs
Process
- Generate code for each task
- Apply coding standards (#region, etc.)
- Test and validate
- Deploy and integrate
- Sync local ~/.github development to repository root for deployment
Outputs
- Production code
- Tests
- Deployed solution
- Synced repository with local developments
Deployment Mechanism
To ensure local development in ~/.github is deployed to the repository:
- After generating artifacts in ~/.github (agents, chatmodes, instructions, prompts, skills), run the sync operation.
- Use PowerShell script to copy folders from ~/.github to repo root.
- Commit and push changes to GitHub.
Example PowerShell script (add to scripts/ folder):
# Sync-Deployment.ps1
param(
[string]$RepoRoot = "K:\com.acornsoft365\luna-foundry"
)
$LocalGitHub = "$env:USERPROFILE\.github"
$FoldersToCopy = @("agents", "chatmodes", "instructions", "prompts", "skills")
foreach ($folder in $FoldersToCopy) {
$source = Join-Path $LocalGitHub $folder
$dest = Join-Path $RepoRoot $folder
if (Test-Path $source) {
Copy-Item -Path $source -Destination $dest -Recurse -Force
Write-Host "Copied $folder to $dest"
}
}
# Commit and push
Set-Location $RepoRoot
git add .
git commit -m "Sync local ~/.github development to repo"
git push origin develop
Run this script after local development to deploy.
Grok Integration
Use Grok for code generation. Temperature: 0.3 for precise code.
Next Phase
Process complete; iterate if needed.
Instructions
- Produce production-ready artifacts.
- Use #region Copyright & License.
Examples
- Input: Tasks.
- Output: Code and files.
Learned Patterns
- C# style.