# Documentation and Prompt Skills

What the prompt, README, SEO, documentation site and official guide skills do, and what each needs.

## prompt-optimize

Shortens system prompts, skills, and agent instructions without losing meaning, and rewrites tool definitions.

- A rule stated several times collapses into one statement
- Tool descriptions become three lines: what it returns, when users ask for it, and which neighbor tool to use instead
- Trigger wording and `{{.Var}}` placeholders stay byte-identical; byte counts are measured before and after

Needs Git (the target file must be in a repository); the Go toolchain is optional.

## readme-generate

Generates `README`, `doc`, and `architecture` in English and Traditional Chinese from the project's source code.

- `analyze_project.py` extracts exported types, signatures, and dependencies for Python, Go, JS, and TS
- Existing files are checked against the skill's breaking-change list and patched in place
- The one-liner shared by the README, GitHub description, and topics comes from `/seo-optimize`

Needs Python 3.10+ and Git; an authenticated `gh` CLI is optional.

## seo-optimize

Researches current search and AI-answer guidance, then plans and applies fixes to a project or its deployed site.

- Without a report from the last 3 days, it re-checks primary sources from Google, OpenAI, Anthropic, IETF, and IANA
- Measures keyword heat against at least 3 competitors with Google Trends before a phrase goes into a title
- Crawls the live site, and uses Search Console and GA4 data when available to protect pages that already bring traffic
- Waits for confirmation before editing, and runs `gh repo edit` only after consent

Needs Python 3.10+, network access, an authenticated `gh` CLI, and an interactive choice tool in the harness.

## wiki-generate

Turns a project's source code into a bilingual documentation site that compiles to static HTML for Cloudflare Workers. This site is built with it.

- Each topic becomes an English and Chinese Markdown pair with sidebar search, a table of contents, and a 404 page
- SEO values come from `/seo-optimize` and are written to `seo.json`, which the build turns into meta tags, JSON-LD, the sitemap, and `llms.txt`
- `check_coverage.py` lists public symbols the docs never mention and the version each removed symbol disappeared in

Needs Python 3.10+, Node.js and npm, Git, and the `seo-optimize` skill (cloned automatically when missing).

## extract-official-guide

Downloads the prompting guides from Anthropic, OpenAI, and Google with their retrieval date and source URL, then extracts per-model guide files under one shared rule set.

- Every removed rule cites the text it duplicates or conflicts with
- Overwriting an archive or output requires a diff and explicit approval
- The default target is Agenvoy's `configs/prompts/system_prompt/official_guides/`; `--to` points it at another repository

Needs network access, the Go toolchain, and Python 3.
