manage-post-mmw
List, search, and manage your blog posts - drafts, tags, and metadata.
What this skill does
<purpose>
You are helping the user manage their blog posts. This includes listing posts, managing drafts, publishing, and organizing tags.
</purpose>
<steps>
<step id="load-config" number="1">
<description>Load Configuration</description>
<load-config>
<action>Resolve the user's home directory.</action>
<command language="bash" output="home" tool="Bash">echo $HOME</command>
<constraint>Never pass `~` to the Read tool.</constraint>
<read path="<home>/.things/config.json" output="config" />
<if condition="config-missing">Tell the user: "Run `/things:setup-things` first." Then stop.</if>
<read path="<home>/.things/mark-my-words/preferences.json" output="preferences" />
<if condition="preferences-missing">Tell the user: "Run `/setup-mmw` first." Then stop.</if>
</load-config>
<action>Read `platform` from preferences.json (default to `quartz` if not set). Read the platform template from `../../platforms/<platform>.md` (relative to this skill's directory). This template defines how drafts work and frontmatter field names for the user's platform.</action>
</step>
<step id="resolve-content-location" number="2">
<description>Resolve Content Location</description>
<if condition="source-type-remote">
<action>Check if the repo is already cloned at `<workdir>` (read `workdir` from preferences.json, default `<home>/.mark-my-words`).</action>
<if condition="not-cloned">
<command language="bash" tool="Bash">git clone --branch <repo_branch> <repo_url> <workdir></command>
</if>
<if condition="already-cloned">Pull latest changes.</if>
The content root is `<workdir>/<content_dir>/`.
</if>
<if condition="source-type-local">The content root is `<local_path>/<content_dir>/`.</if>
</step>
<step id="determine-action" number="3">
<description>Determine Action</description>
<action>Check `$ARGUMENTS` for the requested action.</action>
<if condition="action-not-provided">
<ask-user-question>
<question>What would you like to do?</question>
<option>list -- Show all posts with metadata</option>
<option>drafts -- Show draft posts and offer to publish</option>
<option>publish -- Publish a specific draft post</option>
<option>tags -- View and manage tags across all posts</option>
</ask-user-question>
</if>
</step>
<step id="execute-action" number="4">
<description>Execute the Action</description>
<phase name="list-posts" number="1">
<description>Action: list</description>
<action>Scan all `.md` files in the content directory. For each post, extract from frontmatter:</action>
- Title
- Date (field name varies by platform -- check template)
- Draft status (varies by platform -- see draft detection below)
- Tags (YAML `tags:` list, or TOML `tags = []` for Zola, or `[taxonomies]` table)
- Calculate word count from content body
<action>Detect draft status by platform:</action>
<platform-specific platform="jekyll">A post is a draft if it's in the `_drafts/` directory OR has `published: false` in frontmatter.</platform-specific>
<platform-specific platform="zola-hugo-quartz-astro-eleventy">`draft: true` in frontmatter (or `draft = true` for TOML).</platform-specific>
<platform-specific platform="docusaurus">`draft: true` in frontmatter.</platform-specific>
<template name="post-list-output">
Display as a formatted table or list, sorted by date (newest first):
```
| Title | Date | Status | Tags | Words |
|--------------------------|------------|-----------|-----------------------|-------|
| Building a CLI in Go | 2025-01-15 | published | go, cli, tutorial | 1,245 |
| Learning Rust | 2025-01-10 | draft | rust, learning | 832 |
```
</template>
<action>Show summary stats: total posts, published count, draft count.</action>
</phase>
<phase name="manage-drafts" number="2">
<description>Action: drafts</description>
<action>Scan all `.md` files and identify drafts using the platform-specific draft detection described above. For Jekyll, also scan the `_drafts/` directory.</action>
<action>Display the drafts with title, date, tags, and word count.</action>
<if condition="drafts-exist">
<ask-user-question>
<question>Would you like to publish any of these drafts?</question>
List each draft by title, plus "No, just looking."
</ask-user-question>
</if>
<if condition="user-selects-draft">Apply the platform-specific publish action:</if>
<platform-specific platform="jekyll-in-drafts">
1. Read the file
2. Add a `date` field in frontmatter if not present (today's date)
3. Move the file to `_posts/` with the date-prefixed filename: `YYYY-MM-DD-slug.md`
4. Handle git workflow per preferences.json
</platform-specific>
<platform-specific platform="jekyll-published-false">
1. Read the file
2. Change `published: false` to `published: true`
3. Ask about date update
4. Handle git workflow per preferences.json
</platform-specific>
<platform-specific platform="not-jekyll">
1. Read the file
2. Change `draft: true` to `draft: false` (or `draft = false` for TOML)
3. Ask: "Update the date to today?" -- Yes or Keep original date
4. If yes, update the date field (using the platform's field name)
5. Write the changes
6. Handle git workflow per preferences.json
</platform-specific>
</phase>
<phase name="publish-post" number="3">
<description>Action: publish</description>
<if condition="arguments-include-post-identifier">Search for matching draft posts.</if>
<if condition="no-specific-post">Behave like `drafts` action above.</if>
<if condition="specific-post-found">
<ask-user-question>
<question>Publish '<title>'?</question>
<option>Yes</option>
<option>No</option>
</ask-user-question>
<action>Apply the platform-specific publish action (same as drafts above).</action>
</if>
<if condition="post-already-published">Tell the user.</if>
</phase>
<phase name="manage-tags" number="4">
<description>Action: tags</description>
<action>Scan all `.md` files and extract all tags from frontmatter. For TOML-based platforms (Zola), look for tags in the `[taxonomies]` table.</action>
<template name="tag-summary-output">
Display tag summary: List each unique tag with how many posts use it, sorted by count:
```
| Tag | Posts |
|--------------|-------|
| programming | 12 |
| tutorial | 8 |
| python | 6 |
| learning | 3 |
```
</template>
<ask-user-question>
<question>What would you like to do with tags?</question>
<option>Add a tag to posts -- select a tag, then select which posts to add it to</option>
<option>Remove a tag from posts -- select a tag, show which posts have it, select which to remove from</option>
<option>Rename a tag -- rename a tag across all posts that use it</option>
<option>Done -- exit</option>
</ask-user-question>
<action>For tag modifications:</action>
1. Read each affected file
2. Update the tags in frontmatter using the platform's format (YAML list or TOML array)
3. Write the changes
4. Handle git workflow per preferences.json (batch all tag changes into one commit if auto)
</phase>
</step>
<step id="git-workflow" number="5">
<description>Git Workflow</description>
<git-workflow>
<action>Before committing, pull laRelated in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.