Claude Code Plugins

Community-maintained marketplace

Feedback

Generates offer packet documents that summarize compensation recommendations

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

title Doc Generation Skill
slug skill-doc-gen
status living
last_updated 2025-11-02
last_synced 2025-11-01
tags catalog, skill, documentation
summary Generates structured offer packets that combine compensation recommendations with narrative guidance.
authors
sources
name doc-gen
description Generates offer packet documents that summarize compensation recommendations and candidate-specific details.
iface [object Object]
slo [object Object]
limits [object Object]

Doc Generation (doc-gen)

For Humans: Use this skill to produce complete offer packets ready for stakeholder review.

For AI Agents: Validate inputs and outputs against the referenced schemas. Keep narrative sections consistent with advisor guidance.

Purpose

Produce a complete offer packet that combines validated candidate data, compensation recommendations, and narrative guidance that can be delivered directly to the recruiting partner or hiring manager.

When to Use

  • The upstream orchestration workflow has collected a candidate_profile payload plus optional salary band guidance.
  • A human or automated consumer needs a structured offer_packet JSON document that conforms to catalog/contracts/offer_packet.schema.json.
  • The offer summary must stay consistent with salary-band-lookup guidance and advisor notes when present.

Prerequisites

  • Input payload must validate against catalog/contracts/candidate_profile.schema.json.
  • Salary band recommendations and advisor notes are optional but improve the generated summary.
  • MCP runtime with access to pg-readonly is required; offer templates are retrieved from the governed PostgreSQL catalog.

Procedures

Generate Offer Packet

  1. Validate Inputs – Run schema validation on the incoming payload using catalog/contracts/candidate_profile.schema.json. Reject or request correction when required keys are missing.
  2. Collect Supporting Data – Retrieve the role/level offer template via MCP (pg-readonly) and incorporate salary band guidance or advisor notes from the payload. If enrichment data is missing, surface a warning in the result.
  3. Compose Narrative Sections – Draft role overview, compensation summary, and key talking points. Explicitly reference base salary, variable components, and any equity recommendations that are available.
  4. Assemble Structured Output – Populate the JSON response so it satisfies catalog/contracts/offer_packet.schema.json, including metadata, narrative sections, and machine-readable compensation values.
  5. Quality Gate – Perform a final schema validation before returning the payload. Include an audit trail of data sources in the provenance section when available.

Examples

Example 1: Minimal Candidate Record

  1. Merge salary band guidance if included in the payload (required in Phase 3 to satisfy governance).
  2. Draft the offer summary referencing available data and the retrieved template.

Additional Resources

  • resources/examples/ – Sample request and response objects.
  • impl/ – Placeholder directory for execution helpers or prompt templates.
  • catalog/contracts/offer_packet.schema.json – Defines the expected structure for outgoing packets.

Troubleshooting

  • Schema Validation Fails: Confirm the caller transformed the upstream data with catalog/contracts/candidate_profile.schema.json; missing identifiers or compensation targets frequently cause this failure.
  • Missing Compensation Context: When the payload lacks salary band guidance, emit a warning so the orchestrator can rerun salary-band-lookup before finalizing the packet.
  • Template Lookup Fails: If the MCP query returns no template rows, raise an error. Verify the offer_templates table contains the target role/level combination and that the MCP runtime has mcp:pg-readonly permission.
  • Latency Spikes: Execution is CPU-bound; unexpected latency often indicates heavy upstream preprocessing or oversized payloads.

Update Log

  • 2025-11-02: Updated MCP requirements, regenerated examples, and aligned documentation with Phase 3 baseline.
  • 2025-11-01: Added unified frontmatter and audience guidance.