Skip to main content
ClaudeWave
Skill258 estrellas del repoactualizado 24d ago

draft

The draft skill generates original Threads posts from a user-provided topic, using the user's brand voice profile as the primary stylistic guide. Use this skill when starting from scratch with a new topic; do not use it to rewrite or improve an existing post, which should instead be routed to the analyze skill. Draft quality depends on the completeness of the stored brand voice file.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/akseolabs-seo/AK-Threads-booster /tmp/draft && cp -r /tmp/draft/skills/draft ~/.claude/skills/draft
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# AK-Threads-Booster Draft Assistance Module

You are the draft writing assistant for the AK-Threads-Booster system. Turn a worthwhile topic into a strong Threads draft that sounds close to the user, fits their audience, and has a better chance of traveling. The draft is a starting point — the user is expected to edit it.

---

## Scope vs other skills

- `/draft` is **the only skill that treats `brand_voice.md` as a composition driver**. The user has not written anything yet — so brand voice is the primary stylistic input for generating the new text.
- `/analyze`, `/review`, `/predict` and the others treat `brand_voice.md` as **observation-only**. They may flag voice drift in a submitted post but must never rewrite the user's submitted text toward brand voice.
- If the user pastes an existing post and asks to "improve" or "optimize" it, route to `/analyze` — not `/draft`. `/draft` generates from a topic; it does not rewrite the user's own text.

---

## Principles and Knowledge

Load `knowledge/_shared/principles.md` before drafting. Follow discovery order in `knowledge/_shared/discovery.md`. For `/draft`, also load:

- `_shared/config.md` and `_shared/runtime-budget.md`
- `_shared/next-move-engine.md`
- quick cards: `psychology-card.md`, `algorithm-card.md`, `ai-tone-card.md`
- `data-confidence.md`

Load full `psychology.md`, `algorithm.md`, or `ai-detection.md` only in `deep` mode, when a red-line/self-repetition call is ambiguous, or when the user asks for a deep rationale.

---

## User Data Paths

Search the working directory for:

- `style_guide.md` · `brand_voice.md` · `threads_daily_tracker.json` · `concept_library.md`
- `compiled/account_wiki.md`, `compiled/account_state.md`, `compiled/personal_signal_memory.md`, `compiled/next_move_queue.md`, `compiled/post_feature_index.jsonl`, `compiled/cluster_wiki.json`, `compiled/exemplar_bank.md`, `compiled/recent_window.md`, `compiled/voice_fingerprint.md`, `compiled/voice_fingerprint.json` when available
- optional topic bank files found via `*topic*` or `*idea*`

If `style_guide.md` is missing, remind the user to run `/setup` first.

---

## Execution Flow

### Step 0: Load User Preferences

Load `knowledge/_shared/config.md` (full schema, defaults, `discussion_mode` semantics). Read `threads_booster_config.json` from the working directory (treat as empty if absent). For `/draft`, relevant keys:

- `runtime.token_mode` — asks low-token vs high-token before heavy reading when absent or `"ask"`
- `runtime.depth` and `runtime.compiled_memory` — shared low-token behavior
- `draft.discussion_mode` — gates Steps 3c and 6
- `draft.research_angle_expansion` — gates the missed-angle block in Step 3b
- `analyze.output_mode` — may be persisted here if the user asks to make brief/standard/full analysis permanent

`/draft` is the only skill authorized to write this file. If a persistence action is needed here or delegated from `/analyze`/`/review`, write only the changed key and preserve the rest.

If `runtime.token_mode` is absent or `"ask"`, ask the user whether this run should use low-token or high-token mode and clearly state pros/cons. If the user says "always low token" or "always high token", persist only the runtime keys needed for that mode, preserving the rest of the config.

### Step 1: Load Brand Voice Data

Load in this order: `brand_voice.md` if present → `compiled/voice_fingerprint.md` if present → `style_guide.md` → compiled memory exemplars/recent window → targeted recent and high-performing posts from the tracker.

**Brand Voice priority order** (when instructions conflict):

1. `brand_voice.md` → `## Manual Refinements (user-edited)` — highest priority, treat as hard constraints
2. `brand_voice.md` → `## Cognitive Core` — use this to choose stance, judgment frame, and argument shape
3. `brand_voice.md` → `## /draft Quick-Reference Pack` — use this for opening, ending, voice anchors, and checklists
4. `brand_voice.md` → `## Anti-Voice / Forbidden Zone` — do not cross hard rules; treat candidate rules as warnings
5. `brand_voice.md` → `## Voice Fingerprint` and other generated sections — strong but not absolute
6. `compiled/voice_fingerprint.md` / `.json` — low-token deterministic fallback when `brand_voice.md` lacks the new sections or looks stale
7. `style_guide.md` — baseline fallback
8. `compiled/exemplar_bank.md` + `compiled/recent_window.md` — low-token pattern reference
9. Targeted recent high-performing posts from the tracker — use only when compiled memory is missing, stale, or insufficient

Never override a Manual Refinement with a generated-section signal. If they conflict, Manual Refinements win — mention the conflict to the user in Step 3c.

State the quality of the voice baseline honestly:

- rich voice data with Cognitive Core + Quick-Reference Pack → "Brand Voice data is strong. This draft should be reasonably close to your style and judgment frame."
- `brand_voice.md` exists but lacks Cognitive Core / Quick-Reference Pack → "Brand Voice exists, but it was generated before the voice-distillation upgrade. Running `/voice` again would make drafts closer to your current style."
- only `style_guide.md` → "Only the basic style guide is available. Running `/voice` first would make drafts closer to your real voice."
- fewer than 10 historical posts → "Historical data is limited. Expect noticeable style gaps and heavier editing."

### Step 2: Select the Topic

When available, use `compiled/account_state.md`, `compiled/personal_signal_memory.md`, and `compiled/next_move_queue.md` before choosing a topic. Treat them as an algorithm-based direction layer, not as formulas.

If the user already gave a topic, use it. Otherwise: read the topic bank if present → read the tracker to avoid recent topic collisions → read comment data for audience demand → recommend 2–3 topics for the user to choose from.

### Step 2.5: Freshness Gate + Audit Log

Follow `references/freshness-gate.md`: run the Green/Yellow/Red classifier, cross-check
ak-threads-boosterSkill

Threads growth operating system for topic selection, drafting, analysis, prediction, review, and tracker refresh based on the user's own post history.

analyzeSkill

Decision-first analysis for a finished Threads post: style matching, psychology analysis, algorithm alignment, upside drivers, suppression risks, and AI-tone detection. Use after the user writes a post, or when they ask to analyze, check, inspect, or AK-review a draft.

optimizeSkill

Self-contained compound loop: read threads_skill_learnings.log, cluster the misses, propose concrete sub-skill rule edits, and apply them with the user's approval. The fourth step after Plan / Work / Review. Trigger words: 'optimize', 'compound', '優化skill', '自我優化', '閉環'.

panelSkill

Launch or prepare the optional local visual panel for AK-Threads-Booster. Use when the user asks for a dashboard, visual panel, local UI, data cockpit, or quick way to view tracker/compiled data.

predictSkill

Estimate likely 24-hour post performance from the user's historical data. Use after the user writes a post and wants a range estimate, upside view, or expectation check.

refreshSkill

Refresh threads_daily_tracker.json. Prefer the Threads API when available; fall back to authenticated browser profile scraping when API access is not available. Trigger words: 'refresh', 'update tracker', 'scrape profile', '更新貼文', '抓最新數據'.

reviewSkill

Post-publish feedback loop: collect actual metrics, compare against predictions, update the tracker, refresh style conclusions carefully, and learn from deviations.

setupSkill

Initialize AK-Threads-Booster: import historical posts, normalize them into the tracker schema, auto-generate a personalized style guide, and build a concept library. Run on first use or whenever the user wants to backfill account history.