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/pagespeed-insights.md

View on GitHub
# PageSpeed Insights Workflow

Machine-measured site performance, SEO, accessibility, and best-practices analysis using the Google PageSpeed Insights API. Complements the manual SEO analysis in `seo.md` with quantitative data from Lighthouse.

**Integration:** Run PageSpeed analysis as the data-gathering step before or after manual SEO optimization. The scores and failing audits provide measurable baselines that the SEO workflow's ASSESS phase cannot capture on its own.

---

## Instructions

### Phase 1: SCAN — Capture Baseline Scores

**Goal**: Get current PageSpeed Insights data for both mobile and desktop.

**Step 1: Run the pagespeed script**

```bash
python3 ${CLAUDE_SKILL_DIR}/scripts/publish/pagespeed.py --url <target-url>
```

This runs both mobile and desktop by default. For a single strategy:

```bash
python3 ${CLAUDE_SKILL_DIR}/scripts/publish/pagespeed.py --url <target-url> --strategy mobile
```

**Step 2: Save the baseline for comparison**

```bash
python3 ${CLAUDE_SKILL_DIR}/scripts/publish/pagespeed.py --url <target-url> --format markdown --output /tmp/psi-baseline.md
```

**Step 3: Record scores**

Document the current state:
```
Mobile:  Performance XX | SEO XX | Accessibility XX | Best Practices XX
Desktop: Performance XX | SEO XX | Accessibility XX | Best Practices XX
```

**Gate**: Both mobile and desktop results captured. Failing audits listed. Do not proceed to Phase 2 without complete data.

### Phase 2: DIAGNOSE — Categorize Issues by Impact

**Goal**: Separate fixable content-level issues from infrastructure-level issues.

**Step 1: Review failing audits from the scan**

For each failing audit, classify it:

| Classification | Description | Action |
|---------------|-------------|--------|
| Content-level | Fixable by editing Hugo content or front matter | Fix in Phase 3 |
| Theme-level | Requires Hugo theme or layout changes | Fix if theme is under your control |
| Infrastructure | Hosting, CDN, server config | Report to user, cannot fix in content |
| Informational | Low-impact or cosmetic | Note but deprioritize |

**Step 2: Cross-reference with SEO workflow**

If the SEO workflow (`seo.md`) has already been run on this content, merge findings. PageSpeed Insights catches what manual analysis misses:
- Missing meta descriptions flagged by PSI confirm the SEO workflow gap
- Image optimization issues provide specific byte savings
- Core Web Vitals data quantifies the user experience impact

**Step 3: Prioritize by impact**

1. Core Web Vitals failures (LCP, FID/INP, CLS) — direct ranking factor
2. SEO audit failures — directly affect search visibility
3. Accessibility failures — affect usability and legal compliance
4. Best practices failures — general quality signal

**Gate**: Issues classified and prioritized. Content-level fixes identified with specific remediation steps.

### Phase 3: FIX — Apply Content-Level Improvements

**Goal**: Fix issues that can be resolved through Hugo content and front matter changes.

Apply fixes from the mapping table below. Only modify content that the user has confirmed.

**Constraint**: Do not modify theme files, hosting configuration, or external dependencies without explicit user approval. These changes have broader impact than content edits.

#### PSI Audit to Hugo Fix Mapping

| PSI Audit | Category | Fixable in Hugo? | How to Fix |
|-----------|----------|------------------|------------|
| `meta-description` | SEO | Yes | Add `description` to front matter |
| `document-title` | SEO | Yes | Ensure `title` in front matter is descriptive |
| `hreflang` | SEO | Maybe | Add hreflang links in Hugo template or config |
| `canonical` | SEO | Yes | Set `canonical` in front matter or Hugo config |
| `robots-txt` | SEO | Yes | Create or fix `static/robots.txt` |
| `image-alt` | Accessibility | Yes | Add `alt` text to all images in content |
| `html-has-lang` | Accessibility | Maybe | Set `lang` attribute in theme `baseof.html` |
| `color-contrast` | Accessibility | Maybe | Theme CSS change |
| `heading-order` | Accessibility | Yes | Fix heading hierarchy in content (no H1-to-H3 skips) |
| `link-name` | Accessibility | Yes | Add descriptive text to links (no bare URLs) |
| `render-blocking-resources` | Performance | Maybe | Defer scripts, inline critical CSS in theme |
| `unused-css-rules` | Performance | Maybe | PurgeCSS in Hugo build pipeline |
| `uses-responsive-images` | Performance | Yes | Use Hugo image processing (`{{ $image.Resize }}`) |
| `offscreen-images` | Performance | Yes | Add `loading="lazy"` to below-fold images |
| `uses-optimized-images` | Performance | Yes | Use Hugo image processing with quality settings |
| `modern-image-formats` | Performance | Yes | Use Hugo image processing to convert to WebP |
| `unminified-css` | Performance | Maybe | Hugo's `minify` option in config |
| `unminified-javascript` | Performance | Maybe | Hugo's `minify` option in config |
| `uses-text-compression` | Performance | No | Server/CDN configuration |
| `uses-long-cache-ttl` | Performance | No | Server/CDN configuration |
| `server-response-time` | Performance | No | Hosting provider issue |

**Gate**: All content-level fixes applied. No theme or infrastructure changes made without user approval.

### Phase 4: VERIFY — Confirm Improvements

**Goal**: Re-run the analysis and compare before/after scores.

**Step 1: Re-run the pagespeed script**

```bash
python3 ${CLAUDE_SKILL_DIR}/scripts/publish/pagespeed.py --url <target-url> --format markdown --output /tmp/psi-after.md
```

**Step 2: Compare scores**

Present a before/after comparison:
```
                     BEFORE    AFTER    DELTA
Mobile Performance:    72        85      +13
Mobile SEO:            88        95       +7
Mobile Accessibility:  76        91      +15
Mobile Best Practices: 90        95       +5
```

**Step 3: Check threshold**

Run with explicit threshold to get a pass/fail exit code:
```bash
python3 ${CLAUDE_SKILL_DIR}/scripts/publish/pagespeed.py --url <target-url> --threshold 80
echo "Exit code: $?"
```

Exit code 0 means all categories pass. Exit code 1 means at least one category is below threshold.

**Step 4: Document remaining issues**

List any failing audits that cannot be fixed at the content level. These are infrastructure items the user needs to address separately (CDN caching, server response time, render-blocking third-party scripts).

**Gate**: Before/after scores documented. Remaining issues classified as content-level (missed) or infrastructure (out of scope).

---

## Auto-Fix Protocol

When PageSpeed Insights is invoked from the pre-publish checker (`pre-publish.md` Step 8) or SEO optimizer (`seo.md` Step 0), this protocol defines which fixes are mechanical (apply without confirmation) and which require user approval. The distinction is whether the fix is deterministic and content-safe, or whether it requires judgment about branding, structure, or site-wide rendering.

### Mechanical Fixes (auto-apply without confirmation)

These fixes are deterministic — the correct action is unambiguous and the risk of harm is near zero. Apply them during the calling workflow's current phase.

| PSI Audit | Fix | How |
|---|---|---|
| `meta-description` missing | Generate from first 155 characters of post content | Add as `description` field in front matter. Strip trailing mid-word breaks. If the post already has a `summary` field, use that as `description` instead of generating. |
| `robots-txt` syntax error | Report exact error and suggest fix | Show the specific line and the corrected version. Auto-apply only if the fix is a single-line syntax correction (missing colon, extra whitespace). |
| `image-alt` missing | Flag file path and line number | Cannot auto-generate meaningful alt text — alt text requires understanding the image content. Flag as BLOCKER with the specific `![](path)` location so the user can add it. |

### User Approval Required

These fixes involve judgment calls that affect branding, content flow, or site-wide rendering. Present the suggestion and wait for confirmation.

| PSI Audit | Why Approval Needed |
|---|---|
| `document-title` changes | Title affects branding, social sharing previews, and existing inbound links. Changing it without approval risks breaking bookmarks and social cards. |
| `heading-order` restructuring | Reordering headers changes content flow. The current order may be intentional for narrative reasons the machine cannot assess. Flag the violation but do not restructure. |
| Theme/CSS changes (`color-contrast`, `html-has-lang`, `render-blocking-resources`) | These modify theme files that affect every page on the site, not just the current post. Never auto-apply. |
| Infrastructure changes (`uses-text-compression`, `server-response-time`, `uses-long-cache-ttl`) | These require hosting/CDN configuration changes outside the content layer. Report as INFO. |

### Protocol Usage

The pre-publish and SEO workflows call into this protocol when they encounter PSI findings:
1. Check the finding against the "Mechanical Fixes" table. If it matches, apply immediately.
2. If not in the mechanical table, check "User Approval Required." Present the finding with the suggested fix and wait.
3. If the finding is not in either table (new audit type), treat it as requiring user approval — default to safety.

---

## Error Handling

### Error: "API error: HTTP 429"
Cause: Rate limited by Google's shared API quota (no API key set)
Solution:
1. Set `PAGESPEED_API_KEY` environment variable
2. Get a free key at https://developers.google.com/speed/docs/insights/v5/get-started
3. The script retries once after 2 seconds automatically

### Error: "Network error"
Cause: Cannot reach Google's API endpoint
Solution:
1. Check internet connectivity
2. Verify the target URL is publicly accessible
3. Try again — transient network issues resolve on retry

### Error: "Exit code 1 after fixes"
Cause: Some categories still below threshold after content-level fixes
Solution:
1. Review the remaining failing audits
2. Determine if they are infrastructure-level (server response time, CDN)
3. Lower the threshold if infrastructure changes are out of scope
4. Report infrastructure issues to the user for separate resolution

---

## References

### Script
- `${CLAUDE_SKILL_DIR}/scripts/publish/pagespeed.py`: Deterministic CLI for PSI API calls

### Related Workflows
- `${CLAUDE_SKILL_DIR}/references/seo.md`: Manual SEO optimization (4-phase ASSESS-DECIDE-APPLY-VERIFY)
- `${CLAUDE_SKILL_DIR}/references/image-audit.md`: Image optimization and accessibility
- `${CLAUDE_SKILL_DIR}/references/pre-publish.md`: Pre-publication checklist
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