add-step

Generate code templates for MC-ORG pipeline steps with SafeSQL database operations.

Updated Jun 26, 2022
One-click install
npx skills add https://github.com/evengul/mc-org --skill add-step
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-step
Source: https://github.com/evengul/mc-org/tree/main/.claude/skills/add-step
Command: npx skills add https://github.com/evengul/mc-org --skill add-step

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive template for developers to create new, robust pipeline steps within the MC-ORG application, ensuring consistency and reducing boilerplate code.

Core Features & Use Cases

  • Step Interface Implementation: Offers patterns for creating transformation, validation, database query/manipulation, and business rule steps.
  • Error Handling: Demonstrates proper use of Result and AppFailure for robust error management.
  • Database Operations: Includes examples for CRUD operations and transactions using SafeSQL.
  • Pipeline Orchestration: Shows how to integrate these steps into sequential and parallel pipelines.
  • Use Case: A developer needs to add a new feature to MC-ORG that involves validating user input, inserting data into multiple tables, and then fetching the newly created record. This Skill provides the exact code structure and patterns to accomplish this efficiently.

Quick Start

Use the add-step skill to generate a new database insert step for the 'Project' entity.

Frequently Asked Questions about add-step

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

FAQPage Schema
How do I create a new pipeline step in Kotlin for data transformation and validation?

To create a Kotlin pipeline step, implement the step interface patterns for data transformation and input validation, using Result and AppFailure for error handling. This ensures robust validation logic and consistent step implementation across your workflow.

What is the best way to structure database CRUD operations within a Kotlin pipeline step?

Structure database CRUD operations within a Kotlin pipeline step by using SafeSQL for queries, inserts, updates, and deletes. This approach provides reusable code snippets that ensure safe database interactions and transactional integrity.

How does error handling work for pipeline steps using Result and AppFailure?

Error handling for pipeline steps uses Result and AppFailure to manage failures gracefully. Returning AppFailure details within a Result object allows the pipeline to catch specific validation or database errors without crashing the application.

Can I use this approach to orchestrate sequential and parallel pipelines in Kotlin?

Yes, you can orchestrate sequential and parallel pipelines by integrating these structured step interfaces. This allows developers to combine transformation, validation, and database steps into complex workflows that execute reliably in sequence or concurrently.

How do I implement transactional database operations for multiple inserts in a pipeline step?

Implement transactional database operations by using the SafeSQL transaction patterns provided for multiple inserts. This ensures that complex database manipulations either commit entirely or roll back, maintaining data consistency across tables.