refresh
Skill274 starsChanged 7 months agoMITView on GitHub
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', '更新貼文', '抓最新數據'.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- fabio-baumgartner/unternehmer-skillstheir own version, first seen Aug 26, 2026
- fullymiddleaged/Clawnesstheir own version, first seen Jul 28, 2026
- OpenAnalystInc/10x-Code-Contexttheir own version, first seen Mar 9, 2026
- vyayasan/kyc-analysttheir own version, first seen Feb 16, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- vyayasan/kyc-analyst★ 58same name
- fullymiddleaged/Clawness★ 4same name
- OpenAnalystInc/10x-Code-Context★ 3same name
- fabio-baumgartner/unternehmer-skills★ 2same 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.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Never hard-code selectors in this skill.
- Very specific: line 48
Follow references/chrome-flow.md for Steps 1–7:
- Very specific: line 62
Use the exact report shape in references/output-and-failures.md.
- Very specific: line 70
Do not modify prediction_snapshot, review_state, or enriched analysis fields outside the merge rules in references/chrome-flow.md.
- Distinctive: line 71
If a post is no longer visible on the profile, report it but do not delete historical data.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AK-Threads-Booster Profile Refresh Module
You are the tracker-refresh worker for the AK-Threads-Booster system. Pull the user's latest posts, metrics, and comments, then merge them into threads_daily_tracker.json without losing existing data.
Two refresh sources are supported and must be tried in this order:
- Threads API — preferred when a token is available. Faster, more reliable, better for scheduled refresh.
- Authenticated browser automation — fallback for users who cannot or do not want to use the API. Scrapes the user's own logged-in Threads profile.
Browser scraping is slower and more fragile than the API. Use it only when the API path is unavailable or the user explicitly asks for browser-based refresh.
Step 0: Pick the Refresh Source
Follow references/api-path.md to decide whether the API path applies. If it does, run the API commands there and stop — do not run the Chrome flow. If the user explicitly asks for Chrome even with a token, honor that and note the override in the final summary.
Execution Modes
/refresh runs in interactive mode (direct user invocation — may ask questions, pause) or headless mode (scheduler, other skill, or --headless in $ARGUMENTS — must not ask or pause).
Full contract, recognized arguments, log schema, and preconditions (browser automation available, logged in, handle match, handle known) are in references/headless-contract.md. Every precondition failure in headless mode maps to a specific reason value for the log entry.
Principles and Knowledge
Load knowledge/_shared/principles.md before scraping. Follow discovery order in knowledge/_shared/discovery.md. For /refresh, also load:
data-confidence.mdchrome-selectors.md
Never hard-code selectors in this skill. chrome-selectors.md is the source of truth.
Chrome Execution Flow
Follow references/chrome-flow.md for Steps 1–7:
- Step 1 — load or create tracker (ask for handle in interactive mode if needed)
- Step 2 — navigate to
https://www.threads.com/@<handle>and confirm header handle - Step 2.5 — mandatory selector health check from
knowledge/chrome-selectors.md(abort withlogin_wallorselector_health_failedon failure) - Step 3 — scroll until no new posts,
--max-postsreached, or--max-minutesreached - Step 4 — extract post data (id, text, created_at, permalink, media_type, metrics); preserve last-known tracker value when a metric token fails to parse
- Step 5 — extract replies only for posts that are new or whose reply count changed
- Step 5.5 — sweep expired
pending-placeholders (intodiscarded_drafts[], merge snapshot into real post if matched) - Step 6 — merge into tracker per the 6-rule merge matrix; keep existing
prediction_snapshotuntouched - Step 7 — persist under
templates/FAILSAFE.md: backup → prune to 5 → write temp → atomic rename → regenerate companions → rebuild compiled memory → write headless log if applicable. Companion and compiled-memory failures are non-fatal.
Step 8: Report
Use the exact report shape in references/output-and-failures.md. The failure-mode table is there too — consult it before giving up on a partial refresh.
Boundary Reminders
- It is valid for this skill to write the tracker, backup files, refresh log, and companion files. Those writes are part of the contract.
- It is valid for this skill to rebuild
compiled/after tracker changes. Compiled memory is a cache; if rebuild fails, keep the refreshed tracker and report that low-token runtime is stale. - Do not modify
prediction_snapshot,review_state, or enriched analysis fields outside the merge rules inreferences/chrome-flow.md. - If a post is no longer visible on the profile, report it but do not delete historical data.
- Browser automation actions must stay inside
threads.comduring this flow.
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
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.

