pm-publish
Generate markdown documents from the PM database. Publishes all items regardless of approval status. Iterator glossary at top.
What this skill does
# PM Publish — Markdown Generator Generate markdown from database. The ONLY thing that writes markdown feature docs. Database is the source of truth. ## Invocation ``` /pm-publish myriplay features docs/features.md /pm-publish myriplay features docs/features.md security,api,performance /pm-publish myriplay requirements docs/requirements.md /pm-publish myriplay full docs/product-spec.md ``` ## Database **Path:** `.claude/db/marketing.sqlite` | `PRAGMA foreign_keys=ON;` ## Output Types ### Features Tag-based sections. Features grouped by first matching tag. ### Requirements Hierarchical: Epic > Feature > Requirement > Test ### Full Complete product spec: everything in hierarchy with all detail. ## Iterator Glossary **Always at the top**, right after the title. Scan all text fields in the output for iterator names, then resolve: ```sql SELECT i.name, i.description, GROUP_CONCAT(iv.value, ', ' ORDER BY iv.position) AS vals FROM iterators i JOIN iterator_values iv ON iv.iterator_id = i.id WHERE i.product_id = :pid GROUP BY i.id ORDER BY i.name; ``` Output format: ```markdown ## Iterators | Name | Description | Values | |------|-------------|--------| | CLUSTER_TYPES | Supported cluster types | kubernetes, docker, nomad | | SOFTWARE_ARCHS | Target build architectures | x86, amd64, arm64, mips | ``` Only include iterators that are actually referenced in the published content. ## Features Format ```markdown # Product Name — Features > Auto-generated by PM. Do not edit directly. > 47 features | Published: 2026-03-25 ## Iterators | Name | Description | Values | |------|-------------|--------| --- ## Security ### Mutual TLS for device authentication *Epic: Device Security | Release: 1.0 | Version: 3 | Status: implemented* Description paragraphs... **Test:** Verify mTLS handshake rejects unsigned device certificates > Test description as blockquote... **Requirements:** - System enforces client certificate validation for each SUPPORTED_PROTOCOLS - System rejects connections without valid CA-signed certificates - System logs rejection events with device ID and timestamp `Tags: security, tls, authentication` --- ``` **Section ordering:** If tags provided as argument, use that order and save to `publish_tag_order`. Otherwise use stored order. Fallback: order by feature count descending. Each feature appears once, in its first matching section. Unmatched → "Other" at end. ## Full Format ```markdown # Product Name — Product Specification > Auto-generated by PM. Do not edit directly. ## Iterators ... --- ## Epic: Multi-Tenant Cluster Visualization *Version: 3 | Status: approved* Description and rationale... ### Feature: Render cluster topology diagrams *Release: 1.0 | Version: 2 | Status: implemented* Description... #### Requirements 1. **System renders HC containers with node counts** (v1) > Acceptance: Each HC container displays... **Test:** Verify HC container count matches input (v1) > Confirm that exactly N containers render... 2. **System supports each CLUSTER_TYPES** (v1) ... ``` ## Rules 1. **Publishes ALL items** regardless of `human_approved` status. 2. **Database is source of truth.** Never read from existing markdown. 3. **Overwrite target file completely** on each publish. 4. **Never expand iterators inline.** Keep names as-is in body text. 5. **Glossary at top.** Only include referenced iterators. 6. Save tag order to `publish_tag_order` when provided as argument.
Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.