# RK AI Report Publisher — WordPress Plugin Skeleton

This is a prototype skeleton, not production-ready code.

## Production responsibilities
- Register `rk_report` post type.
- Register `rk_translation_job` post type or custom job table.
- Upload English source files into private storage.
- Extract source report into structured sections and tables.
- Send controlled translation jobs to OpenAI/Claude server-side.
- Provide admin translation review UI.
- Generate branded PDFs.
- Connect paid products to WooCommerce orders.
- Generate secure signed download links.
- Watermark customer PDFs.
- Maintain audit logs.

## Security requirements
- API keys in server environment only.
- Nonces/capability checks for admin endpoints.
- Private storage for source and paid PDFs.
- Order/license verification before download.
- Audit log for approval and download actions.

## Suggested dependencies
- WooCommerce for digital products and checkout.
- WPML or Polylang for multilingual public pages.
- Object storage for private report files.
- Server-side PDF renderer such as Gotenberg/Playwright/Prince.
- Background queue system for long translation/PDF jobs.
