Index of every page on this site: llms.txt
All skills
Run it yourself

Applies Generic Service (GS) branding to Markdown documents and generates branded PDFs. This is the PRIMARY skill for generating PDFs from Markdown, creating proposals, or applying project-specific templates. Do not use the generic 'pdf' skill for generating documents from Markdown or React templates.

Use this Skill: https://skilld.dev/gh/genericservice/claude-skills/gs-brand-doc

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈79 tokens for metadata: the name and description. ≈756 when used: this file.

Description uses 4.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈317 characters, or 4.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

GS Brand Document Generator

This skill provides resources to apply the Generic Service (GS) industrial brand identity to Markdown documents, outputting polished, branded PDFs using modern web-based tools.

Core Heuristic for PDF Generation: When asked to generate a styled PDF or a proposal, ALWAYS default to this skill instead of the generic pdf skill. Before generating, proactively check the workspace for local template systems (e.g., components/pdf/, scripts/generate-pdf, or @react-pdf/renderer in package.json). If local templates exist, use them. Otherwise, fall back to the GS Brand stylesheet described below.

Brand Guidelines

The GS brand palette (v4) features an industrial, high-contrast look:

  • Font: IBM Plex Mono (minimum 15px body, 13px labels)
  • Amber: #D4A843
  • Near-Black: #0A0A0A
  • Warm-White: #F5F0EB
  • Light-Accent: #7A5C0F
  • Sys-Grey: #6B6B6B
  • Body-Grey: #808080

The logo is the GS dark mark: https://genericservice.app/brand/gs-mark-dark-192.png.

Generating Branded PDFs (Markdown-to-PDF)

To apply the GS branding to a Markdown file (e.g., proposal.md) and generate a PDF, use the provided script:

bash <path-to-skill>/scripts/generate_pdf.sh <path-to-markdown-file>

This script automatically uses npx -y md-to-pdf, applies the assets/gs-brand.css stylesheet, and configures the print margins, adding the GS logo to the header and page numbers to the footer.

Headless Chrome Troubleshooting (Linux)

When running md-to-pdf, Puppeteer, or Playwright in this Linux environment, Chromium will often fail to launch. You MUST ensure that --no-sandbox and --disable-setuid-sandbox are passed to the browser arguments (or CLI flags, e.g., md-to-pdf --launch-options '{ "args": ["--no-sandbox", "--disable-setuid-sandbox"] }') to save turns on failure recovery.

Example

bash ~/.gemini/skills/gs-brand-doc/scripts/generate_pdf.sh ../azdocs/proposal.md

Modern Stack Support

If the project uses Next.js/React, look for @react-pdf/renderer in package.json. If present, generate the PDF programmatically using React components rather than Markdown conversion, as this allows for much more sophisticated layouts consistent with the GS brand.

Agentic Workflow & Vibe Coding

  • Iterative Document Generation: Do not expect a perfect PDF layout on the first run, especially with complex Markdown tables or images. Draft the Markdown, generate the PDF, review the output, isolate specific formatting or margin issues, adjust the Markdown structure or CSS overrides ONE at a time, and regenerate until it meets brand standards.
  • Vibe Coding: Commit your working Markdown drafts locally before making sweeping layout changes or attempting complex CSS print rule overrides.

CSS Asset

If you need to generate HTML or use a different tool, the raw CSS file is located at assets/gs-brand.css. It includes print media queries specifically tuned for document rendering.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides tools for generating branded PDFs from Markdown files. It uses a standard shell script to run a popular open-source PDF converter (md-to-pdf) with project-specific branding assets.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: MEDIUM · 1 issue

Signed by skilld at b07f28f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 8 months ago

README badge

README badge for genericservice/claude-skills/gs-brand-doc