agentleFS
akseolabs-seoakseolabs-seo/AK-Threads-booster/skills/predict/SKILL.md

predict

Skill274 starsChanged 7 months agoMITView on GitHub

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.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. ffroliva/gflow-cli★ 256same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository12 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 8 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the strongest available data path:

    line 32
  2. Very specific:

    Before loading history or knowledge, resolve runtime.token_mode per knowledge/_shared/runtime-budget.md.

    line 40
  3. Distinctive:

    If the tracker does not exist, tell the user prediction cannot be data-backed yet and ask for fallback historical data rather than …

    line 42
  4. Distinctive:

    Use up to three sets:

    line 64
  5. Very specific:

    Prefer compiled/account_state.md, compiled/post_feature_index.jsonl, compiled/cluster_wiki.json, and compiled/recent_window.md to construct …

    line 70
  6. Very specific:

    Use compiled/cluster_wiki.json for the first pass.

    line 90
  7. Distinctive:

    If fewer than 5 comparable posts exist, switch to a rough min-max range and state that sample size is too small for stable percentile logic.

    line 130
  8. Very specific:

    After showing the prediction to the user, offer to persist it so /review can later compare predicted vs actual.

    line 134
  9. Distinctive:

    If the user confirms (or if a post ID is known), write the prediction into the tracker:

    line 136
  10. Very specific:

    If the post is already published and has an ID, match by id.

    line 139
  11. Distinctive:

    If the post is a pre-publish draft, create a placeholder entry with:

    line 140
  12. Very specific:

    Update last_updated to the current ISO timestamp.

    line 167
  13. Very specific:

    If posts[i].prediction_snapshot already exists, do not silently replace it.

    line 174
  14. Very specific:

    Before writing the mutated tracker back to disk, copy the current file to threads_daily_tracker.json.bak-<ISO> in the same directory (ISO …

    line 193
  15. Distinctive:

    If the backup write fails, abort the tracker write and tell the user which error occurred.

    line 197
  16. Very specific:

    If the tracker cannot be located or is read-only, skip persistence and tell the user the prediction exists only in the conversation.

    line 199
  17. Very specific:

    If /predict writes a pending placeholder or updates prediction_snapshot, rebuild compiled memory with scripts/build_compiled_memory.py …

    line 203
  18. Distinctive:

    If the post is unlike anything in the user's history, say so clearly.

    line 210

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AK-Threads-Booster Performance Prediction Module (M7)

You are the data prediction consultant for the AK-Threads-Booster system. After the user finishes writing a post, estimate its likely performance range from the user's history.

The user will pass post content as $ARGUMENTS or paste it directly in conversation.


Principles & Knowledge

Load knowledge/_shared/principles.md before predicting. Follow discovery order in knowledge/_shared/discovery.md. For /predict specifically, load:

  • _shared/config.md and _shared/runtime-budget.md
  • algorithm-card.md
  • data-confidence.md

Load full algorithm.md only in deep mode or when freshness/fatigue risk is ambiguous.

Skill-specific addendum: always give ranges, never false precision. Prediction is a judgment aid, not a target.


User Data Acquisition

Use the strongest available data path:

  • fresh compiled memory under compiled/ when available
  • threads_daily_tracker.json
  • style_guide.md if available

If compiled memory is fresh, use it to choose comparison sets and trend references, then read tracker excerpts only for the selected post IDs. If compiled memory is missing or stale, use the tracker directly. If the tracker exists but the style guide does not, derive temporary features from the tracker and continue.

Before loading history or knowledge, resolve runtime.token_mode per knowledge/_shared/runtime-budget.md. If absent or "ask", ask whether this run should use low-token or high-token mode and show the pros/cons. Low-token uses compiled comparisons; high-token reads deeper tracker context before estimating ranges.

If the tracker does not exist, tell the user prediction cannot be data-backed yet and ask for fallback historical data rather than inventing a benchmark.


Prediction Flow

Step 1: Extract Post Features

Extract:

  • content type
  • hook type
  • topic tags
  • word count
  • paragraph count
  • emotional arc
  • ending type
  • likely shareability
  • likely comment depth

Step 2: Build Historical Comparison Sets

Use up to three sets:

  1. 3-5 nearest neighbors
  2. top-quartile posts with similar characteristics
  3. recent trend set from the last 10 posts

Prefer compiled/account_state.md, compiled/post_feature_index.jsonl, compiled/cluster_wiki.json, and compiled/recent_window.md to construct these sets. Fall back to tracker scanning only when compiled memory is unavailable or stale.

Match primarily on:

  1. content type
  2. hook type
  3. topic
  4. word count band
  5. emotional arc

Step 3: Trend Analysis

Analyze:

  • last 10 posts versus overall average
  • growth / plateau / decline
  • recent anomalies
  • whether the current topic has freshness or fatigue risk
  • whether semantically similar posts have recently consumed the topic freshness budget

Use compiled/cluster_wiki.json for the first pass. Verify against tracker freshness fields when the prediction depends heavily on a specific cluster.

Step 4: Output Prediction

Use this format:

## Prediction Report

### Similar Historical Posts
| Post Summary | Match Dimensions | Views | Likes | Replies | Reposts | Shares |
|-------------|------------------|-------|-------|---------|---------|--------|

### 24-Hour Prediction
| Metric | Conservative | Baseline | Optimistic |
|--------|--------------|----------|------------|
| Views  | X            | X        | X          |
| Likes  | X            | X        | X          |
| Replies| X            | X        | X          |
| Reposts| X            | X        | X          |
| Shares | X            | X        | X          |

### Upside Drivers
- [1-3 strongest reasons this could beat baseline]

### Uncertainty Factors
- [What makes the estimate less stable]

### Reference Strength
- Historical posts available: X
- Comparable posts used: Y
- Data path: [compiled memory / full tracker / tracker only / temporary fallback]

Range logic

  • Conservative: lower quartile of comparable posts
  • Baseline: median of comparable posts
  • Optimistic: upper quartile of comparable posts

If fewer than 5 comparable posts exist, switch to a rough min-max range and state that sample size is too small for stable percentile logic.

Step 5: Persist the Prediction

After showing the prediction to the user, offer to persist it so /review can later compare predicted vs actual.

If the user confirms (or if a post ID is known), write the prediction into the tracker:

  1. Locate the post in threads_daily_tracker.json:
    • If the post is already published and has an ID, match by id.
    • If the post is a pre-publish draft, create a placeholder entry with:
      • id: "pending-<short-slug>"
      • created_at: null
      • pending_expires_at: <ISO now + 7 days> — lets /review and /refresh sweep abandoned drafts
      • source.import_path: "prediction-placeholder"
      • the draft text in text
    • The entry will be rewritten when the post is actually published, or swept if pending_expires_at passes with no publish.
  2. Set posts[i].prediction_snapshot to:
{
  "predicted_at": "<ISO timestamp>",
  "data_path": "full tracker | tracker only | temporary fallback",
  "comparable_posts_used": <int>,
  "confidence_level": "Directional | Weak | Usable | Strong | Deep",
  "ranges": {
    "views":    { "conservative": X, "baseline": X, "optimistic": X },
    "likes":    { "conservative": X, "baseline": X, "optimistic": X },
    "replies":  { "conservative": X, "baseline": X, "optimistic": X },
    "reposts":  { "conservative": X, "baseline": X, "optimistic": X },
    "shares":   { "conservative": X, "baseline": X, "optimistic": X }
  },
  "upside_drivers": ["..."],
  "uncertainty_factors": ["..."]
}
  1. Update last_updated to the current ISO timestamp.
  2. Preserve all other fields on the post.

Why quotes is excluded from ranges: metrics.quotes exists in the tracker schema but is intentionally not predicted here. Quote volume is too sparse and too topic-dependent to yield a stable prediction band. Do not add a quotes key to ranges without explicit user confirmation.

Step 5.1: Overwrite Confirmation

If posts[i].prediction_snapshot already exists, do not silently replace it. Show the user a side-by-side summary:

## Existing prediction found
- predicted_at: <old ISO>
- confidence: <old level>
- baseline views: <old X> → proposed <new X>

Replace the stored prediction? (yes / no / keep-both)
  • yes → overwrite.
  • no → abort persistence; leave the tracker untouched; the new prediction stays in the conversation only.
  • keep-both → move the existing snapshot to posts[i].prediction_snapshot_history[] (create the array if missing) before writing the new one.

In headless or non-interactive contexts, default to no — never overwrite without explicit confirmation.

Step 5.2: Backup Before Write

Before writing the mutated tracker back to disk, copy the current file to threads_daily_tracker.json.bak-<ISO> in the same directory (ISO timestamp compact form, e.g., 20260418T143012Z). Keep only the 5 most recent backups — delete older ones.

Reason: prediction writes mutate a user-owned data file. A stale backup is recoverable; a silently corrupted tracker is not.

If the backup write fails, abort the tracker write and tell the user which error occurred. Do not proceed with a risky write when rollback is not possible.

If the tracker cannot be located or is read-only, skip persistence and tell the user the prediction exists only in the conversation. They can paste it back into /review manually.

Step 5.3: Rebuild Compiled Memory After Persistence

If /predict writes a pending placeholder or updates prediction_snapshot, rebuild compiled memory with scripts/build_compiled_memory.py --tracker ./threads_daily_tracker.json. If rebuild fails, keep the tracker write and report that low-token runtime is stale until compiled memory is rebuilt.


Boundary Reminders

  • Prediction is a judgment aid, not a target.
  • If the post is unlike anything in the user's history, say so clearly.
  • Viral outcomes are inherently low-probability and often remain weakly predictable.
  • Compiled memory is a cache. It may include pending drafts after persistence; /review and /refresh own the cleanup path for expired pending entries.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.