بنقرة واحدة
blog-edit
Edit an existing blog post. Shows current content, applies user-requested changes, and saves.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Edit an existing blog post. Shows current content, applies user-requested changes, and saves.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
List all blog posts with metadata. Shows titles, dates, tags, and available languages.
Create a new blog post. User provides a topic or title, Claude generates content and creates the post.
Build, commit, and deploy the blog to GitHub Pages.
| name | blog-edit |
| description | Edit an existing blog post. Shows current content, applies user-requested changes, and saves. |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, AskUserQuestion |
| argument-hint | ["slug"] |
The user wants to edit: $ARGUMENTS
If the user provided a slug, use it directly. Otherwise, run npm run blog -- ai list to find the matching post.
If no slug is provided, list all posts and ask the user which one to edit.
Run to get the full post:
npm run blog -- ai show <slug> --lang zh
If there's also an English version, show both:
npm run blog -- ai show <slug> --lang en
Display the current frontmatter and a preview of the content to the user.
Based on the user's instructions, modify the content. Common operations:
npm run blog -- ai update <slug> --lang zh --title "new title"npm run blog -- ai update <slug> --lang zh --content "$(cat /tmp/updated-content.md)"For content changes, write the updated content to a temp file first, then pass it:
# Write updated content to temp file
cat > /tmp/blog-update.md << 'ENDOFCONTENT'
(updated markdown content)
ENDOFCONTENT
# Update the post
npm run blog -- ai update <slug> --lang zh --content "$(cat /tmp/blog-update.md)"
If the post has both zh and en versions, ask the user:
If editing both, make consistent changes to both versions.
Show the user what was changed and the updated file path.