本文へ移動
cccskills
無料GitHub で公開

blog-edit

Edits an existing blog post's content or metadata in local MD files. Use when the user wants to modify, update, or improve a blog post.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Edit a Blog Post

Use this skill when the user wants to edit an existing blog post stored as a local Markdown file in content/blog/.

When to use this skill

  • "edit my blog post about...", "update the post on..."
  • "change the title/excerpt/tags of...", "fix the content in..."
  • "improve the writing in...", "rewrite the intro of..."
  • "add a section to...", "remove the paragraph about..."
  • "make the post about... more detailed"

Workflow

  1. Find the post — search content/blog/ by slug or title keyword:

    grep -rl "{keyword}" content/blog/
    

    Or list all posts and ask the user to pick.

  2. Read the current file — parse frontmatter and body:

    cat content/blog/{slug}.md
    
  3. Apply the edit — modify the requested part:

    • Body changes: edit the Markdown content directly
    • Frontmatter changes: update the YAML fields (title, excerpt, tags, published, etc.)
    • Structure changes: add/remove/reorder sections
  4. Validate — ensure:

    • Frontmatter is still valid YAML
    • Required fields are present (title, slug, excerpt, publishedAt, author, tags)
    • Excerpt is 10-300 characters
    • Slug hasn't changed (unless explicitly requested)
  5. Write the updated file — save changes.

  6. Confirm — show what changed (diff summary).

Edit targets

Body content

  • Add, remove, or modify paragraphs
  • Add sections with ## headings
  • Fix typos and grammar
  • Improve clarity and flow

Frontmatter metadata

  • title — change the post title
  • excerpt — update the summary
  • tags — add or remove tags
  • featured — toggle featured status
  • published — toggle publish status
  • publishedAt — change the publication date
  • coverImage — set or update the cover image path

Important rules

  • Never change the slug unless the user explicitly asks and understands the URL implications
  • Always show the diff after editing so the user can review
  • Preserve existing frontmatter — only change what was requested
  • Keep the Markdown body clean — no unnecessary formatting changes

Example

User: "Update the excerpt of my Cloudflare deployment post to mention Workers"
Agent:
  1. Reads content/blog/deploying-nextjs-to-cloudflare.md
  2. Updates excerpt field to include "Cloudflare Workers"
  3. Shows the before/after diff
  4. Confirms the file was updated

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Audit and fix accessibility issues across the portfolio to ensure WCAG 2.1 AA compliance.

日本語の概要は準備中です。原文の説明を表示しています。

PP-Namias/Portfolio22026年10月13日 更新

Creates a new blog post document in the Sanity studio. Use when the user wants to write a blog post, publish an article, or schedule a future post.

日本語の概要は準備中です。原文の説明を表示しています。

PP-Namias/Portfolio22026年10月13日 更新

Creates a new certification document in the Sanity studio. Use when the user wants to add a credential, certificate, or professional accreditation to the Certifications collection.

日本語の概要は準備中です。原文の説明を表示しています。

PP-Namias/Portfolio22026年10月13日 更新

Adds a new skill MD file to the studio's skills collection. Use when the user wants to author a new step-by-step recipe for the studio's in-app Skills tool or the .agents mirror.

日本語の概要は準備中です。原文の説明を表示しています。

PP-Namias/Portfolio22026年10月13日 更新

Creates a new project document in the Sanity studio. Use when the user wants to add a new portfolio project, a case study, or a work sample to the Projects collection.

日本語の概要は準備中です。原文の説明を表示しています。

PP-Namias/Portfolio22026年10月13日 更新

Creates a new experience document in the Sanity studio. Use when the user wants to add a job, role, internship, or work history entry to the Experience collection.

日本語の概要は準備中です。原文の説明を表示しています。

PP-Namias/Portfolio22026年10月13日 更新

PP-Namias のスキルをすべて見る

このスキルの問題を報告する