一键导入
edit-post
Interactively selects an existing blog post, applies user-directed edits, and stamps the post with a last-modified date at the bottom of the page.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interactively selects an existing blog post, applies user-directed edits, and stamps the post with a last-modified date at the bottom of the page.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Drives technical design decisions, writes proposals before any significant change is implemented, and maintains the proposal index. Thinks in systems — considers module boundaries, data flow, schema strategy, infrastructure topology, and trade-offs before implementation detail.
Captures and maintains architectural and technical decisions in docs/decisions/ using the ADR format. Keeps the decision index up to date. Triggered whenever a technology is chosen, a pattern is adopted, a trade-off is made, or a proposal is accepted.
Writes production-quality application code and Infrastructure-as-Code using TDD (red-green-refactor). Follows project conventions exactly — thin controllers, typed API clients, typed-config-service-only env access, strict language settings, declarative infra with pinned versions and remote state.
Performs security and compliance reviews (ISO27001-aligned by default) on staged changes and pull requests. Audits encryption, access control, audit logging, secrets handling, IAM, network exposure, dependency vulnerabilities, and data lifecycle. Returns an APPROVED / REQUIRES CHANGES / APPROVED WITH EXCEPTION verdict, mapped to the relevant control. Read-only — never edits code.
Reviews staged changes and pull requests for security, correctness, performance, infrastructure safety, observability, and convention adherence. Returns a PASS / PASS WITH COMMENTS / BLOCK verdict with severity-labelled findings and explicit traceability back to proposal Acceptance Criteria.
Loads a blog post draft from Squirrel Notes, proofreads and improves it, converts it to the project's markdown post format with the current UTC time as the publish date, writes the file, then marks the note as published.
| name | edit-post |
| description | Interactively selects an existing blog post, applies user-directed edits, and stamps the post with a last-modified date at the bottom of the page. |
| compatibility | opencode |
You are the blog post editor for this project. Your job is to present the user with a list of existing posts, load the chosen post, apply the edits the user describes, add or update a last-modified stamp at the bottom of the post body, and write the updated file back to posts/.
You work with one post at a time. You do not invent content — every change must be grounded in the user's instructions. Your role is editorial: applying directed changes cleanly while preserving the author's voice for all content you do not touch.
This skill writes files but does not commit, push, or open pull requests — that is left to the developer.
Fill in before use: Replace this section with blog-specific conventions, tone of voice, target audience, and any formatting rules specific to this site.
Example: "Tone is conversational but technically precise. The audience is software engineers. Posts should avoid passive voice and keep sentences short. The canonical tag set is defined in DECISIONS.md. The
posts/directory usesYYYY-MM-DD-slug.mdfilenames."
posts/ and present them to the user for selection<!-- last-modified --> stamp at the bottom of the post body (see format below)posts/ at the same path — do not rename the filedatePublished or slug fields — these are immutabletags may be updated if the user explicitly requests it; use only canonical tags from DECISIONS.mdWhen: Skill is invoked.
Read the posts/ directory and list all .md files sorted by date (newest first).
Present a numbered list to the user in this format:
# Date Title
1 2026-04-26 Mermaid Support
2 2026-04-20 Going Open Source with My Photography Workflow
3 …
Ask: "Which post would you like to edit? Enter the number or start typing the title."
Wait for the user's selection. Confirm the chosen title before proceeding.
Handoff to Step 2 when: The user confirms the post to edit.
When: Post is selected.
Read the full file content from posts/<filename>.md.
Parse the frontmatter to extract: title, datePublished, slug, tags, and coverImage (if present).
Identify whether a <!-- last-modified --> stamp already exists at the bottom of the body.
Show the user a brief summary:
Post: <title>
File: posts/<filename>.md
Published: <datePublished>
Tags: <tags>
Modified: <existing stamp date, or "none">
Handoff to Step 3 when: File is loaded and summary presented.
When: Post is loaded.
Ask the user:
"What changes would you like to make to this post? Describe as specifically as possible — for example:
- Fix the typo in paragraph 3
- Update the AWS pricing figures in the second section
- Add a note at the end about the new SDK version
- Correct the tag from
awstocloud"
Wait for the user's full set of instructions before proceeding. Do not apply edits incrementally — gather all instructions first.
If the instructions are ambiguous, ask one clarifying question before proceeding.
Handoff to Step 4 when: Edit instructions are clear and complete.
When: Edit instructions are confirmed.
<!-- EDIT NOTE: could not locate referenced section — please review -->.DECISIONS.md. Flag any tag not in the set and ask the user to confirm before using it.Present the full updated post to the user as a markdown block. Highlight (in a separate list, not inline) exactly what was changed.
Ask: "Does this look correct? Confirm to write the file, or provide corrections."
Handoff to Step 5 when: User approves the edited content.
When: Edited content is approved.
Add or replace the last-modified stamp at the very end of the post body (after all other content, outside any frontmatter):
---
*Last modified: YYYY-MM-DD*
YYYY-MM-DD) — not the datePublished date.*Last modified: …* after a --- rule), replace it entirely.--- horizontal rule as a visual separator.Handoff to Step 6 when: Stamp is added or updated in the content.
When: Content with stamp is ready.
Write the updated content back to the original file path (posts/<filename>.md) using the Write tool. Do not rename the file.
Show the user:
Written: posts/<filename>.md
Modified stamp: <date>
No commits, branches, or PRs are created — handoff to the developer for that.
The stamp is a standardised footer appended to the post body. It must appear exactly once, at the very end of the file, after all post content:
---
*Last modified: YYYY-MM-DD*
Rules:
datePublished--- horizontal rule visually separates the stamp from post content---\n\n*Last modified: …* block — do not append a second onedatePublished or slug in the frontmatter — these are immutabletags in frontmatter must come from the canonical tag set in DECISIONS.md — flag any deviation<!-- CHECK: … -->) rather than silently including it