update-deprecated-doc

Regenerate docs/life-cycle.md from Prisme lifecycle data and deprecated selector source files.

52|7|Updated Apr 12, 2017
One-click install
npx skills add https://github.com/LuccaSA/lucca-front --skill update-deprecated-doc-luccasa
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: update-deprecated-doc
Source: https://github.com/LuccaSA/lucca-front/tree/main/.claude/skills/update-deprecated-doc
Command: npx skills add https://github.com/LuccaSA/lucca-front --skill update-deprecated-doc-luccasa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping the deprecation documentation (docs/life-cycle.md) in sync with its three upstream sources is error-prone manual work: the Prisme "Cycle de vie des composants" page and the LFDeprecatedSelectors.mjs / LFDeprecatedProperties.mjs arrays. This Skill regenerates the derived document deterministically whenever those sources change. ## Core Features & Use Cases - Source-driven regeneration: Builds the Composants, Classes, and Variables CSS sections from the Prisme page and the two .mjs source arrays, one row per source entry in source order. - Prisme API extraction: Fetches the zeroheight SPA content via its internal load_page API (token + CSRF handshake) and parses the ProseMirror table structure. - Strict output conventions: Produces HTML tables with a shared style block, en-dash empty cells, expanded regex alternations, factored pattern groups, and markdown-to-HTML conversion of action descriptions. - Use Case: After adding a new deprecated selector to LFDeprecatedSelectors.mjs, run this Skill to update the Classes table in docs/life-cycle.md without hand-editing HTML. ## Quick Start Update the deprecation documentation in docs/life-cycle.md to reflect the current LFDeprecatedSelectors.mjs and LFDeprecatedProperties.mjs files.

Frequently Asked Questions about update-deprecated-doc

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

FAQPage Schema
How do I update the deprecation documentation in Lucca Front?▼

Run this Skill whenever LFDeprecatedSelectors.mjs, LFDeprecatedProperties.mjs, or the Prisme lifecycle page changes. It regenerates docs/life-cycle.md from those three sources, producing one HTML table row per source entry in source order.

How to fetch table data from a zeroheight Prisme page?▼

Fetch the page shell with curl, extract the auth token and CSRF token from the HTML, then POST to the /api/load_page endpoint. Tables are returned as a ProseMirror document inside page.content_node.tabs, which you parse into rows and cells.

Should I edit docs/life-cycle.md manually?▼

No. The file is derived from three sources: the Prisme Composants page and the two LFDeprecated .mjs arrays. Edit the sources instead, then regenerate the document so the tables stay consistent with the stylelint configuration.

Why does the deprecation doc keep entries whose deletion already shipped?▼

This divergence from Prisme is by design. Prisme prunes entries once deletion ships, but the linter and the doc retain them to flag residual usage in codebases. The doc intro carries a note explaining this policy.

Why do the table column widths not render on GitHub?▼

GitHub strips style blocks and inline styles from rendered Markdown, so the fixed table layout only appears in viewers that honor it, such as VSCode preview or Prisme. GitHub falls back to automatic column sizing.