WP Manifestindependent plugin directory
manifest / ai / writing-style-post-generator

Writing Style Post Generator

Create your unique writing style, based on your existing posts, and then use that to generate posts in your style.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/jonathanbossenger/writing-style-post-generator/archive/refs/heads/trunk.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress plugin that uses AI to generate blog posts in your personal writing style by analyzing your existing content.

Features

  • Post Generation — Create draft blog posts from a title and prompt, complete with AI-generated featured images and Block Editor markup.
  • Writing Style Analysis — Select published posts for AI to analyze and extract your writing style (tone, voice, sentence structure, vocabulary, patterns).
  • Style-Aware Generation — Once a writing style is saved, future post generation automatically applies it for consistent content.

Requirements

  • WordPress 7.0 or later
  • PHP 7.4 or later
  • An AI service configured through the WordPress Connectors page

Installation

  1. Clone or download this repository into your wp-content/plugins/ directory.
  2. Install PHP dependencies:
    composer install
  3. Install JavaScript dependencies and build:
    npm install
    npm run build
  4. Activate the plugin in WordPress.

Usage

Navigate to Tools > Writing Style Post Generator in the WordPress admin.

Generate Post

  1. Enter a post title and a prompt describing the content you want.
  2. Click Generate.
  3. The plugin creates a draft post with AI-generated content and a featured image.

Writing Style

  1. Select one or more published posts that represent your writing style.
  2. Click Generate Writing Style.
  3. The AI analyzes the selected posts and saves a set of writing style instructions.
  4. All future post generation will use these instructions to match your style.

Development

npm start       # Start development mode with file watching
npm run build   # Production build

The React admin interface source is in src/ and builds to build/ using @wordpress/scripts.

How It Works

The plugin registers three WordPress Abilities that the React admin UI invokes:

Ability Description
generate-post Generates post content and featured image, creates a draft post
generate-writing-style Analyzes selected posts and saves writing style instructions to the options table
get-writing-style Retrieves saved writing style instructions (also called by the AI during content generation)

During post generation, the AI Client's using_abilities() method allows the AI model to call get-writing-style itself, incorporating saved style instructions into the generated content.

License

GPL-2.0-or-later