common-patterns

Provides reusable patterns for XML-driven application development and maintenance.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/timothyjmorris/XmlConversion --skill common-patterns-timothyjmorris
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: common-patterns
Source: https://github.com/timothyjmorris/XmlConversion/tree/main/.github/skills/common-patterns
Command: npx skills add https://github.com/timothyjmorris/XmlConversion --skill common-patterns-timothyjmorris

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides tested, copy-paste-ready code patterns to accelerate the development and extension of the XML Database Extraction System, reducing boilerplate and ensuring consistency.

Core Features & Use Cases

  • Comprehensive Coverage: Offers patterns for XML parsing, data mapping, validation, database operations, and testing.
  • Best Practices: Demonstrates contract-driven development, schema isolation, and atomic transactions.
  • Use Case: When adding a new product line to the system, use the "Product-Line-Specific Mapping" pattern to define its unique data transformations within its contract file, ensuring code remains clean and maintainable.

Quick Start

Use the common-patterns skill to find an example of how to implement custom validation rules for a new data field.

Frequently Asked Questions about common-patterns

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

FAQPage Schema
How do I implement XML data extraction and mapping for a new product line?

XML data extraction for new product lines uses product-line-specific mapping patterns to define unique transformations within contract files. This ensures code remains clean and maintainable while extending the database extraction system.

What is the best way to validate XML data before database operations?

XML data validation before database operations is handled through custom validation rules for new data fields. These patterns provide tested examples to ensure data conforms to required schemas before atomic transactions are executed.

How does contract-driven development work with XML parsing?

Contract-driven development with XML parsing isolates schema definitions within specific contract files. This architectural approach separates parsing logic from data transformation rules, facilitating rapid development and consistent maintenance.

Can I use these Python patterns for ETL testing and database operations?

These Python patterns support ETL testing and database operations by providing tested methodologies for atomic transactions and validation. They offer copy-paste-ready examples covering the full extraction and transformation workflow.

Do I need schema isolation to maintain XML database extraction code?

Schema isolation is required to maintain XML database extraction code effectively. By separating schema definitions from parsing logic, it reduces boilerplate and ensures architectural consistency when extending the system.

Why does adding new data fields require custom validation rules in XML extraction?

Adding new data fields requires custom validation rules in XML extraction to maintain data integrity during database operations. The patterns provide tested examples to define these rules within contract files, ensuring consistent schema enforcement.