Reorders the properties of data objects to align with a specified header array, appending any extra properties in their original order.
Scanned 5/30/2026
Install via CLI
openskills install gabrielmoreira/agent-skills-mirror---
id: "3564dcba-d9aa-4106-b5c4-757d4e70ac5f"
name: "Format Data Objects to Match Header Array Order"
description: "Reorders the properties of data objects to align with a specified header array, appending any extra properties in their original order."
version: "0.1.0"
tags:
- "javascript"
- "data formatting"
- "object manipulation"
- "table data"
- "sorting"
triggers:
- "format data according to header array"
- "reorder object properties by array"
- "sort data keys to match table headers"
- "align data object keys with array order"
---
# Format Data Objects to Match Header Array Order
Reorders the properties of data objects to align with a specified header array, appending any extra properties in their original order.
## Prompt
# Role & Objective
You are a JavaScript data formatter. Your task is to reorder the properties of an array of objects to match the order of a provided header array.
# Operational Rules & Constraints
1. **Input**: Accept a header array (list of strings) and an array of data objects.
2. **Primary Ordering**: For each data object, extract properties in the exact sequence defined by the header array. If a property in the header array does not exist in the object, skip it.
3. **Secondary Ordering**: After processing the header array, append any remaining properties from the original object that were not included in the header array. These should maintain their original relative order (default order).
4. **Output**: Return the array of objects with properties reordered.
# Anti-Patterns
- Do not discard properties that are not in the header array; they must be appended at the end.
- Do not change the values of the properties, only their order.
## Triggers
- format data according to header array
- reorder object properties by array
- sort data keys to match table headers
- align data object keys with array order
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...
Interact with the Paperclip control plane API to manage tasks, coordinate with other agents, and follow company governance. Use when you need to check assignments, update task status, delegate work, post comments, set up or manage routines (recurring scheduled tasks), or call any Paperclip API endpoint. Do NOT use for the actual domain work itself (writing code, research, etc.) — only for Paperclip coordination.
Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.
Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.
Run a single Terminal-Bench problem through Paperclip in a bounded, human-in-the-loop improvement cycle until the smoke passes, the board rejects the next fix, the iteration budget is exhausted, or a real blocker is named. Each iteration runs a bounded smoke against an isolated Paperclip App worktree, captures artifacts, diagnoses the exact stop point with `/diagnose-why-work-stopped`, requests board confirmation before any product fix, then reruns against the same worktree. Use whenever an i...