AFENDA Scaffold Workflow

Automate AFENDA domain entity scaffolding with schema-is-truth workflow enforcement.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/pohlai88/AFENDA --skill afenda-scaffold-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: AFENDA Scaffold Workflow
Source: https://github.com/pohlai88/AFENDA/tree/main/.agents/skills/afenda-scaffold-workflow
Command: npx skills add https://github.com/pohlai88/AFENDA --skill afenda-scaffold-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the entire process of adding new domain entities to the AFENDA project, ensuring consistency and adherence to the schema-is-truth workflow.

Core Features & Use Cases

  • End-to-End Scaffolding: Guides developers through creating new entities from initial file generation to final gate verification.
  • Workflow Enforcement: Enforces a strict, step-by-step process with automated checks and verifications.
  • Use Case: A developer needs to add a new 'product' entity to the 'catalog' domain. This Skill will generate all necessary files, prompt for schema definitions, create database migrations, wire up API routes and worker jobs, and ensure all CI gates pass before the developer is ready to create a Pull Request.

Quick Start

Use the AFENDA scaffold workflow skill to scaffold a new entity named 'product' in the 'catalog' domain.

Frequently Asked Questions about AFENDA Scaffold Workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate entity scaffolding for a new domain from schema to database migration?

Automating entity scaffolding generates all necessary files, prompts for schema definitions, creates database migrations, and registers contracts by enforcing a strict schema-is-truth workflow. This ensures project conventions are met before wiring up API routes and worker jobs.

What is the schema-is-truth workflow for domain entity creation?

The schema-is-truth workflow is a strict, step-by-step development process for entity creation that uses schema definitions as the single source of truth. It manages file generation, database migrations, and API wiring to ensure adherence to import direction laws.

How do I scaffold a new entity and wire up API routes and worker jobs?

Scaffolding a new entity involves guiding developers through file generation, schema definition, and database migrations to wire up API routes and worker jobs. The process includes automated checks and CI gate verification to ensure all configurations pass before a pull request.

Does this scaffolding workflow enforce import direction laws and CI gate verification?

Yes, this scaffolding workflow enforces import direction laws and verifies CI gates. It ensures adherence to project conventions by running automated checks during the end-to-end process of adding new domain entities, preventing inconsistent code from being merged.

Can I use this code generation tool to add an entity to an existing project domain?

Yes, you can use this code generation tool to add a new entity to an existing project domain. It automates the entire scaffolding process from initial file generation to final gate verification, ensuring the new entity integrates consistently with the existing domain structure.

What are the limitations of manually scaffolding domain entities without workflow enforcement?

Manually scaffolding domain entities without workflow enforcement risks violating import direction laws and project conventions. It bypasses automated CI gate verification and schema-is-truth checks, leading to inconsistent file generation, broken API wiring, and failed database migrations.