Accelerated Artifact
Layout
Section titled “Layout”ccode.yamlccode/ api/ generate.ts instructions/ handlers.md templates/ handlers.tplProcess
Section titled “Process”import type { Context } from "@ccode/context";
export default function main(ctx: Context) { const model = { packageName: "handlers", };
ctx.setScope("generate-api");
ctx.accelerate( "handlers.go", "templates/handlers.tpl", model, "instructions/handlers.md", );}Template
Section titled “Template”package {{ data.packageName }}Instructions
Section titled “Instructions”# Handler adjustment
Review the generated handler file, keep package naming stable, and add endpoint-specific behavior from the OpenAPI operation model.Run and inspect
Section titled “Run and inspect”ccode run api/generateccode list accelerated --for-agentccode get accelerated generate-api:handlers.go --instructions --for-agentccode adjust generate-api:handlers.goThe target file is output_path/handlers.go. If it is edited after generation, the next run will not overwrite it unless the file still matches the stored generated snapshot. Use ccode adjust when the proposal requires no edits and should be accepted as-is.