remove-column-from-catalog

Removes a column from a markdown catalog master table with validation and legend cleanup.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/tariqwest/ai-client-catalog --skill remove-column-from-catalog-tariqwest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remove-column-from-catalog
Source: https://github.com/tariqwest/ai-client-catalog/tree/main/.agents/skills/remove-column-from-catalog
Command: npx skills add https://github.com/tariqwest/ai-client-catalog --skill remove-column-from-catalog-tariqwest

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually deleting a column from a large pipe-delimited markdown table is error-prone: misaligned pipes, off-by-one cell removal, and orphaned legend entries corrupt the document. This Skill removes a column from the catalog master table reliably, updating the header, separator, every data row, and the legend entry, then validating the result. ## Core Features & Use Cases - Code-span aware removal: Uses md-table helpers to split rows correctly even when cells contain escaped pipes or code spans with | characters. - Validation and safety: Checks column count consistency across all rows, supports dry-run previews, timestamped backups, and atomic writes via temp file plus rename. - Legend cleanup: Automatically removes the matching entry from the **Columns** legend table. - Use Case: When columns like acp_launch or trust_bypass are migrated to a CLI Surface Mapping table, remove them from the master table in one validated operation instead of hand-editing hundreds of rows. ## Quick Start Ask the AI to remove the acp_launch column from catalog-master-table.md with backup and validation enabled.

Frequently Asked Questions about remove-column-from-catalog

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

FAQPage Schema
How do I remove a column from a markdown table safely?

Run the remove-column.js helper with the file path and column name: node helpers/remove-column.js --file catalog-master-table.md --column acp_launch --backup --validate. It removes the header, separator, and data cells, then verifies column count consistency.

How to delete a markdown table column that contains pipes in code spans?

Use a code-span aware parser instead of regex. The helper relies on md-table.js splitRow, which correctly handles escaped pipes and backtick code spans containing | characters, so cells are never split incorrectly.

Can I preview the column removal before modifying the file?

Yes, pass the --dry-run flag to see the planned removal and validation report without writing anything. Combine it with --backup to create a timestamped copy of the file before the real write.

Does this work on the CLI Surface Mapping table?

No, the helper only operates on the main catalog data table and its Columns legend. When it encounters the CLI Surface Mapping section, it copies the rest of the file unchanged, so that table must be edited manually.

What happens if the column name does not exist in the table?

The script exits with code 1 and prints the list of available columns. Column matching is normalized and case-insensitive, so "ACP Launch" matches the acp_launch header.