跳到主要内容
知仓学习社ZHICANG

publish

Blog publishing, blueprint to upload: post outlines, pre-publish checks, SEO, bulk frontmatter edits, link/image/taxonomy audits, WordPress upload.

读凭据联网写文件读文件严重 25 · 高危 10notque/vexjoy-agent

它会碰到什么

扫了多少43 个文本文件,368 KB
它会碰到什么读凭据联网写文件读文件
命中总数87 处
命中统计严重 25 · 高 10 · 中 26 · 低 22
逐条看命中(30 条严重或高危)
  • 严重 references/wordpress-upload-error-handling.md:4cred-paths
    Cause: Environment variables not configured in `~/.env`
  • 严重 references/wordpress-upload-error-handling.md:6cred-paths
    1. Verify `~/.env` exists in the home directory
  • 严重 references/wordpress-upload-error-handling.md:15cred-paths
    3. 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-paths
    Verify `~/.env` contains all required WordPress variables:
  • 严重 references/wordpress-upload.md:27cred-paths
    env = 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-paths
    def load_env(path: Path = Path.home() / ".env") -> dict[str, str]:
  • 严重 references/wordpress-upload.md:241cred-paths
    - File: `~/.env`
  • 严重 scripts/wordpress-edit-post.py:15cred-paths
    Environment Variables (from ~/.env):
  • 严重 scripts/wordpress-edit-post.py:45cred-paths
    """Load key=value pairs from a .env file.
  • 严重 scripts/wordpress-edit-post.py:48cred-paths
    env_path: Path to .env file. Defaults to ~/.env.
  • 严重 scripts/wordpress-edit-post.py:48cred-paths
    env_path: Path to .env file. Defaults to ~/.env.
  • 严重 scripts/wordpress-edit-post.py:54cred-paths
    env_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-paths
    Environment Variables (from ~/.env):
  • 严重 scripts/wordpress-media-upload.py:35cred-paths
    """Load environment variables from .env file."""
  • 严重 scripts/wordpress-media-upload.py:37cred-paths
    env_path = Path.home() / ".env"
  • 严重 scripts/wordpress-upload.py:17cred-paths
    Environment Variables (from ~/.env):
  • 严重 scripts/wordpress-upload.py:57cred-paths
    """Load key=value pairs from a .env file.
  • 严重 scripts/wordpress-upload.py:60cred-paths
    env_path: Path to .env file. Defaults to ~/.env.
  • 严重 scripts/wordpress-upload.py:60cred-paths
    env_path: Path to .env file. Defaults to ~/.env.
  • 严重 scripts/wordpress-upload.py:66cred-paths
    env_path = Path.home() / ".env"
  • 严重 scripts/wordpress-upload.py:85cred-paths
    """Get WordPress configuration from environment variables and ~/.env.
  • scripts/pagespeed.py:409cred-envread
    api_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

  1. Identify the user's publishing task from their message
  2. Load the matching reference file from the table above
  3. 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 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 419
本站分层T2
该仓技能数122
原文件路径skills/content/publish/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 122 个技能