write-component

Convert component stubs into complete reference pages with required sections.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/trydydd/salvage --skill write-component-trydydd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-component
Source: https://github.com/trydydd/salvage/tree/main/.claude/skills/write-component
Command: npx skills add https://github.com/trydydd/salvage --skill write-component-trydydd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates turning a component stub into a complete, publish-ready reference page for the Salvage Electronics site, saving editors from repeating structure and formatting.

Core Features & Use Cases

  • Preserves the stub's title and all existing "## Heading" lines, extracting the information and maintaining the original order.
  • Validates and injects the five required sections (Identify the part, Measure and confirm, Failure modes, Reuse notes, Theory links) as described in the frontmatter-driven workflow, while referencing docs/STYLE-GUIDE.md when needed.
  • Produces a finished page by replacing each ## TODO placeholder with concrete, bench-oriented content, suitable for content/components/NN-*.md pages.

Quick Start

Pass the path to the component stub as the argument and run this skill to generate a complete component reference page.

Frequently Asked Questions about write-component

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

FAQPage Schema
How do I automate Markdown documentation generation from a stub?

Markdown stub expansion validates and injects required sections while preserving headings and theory links, replacing TODO placeholders with concrete content to produce a publish-ready reference page.

How do I generate consistent content pages from a style guide?

Generating consistent content pages from a style guide requires validating inputs against formatting rules and injecting mandatory sections. This ensures the final documentation maintains structure-compliant formatting suitable for content management workflows.

What is the best way to turn a stub into a complete component page?

The best way to turn a stub into a complete component page is to automate the extraction of existing headings and inject frontmatter-driven sections. This approach maintains the original document order while replacing placeholders with bench-oriented content.

Can I preserve existing headings when expanding a Markdown stub?

Yes, you can preserve existing headings when expanding a Markdown stub. The process extracts and maintains the original order of all heading lines and theory links, ensuring the expanded document retains the stub's initial structure and references.

Does stub automation work without external dependencies?

Stub automation works without external dependencies, relying entirely on the project style guide and the stub file itself. It validates inputs internally and applies frontmatter-driven guidance to maintain formatting compliance throughout the content generation process.

How to validate required sections in component documentation?

Validating required sections in component documentation involves checking the stub against a frontmatter-driven workflow that mandates five specific sections. It references the project style guide to ensure formatting compliance and injects any missing structure automatically.