xiaohongshu
xiaohongshu
aps-doc-staging
Expert documentation generation for staging transformation layers. Auto-detects SQL engine (Presto/Trino vs Hive), documents transformation rules, PII handling, deduplication strategies, and data quality rules. Use when documenting staging transformations.
Full skill instructions
Specialized skill for generating comprehensive documentation for staging transformation layers. Automatically detects SQL engines, extracts transformation rules, documents PII handling, and analyzes deduplication strategies.
Use this skill when:
Example requests:
"Document the staging transformation for customer events"
"Create staging layer documentation with transformation rules"
"Document PII handling in staging transformations"
"Generate staging documentation following this template: [Confluence URL]"
WITHOUT codebase access = NO documentation. Period.
If no codebase access provided:
I cannot create technical documentation without codebase access.
Required:
- Directory path to staging workflows
- Access to .dig, .sql, .yml files
Without access, I cannot extract real transformation SQL, PII logic, or table names.
Provide path: "Code is in /path/to/staging/"
Before proceeding:
Documentation MUST contain:
NO generic placeholders. Only real, extracted data.
Follow this EXACT structure (analyzed from production examples):
# Staging Transformation - {Engine} Engine
## Overview
**Engine**: {Presto/Trino or Hive}
**Architecture**: {Loop-based / Other}
**Processing Mode**: {Incremental / Full}
**Location**: {directory path}
### Key Characteristics
{List key features from actual workflow}
---
## Architecture Overview
### Directory Structure
{Actual directory tree from codebase}
### Core Components
#### 1. Main Workflow File
{Name and purpose}
**Key Features:**
- {Feature from actual .dig file}
- {Feature from actual .dig file}
**Workflow Phases:**
{Extract from actual workflow}
#### 2. Configuration File
{Name and structure from actual codebase}
**Configuration Structure:**
{Real YAML structure}
**Table Configuration Fields:**
{Document actual fields used}
#### 3. SQL Transformation Files
{Types: init, incremental, upsert - from actual codebase}
---
## Processing Flow
### Initial Load (First Run)
{Step-by-step from actual workflow}
### Incremental Load (Subsequent Runs)
{Step-by-step from actual workflow}
---
## Data Transformation Rules
{Document ACTUAL transformation rules from codebase}
### 1. Date/Timestamp Processing
{Real SQL examples from transformation files}
### 2. String Standardization
{Real SQL examples}
### 3. JSON Extraction
{Real examples if exists}
### 4. Email Processing
{Real examples if exists}
### 5. Phone Number Processing
{Real examples if exists}
### 6. Deduplication Logic
{Real ROW_NUMBER() or DISTINCT logic}
### 7. Metadata Columns
{Real source_system, load_timestamp columns}
---
## Table-Specific Transformation Rules
{If using reference table like staging_trnsfrm_rules:}
**Reference Table**: {database}.{table}
**Purpose**: {explain}
**Schema**: {real schema}
**How Used**: {explain how workflow reads these rules}
---
## Current Implementation
**Configured Tables**:
{List actual tables from config}
---
## How to Add New Source Tables
{Step-by-step with real examples}
---
## Monitoring & Troubleshooting
**Key Queries**:
{Real SQL for checking status, data quality}
**Common Issues**:
{Real issues and solutions}
---
## Best Practices
{List from actual production experience}
---
## Summary
{Brief recap of capabilities}
Template Usage Notes:
This skill generates production-ready staging documentation by:
Key capability: Transforms staging codebase into professional Confluence documentation with all transformation rules documented.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience