AgriciDaniel/claude-blog / skills/blog-flow
blog-flow
VerifiedFLOW framework integration for bloggers. Evidence-led content workflow using the Find, Optimize, Win loop with stage-specific AI prompts from the FLOW knowledge base (30 blog-applicable prompts, adapted from FLOW under CC BY 4.0). Use when user says "FLOW framework", "blog flow", "/blog flow", "evidence-led blogging", or "find optimize win", or asks for stage-specific blog prompts. Not for generic prompt writing.
scripts/sync_flow.py
View on GitHub#!/usr/bin/env python3
"""Thin wrapper that runs the core FLOW sync (scripts/sync_flow.py).
There is one sync implementation. This file only locates the core script and
forwards the command line, so the flags, the fetch paths (docs/...), the CC BY
4.0 header, the drift gate and the exit codes are identical to the core:
python3 sync_flow.py --references-dir /abs/persistent/root [--dry-run]
[--ref <commit-sha>] [--allow-drift] [--resolve-references]
The core script is found at ``CLAUDE_BLOG_SCRIPTS_DIR`` when that variable
names an absolute directory, otherwise at ``<skills dir>/../scripts`` relative
to this file (the plugin layout and the standalone ``~/.claude`` layout both
satisfy this). If it cannot be found the wrapper exits 2 with a pointer.
"""
from __future__ import annotations
import importlib.util
import os
import sys
from pathlib import Path
_CORE = None
def core_path() -> Path:
"""Return the core sync script path (not yet verified to exist)."""
override = os.environ.get("CLAUDE_BLOG_SCRIPTS_DIR")
if override:
base = Path(override)
if not base.is_absolute() or ".." in base.parts:
raise ValueError("CLAUDE_BLOG_SCRIPTS_DIR must be a resolved absolute path")
else:
base = Path(__file__).resolve().parents[3] / "scripts"
return base / "sync_flow.py"
def load_core():
"""Import the core implementation once and return the module."""
global _CORE
if _CORE is not None:
return _CORE
path = core_path()
if not path.is_file() or path.resolve() == Path(__file__).resolve():
raise FileNotFoundError(path)
spec = importlib.util.spec_from_file_location("claude_blog_sync_flow_core", path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
_CORE = module
return module
def main(argv: list[str] | None = None) -> int:
try:
core = load_core()
except (FileNotFoundError, ValueError) as exc:
print(
"ERROR: this is a thin wrapper and the core scripts/sync_flow.py was "
f"not found ({exc}). Run the core script from the claude-blog "
"install directly, or set CLAUDE_BLOG_SCRIPTS_DIR to its absolute "
"scripts directory.",
file=sys.stderr,
)
return 2
return core.main(argv)
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |