$npx -y skills add indranilbanerjee/contentforge --skill cf-templateCreate custom content type templates beyond the 5 built-in types with structure and quality standards.
| 1 | # Custom Content Template Manager |
| 2 | |
| 3 | Create and manage custom content type templates beyond the 5 built-in types (article, blog, whitepaper, faq, research-paper). Define section structure, word count ranges, readability targets, citation requirements, and quality standards — then use the template with `/contentforge:create-content` for consistent, repeatable content production. |
| 4 | |
| 5 | ## Where templates live |
| 6 | |
| 7 | - **Built-in templates (read-only):** `templates/content-types/` inside the installed plugin — article, blog, whitepaper, faq, research-paper. |
| 8 | - **Custom templates (user-created):** `~/.claude-marketing/_templates/` — **never** write into the installed plugin directory. Plugin updates and reinstalls wipe the plugin folder; anything saved there is lost. `~/.claude-marketing/_templates/` survives updates. |
| 9 | |
| 10 | ## When to Use |
| 11 | |
| 12 | Use `/contentforge:cf-template` when: |
| 13 | - You need a **content type not covered** by the 5 built-in templates (case study, product comparison, landing page copy, email newsletter, press release, etc.) |
| 14 | - You want to **standardize a content format** your team produces regularly |
| 15 | - You need to **modify an existing template** (e.g., add a section to the article template) |
| 16 | - You're onboarding a client who has **specific content format requirements** |
| 17 | - You want to **import a content structure** from an example file |
| 18 | |
| 19 | **For producing content using a template**, use `/contentforge:create-content --type=custom:template-name`. |
| 20 | **For the 5 built-in templates**, see `templates/content-types/` (these ship with the plugin and cannot be deleted). |
| 21 | |
| 22 | ## What This Command Does |
| 23 | |
| 24 | 1. **Define Template** — Specify content type name, base type (or custom), word count range, readability target, and citation requirements |
| 25 | 2. **Create Section Structure** — Define sections with names, descriptions, word count allocations, and ordering |
| 26 | 3. **Set Quality Standards** — Readability target (grade level), citation density, keyword placement rules, and custom quality criteria |
| 27 | 4. **Generate Template File** — Create the template .md file in `~/.claude-marketing/_templates/` |
| 28 | 5. **Validate Pipeline Compatibility** — Test that the template works with all ContentForge pipeline phases |
| 29 | |
| 30 | ## Required Inputs |
| 31 | |
| 32 | **Minimum Required:** |
| 33 | - **Template Name** — Name for the custom template (e.g., "case-study", "product-comparison", "email-newsletter") |
| 34 | |
| 35 | **Optional:** |
| 36 | - **Base Type** — Start from an existing template and modify: article, blog, whitepaper, faq, research-paper, or `custom` (blank slate) |
| 37 | - **Word Count Range** — Minimum and maximum word count (e.g., 1500-2500) |
| 38 | - **Readability Target** — Flesch-Kincaid grade level target (e.g., 8-10 for general, 12-14 for professional) |
| 39 | - **Citation Minimum** — Minimum number of citations required (e.g., 5) |
| 40 | - **Section Structure** — Array of section names with descriptions and word count allocations |
| 41 | |
| 42 | ## How to Use |
| 43 | |
| 44 | ### Interactive Mode (Recommended) |
| 45 | ``` |
| 46 | /contentforge:cf-template |
| 47 | ``` |
| 48 | **Prompts you for:** |
| 49 | 1. Template name |
| 50 | 2. Base type (or custom) |
| 51 | 3. Word count range |
| 52 | 4. Readability target |
| 53 | 5. Citation minimum |
| 54 | 6. Sections (add one at a time, or import from example) |
| 55 | |
| 56 | ### Quick Mode |
| 57 | ``` |
| 58 | /contentforge:cf-template case-study --base=article --words=1500-2500 --readability=10-12 --citations=8 |
| 59 | ``` |
| 60 | |
| 61 | ### Import from Example File |
| 62 | ``` |
| 63 | /contentforge:cf-template product-comparison --from-example=./example-product-comparison.docx |
| 64 | ``` |
| 65 | Analyzes the example file's structure (headings, sections, word count) and creates a template matching that format. |
| 66 | |
| 67 | ### Modify Existing Template |
| 68 | ``` |
| 69 | /contentforge:cf-template article --modify --add-section="Expert Quotes:Include 3-5 expert quotes with attribution:200-300" |
| 70 | ``` |
| 71 | |
| 72 | ### List All Templates |
| 73 | ``` |
| 74 | /contentforge:cf-template --list |
| 75 | ``` |
| 76 | Shows built-in and custom templates with key specifications. |
| 77 | |
| 78 | ## What Happens |
| 79 | |
| 80 | ### Step 1: Template Definition (1-2 minutes) |
| 81 | |
| 82 | Define the template's core specifications. |
| 83 | |
| 84 | **From Base Type:** |
| 85 | - Load the base template's structure and specifications |
| 86 | - Allow modifications (add/remove/reorder sections, change word counts, adjust quality standards) |
| 87 | |
| 88 | **From Example File:** |
| 89 | - Parse the example document's heading structure (H1/H2/H3) |
| 90 | - Measure word counts per section |
| 91 | - Identify citation patterns |
| 92 | - Generate a template matching the observed structure |
| 93 | |
| 94 | **From Custom (Blank Slate):** |
| 95 | - Start with no predefined structure |
| 96 | - User defines every section from scratch |
| 97 | |
| 98 | **Example:** |
| 99 | ``` |
| 100 | Template Definition |
| 101 | ================================================================ |
| 102 | |
| 103 | Name: case-study |
| 104 | Base: article (modified) |
| 105 | Word Count Range: 1,500 - 2,500 words |
| 106 | Readability Target: Grade 10-12 (professional audience) |
| 107 | Citation Minimum: 8 sources |
| 108 | Keyword Strategy: 1 primary + 2 secondary keywords |
| 109 | Production Time Estimate: 25-35 minutes |
| 110 | |
| 111 | Modifications from Base (article): |
| 112 | + Added "Client Challenge" section |
| 113 | + Added |