Workflows
RedditXLinkedInchromeActsYou approve first

Run a day of news for your site

A desk is a folder the user owns: where to look and what counts as news (desk.yaml), how articles read (style.md), and the records of what was already published (records/). This skill runs one day of it. The phone does the reading through MyPhonely, using the app workflows in this repo; you decide what is news, check it, and write it.

Any agent that can read a skill, call MCP tools, search the web and run a shell command can run it: Claude Code, Codex, pi.

Collecting only reads the phone. What leaves the machine: articles, in publish mode; and, when the desk has a share section, a post about each of the day's best articles on the site's own accounts (step 6), which stops for the person's approval unless they have said otherwise.

Inputs

deskthe desk folder, e.g. ./news/my-site
modedraft (default): articles are written to <records>/drafts/<date>/ for the user to read. publish: articles go to desk.yaml's publish endpoint; only when the user has said so for this run or its schedule
laneswhich lanes to run, default all in desk.yaml (news, and cases and insights if the desk has them)

Read the desk first

desk.yaml, style.md, and any other .md in the folder except README.md, which is for people. desk.yaml holds the sources (app, where, how many), the lanes, the score bar, the day's target, and the publish endpoint with its field names. style.md overrides everything here on how an article reads and what it must never say.

The records live where desk.yaml's records says, default <desk>/records/:

  • published.jsonl, one line per article ever published: {"date", "title", "source", "sourceUrl", "lane"}. Read it before scoring: never publish the same story twice.
  • runs/<date>.md, the day's log, written at the end.
  • drafts/<date>/, one .md per article in draft mode.

Run it

1. Collect

One source at a time, one phone task at a time, each small: at most 2-3 items per task and a short report. Long tasks are the ones that end without their result.

Open every source by link, never by typing into an app's search box. Put the link in the phase's openUrl with the app's launch, and start the goal at the page it opens ("The results are open. Read…"). Typing a search failed on X, LinkedIn and Reddit, every time, in both runs of 2026-10-09; the same searches opened by link all worked. URL-encode the query (spaces as %20).

applaunchopenUrlworkflow for the collect spec
Reddit, a subredditcom.reddit.frontpagehttps://www.reddit.com/r/<sub>/new/reddit-collect-subreddit
Reddit, a searchcom.reddit.frontpagehttps://www.reddit.com/search/?q=<query>&sort=newreddit-search-posts
X, a search or from:<account>com.twitter.androidhttps://x.com/search?q=<query>&f=livex-collect-topic
LinkedIn, postscom.linkedin.androidhttps://www.linkedin.com/search/results/content/?keywords=<query>&sortBy=%22date_posted%22linkedin-post-search
LinkedIn, a company's postscom.linkedin.androidhttps://www.linkedin.com/company/<slug>/posts/ (slugs that do not open are dropped from the desk)linkedin-post-search
A forumcom.android.chromethe forum pagethe server's playbook (1point3acres)

Take the `collect` spec from that workflow's SKILL.md, with the inputs filled in: it is what tells the operator when it has read enough. A goal with no collect scrolls until it runs out of steps (measured 2026-10-09). On Reddit read title, author, upvotes, any external link's domain and the first lines of the body; never copy links in the app.

Give each a claim that says what the lane keeps, so the read filters on the phone: for news, "the post reports an official announcement, a policy, rule or fee change, visa-bulletin movement, a processing-time change or a court ruling, not a personal case question"; for cases, what desk.yaml says a case report is; for insights, "the author's headline shows they work in the field (insights.who) and the post analyses an issue, not a sales pitch, consultation offer or job post". Keep each post's author, author headline, age and text: finding the post's URL and the report need them.

Pinned highlights and link posts: a subreddit's "Community highlights" and a link post's title are leads, not stories. Note the title and search for it on the web (step 4); the phone need not open them.

A source that fails or returns nothing is logged and skipped. One bad source never stops the run.

2. Sort into lanes

news. Official announcements and changes that affect many readers. Skip personal posts, questions, memes, ads and job posts. Returning zero from a community is a correct answer: do not pad.

cases (only if the desk has it). People reporting their own outcomes (an approval, an RFE, a denial) with whatever details they chose to share: category, service center, dates, premium processing, field. These are not news one by one: collect them and write one roundup when desk.yaml's cases.min_reports is reached, as its cases.cadence says (say, weekly). In a roundup:

  • title and slug safe for URLs: write date ranges with an ASCII hyphen and no periods ("Oct 6-12", never "Oct. 6–12"), so the site's slug matches the one you record in published.jsonl; after publishing, record the slug the site actually returns (or open the URL to check it);
  • no names, handles or links to the person's post, and nothing that identifies them (employer, lab, exact field when it is rare): report the facts, not the person;
  • say it is self-reported and unverified, and give counts and ranges, not a promise ("of 12 approvals reported this week, 9 had no RFE");
  • no advice on anyone's case.

Keep the cases you collected in <records>/cases/<date>.jsonl until they go into a roundup, so a weekly cadence has the whole week.

insights (only if the desk has it). Posts by professionals in the field (insights.who), say attorneys analysing a rule, a ruling or an RFE trend. Not news on their own. Drop what insights.skip names (sales posts, competitors) and posts older than insights.max_age_days (default 7). Keep the rest in <records>/insights/<date>.jsonl, one line each: author (only to look the post up, never printed), headline (their role as LinkedIn shows it), search (the query that found it), age, summary (the argument in 1-2 sentences), claims, url (or null), has_url, and used (context:<slug>, explainer:<slug>, reported, or none), so a later day's story can still use one within its age window. They are used two ways (step 4), only when `has_url` is true if the desk sets insights.require_url: as context in a news article on the same issue, and, at most insights.uses.explainer_per_day a day, as an explainer built around one professional's analysis.

3. Score and pick

Drop anything already in published.jsonl and merge the same story from several sources. Drop old news: a story is news only if its primary source is dated within target.max_age_days (default 3) or something new happened to it in that window (a court order, an effective date, a new FAQ); then the article is about that new thing. Pinned highlights are often months old. Score each story on the desk's criteria (default: newsworthiness 1-10 and how many readers it affects 1-10) and keep those at or above target.min_score, official sources first, up to target.articles_per_day.

Insights are scored on the desk's insights criteria (default: relevance to a current issue 1-10 and depth of the analysis 1-10). A post at or above insights.min_score_context on the same issue as a picked news story goes into that story as context. The best post at or above insights.min_score may become one explainer, counted inside articles_per_day, only when the issue it discusses is current (its primary source or latest development within 30 days) and not already published.

4. Check, then write

For every story you keep, before writing a word:

  1. Find the primary source on the web: the agency's page, the Federal Register, the court's ruling, the news article a link post points to. That is the sourceUrl, not the community post. Use your web search tool. With none, a shell still reaches the sources that matter most: the Federal Register's API (curl 'https://www.federalregister.gov/api/v1/documents.json?conditions[term]=<words>&order=newest') for any rule, and the agencies' news pages (desk.yaml may list them under primary_sources). No source found: drop the story.
  2. Check every fact you will state (dates, numbers, form and rule names, who said it) against that source. A claim you could not check is left out, or the story is dropped.
  3. Write it as style.md says, in the site's language: a headline of your own, a short description, the article, the categories and tags from desk.yaml. Translate sources in other languages; never copy a post's text.
  4. Insights: find the post's URL on the web (author name + a phrase from it; a linkedin.com/posts/... or /feed/update/... link that opens to that post). With insights.require_url, no URL means the post is not used anywhere: set used: reported and list it in the report (below). Check each factual or policy claim it makes against a primary source and drop the ones you could not check. Write their view as theirs, paraphrased (one short quote at most), never as advice to a reader. When insights.attribution.credit_by_name is false, never name the person, their title or their firm: credit them neutrally (insights.attribution.wording, e.g. "one immigration attorney notes") and link that phrase to the post. An explainer's sourceUrl is the primary source of the issue; the post is linked in the text. style.md has the rest.

5. Publish or draft

draft (default): write each article to <records>/drafts/<date>/<n>-<slug>.md with the fields as front matter. Nothing is sent.

publish: send each article to desk.yaml's publish.url with its publish.fields mapping, one request per article, and check the response says it was created. Append a line to published.jsonl for each one that was. A failed request is logged; do not retry it blindly.

6. Share (only if desk.yaml has share, and only articles that are live)

Pick the day's strongest published articles, at most share.max_per_day, and post each to the site's own accounts and communities listed under share. Never anywhere else: other people's communities remove a site's links and ban the account.

  • Reddit, each community in share.reddit.communities: the reddit-post workflow, a text post: the article's headline as the title; as the body, 3-4 sentences with the key facts, then the article's link on its own line. An account that only ever posts links to one domain trips Reddit's spam filter, even in its own subreddits. Read the published body before approving: the Reddit body editor can type the body twice (measured 2026-10-12, r/immigraus). If the title or body doubled, delete the post and post it again — see reddit-post step 4. Then check the feed for the post before any retry: posting twice is worse than not at all. Then approve it where share.reddit.moderator is true: open the new post (the subreddit's New feed, by link, then tap it) and look for the "Approved" badge under it. If it is there, done. If not, tap Mod mode disabled at the top of the post page to turn Mod mode on, tap Approve post (not Remove post, not Mark post as spam) and check "Post has been approved." and the badge. The post menu (⋯) has only the author's actions. If the post is missing from the feed, a filter took it: approve it from Mod Tools → Queues → Needs Review. Measured 2026-10-09: in r/quickfiling the post showed Approved at once; in r/immigraus it was live but unapproved and not in the queue, and Mod mode → Approve post approved it.
  • X, share.x: one or two sentences, the fact first, then the link (under 280 characters; a link counts as 23). Open the composer already filled in, by link: launch: com.twitter.android, openUrl https://x.com/intent/post?text=<the post, URL-encoded>, and pause. Check the composer shows share.x as the account and the whole text, then tap Post once (two overlapping "Post" labels: either is the same button). Measured 2026-10-09: the x-post workflow's route, the floating button on the timeline, did not register and the operator scrolled instead; the intent link opened the composer filled in, and the post went out from @quickfiling2us.
  • Facebook, share.facebook (the page the phone's Facebook is switched to): the facebook-post workflow, posting to the profile it is on. Check the pause's labels name share.facebook.page as the poster before the post goes out; a person's name means the app switched back, so abandon. The post: the headline, two or three sentences, the link last. The composer goes Next → SHARE, then back to the feed with an "Increase your reach" sheet: tap Not now (never Boost post, which is paid). Measured 2026-10-11: the post went out ("Quickfiling · Just now · Public" at the top of the feed) but the run ended stuck with sent: []. So before any retry, look at the feed for the post: posting twice is worse than not at all.
  • LinkedIn, share.linkedin (a company page the phone's member admins, and who reposts it): post as the page, then repost from the member. 1. Open the page in admin view: openUrl https://www.linkedin.com/search/results/companies/?keywords=<page>, tap the result named in share.linkedin.result (another company can share the name), and dismiss a Premium offer if one covers it. Admin view shows Dashboard, Inbox and Start a post. 2. Tap Start a post and stop: check the composer's avatar is the page's logo, not the member's photo, before typing. Type the post (headline, two short paragraphs, the link) and tap Post once; "Post successful" confirms. 3. Find the page's post from the page itself, not a posts search (the search kept reopening the search box, 2026-10-12): on the page, open the Dashboard menu → View as a member → the Posts tab; the new post is at the top (match its headline). Tap the avatar left of Like and check the "Comment, react, and repost as" sheet has share.linkedin.repost_as selected (the member, not the page; the member's photo can look like the logo, so read the name). Then Repost → the plain Repost ("Instantly bring <page>'s post to others' feeds"), never "Repost with your thoughts". "Repost successful" and the card's "1 repost" confirm. Measured 2026-10-09: the pause can fire on the wrong screen here too, so confirm each check from a screenshot.
  • Discord, share.discord (a server and a channel the phone's account can post in). Use `run_task`: one phase, launch: com.discord, goal "tap the <server> server icon, tap '<channel> (announcement channel)' [or (text channel)], check the last messages for the article's link and stop if it is there, tap the 'Message #<channel>' box", pauseWhen "the 'Message #<channel>' box is focused, empty, with the keyboard up"; then resume_task with typeTexts: [<message>], allowWrites: true, repeat: 1, countLabel: "^Send$". Measured 2026-10-13: with the operator's candidate cap at 300 (backend b5bbaf4; at 80 the drawer's channel buttons pushed the box off the menu, which is why 10-12 and 10-13 failed), the box was tapped by label, the message typed and Send verified, 12 credits. The direct-call route below is the fallback: 1. phone_open_app com.discord, tap the <server> server icon, then tap the channel by its full label ("<channel> (announcement channel)" or "<channel> (text channel)"). The channel-list drawer stays in the accessibility tree after the channel opens, so the tap on the channel row is what brings the feed forward. 2. Duplicate check: read the channel's last messages; if the article's link or headline is already there, record it as shared and stop. Never post twice. 3. Tap the "Message #<channel>" box, then confirm with phone_screen (not a screenshot) that the EditText is focused. Screenshots lag one step behind: take a second one before judging. 4. Type the message (headline in bold, two sentences, the link) once, confirm the text is in the box, tap the send arrow once (never Record Voice Message), then take fresh screenshots until the feed shows the message under today's date from the brand's account. With run_task, use the same order: pauseWhen "the 'Message #<channel>' box is focused and empty and the channel feed (not the channel list) is visible", then resume_task with typeTexts, allowWrites: true, repeat: 1, countLabel: "^Send".
  • Write each post fresh from the article, as style.md says. Never the same text in two places.

Every share is a write from the brand's account, so it follows the workflows' pause: with someone watching (share.mode: review, the default), stop at each composer and post only on their yes. With no one watching, write the posts to <records>/share/<date>.md instead and post nothing; post unattended only when share.mode is autopilot. Record each post that went out in <records>/shared.jsonl (date, slug, where) and never share an article twice to the same place.

7. Pick the day's video (only if desk.yaml has video)

After publishing (and sharing), look at the articles that went live today and pick at most `video.pick_per_day` (one) for a short explainer video, or none. Score each 1-5 on video.criteria (default: broad appeal to the desk's readers; a clear visual or step story, such as a timeline, before/after or steps; a date or deadline; facts checked in the article, which must be 5). Pick the best at or above video.min_score; "none" with the reason is a correct answer on a thin day.

Write <records>/video/<date>.md: the article's title and URL, the scores, one line on why (or why nothing qualified), and a script outline of video.length_seconds (default 30-60 s): a hook line, 3-5 beats with one fact each, and a close ("details in the article"). Facts come only from the published article; no legal advice, nothing on what a viewer should file or whether they qualify, no fees, processing times or approval rates the article does not state.

Picking only unless video.generate is true: render nothing, push nothing to the phone, post nothing.

What comes back

Write <records>/runs/<date>.md and report: each source OK | EMPTY | FAILED with how many items it gave; how many stories after dedupe; how many met the bar; each article's title, source and URL (or draft path); the cases collected and whether a roundup went out; the insights kept and where each was used (context in which article, or the explainer); each insight with no link found, listed for the person to look up: the professional's headline/role as shown, the gist in 1-2 sentences, the search that found it, and "no link found" (no name, when the desk does not credit by name); the day's video pick (title, URL, one line why, the path to video/<date>.md) or "none" and why; anything skipped because its facts could not be checked.

Notes

  • A schedule runs this unattended: give the AI the desk folder, the skills and the MyPhonely server, and say publish in the prompt only when the user has decided to.
  • pi: load outreach-day/scripts/adapters/pi.ts with -e. It connects MyPhonely from MYPHONELY_API_KEY with the phone's writing tools hidden, which is all a desk needs. pi has no web search of its own: install one (pi install npm:pi-web-search uses the current model's native search) and load it with -e too, since --no-extensions skips installed ones: pi --no-extensions -e builtin:mcp -e <skills>/outreach-day/scripts/adapters/pi.ts -e ~/.pi/agent/npm/node_modules/pi-web-search --skill <skills> "Run news-desk for <desk> in draft mode". Without an outreach agent loaded, the extension keeps no reservations but still makes every share's phase pause and asks the person before the post goes out (unattended: OUTREACH_UNATTENDED=1, for share.mode: autopilot only).
  • No reservations here: published.jsonl keeps a story from going out twice, shared.jsonl a share.
  • example/ is a complete fictional desk to copy.

Related workflows