Skip to content

notque/vexjoy-agent / skills/content/content

content

Unverified

Content operations: editorial calendar, marketing, publishing, social media management.

FileKindSize
SKILL.mdskill md11.5 KB
references/at-protocol-api.mdmarkdown7.6 KB
references/at-protocol-preferred-patterns.mdmarkdown8.5 KB
references/batch-edit-examples.mdmarkdown6.9 KB
references/batch-edit-operation-types.mdmarkdown7.0 KB
references/batch-edit-regex-patterns.mdmarkdown5.4 KB
references/batch-edit-safety-checklist.mdmarkdown6.0 KB
references/batch-edit.mdmarkdown9.9 KB
references/calendar-format.mdmarkdown3.5 KB
references/campaign-planning.mdmarkdown17.5 KB
references/classification-prompt.mdmarkdown5.9 KB
references/content-engine.mdmarkdown8.7 KB
references/content-engine/error-handling.mdmarkdown7.8 KB
references/content-engine/phase-playbook.mdmarkdown8.3 KB
references/content-engine/platform-specs.mdmarkdown10.9 KB
references/content-strategy.mdmarkdown14.5 KB
references/email-sequences.mdmarkdown15.8 KB
references/error-handling.mdmarkdown8.2 KB
references/headlines.mdmarkdown5.9 KB
references/image-audit-alt-text-examples.mdmarkdown6.8 KB
references/image-audit-format-selection.mdmarkdown5.8 KB
references/image-audit-report-templates.mdmarkdown3.8 KB
references/image-audit-size-guidelines.mdmarkdown4.2 KB
references/image-audit.mdmarkdown10.4 KB
references/link-audit-false-positives.mdmarkdown4.1 KB
references/link-audit-fix-strategies.mdmarkdown7.1 KB
references/link-audit-graph-metrics.mdmarkdown5.0 KB
references/link-audit.mdmarkdown7.8 KB
references/llm-marketing-failure-modes.mdmarkdown18.7 KB
references/marketing.mdmarkdown20.4 KB
references/metrics.mdmarkdown7.4 KB
references/news-collection.mdmarkdown5.2 KB
references/operations.mdmarkdown5.8 KB
references/outline-examples.mdmarkdown11.2 KB
references/outline-structure-templates.mdmarkdown6.4 KB
references/outline.mdmarkdown8.9 KB
references/pagespeed-insights.mdmarkdown10.4 KB
references/pipeline-stages.mdmarkdown3.3 KB
references/pre-publish-checklist.mdmarkdown7.4 KB
references/pre-publish-hugo-frontmatter.mdmarkdown5.3 KB
references/pre-publish-seo-guidelines.mdmarkdown4.1 KB
references/pre-publish.mdmarkdown10.8 KB
references/reddit-moderate.mdmarkdown7.9 KB
references/script-commands.mdmarkdown3.7 KB
references/seo-audit.mdmarkdown16.4 KB
references/seo-guidelines.mdmarkdown5.5 KB
references/seo-keyword-placement.mdmarkdown6.0 KB
references/seo-title-patterns.mdmarkdown5.6 KB
references/seo.mdmarkdown8.9 KB
references/series-planner.mdmarkdown11.7 KB
references/series-planner/cadence-guidelines.mdmarkdown6.8 KB
references/series-planner/cross-linking.mdmarkdown7.2 KB
references/series-planner/output-format.mdmarkdown3.8 KB
references/series-planner/series-types.mdmarkdown7.6 KB
references/taxonomy-audit-report-format.mdmarkdown3.2 KB
references/taxonomy-consolidation-rules.mdmarkdown6.7 KB
references/taxonomy-examples.mdmarkdown9.7 KB
references/taxonomy-guidelines.mdmarkdown5.5 KB
references/taxonomy.mdmarkdown9.0 KB
references/topic-brainstormer.mdmarkdown10.1 KB
references/topic-brainstormer/content-filter.mdmarkdown7.1 KB
references/topic-brainstormer/priority-scoring.mdmarkdown8.1 KB
references/topic-brainstormer/topic-sources.mdmarkdown7.6 KB
references/wordpress-upload.mdmarkdown11.2 KB
references/x-api.mdmarkdown7.8 KB
scripts/publish/link_scanner.pyscript21.4 KB
scripts/publish/pagespeed.pyscript15.3 KB
scripts/publish/tests/test_load_env_file.pyscript3.8 KB
scripts/publish/tests/test_wordpress_inline_urls.pyscript4.4 KB
scripts/publish/tests/test_wordpress_media_upload.pyscript1.5 KB
scripts/publish/tests/test_wordpress_scraper.pyscript4.1 KB
scripts/publish/wordpress-edit-post.pyscript21.2 KB
scripts/publish/wordpress-media-upload.pyscript8.7 KB
scripts/publish/wordpress-scraper.pyscript23.4 KB
scripts/publish/wordpress-upload.pyscript44.2 KB
scripts/reddit-moderate/reddit-automod-cron.shscript3.9 KB
scripts/reddit-moderate/reddit-mod.pyscript83.0 KB
scripts/reddit-moderate/tests/test_reddit_mod.pyscript31.3 KB

references/error-handling.md

View on GitHub
# Error Handling Reference

> **Scope**: Concrete patterns for detecting and recovering from corrupt, malformed, or invalid content-calendar.md state. Does NOT cover normal pipeline operation or stage transitions.
> **Version range**: all versions
> **Generated**: 2026-04-16

---

## Overview

Content-calendar operations fail in two categories: file-level failures (missing file, corrupt sections, count drift) and entry-level failures (invalid dates, duplicate titles, malformed metadata). The most common silent failure is count drift — the overview table says 3 but the section contains 2 — because writes that error mid-update leave the file in a partial state.

---

## Pattern Table

| Pattern | Use When | Avoid When |
|---------|----------|------------|
| Re-read after write | Always — proves the write landed | Never skip, even for "simple" changes |
| Case-insensitive duplicate search | Before adding any idea | After the add (too late) |
| Section-count reconciliation | Before any mutation | Only on view operations (warn, don't block) |
| Partial-match fallback | Topic not found exactly | Multiple items match — list and ask |

---

## Correct Patterns

### Re-Read After Write

Always re-read the file after writing to verify persistence. Write failures can be silent.

```bash
# After writing content-calendar.md, verify the change is present
grep -n "Topic Name" content-calendar.md
```

**Why**: Write tool calls fail silently in some contexts. The re-read is the only proof the mutation landed. "Looked correct before" is not evidence of a successful write.

---

### Section Header Validation on Load

Before any mutation, confirm all 7 required sections are present.

```bash
grep -c "^## " content-calendar.md
# Expected: at least 7 (Ideas, Outlined, Drafted, Editing, Ready, Published, Historical)
```

**Why**: A file with missing sections will silently corrupt counts and lose content during moves. A 6-section file is missing a stage; entries written there disappear.

---

### Count Reconciliation Before Write

Count actual entries per section and compare to overview table before mutating.

```bash
# Count items in Ideas section (lines starting with "- [")
grep -A 100 "^## Ideas" content-calendar.md | grep -B 100 "^## Outlined" | grep -c "^- \["
```

**Why**: If counts drift before a move operation, updating counts after the move produces a wrong number. Reconcile first, then mutate, then update counts.

---

## Pattern Catalog

### Use Case-Insensitive Partial Matching for Topic Lookup

**Detection**:
```bash
# Find entries where title casing may differ from user input
grep -in "topic keyword" content-calendar.md
```

**Signal**:
```
User: "move hugo caching to drafted"
# Searching for exact string "hugo caching" — not found
# Error: topic not found
```

**Why this matters**: Users type partial titles or wrong case. "Hugo caching" and "Hugo partial caching issues" — the latter is the real entry. Hard stop wastes user time when a partial match could resolve it.

**Preferred action**:
```bash
# Step 1: exact match (case-insensitive)
grep -in "^- \[.\] \*\*hugo caching" content-calendar.md
# Step 2: if no match, partial
grep -in "hugo caching" content-calendar.md
# Step 3: if multiple, list all and ask user
```

---

### Read Current State Before Every Write

**Detection**:
```bash
# Signal: write produces a file shorter than before
wc -l content-calendar.md  # before
# ... write operation ...
wc -l content-calendar.md  # after — should be >= before for add/move
```

**Signal**:
```
# Skill reconstructs file from memory instead of reading current state
# Result: other stages' content is overwritten with cached state
```

**Why this matters**: The calendar may have been edited manually or by another process between reads. Writing from cached state silently destroys changes. The file is the source of truth, not the model's memory.

**Preferred action**: Always `Read content-calendar.md` immediately before any write, even if it was read earlier in the same operation.

---

### Enforce Checkbox State on Stage Transitions

**Detection**:
```bash
# Unchecked items in Ready or Published (should all be [x])
grep -A 200 "^## Ready" content-calendar.md | grep "^- \[ \]"
grep -A 200 "^## Published" content-calendar.md | grep "^- \[ \]"
```

**Signal**:
```markdown
## Ready
- [ ] **Hugo build errors** (ready: 2025-01-14)  <!-- should be [x] -->
```

**Why this matters**: Checkbox state `[x]` must flip at the Editing→Ready transition. If a topic lands in Ready as `- [ ]`, the Published and Historical sections will contain unchecked items, making the file unreadable as a kanban board.

**Preferred action**: Enforce checkbox flip during move-to-ready. If a topic arrives in Ready with `[ ]`, convert to `[x]` before writing.

---

### Normalize Dates to ISO Format on Read

**Detection**:
```bash
# Non-ISO dates in stage metadata
grep -E "\((outline|draft|editing|ready|published): [0-9]{1,2}/[0-9]{1,2}" content-calendar.md
# Non-ISO scheduled date
grep -E "Scheduled: [A-Za-z]" content-calendar.md
# Single-digit month/day (should be zero-padded)
grep -E "\((outline|draft|editing|ready|published): [0-9]{4}-[0-9]-" content-calendar.md
```

**Signal**:
```markdown
- [ ] **Hugo debugging guide** (outline: Jan 10, 2025)
- [x] **Build errors** (ready: 2025-1-5)
  - Scheduled: January 20
```

**Why this matters**: Date parsing logic expects `YYYY-MM-DD`. Non-ISO dates break velocity calculations, stuck-content detection, and archive operations that compare dates to the current month.

**Preferred action**: Normalize on read. Detect non-ISO dates and convert before date arithmetic. Reject ambiguous formats (MM/DD vs DD/MM) and prompt user to clarify.

---

### Detect and Merge Duplicate Section Headers

**Detection**:
```bash
grep -n "^## Ideas\|^## Outlined\|^## Drafted\|^## Editing\|^## Ready\|^## Published" content-calendar.md | sort | uniq -d
```

**Signal**:
```markdown
## Ideas
- [ ] Topic A

## Outlined
...

## Ideas        <!-- duplicate — botched merge or manual edit -->
- [ ] Topic B
```

**Why this matters**: Only the first `## Ideas` section is parsed. Topic B is silently invisible to all operations and the count table is wrong.

**Preferred action**: On load, detect duplicate section headers. Merge content from all instances into one section and warn the user before proceeding.

---

## Error-Fix Mappings

| Error | Root Cause | Fix |
|-------|------------|-----|
| "Calendar file not found" | `content-calendar.md` missing from project root | Create with full template including empty sections and 0-count overview |
| "Topic not found in pipeline" | Title mismatch (case, partial, typo) | Search all sections case-insensitively; show partial matches as numbered list |
| "Invalid stage transition" | User asked to skip stages (e.g. Ideas → Ready) | Show the full stage chain; confirm move to next sequential stage only |
| "Section count mismatch" | Manual edit or failed write left count table stale | Recount all sections; update overview table; write corrected file |
| "Topic appears in multiple sections" | Botched move left duplicate entries | Show both occurrences; ask user which to keep; remove the other |
| "Scheduled date is in the past" | User set a date that has already passed | Warn with date diff; ask if they want to reschedule or publish immediately |
| "No Scheduled date in Ready" | Moved to Ready without setting publication date | Prompt: "When should this be published? (YYYY-MM-DD)" before completing move |

---

## Detection Commands Reference

```bash
# Section header count (should be >= 7)
grep -c "^## " content-calendar.md

# Duplicate section headers
grep -n "^## Ideas\|^## Outlined\|^## Drafted\|^## Editing\|^## Ready\|^## Published" content-calendar.md | sort | uniq -d

# Unchecked items in Ready or Published (should all be [x])
grep -A 200 "^## Ready" content-calendar.md | grep "^- \[ \]"

# Non-ISO dates
grep -E "\((outline|draft|editing|ready|published): [0-9]{1,2}/[0-9]{1,2}" content-calendar.md

# Overview table count vs actual entries (run both, compare)
grep -c "^- \[" content-calendar.md
```

---

## See Also

- `calendar-format.md` — canonical file format and section structure
- `operations.md` — command reference with full edge-case behavior
- `pipeline-stages.md` — stage entry/exit criteria for validation logic
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall