用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/posit-dev/open-source-website --skill check-post命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | check-post |
| description | Validate blog post frontmatter and placement |
| argument-hint | [post-path] |
Run the blog post validation script and help the user fix any issues found.
If the user provided a path in their request, use that. Otherwise, look for blog posts changed on the current branch:
git diff --name-only --diff-filter=d origin/main...HEAD -- 'content/blog/**/index.md' 'content/blog/**/index.qmd'
If no changed posts are found, ask the user which post to check.
.qmd filesFor each post directory found, check if an index.qmd exists. If it does, check whether index.md also exists and is newer than index.qmd:
# For each post directory
if [ -f index.qmd ] && { [ ! -f index.md ] || [ index.qmd -nt index.md ]; }; then
echo "index.qmd has not been rendered to index.md (or is out of date)"
fi
If any .qmd files need rendering, warn the user and always offer to re-render — even if there is no computational environment setup. To render:
quarto render <path>/index.qmd
.qmd posts may need to render through a specific environment — check the post folder for a pyproject.toml, renv.lock, or similar, and use whatever tool the author set up. See the "Setting up an environment" section of content/blog/_authoring-guide.md for context.
Do not proceed with validation until index.md exists and is up to date for all posts.
The validation script reads index.md files (not .qmd):
uv run scripts/validate-blog-posts.py <paths to index.md>
If all checks pass, say so and stop.
If there are issues, summarize them clearly grouped by severity:
For each error, explain what's wrong and suggest a concrete fix. For example:
topics → suggest values from data/topics.yaml that fit the post contentsoftware → check if there's a close match in content/software/. If there isn't one, offer to create a new software page using scripts/create-new-software.py.people → check if there's a close match in content/people/. If there isn't one, offer to create a new people page.source on a ported post → suggest setting it to match ported_fromcategories present → replace with topicsFor warnings, distinguish two groups:
Sometimes intentional — ask before fixing. These warnings flag fields that can be legitimately omitted when the post genuinely doesn't have that dimension:
software missing — may be intentional for general best-practices, community, or company-news posts that aren't about a specific project. Ask before suggesting a value.languages missing — may be intentional for posts that aren't about a particular programming language. Ask before suggesting a value.<name> — may be intentional if the contributor doesn't want a content/people/ profile. Ask before offering to create one.Should normally be acted on.
date is in the past — confirm whether the author wants the post to publish on merge; if not, suggest a future date.<name> looks like a team name — suggest replacing with the individual contributors.For errors and the "should normally be acted on" warnings, ask the user if they'd like you to fix them directly. For the "sometimes intentional" warnings, ask first whether the absence is intentional — only fix if the user confirms a value should be set.
If they accept any fixes:
index.qmd, edit the .qmd file (that's the source of truth), then re-render to update index.md.index.md directly.Re-run validation to confirm the fixes worked.