Markdown Converter
Agent skill for markdown-converter
An AI client and API for WordPress to communicate with any generative AI models of various capabilities using a uniform API. Built on top of the [PHP AI Client](https://github.com/WordPress/php-ai-client), it provides a WordPress-native Prompt Builder, an Admin Settings Screen for credentials, autom
Sign in to like and favorite skills
An AI client and API for WordPress to communicate with any generative AI models of various capabilities using a uniform API. Built on top of the PHP AI Client, it provides a WordPress-native Prompt Builder, an Admin Settings Screen for credentials, automatic credential wiring, a PSR-compliant HTTP client, and a client-side JavaScript API.
composer lint: Lints the PHP code (PHPCodeSniffer and PHPStan).composer phpcs: Runs PHPCodeSniffer on the PHP code.composer phpstan: Runs PHPStan on the PHP code.npm run build: Builds the JavaScript assets.npm run format-js: Formats the JavaScript code using Prettier.npm run lint-js: Lints the JavaScript code.npm run lint-php: Lints the PHP code using Composer inside the wp-env environment.npm run test-php: Runs PHPUnit tests with single site config inside the wp-env environment.npm run test-php-multisite: Runs PHPUnit tests with Multisite config inside the wp-env environment.Note: In order to follow the WordPress code style in JavaScript, the project uses a WordPress-specific fork of Prettier (
wp-prettier) under the hood.
This project adheres to the WordPress Coding Standards with specific exceptions for PSR-4 autoloading (file names match class names). More details about coding and documentation standards are outlined in the
CONTRIBUTING.md file. Any agent working on this project MUST read and follow the guidelines in that file before starting any work.
prompt_ai).The project consists of three main layers:
includes/): The core logic, built on wordpress/php-ai-client. It handles prompt building, request execution, and response parsing. It also manages API credentials and integrates with WordPress core.includes/REST_API/): Exposes the AI capabilities to the client-side. It handles authentication and validation.src/): A client-side library that mirrors the PHP Prompt Builder interface, communicating with the backend via the REST API.build/: Compiled JavaScript and CSS assets.includes/: Main PHP source files (PSR-4 autoloaded).
API_Credentials/: Manages API keys and settings.Builders/: Prompt builder implementations.Capabilities/: Capability management.HTTP/: HTTP client integrations.REST_API/: REST API controllers.src/: Source TypeScript/JavaScript files.tests/: PHPUnit tests.
phpunit/: Test suite configuration and test files.vendor/: Composer dependencies.The main branch for this project is called "trunk".
CONTRIBUTING.md before writing any code.wp_enqueue_script( 'wp-ai-client' ) to load the JS SDK.tests/phpunit/tests/.npm run lint-php and npm run test-php before submitting changes.{@inheritDoc} tag should be used instead to inherit the documentation from the interface.prompt_ai capability is checked for privileged operations.