policydb-copy-table

Copy policy data tables to the clipboard as HTML and plain text.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/wanderinglantern/policydb --skill policydb-copy-table
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: policydb-copy-table
Source: https://github.com/wanderinglantern/policydb/tree/main/.claude/skills/policydb-copy-table
Command: npx skills add https://github.com/wanderinglantern/policydb --skill policydb-copy-table

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Copy Table patterns enable a single-click workflow to copy rendered policy tables to the clipboard in both HTML (for rich paste in emails) and plain text, ensuring consistent formatting across environments.

Core Features & Use Cases

  • Backend helpers and API endpoint that render policy tables with an order-aware reordering mechanism.
  • Frontend integration via a JavaScript helper to trigger a copy operation that preserves the current sort order when present.
  • Use case: export policy data for emails, dashboards, or reports while maintaining exact row order and Outlook-safe HTML.

Quick Start

Use the Copy Table button on a policy list to copy the current rows as HTML and text, preserving the selected sort order.

Frequently Asked Questions about policydb-copy-table

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

FAQPage Schema
How do I copy a rendered HTML table to the clipboard while preserving the current sort order?

To copy an HTML table while preserving the sort order, a frontend JavaScript helper triggers a copy operation that captures both rich HTML and plain text, ensuring the selected row order is maintained across pastes.

Can I copy policy data tables as Outlook-safe HTML for email exports?

Yes, you can copy policy data tables as Outlook-safe HTML for email exports; the copy operation generates both an HTML representation for rich text pasting and a plain text version for consistent formatting across environments.

How does an order-aware API endpoint ensure correct row ordering when exporting policy tables?

An order-aware API endpoint ensures correct row ordering by applying a reordering mechanism during backend rendering, capturing the active sort order before generating the HTML and plain text representations for the clipboard copy.

Do I need a backend rendering utility to copy policy dashboards with the correct sort order?

You need a backend rendering utility to process the policy dashboards and apply the order-aware reordering mechanism, which works in tandem with the frontend JavaScript helper to execute the copy with the correct sort order.

Why does my copied HTML table lose its row order when pasting into reports?

Copied HTML tables lose row order when pasting into reports if the backend lacks an order-aware reordering mechanism; applying the correct API endpoint and frontend helper ensures the current sort order is preserved.

What is the best way to export policy data for emails while maintaining exact row order?

The best way to export policy data for emails while maintaining exact row order is using a single-click copy table workflow that renders the policy data through an order-aware API endpoint into dual HTML and plain text formats.