mirror-code-generator

The mirror-code-generator code skill is distributed with AchillesAgentLib to generate code from skill specifications through MainAgent's standard code-skill interface.

Interface and artifacts

The descriptor accepts a target skill directory. Modules under skills/mirror-code-generator/src/ read .md and .mds specifications, map them to source paths, ask LLMAgent to generate or repair ESM, run syntax checks, and back up successful specifications. generation-flow.md explains the local pipeline.

Execution boundary

Generated source lives below the target skill's src/. Syntax failure triggers bounded repair and reversion. This is the only built-in skill in the catalog that requires model interaction through LLMAgent.

MainAgent discovers the folder only when internal skills are enabled, parses cskill.md, and delegates execution to CodeSkillsSubsystem. The folder carries its own descriptor and implementation so it remains portable.