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.

by Jonathan Bossenger · github.com/jonathanbossenger/writing-style-post-generator · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/jonathanbossenger/writing-style-post-generator/archive/refs/heads/trunk.zip

Readme

Writing Style Post Generator

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

Read the full README on GitHub →