publish
Blog publishing, blueprint to upload: post outlines, pre-publish checks, SEO, bulk frontmatter edits, link/image/taxonomy audits, WordPress upload.
它会碰到什么
逐条看命中(30 条严重或高危)
- 严重
references/wordpress-upload-error-handling.md:4cred-pathsCause: Environment variables not configured in `~/.env`
- 严重
references/wordpress-upload-error-handling.md:6cred-paths1. Verify `~/.env` exists in the home directory
- 严重
references/wordpress-upload-error-handling.md:15cred-paths3. Generate a new one and update `~/.env`
- 严重
references/wordpress-upload.md:7cred-paths**Scope**: Create new posts, upload media, edit existing posts, manage featured images, handle categories/tags. Does not write article prose (use voice-writer)
- 严重
references/wordpress-upload.md:21cred-pathsVerify `~/.env` contains all required WordPress variables:
- 严重
references/wordpress-upload.md:27cred-pathsenv = Path(os.path.expanduser('~/.env')).read_text() - 严重
references/wordpress-upload.md:40cred-paths**HTTPS Requirement**: Confirm `WORDPRESS_SITE` in `~/.env` uses HTTPS, not HTTP. The REST API will reject non-HTTPS connections.
- 严重
references/wordpress-upload.md:148cred-paths**Stdlib search snippet** (no third-party deps; uses the same `~/.env` credentials as the upload scripts):
- 严重
references/wordpress-upload.md:159cred-pathsdef load_env(path: Path = Path.home() / ".env") -> dict[str, str]:
- 严重
references/wordpress-upload.md:241cred-paths- File: `~/.env`
- 严重
scripts/wordpress-edit-post.py:15cred-pathsEnvironment Variables (from ~/.env):
- 严重
scripts/wordpress-edit-post.py:45cred-paths"""Load key=value pairs from a .env file.
- 严重
scripts/wordpress-edit-post.py:48cred-pathsenv_path: Path to .env file. Defaults to ~/.env.
- 严重
scripts/wordpress-edit-post.py:48cred-pathsenv_path: Path to .env file. Defaults to ~/.env.
- 严重
scripts/wordpress-edit-post.py:54cred-pathsenv_path = Path.home() / ".env"
- 严重
scripts/wordpress-edit-post.py:73cred-paths"""Get WordPress configuration from environment variables and ~/.env.
- 严重
scripts/wordpress-media-upload.py:12cred-pathsEnvironment Variables (from ~/.env):
- 严重
scripts/wordpress-media-upload.py:35cred-paths"""Load environment variables from .env file."""
- 严重
scripts/wordpress-media-upload.py:37cred-pathsenv_path = Path.home() / ".env"
- 严重
scripts/wordpress-upload.py:17cred-pathsEnvironment Variables (from ~/.env):
- 严重
scripts/wordpress-upload.py:57cred-paths"""Load key=value pairs from a .env file.
- 严重
scripts/wordpress-upload.py:60cred-pathsenv_path: Path to .env file. Defaults to ~/.env.
- 严重
scripts/wordpress-upload.py:60cred-pathsenv_path: Path to .env file. Defaults to ~/.env.
- 严重
scripts/wordpress-upload.py:66cred-pathsenv_path = Path.home() / ".env"
- 严重
scripts/wordpress-upload.py:85cred-paths"""Get WordPress configuration from environment variables and ~/.env.
- 高
scripts/pagespeed.py:409cred-envreadapi_key = os.environ.get("PAGESPEED_API_KEY") - 高
scripts/wordpress-edit-post.py:80cred-envread"site": os.environ.get("WORDPRESS_SITE", env_vars.get("WORDPRESS_SITE", "")), - 高
scripts/wordpress-edit-post.py:81cred-envread"user": os.environ.get("WORDPRESS_USER", env_vars.get("WORDPRESS_USER", "")), - 高
scripts/wordpress-edit-post.py:82cred-envread"password": os.environ.get("WORDPRESS_APP_PASSWORD", env_vars.get("WORDPRESS_APP_PASSWORD", "")), - 高
scripts/wordpress-media-upload.py:61cred-envread"site": os.environ.get("WORDPRESS_SITE", env_vars.get("WORDPRESS_SITE", "")),
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Publish Skill
Umbrella skill for the content-publishing pipeline. Routes to the correct reference based on the intent requested: outline a post, run a pre-publication check, optimize SEO, bulk-edit posts, audit links, audit images, manage taxonomy, or upload to WordPress.
Routing
Detect the user's intent and load the appropriate reference file:
| Intent | Trigger phrases | Reference |
|--------|----------------|-----------|
| Outline | "outline post", "blog structure", "content blueprint", "article outline", "content structure" | ${CLAUDE_SKILL_DIR}/references/outline.md |
| Pre-publish | "pre-publish check", "Hugo validation", "front matter check", "publication check", "frontmatter validation" | ${CLAUDE_SKILL_DIR}/references/pre-publish.md |
| SEO | "check SEO", "optimize SEO", "keyword analysis", "meta description", "keyword optimization" | ${CLAUDE_SKILL_DIR}/references/seo.md |
| Batch-edit | "batch edit posts", "bulk frontmatter update", "find replace across files", "mass edit", "bulk update" | ${CLAUDE_SKILL_DIR}/references/batch-edit.md |
| Link-audit | "audit links", "find broken links", "link health", "broken links", "dead links" | ${CLAUDE_SKILL_DIR}/references/link-audit.md |
| Image-audit | "audit images", "check broken images", "image accessibility", "alt text check", "image optimization" | ${CLAUDE_SKILL_DIR}/references/image-audit.md |
| Taxonomy | "audit taxonomy", "fix tags", "merge categories", "tag cleanup", "category management" | ${CLAUDE_SKILL_DIR}/references/taxonomy.md |
| WordPress-upload | "upload to wordpress", "create wordpress draft", "post to wordpress", "wordpress draft", "upload article", "upload image to wordpress", "edit wordpress post", "update wordpress post", "wordpress media", "create wp categories", "auto-create categories", "create missing categories", "search wp media", "search wordpress media", "search media library", "find existing wordpress image", "find existing image", "reuse existing media" | ${CLAUDE_SKILL_DIR}/references/wordpress-upload.md |
Reference Loading Table
| Signal | Load These Files | Why |
|---|---|---|
| "outline post", "blog structure", "content blueprint", "article outline", "content structure" | outline.md | Outline |
| "pre-publish check", "Hugo validation", "front matter check", "publication check", "frontmatter validation" | pre-publish.md | Pre-publish |
| "check SEO", "optimize SEO", "keyword analysis", "meta description", "keyword optimization" | seo.md | SEO |
| "batch edit posts", "bulk frontmatter update", "find replace across files", "mass edit", "bulk update" | batch-edit.md | Batch-edit |
| "audit links", "find broken links", "link health", "broken links", "dead links" | link-audit.md | Link-audit |
| "audit images", "check broken images", "image accessibility", "alt text check", "image optimization" | image-audit.md | Image-audit |
| "audit taxonomy", "fix tags", "merge categories", "tag cleanup", "category management" | taxonomy.md | Taxonomy |
| "upload to wordpress", "create wordpress draft", "post to wordpress", "wordpress draft", "upload article", "upload image to wordpress", "edit wordpress post", "update wordpress post", "wordpress media", "create wp categories", "auto-create categories", "create missing categories", "search wp media", "search wordpress media", "search media library", "find existing wordpress image", "find existing image", "reuse existing media" | wordpress-upload.md | WordPress-upload |
Instructions
- Identify the user's publishing task from their message
- Load the matching reference file from the table above
- Follow the instructions in that reference file exactly
See also: wordpress-live-validation skill for the post-upload live-validation step (browser-based rendering verification after WordPress upload).
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。