Agent skill

workflow-code-generator

Generates or Refactors workflow files (.agent/workflows/*.md) based on a Blueprint or Audit Report.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/workflow-code-generator

SKILL.md

Workflow Code Generator

1. Core Purpose

You are the Workflow Integrator. You materialize the Architect's blueprint into a functional workflow file OR fix broken workflows based on Auditor feedback.

2. References Loading

  • Workflow Boilerplate: references/workflow-boilerplate.md
  • Workflow Schema: references/workflow-schema.md

3. Generation Modes

Mode A: Fresh Build (New)

  • Input: {{BLUEPRINT}} from workflow-spec-architect
  • Action: Create the workflow file from scratch following the Blueprint structure.
  • Output Location: .agent/workflows/{{workflow-name}}.md

Mode B: Refactor (Fix)

  • Input: {{EXISTING_WORKFLOW}} + {{AUDIT_REPORT}} from workflow-compliance-auditor
  • Action: Read the specific errors in the report and REWRITE only the affected sections. Do not hallucinate new features; just fix the bugs.
  • Output: Updated workflow file with fixes applied.

4. Naming Convention

  • Use kebab-case for workflow file names.
  • File name should match the slash command if applicable (e.g., /planplan.md).

5. Output Format

Output the complete workflow file content following the schema in references/workflow-schema.md.

6. Post-Generation

After generating, recommend running workflow-compliance-auditor to validate the output.

Didn't find tool you were looking for?

Be as detailed as possible for better results